diff --git a/.ci-mgmt.yaml b/.ci-mgmt.yaml new file mode 100644 index 0000000..4c50e39 --- /dev/null +++ b/.ci-mgmt.yaml @@ -0,0 +1,35 @@ +template: external-bridged-provider +provider: doppler +organization: DopplerHQ +major-version: 0 +providerDefaultBranch: main +upstreamProviderOrg: DopplerHQ +publishRegistry: false +# Upstream upgrade PRs wait for a human review instead of merging once CI passes. +autoMergeProviderUpgrades: false +# Workflows authenticate with the PULUMI_PROVIDER_AUTOMATION_TOKEN secret (a fine-grained +# token with contents, pull-requests and workflows write on this repo) rather than minting +# GitHub App tokens. The secret also lets automated upgrade PRs trigger CI, which PRs opened +# with GITHUB_TOKEN don't. +github-app: + enabled: false +# The examples/ integration tests create real resources in a Doppler test workplace, and skip +# when DOPPLER_TOKEN is empty (as on fork PRs). See examples/README.md. +env: + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} +# Also run the integration tests daily, so API or upstream regressions surface between PRs. +generate-nightly-test-workflow: true +languages: + - dotnet + - go + - nodejs + - python +publish: + sdk: "all,!java" + cdn: false +# license: +# ignore: +# - github.com/apache/arrow/go/v15 +# - github.com/grafana/grafana-com-public-clients/go/gcom # Temporary while Grafana provider hasn't been upgraded yet +pulumiConvert: 1 diff --git a/.config/mise.test.toml b/.config/mise.test.toml new file mode 100644 index 0000000..7b98371 --- /dev/null +++ b/.config/mise.test.toml @@ -0,0 +1,3 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +# Overrides for test workflows -- currently empty. diff --git a/.config/mise.toml b/.config/mise.toml new file mode 100644 index 0000000..7f7e9e1 --- /dev/null +++ b/.config/mise.toml @@ -0,0 +1,34 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt +# You can create your own root-level mise.toml file to override/augment this. See https://mise.jdx.dev/configuration.html + +[env] +_.vfox-pulumi = { module_path = "provider" } # Sets GO_VERSION_MISE and PULUMI_VERSION_MISE +PULUMI_HOME = "{{config_root}}/.pulumi" + +[tools] + +# Runtimes +go = "{{ env.GO_VERSION_MISE }}" +node = '20.19.5' +python = '3.11.8' +"vfox:version-fox/vfox-dotnet" = "8.0.20" # vfox backend doesn't work on Windows, gives "error converting Lua table to PreInstall (no version returned from vfox plugin)" https://github.com/jdx/mise/discussions/5876 https://github.com/jdx/mise/discussions/5550 +# Corretto version used as Java SE/OpenJDK version no longer offered +java = 'corretto-11' + +# Executable tools +"github:pulumi/pulumi" = "{{ env.PULUMI_VERSION_MISE }}" +"github:pulumi/pulumictl" = '0.0.50' +"github:pulumi/schema-tools" = "0.6.0" +"aqua:gradle/gradle-distributions" = '7.6.6' +golangci-lint = "2.5.0" # See note about about overrides if you need to customize this. +"npm:yarn" = "1.22.22" + +[settings] +experimental = true # Required for Go binaries (e.g. pulumictl). +lockfile = false +http_retries = 3 +pin = true # `mise use` should pin versions instead of defaulting to latest. +fetch_remote_versions_cache = "24h" # Mise queries versions even if they're pinned to confirm they exist. Reduce GitHub API calls by doing that less often. + +[plugins] +vfox-pulumi = "https://github.com/pulumi/vfox-pulumi" diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c23b1a3..3d9004f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,68 +1,12 @@ -ARG UBUNTU_VERSION=latest -FROM ubuntu:${UBUNTU_VERSION} +FROM mcr.microsoft.com/devcontainers/base:ubuntu -# Update apt-get and install various needed utilities -RUN apt-get update && \ - apt-get install -y curl && \ - apt-get install -y wget && \ - apt-get install -y xz-utils && \ - apt-get install -y make && \ - apt-get install -y gcc && \ - apt-get install -y git +# Install mise +RUN curl https://mise.run | sh +ENV PATH="/root/.local/bin:${PATH}" -# Install bridged provider prerequisites -# See README.md +# Setup mise +WORKDIR /code +RUN mise install -# Install go -ARG GO_VERSION=1.18.3 -RUN rm -rf /usr/local/go && \ - wget -O ${GO_VERSION}.tar.gz https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz && \ - tar -C /usr/local -xzf ${GO_VERSION}.tar.gz && \ - rm ${GO_VERSION}.tar.gz - -ENV GOPATH=/root/go -ENV PATH=$PATH:/usr/local/go/bin - -# Install go linter -RUN mkdir -p $GOPATH/bin && \ - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $GOPATH/bin v1.46.2 - -ENV PATH=$PATH:$GOPATH/bin - -# Install pulumictl -ARG PULUMICTL_VERSION=v0.0.32 -RUN rm -rf /usr/local/bin/pulumictl && \ - wget -O pulumictl.${PULUMICTL_VERSION}.tar.gz https://github.com/pulumi/pulumictl/releases/download/${PULUMICTL_VERSION}/pulumictl-${PULUMICTL_VERSION}-linux-amd64.tar.gz && \ - tar -C /usr/local/bin -xzf pulumictl.${PULUMICTL_VERSION}.tar.gz - -# Install nodejs -ARG NODEJS_VERSION=v16.16.0 -ARG NODEJS_PKG=node-${NODEJS_VERSION}-linux-x64 -ARG NODEJS_TARBALL=${NODEJS_PKG}.tar.xz -RUN rm -rf /usr/local/node && \ - wget -O ${NODEJS_TARBALL} https://nodejs.org/dist/${NODEJS_VERSION}/${NODEJS_TARBALL} && \ - tar -C /usr/local -xf ${NODEJS_TARBALL} && \ - mv /usr/local/${NODEJS_PKG} /usr/local/node - -ENV PATH=$PATH:/usr/local/node/bin - -# Install yarn -RUN npm install --global yarn - -# Install python and related items -RUN apt-get install -y python3 && \ - apt-get install -y python3-setuptools - -# Install .NET -RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \ - dpkg -i packages-microsoft-prod.deb && \ - rm packages-microsoft-prod.deb - -RUN apt-get update && \ - apt-get install -y apt-transport-https && \ - apt-get update && \ - apt-get install -y dotnet-sdk-6.0 - -# Install Pulumi -RUN curl -fsSL https://get.pulumi.com | sh -ENV PATH=$PATH:/root/.pulumi/bin +# Activate mise in shell +RUN echo 'eval "$(mise activate bash)"' >> ~/.bashrc diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6b9e8cb..92cf60f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,14 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo { - "name": "TFProvider", + "name": "Provider Dev Container", "build": { - "dockerfile": "Dockerfile" - } + "dockerfile": "./Dockerfile", + "context": ".." + }, + "customizations": { + "vscode": { + "settings": {}, + "extensions": [] + } + }, + "remoteUser": "root" } \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ff9aa4f --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +sdk/**/* linguist-generated=true diff --git a/.github/actions/download-prerequisites/action.yml b/.github/actions/download-prerequisites/action.yml new file mode 100644 index 0000000..4197d15 --- /dev/null +++ b/.github/actions/download-prerequisites/action.yml @@ -0,0 +1,28 @@ +name: Download the code generator binary +description: Downloads the code generator binary to `bin/`. + +runs: + using: "composite" + steps: + - name: Download the prerequisites bin + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + with: + name: prerequisites-bin + path: bin + + - name: Restore executable permissions + shell: bash + run: chmod +x $(< bin/executables.txt) + + - name: Remove executables list + shell: bash + run: rm bin/executables.txt + + - name: Download schema-embed.json + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + with: + # Use a pattern to avoid failing if the artifact doesn't exist + pattern: schema-embed.* + # Avoid creating directories for each artifact + merge-multiple: true + path: provider/cmd/pulumi-resource-doppler diff --git a/.github/actions/download-provider/action.yml b/.github/actions/download-provider/action.yml new file mode 100644 index 0000000..35fb15a --- /dev/null +++ b/.github/actions/download-provider/action.yml @@ -0,0 +1,23 @@ +name: Download the provider binary +description: Downloads the provider binary to `bin/`. + +runs: + using: "composite" + steps: + + - name: Download pulumi-resource-doppler + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + with: + pattern: pulumi-resource-doppler-*-linux-amd64.tar.gz + path: ${{ github.workspace }}/bin + merge-multiple: true + + - name: Untar pulumi-resource-doppler + shell: bash + run: | + tar -zxf ${{ github.workspace }}/bin/*amd64.tar.gz -C ${{ github.workspace}}/bin + + - name: Mark pulumi-resource-doppler as executable + shell: bash + run: | + find ${{ github.workspace }} -name "pulumi-*-doppler" -print -exec chmod +x {} \; diff --git a/.github/actions/download-sdk/action.yml b/.github/actions/download-sdk/action.yml new file mode 100644 index 0000000..a92db4b --- /dev/null +++ b/.github/actions/download-sdk/action.yml @@ -0,0 +1,19 @@ +name: Download SDK asset +description: Restores the SDK asset for a language. + +inputs: + language: + required: true + description: One of nodejs, python, dotnet, go, java + +runs: + using: "composite" + steps: + - name: Download ${{ inputs.language }} SDK + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + with: + name: ${{ inputs.language }}-sdk.tar.gz + path: ${{ github.workspace}}/sdk/ + - name: Uncompress SDK folder + shell: bash + run: tar -zxf ${{ github.workspace }}/sdk/${{ inputs.language }}.tar.gz -C ${{ github.workspace }}/sdk/${{ inputs.language }} diff --git a/.github/actions/upload-prerequisites/action.yml b/.github/actions/upload-prerequisites/action.yml new file mode 100644 index 0000000..4cadd6f --- /dev/null +++ b/.github/actions/upload-prerequisites/action.yml @@ -0,0 +1,23 @@ +name: Upload SDK asset +description: Upload the SDK for a specific language as an asset for the workflow. + +runs: + using: "composite" + steps: + - name: Capture executable permissions + shell: bash + run: find bin -type f -executable > bin/executables.txt + + - name: Upload prerequisites bin + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: prerequisites-bin + path: bin/* + retention-days: 30 + + - name: Upload schema-embed.json + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: schema-embed.json + path: provider/cmd/pulumi-resource-doppler/schema-embed.json + retention-days: 30 diff --git a/.github/actions/upload-sdk/action.yml b/.github/actions/upload-sdk/action.yml new file mode 100644 index 0000000..6afb103 --- /dev/null +++ b/.github/actions/upload-sdk/action.yml @@ -0,0 +1,20 @@ +name: Upload SDK asset +description: Upload the SDK for a specific language as an asset for the workflow. + +inputs: + language: + required: true + description: One of nodejs, python, dotnet, go, java + +runs: + using: "composite" + steps: + - name: Compress SDK folder + shell: bash + run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} . + - name: Upload artifacts + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: ${{ inputs.language }}-sdk.tar.gz + path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz + retention-days: 30 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..aff5b63 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +# Version updates only for the test modules. Everything else is updated another way: +# - provider/ and sdk/: the upgrade-provider and upgrade-bridge workflows bump upstream, the +# bridge and Pulumi, and regenerate the schema and SDKs, which Dependabot can't do. +# - GitHub Actions: workflows are generated by ci-mgmt (`make ci-mgmt`), which would +# overwrite any pin Dependabot changes. +version: 2 +updates: + - package-ecosystem: "gomod" + directories: + - "/examples" + - "/examples/core-go" + schedule: + interval: "weekly" + groups: + examples: + patterns: + - "*" diff --git a/.github/workflows/build_provider.yml b/.github/workflows/build_provider.yml new file mode 100644 index 0000000..932764c --- /dev/null +++ b/.github/workflows/build_provider.yml @@ -0,0 +1,105 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: "Build Provider" + +on: + workflow_call: + inputs: + version: + required: true + type: string + description: Version of the provider to build + matrix: + required: false + type: string + default: | + { + "platform": [ + {"os": "linux", "arch": "amd64"}, + {"os": "linux", "arch": "arm64"}, + {"os": "darwin", "arch": "amd64"}, + {"os": "darwin", "arch": "arm64"}, + {"os": "windows", "arch": "amd64"}, + {"os": "windows", "arch": "arm64"} + ] + } + +jobs: + build_provider: + name: Build ${{ matrix.platform.os }}-${{ matrix.platform.arch }} + runs-on: ubuntu-latest + env: + PROVIDER_VERSION: ${{ inputs.version }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + strategy: + fail-fast: true + matrix: ${{ fromJSON(inputs.matrix) }} + permissions: + contents: read + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + # Without ldid cross-compiling Node binaries on a Linux worker intended to work on darwin-arm64 fails to sign the + # binaries properly and they do not work as expected. See https://github.com/pulumi/pulumi-awsx/issues/1490 + - uses: MOZGIII/install-ldid-action@d5ab465f3a66a4d60a59882b935eb30e18e8d043 # v1 + with: + tag: v2.1.5-procursus2 + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + # Based on https://github.com/actions/cache/blob/main/examples.md#go---modules + - name: Get GOCACHE + id: gocache + shell: bash + run: | + echo "path=$(go env GOCACHE)" >> "${GITHUB_OUTPUT}" + - name: Get GOMODCACHE + id: gomodcache + shell: bash + run: | + echo "path=$(go env GOMODCACHE)" >> "${GITHUB_OUTPUT}" + - name: Go Cache + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 + with: + path: | + ${{ steps.gocache.outputs.path }} + ${{ steps.gomodcache.outputs.path }} + key: go-provider-${{ matrix.platform.os }}-${{ matrix.platform.arch }}-${{ hashFiles('provider/go.sum') }} + restore-keys: | + go-provider-${{ matrix.platform.os }}-${{ matrix.platform.arch }}- + - name: Prepare local workspace before restoring previously built + run: make prepare_local_workspace + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Restore prerequisites + uses: ./.github/actions/download-prerequisites + - name: Restore makefile progress + # This mirrors the targets completed in the prerequisites job + run: make --touch provider schema + + - name: Build provider + run: make "provider-${{ matrix.platform.os }}-${{ matrix.platform.arch }}" + env: + AZURE_SIGNING_CLIENT_ID: ${{ secrets.AZURE_SIGNING_CLIENT_ID }} + AZURE_SIGNING_CLIENT_SECRET: ${{ secrets.AZURE_SIGNING_CLIENT_SECRET }} + AZURE_SIGNING_TENANT_ID: ${{ secrets.AZURE_SIGNING_TENANT_ID }} + AZURE_SIGNING_KEY_VAULT_URI: ${{ secrets.AZURE_SIGNING_KEY_VAULT_URI }} + SKIP_SIGNING: ${{ secrets.AZURE_SIGNING_CLIENT_ID == '' && secrets.AZURE_SIGNING_CLIENT_SECRET == '' && secrets.AZURE_SIGNING_TENANT_ID == '' && secrets.AZURE_SIGNING_KEY_VAULT_URI == '' }} + + - name: Package provider + run: make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }} + + - name: Upload artifacts + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: pulumi-resource-doppler-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz + path: bin/pulumi-resource-doppler-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz + retention-days: 30 diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml new file mode 100644 index 0000000..acd7085 --- /dev/null +++ b/.github/workflows/build_sdk.yml @@ -0,0 +1,139 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: "Build SDK" + +on: + workflow_call: + inputs: + version: + required: true + type: string + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + PROVIDER_VERSION: ${{ inputs.version }} + +jobs: + build_sdk: + name: build_sdk + runs-on: ubuntu-latest + strategy: + # We normally fail fast unless this is a PR from Renovate in which case + # we'll always build all SDKs in case there are any changes to commit. + fail-fast: ${{ ! contains(github.actor, 'renovate') }} + matrix: + language: + - dotnet + - go + - nodejs + - python + permissions: + contents: write # For Renovate SDKs. + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Cache examples generation + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 + with: + path: | + .pulumi/examples-cache + key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }} + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + - name: Setup Go Cache + if: matrix.language == 'go' || contains(matrix.language, 'go') + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + with: + cache-dependency-path: | + provider/*.sum + upstream/*.sum + sdk/go/*.sum + sdk/*.sum + *.sum + - name: Prepare local workspace + run: make prepare_local_workspace + env: + GITHUB_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + - name: Download prerequisites + uses: ./.github/actions/download-prerequisites + - name: Update path + run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" + - name: Restore makefile progress + run: make --touch provider schema + - name: Build SDK + run: make build_${{ matrix.language }} + + - name: Check worktree clean + id: worktreeClean + uses: pulumi/git-status-check-action@v1 + with: + # Keep these in sync with the Renovate step below to avoid them getting checked in. + allowed-changes: | + sdk/**/pulumi-plugin.json + sdk/dotnet/*.csproj + sdk/go/**/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml + sdk/java/build.gradle + # This worktree check is a safeguard against someone forgetting to + # re-build and commit locally, but we handle that commit automatically + # in the case of dependency bumps. + continue-on-error: ${{ contains(github.actor, 'renovate') }} + - name: Commit ${{ matrix.language }} SDK changes for Renovate + # If the worktree is dirty and this is a Renovate PR to bump + # dependencies, commit the updated SDK and push it back to the PR. The + # job will still be marked as a failure. + if: steps.worktreeClean.outcome == 'failure' && contains(github.actor, 'renovate') && github.event_name == 'pull_request' + shell: bash + run: | + git config --global user.email "bot@pulumi.com" + git config --global user.name "pulumi-bot" + + # Stash local changes and check out the PR's branch directly. + git stash + git fetch + git checkout "origin/$HEAD_REF" + + # Apply and add our changes, but don't commit any files we expect to + # always change due to versioning. + git stash pop + git add sdk provider/cmd/pulumi-resource-doppler/schema.json + git reset \ + sdk/python/*/pulumi-plugin.json \ + sdk/python/pyproject.toml \ + sdk/dotnet/pulumi-plugin.json \ + sdk/dotnet/Pulumi.*.csproj \ + sdk/go/*/pulumi-plugin.json \ + sdk/go/*/internal/pulumiUtilities.go \ + sdk/nodejs/package.json + git commit -m 'Commit ${{ matrix.language }} SDK for Renovate' + + # Push with pulumi-bot credentials to trigger a re-run of the + # workflow. https://github.com/orgs/community/discussions/25702 + git push https://pulumi-bot:${{ secrets.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} \ + "HEAD:$HEAD_REF" + env: + # head_ref is untrusted so it's recommended to pass via env var to + # avoid injections. + HEAD_REF: ${{ github.head_ref }} + + - name: Upload SDK + uses: ./.github/actions/upload-sdk + with: + language: ${{ matrix.language }} diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000..7588da9 --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,63 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: license_check + +on: + workflow_call: + inputs: {} + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + license_check: + name: License Check + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + - run: make prepare_local_workspace + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: pulumi/license-check-action@main + with: + module-path: provider + ignore-modules: >- + github.com/aead/chacha20, + github.com/apache/arrow/go/v12, + github.com/apache/thrift/lib/go/thrift, + github.com/cloudflare/circl, + github.com/golang, + github.com/gorhill/cronexpr, + github.com/in-toto/in-toto-golang, + github.com/jmespath/go-jmespath, + github.com/keybase/go-crypto, + github.com/klauspost/compress, + github.com/mattn/go-localereader, + github.com/modern-go/reflect2, + github.com/pierrec/lz4, + github.com/pjbgf/sha1cd, + github.com/pulumi, + github.com/segmentio/asm, + golang.org diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c27e776 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,51 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: lint + +on: + workflow_call: + inputs: {} + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + cache_save: false # A different job handles caching our tools. + - name: disarm go:embed directives to enable lint + continue-on-error: true # this fails if there are no go:embed directives + run: | + git grep -l 'go:embed' -- provider | xargs sed -i 's/go:embed/ goembed/g' + - name: prepare workspace + continue-on-error: true + run: make prepare_local_workspace + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: golangci-lint + uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6 + with: + install-mode: none # Handled by mise. + working-directory: provider diff --git a/.github/workflows/main-post-build.yml b/.github/workflows/main-post-build.yml new file mode 100644 index 0000000..93de272 --- /dev/null +++ b/.github/workflows/main-post-build.yml @@ -0,0 +1,20 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: "Main post-build" + +on: + workflow_call: + inputs: + version: + type: string + required: true + +jobs: + post_build: + name: post_build + runs-on: ubuntu-latest + if: false + steps: + - name: Placeholder + shell: bash + run: echo "This is a placeholder job to ensure that the post_build job is always present" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml deleted file mode 100644 index 39d1fbf..0000000 --- a/.github/workflows/main.yaml +++ /dev/null @@ -1,261 +0,0 @@ -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} - PROVIDER: doppler - PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} - PULUMI_API: https://api.pulumi.com - PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. - PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget - PULUMI_TEST_OWNER: "pulumiverse" - PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - PYPI_USERNAME: "__token__" - TRAVIS_OS_NAME: linux -jobs: - build_sdk: - name: build_sdk - needs: prerequisites - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Checkout Scripts Repo - uses: actions/checkout@v3 - with: - path: ci-scripts - repository: jaxxstorm/scripts - ref: third_party - - name: Unshallow clone for tags - run: git fetch --prune --unshallow --tags - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{matrix.goversion}} - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.9.0 - with: - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/action-install-pulumi-cli@v2 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: ${{matrix.nodeversion}} - registry-url: https://registry.npmjs.org - - name: Setup DotNet - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{matrix.dotnetversion}} - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: ${{matrix.pythonversion}} - - name: Download provider + tfgen binaries - uses: actions/download-artifact@v3 - with: - name: ${{ env.PROVIDER }}-provider.tar.gz - path: ${{ github.workspace }}/bin - - name: Untar provider binaries - run: |- - tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace}}/bin - find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print -exec chmod +x {} \; - - name: Install plugins - run: make install_plugins - - name: Update path - run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - - name: Build SDK - run: make build_${{ matrix.language }} - - name: Check worktree clean - run: ./ci-scripts/ci/check-worktree-is-clean - - name: Compress SDK folder - run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} - . - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.language }}-sdk.tar.gz - path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz - strategy: - fail-fast: true - matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x - language: - - nodejs - - python - - dotnet - - go - nodeversion: - - 18.x - pythonversion: - - "3.9" - prerequisites: - name: prerequisites - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Checkout Scripts Repo - uses: actions/checkout@v3 - with: - path: ci-scripts - repository: jaxxstorm/scripts - ref: third_party - - name: Unshallow clone for tags - run: git fetch --prune --unshallow --tags - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{matrix.goversion}} - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.9.0 - with: - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/action-install-pulumi-cli@v2 - - if: github.event_name == 'pull_request' - name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.9.0 - with: - repo: mikhailshilkov/schema-tools - - name: Build tfgen & provider binaries - run: make provider - # - if: github.event_name == 'pull_request' - # name: Check Schema is Valid - # run: |- - # echo 'SCHEMA_CHANGES<> $GITHUB_ENV - # schema-tools compare ${{ env.PROVIDER }} master --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV - # echo 'EOF' >> $GITHUB_ENV - # - if: github.event_name == 'pull_request' - # name: Comment on PR with Details of Schema Check - # uses: thollander/actions-comment-pull-request@1.0.1 - # with: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # message: | - # ### Does the PR have any schema changes? - - # ${{ env.SCHEMA_CHANGES }} - - name: Tar provider binaries - run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace - }}/bin/ pulumi-resource-${{ env.PROVIDER }} pulumi-tfgen-${{ env.PROVIDER - }} - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ env.PROVIDER }}-provider.tar.gz - path: ${{ github.workspace }}/bin/provider.tar.gz - strategy: - fail-fast: true - matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x - nodeversion: - - 18.x - pythonversion: - - "3.9" - test: - name: test - needs: build_sdk - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Checkout Scripts Repo - uses: actions/checkout@v3 - with: - path: ci-scripts - repository: jaxxstorm/scripts - ref: third_party - - name: Unshallow clone for tags - run: git fetch --prune --unshallow --tags - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{matrix.goversion}} - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.9.0 - with: - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/action-install-pulumi-cli@v2 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: ${{matrix.nodeversion}} - registry-url: https://registry.npmjs.org - - name: Setup DotNet - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{matrix.dotnetversion}} - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: ${{matrix.pythonversion}} - - name: Download provider + tfgen binaries - uses: actions/download-artifact@v3 - with: - name: ${{ env.PROVIDER }}-provider.tar.gz - path: ${{ github.workspace }}/bin - - name: Untar provider binaries - run: |- - tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace}}/bin - find ${{ github.workspace }} -name "pulumi-*-${{ env.PROVIDER }}" -print -exec chmod +x {} \; - - run: dotnet nuget add source ${{ github.workspace }}/nuget - - name: Download SDK - uses: actions/download-artifact@v3 - with: - name: ${{ matrix.language }}-sdk.tar.gz - path: ${{ github.workspace}}/sdk/ - - name: Uncompress SDK folder - run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ - github.workspace }}/sdk/${{ matrix.language }} - - name: Update path - run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - - name: Install Python deps - run: |- - pip3 install virtualenv==20.0.23 - pip3 install pipenv - - name: Install dependencies - run: make install_${{ matrix.language}}_sdk - - name: Run tests - run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . - strategy: - fail-fast: true - matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x - language: - - nodejs - - python - - dotnet - - go - nodeversion: - - 18.x - pythonversion: - - "3.9" -permissions: - contents: write - -name: main -"on": - push: - branches: - - main - paths-ignore: - - CHANGELOG.md - tags-ignore: - - v* - - sdk/* - - '**' - pull_request: - types: - - opened - - reopened - - synchronize diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..71b18ca --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,128 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + prerequisites: + permissions: + contents: read + pull-requests: write + uses: ./.github/workflows/prerequisites.yml + secrets: inherit + with: + default_branch: ${{ github.event.repository.default_branch }} + is_pr: ${{ github.event_name == 'pull_request' }} + is_automated: ${{ github.actor == 'dependabot[bot]' }} + + build_provider: + uses: ./.github/workflows/build_provider.yml + needs: prerequisites + secrets: inherit + permissions: + contents: read + with: + version: ${{ needs.prerequisites.outputs.version }} + + build_sdk: + name: build_sdk + needs: prerequisites + uses: ./.github/workflows/build_sdk.yml + secrets: inherit + permissions: + contents: write # For Renovate SDKs. + with: + version: ${{ needs.prerequisites.outputs.version }} + + post_build: + name: post_build + needs: prerequisites + uses: ./.github/workflows/main-post-build.yml + secrets: inherit + permissions: + contents: write # For Renovate SDKs. + with: + version: ${{ needs.prerequisites.outputs.version }} + + lint: + name: lint + uses: ./.github/workflows/lint.yml + secrets: inherit + license_check: + name: License Check + uses: ./.github/workflows/license.yml + secrets: inherit + + publish: + name: publish + permissions: + contents: write + needs: + - prerequisites + - build_provider + - test + - license_check + uses: ./.github/workflows/publish.yml + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + isPrerelease: true + setLatestRelease: false + skipGoSdk: true + skipJavaSdk: true + + tag_release_if_labeled_needs_release: + name: Tag release if labeled as needs-release + needs: publish + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: check if this commit needs release + if: ${{ env.RELEASE_BOT_ENDPOINT != '' }} + uses: pulumi/action-release-by-pr-label@main + with: + command: "release-if-needed" + repo: ${{ github.repository }} + commit: ${{ github.sha }} + slack_channel: C02MGR8JVST + env: + RELEASE_BOT_ENDPOINT: ${{ secrets.RELEASE_BOT_ENDPOINT }} + RELEASE_BOT_KEY: ${{ secrets.RELEASE_BOT_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + test: + uses: ./.github/workflows/test.yml + needs: + - prerequisites + - build_provider + - build_sdk + permissions: + contents: read + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + +name: main +on: + workflow_dispatch: {} + push: + branches: + - main + paths-ignore: + - "**.md" + tags-ignore: + - v* + - sdk/* + - "**" diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml new file mode 100644 index 0000000..4b584b0 --- /dev/null +++ b/.github/workflows/nightly-test.yml @@ -0,0 +1,59 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + prerequisites: + permissions: + contents: read + pull-requests: write + uses: ./.github/workflows/prerequisites.yml + secrets: inherit + with: + default_branch: ${{ github.event.repository.default_branch }} + is_pr: ${{ github.event_name == 'pull_request' }} + is_automated: ${{ github.actor == 'dependabot[bot]' }} + + build_provider: + uses: ./.github/workflows/build_provider.yml + needs: prerequisites + secrets: inherit + permissions: + contents: read + with: + version: ${{ needs.prerequisites.outputs.version }} + + build_sdk: + name: build_sdk + needs: prerequisites + uses: ./.github/workflows/build_sdk.yml + secrets: inherit + permissions: + contents: write # For Renovate SDKs. + with: + version: ${{ needs.prerequisites.outputs.version }} + + test: + uses: ./.github/workflows/test.yml + needs: + - prerequisites + - build_provider + - build_sdk + permissions: + contents: read + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + +name: cron +on: + schedule: + - cron: 0 6 * * * diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 0000000..bcb110c --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,87 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +env: + IS_PRERELEASE: true + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + prerequisites: + permissions: + contents: read + pull-requests: write + uses: ./.github/workflows/prerequisites.yml + secrets: inherit + with: + default_branch: ${{ github.event.repository.default_branch }} + is_pr: ${{ github.event_name == 'pull_request' }} + is_automated: ${{ github.actor == 'dependabot[bot]' }} + + build_provider: + permissions: + contents: read + uses: ./.github/workflows/build_provider.yml + needs: prerequisites + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + + build_sdk: + name: build_sdk + needs: prerequisites + uses: ./.github/workflows/build_sdk.yml + secrets: inherit + permissions: + contents: write # For Renovate SDKs. + with: + version: ${{ needs.prerequisites.outputs.version }} + + lint: + name: lint + uses: ./.github/workflows/lint.yml + secrets: inherit + license_check: + name: License Check + uses: ./.github/workflows/license.yml + secrets: inherit + + publish: + name: publish + permissions: + contents: write + pull-requests: write + needs: + - prerequisites + - build_provider + - test + - license_check + uses: ./.github/workflows/publish.yml + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + isPrerelease: true + setLatestRelease: false + + test: + uses: ./.github/workflows/test.yml + needs: + - prerequisites + - build_provider + - build_sdk + permissions: + contents: read + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + +name: prerelease +on: + push: + tags: + - v*.*.*-** diff --git a/.github/workflows/prerequisites.yml b/.github/workflows/prerequisites.yml new file mode 100644 index 0000000..d0fc93f --- /dev/null +++ b/.github/workflows/prerequisites.yml @@ -0,0 +1,115 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: "Prerequisites" + +on: + workflow_call: + inputs: + is_pr: + type: boolean + required: true + is_automated: + type: boolean + required: true + default_branch: + type: string + required: true + outputs: + version: + description: "Provider version being built" + value: ${{ jobs.prerequisites.outputs.version }} + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + prerequisites: + name: prerequisites + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + outputs: + version: ${{ steps.provider-version.outputs.version }} + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - uses: pulumi/provider-version-action@3a647064cf4697c7c6352b9a1d9e554450cbe957 # v1.6.1 + id: provider-version + with: + major-version: 0 + set-env: 'PROVIDER_VERSION' + - name: Cache examples generation + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5 + with: + path: | + .pulumi/examples-cache + key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }} + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: true + - name: Setup Go Cache + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + with: + cache-dependency-path: | + provider/*.sum + upstream/*.sum + sdk/go/*.sum + sdk/*.sum + *.sum + - name: Prepare local workspace before restoring previously built files + run: make prepare_local_workspace + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Generate schema + run: make schema + - name: Build provider binary + run: make provider + - name: Unit-test provider code + run: make test_provider + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - if: inputs.is_pr + name: Check Schema is Valid + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) + { + echo "SCHEMA_CHANGES<<$EOF"; + schema-tools compare -r github://api.github.com/DopplerHQ -p doppler -o "${{ inputs.default_branch }}" -n --local-path=provider/cmd/pulumi-resource-doppler/schema.json; + echo "$EOF"; + } >> "$GITHUB_ENV" + - if: inputs.is_pr && inputs.is_automated == false && github.actor != 'dependabot[bot]' + name: Comment on PR with Details of Schema Check + uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + comment-tag: schemaCheck + message: >+ + ${{ env.SCHEMA_CHANGES }} + + + Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes. + + - name: Upload artifacts + uses: ./.github/actions/upload-prerequisites diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ec74bca --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,228 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt +name: Publish + +on: + workflow_call: + inputs: + version: + required: true + type: string + setLatestRelease: + required: true + type: boolean + isPrerelease: + required: true + type: boolean + skipGoSdk: + default: false + type: boolean + description: Skip publishing & verifying the Go SDK + skipJavaSdk: + default: false + type: boolean + description: Skip publishing the Java SDK + +env: + IS_PRERELEASE: ${{ inputs.isPrerelease }} + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + JAVA_SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} + JAVA_SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} + JAVA_SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + TF_APPEND_USER_AGENT: pulumi + +jobs: + publish: + name: publish + runs-on: ubuntu-latest + steps: + - name: Validate prerelease + if: inputs.isPrerelease == false && (contains(inputs.version, '-') || contains(inputs.version, '+')) + run: echo "Can't publish a prerelease version as a stable release. This is likely a bug in the calling workflow." && exit 1 + - name: Validate skipGoSdk + if: inputs.skipGoSdk && inputs.isPrerelease == false + run: echo "Can't skip Go SDK for stable releases. This is likely a bug in the calling workflow." && exit 1 + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + cache_save: false + - name: Create dist directory + run: mkdir -p dist + - name: Download provider assets + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + with: + pattern: pulumi-resource-doppler-v${{ inputs.version }}-* + path: dist + # Don't create a directory for each artifact + merge-multiple: true + - name: Download schema + uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + with: + # Use a pattern to avoid failing if the artifact doesn't exist + pattern: schema-embed.* + # Avoid creating directories for each artifact + merge-multiple: true + path: dist + - name: Calculate checksums + working-directory: dist + run: shasum ./*.tar.gz > "pulumi-doppler_${{ inputs.version }}_checksums.txt" + - name: Get Schema Change Summary + id: schema-summary + shell: bash + run: | + # Get latest stable release. Return only first column from result (tag). + LAST_VERSION=$(gh release view --repo DopplerHQ/pulumi-doppler --json tagName -q .tagName || echo "No stable release" ) + { + echo 'summary<> "$GITHUB_OUTPUT" + - name: Create GH Release + uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2 + if: inputs.isPrerelease == false + with: + tag_name: v${{ inputs.version }} + prerelease: ${{ inputs.isPrerelease }} + # We keep pre-releases as drafts so they're not visible until we manually publish them. + draft: ${{ inputs.isPrerelease }} + # Explicitly set make_latest to account for backported releases + make_latest: ${{ inputs.setLatestRelease }} + body: ${{ steps.schema-summary.outputs.summary }} + generate_release_notes: true + files: dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + publish_sdk: + name: publish_sdk + needs: publish + runs-on: ubuntu-latest + outputs: + python_version: ${{ steps.python_version.outputs.version }} + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + # Persist credentials so we can push back to the repo + persist-credentials: true + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + - name: Setup Node + uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 + with: + # we don't set node-version because we install with mise. + # this step is needed to setup npm auth + registry-url: https://registry.npmjs.org + - name: Publish SDKs + if: inputs.skipJavaSdk == false + uses: pulumi/pulumi-package-publisher@3ec1409d3e894142b9825c7859be8e57d362762a # v0.0.23 + with: + sdk: all,!java + version: ${{ inputs.version }} + env: + PYPI_USERNAME: __token__ + PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} + SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} + SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} + PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }} + NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} + - name: Publish SDKs (except Java) + if: inputs.skipJavaSdk == true + uses: pulumi/pulumi-package-publisher@3ec1409d3e894142b9825c7859be8e57d362762a # v0.0.23 + with: + sdk: all,!java,!java + version: ${{ inputs.version }} + env: + PYPI_USERNAME: __token__ + PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} + SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} + SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} + NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} + - name: Download Go SDK + uses: ./.github/actions/download-sdk + with: + language: go + - uses: pulumi/publish-go-sdk-action@v1 + if: inputs.skipGoSdk == false + with: + repository: ${{ github.repository }} + base-ref: ${{ github.sha }} + source: sdk + path: sdk + version: ${{ inputs.version }} + additive: false + # Avoid including other language SDKs & artifacts in the commit + files: | + go.* + go/** + !*.tar.gz + - name: Extract python version + id: python_version + working-directory: sdk/python + run: | + pip install toml-cli==0.7.0 + version=$(toml get --toml-path pyproject.toml project.version) + echo "version=${version}" >> "$GITHUB_OUTPUT" + + clean_up_release_labels: + name: Clean up release labels + # Only run for non-prerelease, if the publish_go_sdk job was successful or skipped + if: inputs.isPrerelease == false + + needs: publish_sdk + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Clean up release labels + uses: pulumi/action-release-by-pr-label@main + with: + command: "clean-up-release-labels" + repo: ${{ github.repository }} + commit: ${{ github.sha }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + verify_release: + name: verify_release + needs: publish_sdk + permissions: + contents: write + uses: ./.github/workflows/verify-release.yml + secrets: inherit + with: + providerVersion: ${{ inputs.version }} + skipGoSdk: ${{ inputs.skipGoSdk }} + pythonVersion: ${{ needs.publish_sdk.outputs.python_version }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..6d70dee --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,32 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +name: Comment on community PRs +on: + pull_request_target: {} + +jobs: + comment-on-pr: + if: github.event.pull_request.head.repo.full_name != github.repository + name: comment-on-pr + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Comment PR + uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + message: > + PR is now waiting for a maintainer to run the acceptance tests. + + **Note for the maintainer:** To run the acceptance tests, please comment */run-acceptance-tests* on the PR diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 6255ea3..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,143 +0,0 @@ -name: release -on: - push: - tags: - - v*.*.* - -permissions: - contents: write - id-token: write - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} - NUGET_FEED_URL: https://api.nuget.org/v3/index.json - PROVIDER: doppler - PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. - PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - PYPI_USERNAME: "__token__" - PUBLISH_PYPI: true - PUBLISH_NPM: true - PUBLISH_NUGET: true -jobs: - publish_binary: - name: publish - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4.0.0 - - name: Unshallow clone for tags - run: git fetch --prune --unshallow --tags - - name: Install Go - uses: actions/setup-go@v5.0.0 - with: - go-version: ${{matrix.goversion}} - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.10.0 - with: - repo: pulumi/pulumictl - - name: Set PreRelease Version - run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV - - uses: sigstore/cosign-installer@v3.1.2 - - uses: anchore/sbom-action/download-syft@v0.14.3 - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v6.0.0 - with: - args: release --clean --timeout 60m0s - version: latest - - name: Create tag - uses: actions/github-script@v6.4.1 - with: - script: | - github.rest.git.createRef({ - owner: context.repo.owner, - repo: context.repo.repo, - ref: 'refs/tags/sdk/${{ github.ref_name }}', - sha: context.sha - }) - strategy: - fail-fast: true - matrix: - goversion: - - 1.21.x - publish_sdk: - name: Publish SDKs - runs-on: ubuntu-latest - needs: publish_binary - steps: - - name: Checkout Repo - uses: actions/checkout@v4.0.0 - - name: Unshallow clone for tags - run: git fetch --prune --unshallow --tags - - name: Install Go - uses: actions/setup-go@v5.0.0 - with: - go-version: ${{ matrix.goversion }} - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.10.0 - with: - repo: pulumi/pulumictl - - name: Install Pulumi CLI - uses: pulumi/action-install-pulumi-cli@v2.0.0 - - name: Setup Node - uses: actions/setup-node@v4.0.2 - with: - node-version: ${{matrix.nodeversion}} - registry-url: ${{env.NPM_REGISTRY_URL}} - - name: Setup DotNet - uses: actions/setup-dotnet@v2.1.0 - with: - dotnet-version: ${{matrix.dotnetverson}} - - name: Setup Python - uses: actions/setup-python@v4.2.0 - with: - python-version: ${{matrix.pythonversion}} - - name: Build SDK - run: make build_${{ matrix.language }} - - name: Check worktree clean - run: | - git update-index -q --refresh - if ! git diff-files --quiet; then - >&2 echo "error: working tree is not clean, aborting!" - git status - git diff - exit 1 - fi - - if: ${{ matrix.language == 'python' && env.PUBLISH_PYPI == 'true' }} - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.10 - with: - user: ${{ env.PYPI_USERNAME }} - password: ${{ env.PYPI_PASSWORD }} - packages_dir: ${{github.workspace}}/sdk/python/bin/dist - - if: ${{ matrix.language == 'nodejs' && env.PUBLISH_NPM == 'true' }} - uses: JS-DevTools/npm-publish@v2.2.2 - with: - access: "public" - token: ${{ env.NPM_TOKEN }} - package: ${{github.workspace}}/sdk/nodejs/bin/package.json - provenance: true - - if: ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }} - name: publish nuget package - run: | - dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }} - echo "done publishing packages" - strategy: - fail-fast: true - matrix: - dotnetversion: - - 3.1.301 - goversion: - - 1.21.x - language: - - nodejs - - python - - dotnet - - go - nodeversion: - - 18.x - pythonversion: - - "3.9" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b89f378 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,87 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt +name: release +on: + push: + tags: + - v*.*.* + - "!v*.*.*-**" + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + prerequisites: + permissions: + contents: read + pull-requests: write + uses: ./.github/workflows/prerequisites.yml + secrets: inherit + with: + default_branch: ${{ github.event.repository.default_branch }} + is_pr: ${{ github.event_name == 'pull_request' }} + is_automated: ${{ github.actor == 'dependabot[bot]' }} + + build_provider: + uses: ./.github/workflows/build_provider.yml + needs: prerequisites + secrets: inherit + permissions: + contents: read + with: + version: ${{ needs.prerequisites.outputs.version }} + + build_sdk: + name: build_sdk + needs: prerequisites + uses: ./.github/workflows/build_sdk.yml + secrets: inherit + permissions: + contents: write # For Renovate SDKs. + with: + version: ${{ needs.prerequisites.outputs.version }} + + lint: + name: lint + uses: ./.github/workflows/lint.yml + secrets: inherit + license_check: + name: License Check + uses: ./.github/workflows/license.yml + secrets: inherit + + publish: + name: publish + permissions: + contents: write + pull-requests: write + needs: + - prerequisites + - build_provider + - test + - license_check + uses: ./.github/workflows/publish.yml + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + isPrerelease: false + # Only tags on the default branch should set the release as `latest`; backported releases (tagged on a feature branch) should not. + setLatestRelease: ${{ github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch) }} + + test: + uses: ./.github/workflows/test.yml + needs: + - prerequisites + - build_provider + - build_sdk + permissions: + contents: read + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} diff --git a/.github/workflows/resync-build.yml b/.github/workflows/resync-build.yml new file mode 100644 index 0000000..1bead22 --- /dev/null +++ b/.github/workflows/resync-build.yml @@ -0,0 +1,51 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt +name: "Resync Build Workflows" + +on: + schedule: + # Once a month on the 5th + - cron: 0 0 5 * * + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + upgrade_provider: + name: pull-workflow-changes + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 + with: + # Persist credentials so pull-workflow-changes can push a new branch. + persist-credentials: true + - name: Setup mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.GITHUB_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + - name: Regenerate the workflow files via https://github.com/pulumi-labs/ci-mgmt + run: | + make ci-mgmt + - name: Create PR (no linked issue) + uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0 + with: + author: pulumi-bot + base: main + body: + This pull request was generated automatically by the resync-build workflow + in this repository. + branch: chore/resync-${{ github.run_id }} + commit-message: Regenerate workflows for pulumi-doppler + committer: pulumi-bot + labels: impact/no-changelog-required + title: Regenerate Github Actions workflows for pulumi-doppler + token: ${{ env.GITHUB_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml new file mode 100644 index 0000000..730bd87 --- /dev/null +++ b/.github/workflows/run-acceptance-tests.yml @@ -0,0 +1,141 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: run-acceptance-tests + +on: + pull_request: + paths-ignore: + - CHANGELOG.md + repository_dispatch: + types: + - run-acceptance-tests-command + +env: + PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }} + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +# This should cancel any previous runs of the same workflow on the same branch which are still running. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + prerequisites: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository + permissions: + contents: read + pull-requests: write + uses: ./.github/workflows/prerequisites.yml + secrets: inherit + with: + default_branch: ${{ github.event.pull_request.base.ref }} + is_pr: ${{ github.event_name == 'pull_request' }} + is_automated: ${{ github.actor == 'dependabot[bot]' }} + + build_provider: + uses: ./.github/workflows/build_provider.yml + needs: prerequisites + secrets: inherit + permissions: + contents: read + with: + version: ${{ needs.prerequisites.outputs.version }} + matrix: | + { + "platform": [ + {"os": "linux", "arch": "amd64"}, + {"os": "windows", "arch": "amd64"} + ] + } + + build_sdk: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository + name: build_sdk + needs: prerequisites + uses: ./.github/workflows/build_sdk.yml + secrets: inherit + permissions: + contents: write # For Renovate SDKs. + with: + version: ${{ needs.prerequisites.outputs.version }} + + comment-notification: + if: github.event_name == 'repository_dispatch' + name: comment-notification + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - id: run-url + name: Create URL to the run output + run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT" + - name: Update with Result + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0 + with: + body: "Please view the PR build: ${{ steps.run-url.outputs.run-url }}" + issue-number: ${{ github.event.client_payload.github.payload.issue.number }} + repository: ${{ github.event.client_payload.github.payload.repository.full_name }} + token: ${{ secrets.GITHUB_TOKEN }} + lint: + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository + name: lint + uses: ./.github/workflows/lint.yml + secrets: inherit + sentinel: + name: sentinel + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository + permissions: + statuses: write + needs: + - test + - build_provider + - license_check + - lint + runs-on: ubuntu-latest + steps: + - uses: guibranco/github-status-action-v2@631f55ea0251f0fb284525ad86c30e9f7a8dd284 # v1.1.14 + with: + authToken: ${{ secrets.GITHUB_TOKEN }} + # Write an explicit status check called "Sentinel" which will only pass if this code really runs. + # This should always be a required check for PRs. + context: 'Sentinel' + description: 'All required checks passed' + state: 'success' + # Write to the PR commit SHA if it's available as we don't want the merge commit sha, + # otherwise use the current SHA for any other type of build. + sha: ${{ github.event.pull_request.head.sha || github.sha }} + + test: + # Don't run tests on PRs from forks. + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository + uses: ./.github/workflows/test.yml + needs: + - prerequisites + - build_provider + - build_sdk + permissions: + contents: read + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + + license_check: + name: License Check + uses: ./.github/workflows/license.yml + secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f76eaa6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,104 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: "Test Provider" + +on: + workflow_call: + inputs: + version: + required: true + type: string + description: Version of the provider to test + +env: + PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }} + MISE_ENV: test + + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +jobs: + test: + permissions: + contents: read + runs-on: ubuntu-latest + env: + PROVIDER_VERSION: ${{ inputs.version }} + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + ref: ${{ env.PR_COMMIT_SHA }} + persist-credentials: false + - name: Checkout p/examples + if: matrix.testTarget == 'pulumiExamples' + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + repository: pulumi/examples + path: p-examples + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_ENV: test + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # also save this cache since we are using a different mise env. + cache_save: true + - name: Prepare local workspace + run: make prepare_local_workspace + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Download bin + uses: ./.github/actions/download-provider + - name: Setup Go Cache + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + if: matrix.language == 'go' || contains(matrix.language, 'go') + with: + cache-dependency-path: | + provider/*.sum + upstream/*.sum + sdk/go/*.sum + sdk/*.sum + *.sum + - name: Download SDK + uses: ./.github/actions/download-sdk + with: + language: ${{ matrix.language }} + - name: Restore makefile progress + run: make --touch provider schema build_${{ matrix.language }} + - name: Update path + run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" + - name: Install Python deps + if: matrix.language == 'python' + run: |- + pip3 install virtualenv==20.0.23 + pip3 install pipenv + - name: Install dependencies + run: make install_${{ matrix.language}}_sdk + - name: Run tests + if: matrix.testTarget == 'local' + run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -skip TestPulumiExamples -parallel 4 . + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run pulumi/examples tests + if: matrix.testTarget == 'pulumiExamples' + run: cd examples && go test -v -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -run TestPulumiExamples -parallel 4 . + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + strategy: + fail-fast: false + matrix: + language: + - dotnet + - go + - nodejs + - python + testTarget: [local] diff --git a/.github/workflows/upgrade-bridge.yml b/.github/workflows/upgrade-bridge.yml index c2a2f88..378b19e 100644 --- a/.github/workflows/upgrade-bridge.yml +++ b/.github/workflows/upgrade-bridge.yml @@ -1,25 +1,122 @@ -name: Upgrade bridge +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt +name: Upgrade bridge on: + repository_dispatch: + types: + - upgrade-bridge + - upgrade-bridge-test workflow_dispatch: - schedule: - # At 05:00 on Monday - - cron: 0 5 * * 1 + inputs: + kind: + description: Overrides the kind of upgrade. Must be one of `all`, `bridge`, `provider`, `code`, `pf`, or `pulumi`. + required: false + type: string + default: "bridge" + target-bridge-version: + description: pulumi-terraform-bridge version or hash reference + required: false + type: string + default: "latest" + target-pulumi-version: + description: | + Set the version of `pulumi/pkg` and `pulumi/sdk` to depend on for bridged providers. Currently, + these versions inform the linked runtime and SDK generation in all languages except Java. Valid + options are: + - "": Use the same version as pulumi-terraform-bridge + - A go version such as "v3.90.1" + - A commit SHA in pulumi/pulumi such as "ac71ebc1d34e5ccfd1a7fed61e6ff43a3160f3cb" + required: false + type: string + default: "" + pr-reviewers: + description: Reviewers to assign to the auto-opened pull request + required: false + type: string + default: "" + pr-description: + description: Extra description to add to the auto-opened pull request + required: false + type: string + default: "" + pr-title-prefix: + description: Prefix to add to the auto-opened pull request title + required: false + type: string + default: "" + automerge: + description: Mark created PR for auto-merging? + required: false + type: boolean + default: false + patch-release: + description: Whether to create a patch release + required: false + type: boolean + default: false + +permissions: + contents: write + issues: write + pull-requests: write + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi jobs: - upgrade_bridge: - name: upgrade-bridge + upgrade_provider: + name: upgrade-provider runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - issues: write steps: - - name: Call upgrade provider action - uses: pulumi/pulumi-upgrade-provider-action@v0.0.12 - with: - kind: bridge - email: ringo@de-smet.name - username: "Ringo De Smet" - env: - GH_TOKEN: ${{ secrets.UPGRADE_PROVIDER_TOKEN }} + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + - name: Call upgrade provider action + if: github.event_name == 'workflow_dispatch' + uses: pulumi/pulumi-upgrade-provider-action@12996503de2aaddd72c7426efc43331a8970894f # v0.0.19 + with: + kind: ${{ inputs.kind }} + email: bot@pulumi.com + username: pulumi-bot + automerge: ${{ inputs.automerge }} + target-bridge-version: ${{ inputs.target-bridge-version }} + target-pulumi-version: ${{ inputs.target-pulumi-version }} + pr-reviewers: ${{ inputs.pr-reviewers }} + pr-description: ${{ inputs.pr-description }} + pr-title-prefix: ${{ inputs.pr-title-prefix }} + patch-release: ${{ github.event.client_payload.patch-release }} + env: + GH_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.GITHUB_TOKEN }} + - name: Call upgrade provider action + if: github.event_name == 'repository_dispatch' + uses: pulumi/pulumi-upgrade-provider-action@12996503de2aaddd72c7426efc43331a8970894f # v0.0.19 + with: + kind: ${{ github.event.client_payload.kind || 'bridge' }} + email: bot@pulumi.com + username: pulumi-bot + automerge: ${{ github.event.client_payload.automerge }} + target-pulumi-version: ${{ github.event.client_payload.target-pulumi-version }} + target-bridge-version: ${{ github.event.client_payload.target-bridge-version }} + pr-reviewers: ${{ github.event.client_payload.pr-reviewers }} + pr-description: ${{ github.event.client_payload.pr-description }} + pr-title-prefix: ${{ github.event.client_payload.pr-title-prefix }} + patch-release: ${{ github.event.client_payload.patch-release }} + env: + GH_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml new file mode 100644 index 0000000..dbfd68b --- /dev/null +++ b/.github/workflows/upgrade-provider.yml @@ -0,0 +1,93 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +name: Upgrade provider +on: + workflow_dispatch: + inputs: + version: + description: | + The version of the upstream provider to upgrade to, without the 'v' prefix + + If no version is specified, it will be inferred from the upstream provider's release tags. + required: false + type: string + upgradeProviderVersion: + description: | + Version of upgrade-provider to use. This must be a valid git reference in the pulumi/upgrade-provider repo. Defaults to "main" + + See https://go.dev/ref/mod#versions for valid versions. E.g. "v0.1.0", "main", "da25dec". + default: main + type: string + schedule: + # 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. + - cron: 0 3 * * * + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + PULUMI_PULUMI_ENABLE_JOURNALING: "true" + TF_APPEND_USER_AGENT: pulumi + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + upgrade_provider: + name: upgrade-provider + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false # Conflicts with app auth token. + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + env: + MISE_FETCH_REMOTE_VERSIONS_TIMEOUT: 30s + with: + version: 2026.3.7 + github_token: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }} + # only saving the cache in the prerequisites job + cache_save: false + - name: Install upgrade-provider + run: go install github.com/pulumi/upgrade-provider@${{ inputs.upgradeProviderVersion || 'main' }} + shell: bash + - name: "Set up git identity" + run: | + git config --global user.name 'bot@pulumi.com' + git config --global user.email 'bot@pulumi.com' + shell: bash + - name: Create issues for new upstream version + if: inputs.version == '' + id: upstream_version + # This step outputs `latest_version` if there is a pending upgrade + run: upgrade-provider "$REPO" --kind=check-upstream-version + env: + REPO: ${{ github.repository }} + GH_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.GITHUB_TOKEN }} + shell: bash + - name: Calculate target version + id: target_version + # Prefer the manually specified version if it exists + # upstream_version will be empty if the provider is up-to-date + run: echo "version=${{ github.event.inputs.version || steps.upstream_version.outputs.latest_version }}" >> "$GITHUB_OUTPUT" + shell: bash + - name: Call upgrade provider action + id: upgrade_provider + if: steps.target_version.outputs.version != '' + uses: pulumi/pulumi-upgrade-provider-action@12996503de2aaddd72c7426efc43331a8970894f # v0.0.19 + with: + kind: provider + email: bot@pulumi.com + username: pulumi-bot + automerge: false + target-version: ${{ steps.target_version.outputs.version }} + allow-missing-docs: true + env: + GH_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/verify-release.yml b/.github/workflows/verify-release.yml new file mode 100644 index 0000000..6e569a5 --- /dev/null +++ b/.github/workflows/verify-release.yml @@ -0,0 +1,92 @@ +name: "Verify Release" + +on: + workflow_dispatch: + inputs: + providerVersion: + description: "The version of the provider to verify" + required: true + type: string + enableMacRunner: + description: "Enable the MacOS runner in addition to Linux and Windows. Defaults to 'false'." + required: false + type: boolean + skipGoSdk: + description: "Skip the Go SDK verification. Defaults to 'false'. Enable this when verifying a pre-release for which we don't publish the Go SDK (for PRs and the default branch)." + required: false + type: boolean + default: false + pythonVersion: + description: "Optional python SDK version to verify. Defaults to inputs.providerVersion." + type: string + required: false + workflow_call: + inputs: + providerVersion: + description: "The version of the provider to verify" + required: true + type: string + skipGoSdk: + description: "Skip the Go SDK verification. Defaults to 'false'. This is used when we're not publishing a Go SDK on the default branch build." + required: false + type: boolean + default: false + pythonVersion: + description: "Optional python SDK version to verify. Defaults to inputs.providerVersion." + type: string + required: false + +env: + DOPPLER_TEST_MEMBER_EMAIL: ${{ vars.DOPPLER_TEST_MEMBER_EMAIL }} + DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }} + JAVA_SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} + JAVA_SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} + JAVA_SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + PULUMI_API: https://api.pulumi-staging.io + PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. + PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + TF_APPEND_USER_AGENT: pulumi + +jobs: + verify-release: + name: verify-release + # We don't have any release verification configurations, so we never run this workflow. + # Configure your .ci-mgmt.yaml files to include the release verification configurations e.g. + # releaseVerification: + # nodejs: path/to/nodejs/project + # python: path/to/python/project + # dotnet: path/to/dotnet/project + # go: path/to/go/project + if: false + strategy: + matrix: + # We don't have any release verification configurations, so we only run on Linux to print warnings to help users configure the release verification. + runner: ["ubuntu-latest"] + runs-on: ${{ matrix.runner }} + steps: + - name: Configure Git to checkout files with long names + run: git config --global core.longpaths true + - name: Checkout Repo + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Install mise + uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310 + with: + version: 2026.3.7 + github_token: ${{ secrets.GITHUB_TOKEN }} + cache_save: false + - name: Setup Go Cache + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6 + with: + cache-dependency-path: | + provider/*.sum + upstream/*.sum + sdk/go/*.sum + sdk/*.sum + *.sum diff --git a/.gitignore b/.gitignore index 3c03402..a90d394 100644 --- a/.gitignore +++ b/.gitignore @@ -15,10 +15,15 @@ go.work.sum *.iml yarn.lock +.yarn/ +.pnp* **/pulumiManifest.go ci-scripts provider/**/schema.go **/version.txt **/nuget -**/dist \ No newline at end of file +**/dist + +# Ignore local build tracking directory +.make diff --git a/.golangci.yml b/.golangci.yml index 6569b5b..9257351 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,24 +1,52 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt +version: "2" linters: enable: - - deadcode - - errcheck - goconst - - gofmt - - golint - gosec - - govet - - ineffassign - - interfacer - lll - - megacheck - misspell - nakedret - - structcheck + - revive - unconvert - - varcheck - enable-all: false -run: - skip-files: - - schema.go - - pulumiManifest.go - timeout: 20m + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - schema.go + - pulumiManifest.go + - pkg/vendored + - third_party$ + - builtin$ + - examples$ + rules: + - linters: + - revive + path: pkg/version/ + text: "var-naming" # https://github.com/pulumi/ci-mgmt/issues/2100 +formatters: + enable: + - gci + - gofmt + settings: + gci: + sections: + - standard # Standard section: captures all standard library packages. + - blank # Blank section: contains all blank imports. + - default # Default section: contains all imports that could not be matched to another section type. + - prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix. + - prefix(github.com/DopplerHQ/pulumi-doppler) # Custom section: local imports + custom-order: true + exclusions: + generated: lax + paths: + - schema.go + - pulumiManifest.go + - pkg/vendored + - third_party$ + - builtin$ + - examples$ \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 20a7851..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: 2 -archives: - - id: archive - name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" -before: - hooks: - - make tfgen -builds: - - binary: pulumi-resource-doppler - dir: provider - env: - - CGO_ENABLED=0 - goarch: - - amd64 - - arm64 - goos: - - darwin - - windows - - linux - ldflags: - # The line below MUST align with the module in current provider/go.mod - - -X github.com/pulumiverse/pulumi-doppler/provider/pkg/version.Version={{.Tag }} - main: ./cmd/pulumi-resource-doppler/ -release: - disable: false - prerelease: auto -snapshot: - name_template: "{{ .Tag }}-SNAPSHOT" diff --git a/CHANGELOG.md b/CHANGELOG.md index c99e7fd..0d07764 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,4 +3,30 @@ CHANGELOG ## HEAD (Unreleased) +This is the first release maintained by Doppler. The SDKs are published under new package names, so existing programs need to switch packages. + +### Breaking changes + +The SDK packages and the provider plugin have moved from Pulumiverse to Doppler: + +| Language | Before | Now | +|---|---|---| +| Node.js | `@pulumiverse/doppler` | `@dopplerhq/pulumi-doppler` | +| Python | `pulumiverse_doppler` | `pulumi_doppler` | +| Go | `github.com/pulumiverse/pulumi-doppler/sdk/go/doppler` | `github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler` | +| .NET | `Pulumiverse.Doppler` (namespace `Pulumiverse.Doppler`) | `DopplerHQ.Doppler` (namespace `DopplerHQ.Doppler`) | + +The provider plugin now downloads from `github://api.github.com/DopplerHQ`. Resource types are unchanged (`doppler:index/project:Project` and so on), so switching packages leaves existing stacks' resources in place. + +The Go SDK requires Go 1.26.6 or newer, the minimum of the Pulumi Go SDK it builds on. + +### Changes + +- Upgrade terraform-provider-doppler from v1.10.0 to v1.22.0: 51 new resources and 3 new functions, including change request policies, project tags, trusted IPs, workplace roles, service account identities, secret notes, rotated secrets (`rotatedSecret` module) and their integrations, Azure Vault, GCP Secret Manager, GitHub Codespaces, Dependabot and Agents secrets syncs, and the `getEnvironments` and `getGroup` functions. +- Provider configuration: add `host`, `verifyTls`, `oidcIdentity`, `oidcToken` and `oidcTokenFile`. `dopplerToken` is now a secret. +- Upgrade pulumi-terraform-bridge to v3.141.0 and Pulumi to v3.270.0. +- In the .NET SDK, `TrustedIps.TrustedIps` is `TrustedIps.TrustedIpList`, because C# forbids a member named after its class. +- Requests to the Doppler API identify the provider as `pulumi-doppler/` alongside the upstream Terraform provider, instead of as Terraform alone. +- SDK readmes credit the upstream provider's actual license, Apache 2.0, instead of MPL 2.0. + --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eea090e..2b7a21b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,36 +1,34 @@ -# Contributing to the Pulumi ecosystem +# Contributing to the Doppler Pulumi provider -Do you want to contribute to Pulumi? Awesome! We are so happy to have you. -We have a few tips and housekeeping items to help you get up and running. +This provider is generated from [terraform-provider-doppler](https://github.com/DopplerHQ/terraform-provider-doppler) by the [Pulumi Terraform bridge](https://github.com/pulumi/pulumi-terraform-bridge). Bugs in resource behavior usually belong upstream; changes here are about how resources map into Pulumi, the SDKs, and CI. ## Code of Conduct -Please make sure to read and observe our [Code of Conduct](./CODE-OF-CONDUCT.md) - -## Community Expectations - -Please read about our [contribution guidelines here.](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md#communications) +Please read and follow our [Code of Conduct](./CODE-OF-CONDUCT.md). ## Setting up your development environment -### Pulumi prerequisites +The Makefile installs every tool it needs with [mise](https://mise.jdx.dev/), at the versions pinned in `.config/mise.toml` (generated by ci-mgmt) and `mise.toml` (our overrides). Install mise, then run make targets through `mise exec` so tools resolve to those versions even when tfgen runs them outside the repository: + +```bash +mise install +mise exec -- make build +``` -Please refer to the [main Pulumi repo](https://github.com/pulumi/pulumi/)'s [CONTRIBUTING.md file]( -https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md#developing) for details on how to get set up with Pulumi. +## Committing generated code -## Committing Generated Code +Pull requests that change `provider/resources.go` or the upstream version must include the regenerated schema and SDKs: -You must generate and check in the SDKs on each pull request containing a code change, e.g. adding a new resource to `resources.go`. +1. Run `mise exec -- make schema`, then `mise exec -- make generate_sdks`. SDK generation reads the committed `provider/cmd/pulumi-resource-doppler/schema.json`, so regenerate the schema first. +1. Run `mise exec -- make build_sdks lint_provider` to check that the SDKs compile and the provider passes lint. +1. Commit `schema.json`, `bridge-metadata.json` and everything under `sdk/`. -1. Run `make build_sdks` from the root of this repository -1. Open a pull request containing all changes -1. *Note:* If a large number of seemingly-unrelated diffs are produced by `make build_sdks` (for example, lots of changes to comments unrelated to the change you are making), ensure that the latest dependencies for the provider are installed by running `go mod tidy` in the `provider/` directory of this repository. +If a large number of seemingly unrelated diffs appear, run `go mod tidy` in `provider/` so the dependencies match `go.mod`. -## Running Integration Tests +## CI configuration -The examples and integration tests in this repository will create and destroy real -cloud resources while running. Before running these tests, make sure that you have -configured access to your cloud provider with Pulumi. +The workflows under `.github/` and much of the Makefile are generated by [pulumi-labs/ci-mgmt](https://github.com/pulumi-labs/ci-mgmt). Don't edit them directly: change `.ci-mgmt.yaml` and run `make ci-mgmt`. -_TODO: Add any steps you need to take to run integration tests here_ +## Running integration tests +The tests in `examples/` create and delete real resources in a Doppler workplace. See [examples/README.md](./examples/README.md) for how to run them. diff --git a/COPYRIGHT b/COPYRIGHT index 7f75e1e..0891e43 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -5,7 +5,7 @@ LICENSE or ). This project is a larger work that combines with software written by third parties, licensed under their own terms. -Notably, this larger work combines with the Terraform AWS Provider, -which is licensed under the Mozilla Public License 2.0 (see - or the project itself at -). +Notably, this larger work combines with the Doppler Terraform Provider, +which is licensed under the Apache License, Version 2.0 (see + or the project itself at +). diff --git a/Makefile b/Makefile index 67d001e..b0a596c 100644 --- a/Makefile +++ b/Makefile @@ -1,107 +1,298 @@ -PROJECT_NAME := Doppler Package +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt -SHELL := /bin/bash -PACK := doppler -ORG := pulumiverse -PROJECT := github.com/${ORG}/pulumi-${PACK} -NODE_MODULE_NAME := @pulumiverse/${PACK} -TF_NAME := ${PACK} -PROVIDER_PATH := provider -VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version +PACK := doppler +ORG := DopplerHQ +PROJECT := github.com/$(ORG)/pulumi-$(PACK) +PROVIDER_PATH := provider +VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version +CODEGEN := pulumi-tfgen-$(PACK) +PROVIDER := pulumi-resource-$(PACK) +TESTPARALLELISM := 10 +GOTESTARGS := "" +WORKING_DIR := $(shell pwd) +PULUMI_PROVIDER_BUILD_PARALLELISM ?= +PULUMI_CONVERT := 1 +PULUMI_MISSING_DOCS_ERROR := false -TFGEN := pulumi-tfgen-${PACK} -PROVIDER := pulumi-resource-${PACK} -VERSION := $(shell pulumictl get version) +# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable +# Local & branch builds will just used this fixed default version unless specified +PROVIDER_VERSION ?= 0.0.0-alpha.0+dev -TESTPARALLELISM := 4 -PULUMI_CONVERT := 1 +# Check version doesn't start with a "v" - this is a common mistake +ifeq ($(shell echo $(PROVIDER_VERSION) | cut -c1),v) +$(error PROVIDER_VERSION should not start with a "v") +endif -WORKING_DIR := $(shell pwd) +# Strips debug information from the provider binary to reduce its size and speed up builds +LDFLAGS_STRIP_SYMBOLS=-s -w +LDFLAGS_PROJ_VERSION=-X $(PROJECT)/$(VERSION_PATH)=$(PROVIDER_VERSION) +LDFLAGS_UPSTREAM_VERSION= +LDFLAGS_EXTRAS= +LDFLAGS=$(LDFLAGS_PROJ_VERSION) $(LDFLAGS_UPSTREAM_VERSION) $(LDFLAGS_EXTRAS) $(LDFLAGS_STRIP_SYMBOLS) -OS := $(shell uname) -EMPTY_TO_AVOID_SED := "" +# Create a `.make` directory for tracking targets which don't generate a single file output. This should be ignored by git. +# For targets which either don't generate a single file output, or the output file is committed, we use a "sentinel" +# file within `.make/` to track the staleness of the target and only rebuild when needed. +# For each phony target, we create an internal target with the same name, but prefixed with `.make/` where the work is performed. +# At the end of each internal target we run `@touch $@` to update the file which is the name of the target. -.PHONY: development provider build_sdks build_nodejs build_dotnet build_go build_python cleanup +# Ensure all directories exist before evaluating targets to avoid issues with `touch` creating directories. +_ := $(shell mkdir -p .make bin .pulumi/bin) -development:: install_plugins provider lint_provider build_sdks install_sdks cleanup # Build the provider & SDKs for a development environment +# Build the provider and all SDKs and install ready for testing +build: .make/mise_install provider build_sdks install_sdks +build: | mise_env -# Required for the codegen action that runs in pulumi/pulumi and pulumi/pulumi-terraform-bridge -build:: install_plugins provider build_sdks install_sdks -only_build:: build +# Keep aliases for old targets to ensure backwards compatibility +development: build +only_build: build +# Prepare the workspace for building the provider and SDKs +# Importantly this is run by CI ahead of restoring the bin directory and resuming SDK builds +prepare_local_workspace: .make/mise_install upstream +prepare_local_workspace: | mise_env +# Creates all generated files which need to be committed +generate: generate_sdks schema +generate_sdks: generate_dotnet generate_go generate_nodejs generate_python +build_sdks: build_dotnet build_go build_nodejs build_python +install_sdks: install_dotnet_sdk install_go_sdk install_nodejs_sdk install_python_sdk +.PHONY: development only_build build generate generate_sdks build_sdks install_sdks mise_install mise_env -tfgen:: install_plugins - (cd provider && go build -o $(WORKING_DIR)/bin/${TFGEN} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${TFGEN}) - PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/${TFGEN} schema --out provider/cmd/${PROVIDER} - (cd provider && VERSION=$(VERSION) go generate cmd/${PROVIDER}/main.go) +# Installs all necessary tools with mise and records completion in a sentinel +# file so dependent targets can participate in make's caching behaviour. The +# environment is refreshed via an order-only prerequisite so it still runs on +# every invocation without invalidating the sentinel. +mise_install: .make/mise_install | mise_env -provider:: tfgen install_plugins # build the provider binary - (cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${PROVIDER}) +mise_env: + @mise env -q > /dev/null -build_sdks:: install_plugins provider build_nodejs build_python build_go build_dotnet # build all the sdks +.make/mise_install: + @mise install -q + @touch $@ -build_nodejs:: VERSION := $(shell pulumictl get version --language javascript) -build_nodejs:: install_plugins tfgen # build the node sdk - PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) nodejs --overlays provider/overlays/nodejs --out sdk/nodejs/ - cd sdk/nodejs/ && \ - yarn install && \ - yarn run tsc && \ - cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \ - sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json - -build_python:: PYPI_VERSION := $(shell pulumictl get version --language python) -build_python:: install_plugins tfgen # build the python sdk - PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) python --overlays provider/overlays/python --out sdk/python/ - cd sdk/python/ && \ - cp ../../README.md . && \ - python3 setup.py clean --all 2>/dev/null && \ - rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \ - sed -i.bak -e 's/^VERSION = .*/VERSION = "$(PYPI_VERSION)"/g' -e 's/^PLUGIN_VERSION = .*/PLUGIN_VERSION = "$(VERSION)"/g' ./bin/setup.py && \ - rm ./bin/setup.py.bak && \ - cd ./bin && python3 setup.py build sdist - -build_dotnet:: DOTNET_VERSION := $(shell pulumictl get version --language dotnet) -build_dotnet:: install_plugins tfgen # build the dotnet sdk - pulumictl get version --language dotnet - PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) dotnet --overlays provider/overlays/dotnet --out sdk/dotnet/ + +help: + @echo "Usage: make [target]" + @echo "" + @echo "Main Targets" + @echo " build (default) Build the provider and all SDKs and install for testing" + @echo " generate Generate all SDKs, documentation and schema" + @echo " provider Build the local provider binary" + @echo " lint_provider<.fix> Run the linter on the provider (& optionally fix)" + @echo " test_provider Run the provider tests" + @echo " test Run the example tests (must run 'build' first)" + @echo " clean Clean up generated files" + @echo "" + @echo "More Precise Targets" + @echo " schema Generate the schema" + @echo " generate_sdks Generate all SDKs" + @echo " build_sdks Build all SDKs" + @echo " install_sdks Install all SDKs" + @echo " provider_dist Build and package the provider for all platforms" + @echo "" + @echo "Tool Targets" + @echo " ci-mgmt Re-generate CI configuration from .ci-mgmt.yaml" + @echo " debug_tfgen Start a debug server for tfgen" + @echo "" + @echo "Internal Targets (automatically run as dependencies of other targets)" + @echo " prepare_local_workspace Prepare for building" + @echo " mise_install Install tools with mise" + @echo " upstream Initialize the upstream submodule, if present" + @echo "" + @echo "Language-Specific Targets" + @echo " generate_[language] Generate the SDK files ready for committing" + @echo " build_[language] Build the SDK to check correctness" + @echo " install_[language]_sdk Install the SDK ready for testing" + @echo "" + @echo " [language] = dotnet go nodejs python" + @echo "" +.PHONY: help + +GEN_PULUMI_HOME := $(WORKING_DIR)/.pulumi +GEN_PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(GEN_PULUMI_HOME)/examples-cache +GEN_ENVS := PULUMI_HOME=$(GEN_PULUMI_HOME) PULUMI_CONVERT_EXAMPLES_CACHE_DIR=$(GEN_PULUMI_CONVERT_EXAMPLES_CACHE_DIR) PULUMI_CONVERT=$(PULUMI_CONVERT) PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION=$(PULUMI_CONVERT) + +generate_dotnet: .make/generate_dotnet +build_dotnet: .make/build_dotnet +.make/generate_dotnet: .make/mise_install bin/$(CODEGEN) +.make/generate_dotnet: | mise_env + $(GEN_ENVS) $(WORKING_DIR)/bin/$(CODEGEN) dotnet --out sdk/dotnet/ cd sdk/dotnet/ && \ - echo "${DOTNET_VERSION}" >version.txt && \ - dotnet build /p:Version=${DOTNET_VERSION} + printf "module fake_dotnet_module // Exclude this directory from Go tools\n\ngo 1.17\n" > go.mod && \ + echo "$(PROVIDER_VERSION)" >version.txt + @touch $@ +.make/build_dotnet: .make/generate_dotnet + cd sdk/dotnet/ && dotnet build + @touch $@ +.PHONY: generate_dotnet build_dotnet -build_go:: install_plugins tfgen # build the go sdk - PULUMI_CONVERT=$(PULUMI_CONVERT) $(WORKING_DIR)/bin/$(TFGEN) go --overlays provider/overlays/go --out sdk/go/ +generate_go: .make/generate_go +build_go: .make/build_go +.make/generate_go: .make/mise_install bin/$(CODEGEN) +.make/generate_go: | mise_env + $(GEN_ENVS) $(WORKING_DIR)/bin/$(CODEGEN) go --out sdk/go/ + @touch $@ +.make/build_go: .make/generate_go + cd sdk && go list "$$(grep -e "^module" go.mod | cut -d ' ' -f 2)/go/..." | xargs -I {} bash -c 'go build {} && go clean -i {}' + @touch $@ +.PHONY: generate_go build_go -lint_provider:: provider # lint the provider code - cd provider && golangci-lint run -c ../.golangci.yml +generate_java: .make/generate_java +build_java: .make/build_java +.make/generate_java: PACKAGE_VERSION := $(PROVIDER_VERSION) +.make/generate_java: .make/mise_install bin/$(CODEGEN) +.make/generate_java: | mise_env + $(GEN_ENVS) $(WORKING_DIR)/bin/$(CODEGEN) java --out sdk/java/ + printf "module fake_java_module // Exclude this directory from Go tools\n\ngo 1.17\n" > sdk/java/go.mod + @touch $@ +.make/build_java: PACKAGE_VERSION := $(PROVIDER_VERSION) +.make/build_java: .make/generate_java + cd sdk/java/ && \ + gradle --console=plain build && \ + gradle --console=plain javadoc + @touch $@ +.PHONY: generate_java build_java -cleanup:: # cleans up the temporary directory - rm -r $(WORKING_DIR)/bin - rm -f provider/cmd/${PROVIDER}/schema.go +generate_nodejs: .make/generate_nodejs +build_nodejs: .make/build_nodejs +.make/generate_nodejs: .make/mise_install bin/$(CODEGEN) +.make/generate_nodejs: | mise_env + $(GEN_ENVS) $(WORKING_DIR)/bin/$(CODEGEN) nodejs --out sdk/nodejs/ + printf "module fake_nodejs_module // Exclude this directory from Go tools\n\ngo 1.17\n" > sdk/nodejs/go.mod + @touch $@ +.make/build_nodejs: .make/generate_nodejs + cd sdk/nodejs/ && \ + yarn install && \ + yarn run tsc && \ + cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ + @touch $@ +.PHONY: generate_nodejs build_nodejs -help:: - @grep '^[^.#]\+:\s\+.*#' Makefile | \ - sed "s/\(.\+\):\s*\(.*\) #\s*\(.*\)/`printf "\033[93m"`\1`printf "\033[0m"` \3 [\2]/" | \ - expand -t20 +generate_python: .make/generate_python +build_python: .make/build_python +.make/generate_python: .make/mise_install bin/$(CODEGEN) +.make/generate_python: | mise_env + $(GEN_ENVS) $(WORKING_DIR)/bin/$(CODEGEN) python --out sdk/python/ + printf "module fake_python_module // Exclude this directory from Go tools\n\ngo 1.17\n" > sdk/python/go.mod + cp README.md sdk/python/ + @touch $@ +.make/build_python: .make/generate_python + cd sdk/python/ && \ + rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \ + rm ./bin/go.mod && \ + python3 -m venv venv && \ + ./venv/bin/python -m pip install build==1.2.1 && \ + cd ./bin && \ + ../venv/bin/python -m build . + @touch $@ +.PHONY: generate_python build_python -clean:: +clean: rm -rf sdk/{dotnet,nodejs,go,python} + rm -rf bin/* + rm -rf .make/* + rm -rf "$(GEN_PULUMI_CONVERT_EXAMPLES_CACHE_DIR)" + if dotnet nuget list source | grep "$(WORKING_DIR)/nuget"; then \ + dotnet nuget remove source "$(WORKING_DIR)/nuget" \ + ; fi +.PHONY: clean -install_plugins:: - [ -x $(shell which pulumi) ] || curl -fsSL https://get.pulumi.com | sh - pulumi plugin install resource random 4.3.1 +install_dotnet_sdk: .make/install_dotnet_sdk +.make/install_dotnet_sdk: .make/build_dotnet + mkdir -p nuget + find sdk/dotnet/bin -name '*.nupkg' -print -exec cp -p "{}" ${WORKING_DIR}/nuget \; + if ! dotnet nuget list source | grep "${WORKING_DIR}/nuget"; then \ + dotnet nuget add source "${WORKING_DIR}/nuget" --name "${WORKING_DIR}/nuget" \ + ; fi + @touch $@ +install_go_sdk: +install_java_sdk: +install_nodejs_sdk: .make/install_nodejs_sdk +.make/install_nodejs_sdk: .make/build_nodejs + yarn link --cwd $(WORKING_DIR)/sdk/nodejs/bin + @touch $@ +install_python_sdk: +.PHONY: install_dotnet_sdk install_go_sdk install_java_sdk install_nodejs_sdk install_python_sdk -install_dotnet_sdk:: - mkdir -p $(WORKING_DIR)/nuget - find . -name '*.nupkg' -print -exec cp -p {} ${WORKING_DIR}/nuget \; +lint_provider: upstream + git grep -l 'go:embed' -- provider | xargs perl -i -pe 's/go:embed/ goembed/g' + cd provider && golangci-lint run --path-prefix provider -c ../.golangci.yml + git grep -l 'goembed' -- provider | xargs perl -i -pe 's/ goembed/go:embed/g' +# `lint_provider.fix` is a utility target meant to be run manually +# that will run the linter and fix errors when possible. +lint_provider.fix: upstream + git grep -l 'go:embed' -- provider | xargs perl -i -pe 's/go:embed/ goembed/g' + cd provider && golangci-lint run --path-prefix provider -c ../.golangci.yml --fix + git grep -l 'goembed' -- provider | xargs perl -i -pe 's/ goembed/go:embed/g' +.PHONY: lint_provider lint_provider.fix +build_provider_cmd = cd provider && GOOS=$(1) GOARCH=$(2) CGO_ENABLED=0 go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o "$(3)" -ldflags "$(LDFLAGS)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(PROVIDER) -install_python_sdk:: +provider: bin/$(PROVIDER) -install_go_sdk:: +# `make provider_no_deps` builds the provider binary directly, without ensuring that +# `cmd/pulumi-resource-doppler/schema.json` is valid and up to date. +# To create a release ready binary, you should use `make provider`. +provider_no_deps: + $(call build_provider_cmd,$(shell go env GOOS),$(shell go env GOARCH),$(WORKING_DIR)/bin/$(PROVIDER)) +bin/$(PROVIDER): .make/schema + $(call build_provider_cmd,$(shell go env GOOS),$(shell go env GOARCH),$(WORKING_DIR)/bin/$(PROVIDER)) +.PHONY: provider provider_no_deps -install_nodejs_sdk:: - yarn link --cwd $(WORKING_DIR)/sdk/nodejs/bin +test: export PATH := $(WORKING_DIR)/bin:$(PATH) +test: + cd examples && go test -v -tags=all -parallel $(TESTPARALLELISM) -timeout 2h $(value GOTESTARGS) +.PHONY: test +test_provider_cmd = cd provider && go test -v -short \ + -coverprofile="coverage.txt" \ + -coverpkg="./...,github.com/hashicorp/terraform-provider-..." \ + -parallel $(TESTPARALLELISM) \ + ./... +test_provider: + $(call test_provider_cmd) +.PHONY: test_provider + +tfgen: schema +schema: .make/schema +# This does actually have dependencies, but we're keeping it around for backwards compatibility for now +tfgen_no_deps: .make/schema +.make/schema: export PULUMI_HOME := $(WORKING_DIR)/.pulumi +.make/schema: export PULUMI_CONVERT := $(PULUMI_CONVERT) +.make/schema: export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR)/.pulumi/examples-cache +.make/schema: export PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION := $(PULUMI_CONVERT) +.make/schema: export PULUMI_MISSING_DOCS_ERROR := $(PULUMI_MISSING_DOCS_ERROR) +.make/schema: bin/$(CODEGEN) .make/mise_install .make/upstream +.make/schema: | mise_env + $(WORKING_DIR)/bin/$(CODEGEN) schema --out provider/cmd/$(PROVIDER) + (cd provider && VERSION=$(PROVIDER_VERSION) go generate cmd/$(PROVIDER)/main.go) + @touch $@ +tfgen_build_only: bin/$(CODEGEN) +bin/$(CODEGEN): provider/*.go provider/go.* .make/upstream + (cd provider && go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o $(WORKING_DIR)/bin/$(CODEGEN) -ldflags "$(LDFLAGS_PROJ_VERSION) $(LDFLAGS_EXTRAS)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(CODEGEN)) +.PHONY: tfgen schema tfgen_no_deps tfgen_build_only + +# Apply patches to the upstream submodule, if it exists +upstream: .make/upstream +# Re-run if the upstream commit or the patches change. +.make/upstream: $(wildcard patches/*) $(shell ./scripts/upstream.sh file_target) + ./scripts/upstream.sh init + @touch $@ +.PHONY: upstream + +# To make an immediately observable change to .ci-mgmt.yaml: +# +# - Edit .ci-mgmt.yaml +# - Run make ci-mgmt to apply the change locally. +# +ci-mgmt: .ci-mgmt.yaml + go run github.com/pulumi-labs/ci-mgmt/provider-ci@master generate +.PHONY: ci-mgmt -install_sdks:: install_dotnet_sdk install_python_sdk install_nodejs_sdk +# Start debug server for tfgen +debug_tfgen: + dlv --listen=:2345 --headless=true --api-version=2 exec $(WORKING_DIR)/bin/$(CODEGEN) -- schema --out provider/cmd/$(PROVIDER) +.PHONY: debug_tfgen -test:: - cd examples && go test -v -tags=all -parallel ${TESTPARALLELISM} -timeout 2h +include scripts/crossbuild.mk +# Permit providers to extend the Makefile with provider-specific Make includes. +include $(wildcard .mk/*.mk) diff --git a/README.md b/README.md index 1732a9a..cc74a93 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ This package is available for several languages/platforms: To use from JavaScript or TypeScript in Node.js, install using either `npm`: ```bash -npm install @pulumiverse/doppler +npm install @dopplerhq/pulumi-doppler ``` or `yarn`: ```bash -yarn add @pulumiverse/doppler +yarn add @dopplerhq/pulumi-doppler ``` ### Python @@ -25,7 +25,7 @@ yarn add @pulumiverse/doppler To use from Python, install using `pip`: ``` -$ pip install pulumiverse-doppler +$ pip install pulumi-doppler ``` ### Go @@ -33,7 +33,7 @@ $ pip install pulumiverse-doppler To use from Go, use `go get` to grab the latest version of the library: ```bash -go get github.com/pulumiverse/pulumi-doppler/sdk/go/... +go get github.com/DopplerHQ/pulumi-doppler/sdk/go/... ``` ### .NET @@ -42,14 +42,21 @@ To use from Dotnet, use `dotnet add package` to install into your project. You m ``` -$ dotnet add package Pulumiverse.Doppler +$ dotnet add package DopplerHQ.Doppler ``` ## Configuration The following configuration points are available for the `doppler` provider: -- `doppler:token` - You need to provide a service account, client, or other token type for this provider to communicate successfully with the Doppler API. +- `doppler:dopplerToken` (environment: `DOPPLER_TOKEN`) - A Doppler personal or service token. Use a service account token for automation; refreshing secrets with restricted visibility requires one. +- `doppler:oidcIdentity` (environment: `DOPPLER_OIDC_IDENTITY`) - The service account identity ID for OIDC authentication, used with one of: + - `doppler:oidcToken` (environment: `DOPPLER_OIDC_TOKEN`) - A JWT for OIDC authentication. + - `doppler:oidcTokenFile` (environment: `DOPPLER_OIDC_TOKEN_FILE`) - A path to a file containing that JWT. +- `doppler:host` (environment: `DOPPLER_API_HOST`) - The Doppler API host. Defaults to `https://api.doppler.com`. +- `doppler:verifyTls` (environment: `DOPPLER_VERIFY_TLS`) - Whether to verify TLS. Defaults to `true`. + +Only one of `dopplerToken` or OIDC may be configured. ## Reference diff --git a/devbox.json b/devbox.json new file mode 100644 index 0000000..598e665 --- /dev/null +++ b/devbox.json @@ -0,0 +1,22 @@ +{ + "packages": [ + "yarn@latest", + "pulumictl@latest", + "go@1.21.", + "nodejs@20.", + "python3@3.11.8", + "dotnet-sdk@8.0.", + "gradle_7@7.6", + "curl@8" + ], + "shell": { + "init_hook": [ + "export PATH=\"$(pwd)/bin/:$PATH\"" + ], + "scripts": { + "test": [ + "echo \"Error: no test specified\" && exit 1" + ] + } + } +} diff --git a/devbox.lock b/devbox.lock new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/devbox.lock @@ -0,0 +1 @@ +{} diff --git a/docs/_index.md b/docs/_index.md index 859e14e..6652885 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -1,24 +1,260 @@ --- title: Doppler -meta_desc: Provides an overview of the Doppler Provider for Pulumi. -layout: overview +meta_desc: Use the Doppler provider for Pulumi to manage Doppler projects, environments, configs, secrets, service accounts, and integrations. +layout: package --- -The Doppler provider for Pulumi can be used to provision any of the monitoring resources available in [Doppler](https://doppler.com/). +The Doppler provider for Pulumi lets you manage [Doppler](https://www.doppler.com/) resources as part of your Pulumi programs: projects, environments, configs, secrets, service accounts and tokens, groups and roles, integrations, secrets syncs, and rotated secrets. -## Example +## Installation -{{< chooser language "typescript" >}} +{{< chooser language "typescript,python,go,csharp,java,yaml,hcl" >}} +{{% choosable language typescript %}} + +```bash +npm install @dopplerhq/pulumi-doppler +``` + +{{% /choosable %}} +{{% choosable language python %}} +```bash +pip install pulumi_doppler +``` + +{{% /choosable %}} +{{% choosable language go %}} + +```bash +go get github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler +``` + +{{% /choosable %}} +{{% choosable language csharp %}} + +```bash +dotnet add package DopplerHQ.Doppler +``` + +{{% /choosable %}} +{{% choosable language java %}} + +There is no published Java SDK. Generate one locally and add it to your project: + +```bash +pulumi package add doppler +``` + +{{% /choosable %}} +{{% choosable language yaml %}} + +```bash +pulumi package add doppler +``` + +{{% /choosable %}} +{{% choosable language hcl %}} + +Declare the provider in your program, then run `pulumi install`: + +```hcl +terraform { + required_providers { + doppler = { + source = "DopplerHQ/doppler" + version = "~> 1.22" + } + } +} +``` + +```bash +pulumi install +``` + +{{% /choosable %}} +{{< /chooser >}} + +## Example Usage + +This program creates a project with a `ci` environment and sets a secret in that environment's root config, which shares the environment's slug. Which other environments a new project starts with depends on your workplace's default environment settings. + +{{< chooser language "typescript,python,go,csharp,yaml" >}} {{% choosable language typescript %}} ```typescript -import * as doppler from "@pulumiverse/doppler"; +import * as doppler from "@dopplerhq/pulumi-doppler"; + +const project = new doppler.Project("backend", { + name: "backend", + description: "Backend services", +}); -// Improve example +const ci = new doppler.Environment("ci", { + project: project.name, + slug: "ci", + name: "CI", +}); + +new doppler.Secret("database-url", { + project: project.name, + config: ci.slug, + name: "DATABASE_URL", + value: "postgres://db.example.com:5432/app", +}); +``` + +{{% /choosable %}} +{{% choosable language python %}} + +```python +import pulumi_doppler as doppler + +project = doppler.Project("backend", + name="backend", + description="Backend services") + +ci = doppler.Environment("ci", + project=project.name, + slug="ci", + name="CI") + +doppler.Secret("database-url", + project=project.name, + config=ci.slug, + name="DATABASE_URL", + value="postgres://db.example.com:5432/app") +``` + +{{% /choosable %}} +{{% choosable language go %}} + +```go +package main + +import ( + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +func main() { + pulumi.Run(func(ctx *pulumi.Context) error { + project, err := doppler.NewProject(ctx, "backend", &doppler.ProjectArgs{ + Name: pulumi.String("backend"), + Description: pulumi.String("Backend services"), + }) + if err != nil { + return err + } + ci, err := doppler.NewEnvironment(ctx, "ci", &doppler.EnvironmentArgs{ + Project: project.Name, + Slug: pulumi.String("ci"), + Name: pulumi.String("CI"), + }) + if err != nil { + return err + } + _, err = doppler.NewSecret(ctx, "database-url", &doppler.SecretArgs{ + Project: project.Name, + Config: ci.Slug, + Name: pulumi.String("DATABASE_URL"), + Value: pulumi.String("postgres://db.example.com:5432/app"), + }) + return err + }) +} +``` + +{{% /choosable %}} +{{% choosable language csharp %}} + +```csharp +using Pulumi; +using DopplerHQ.Doppler; + +return await Deployment.RunAsync(() => +{ + var project = new Project("backend", new ProjectArgs + { + Name = "backend", + Description = "Backend services", + }); + + var ci = new DopplerHQ.Doppler.Environment("ci", new EnvironmentArgs + { + Project = project.Name, + Slug = "ci", + Name = "CI", + }); + + new Secret("database-url", new SecretArgs + { + Project = project.Name, + Config = ci.Slug, + Name = "DATABASE_URL", + Value = "postgres://db.example.com:5432/app", + }); +}); +``` + +{{% /choosable %}} +{{% choosable language yaml %}} + +```yaml +name: doppler-example +runtime: yaml +resources: + backend: + type: doppler:Project + properties: + name: backend + description: Backend services + ci: + type: doppler:Environment + properties: + project: ${backend.name} + slug: ci + name: CI + database-url: + type: doppler:Secret + properties: + project: ${backend.name} + config: ${ci.slug} + name: DATABASE_URL + value: postgres://db.example.com:5432/app ``` {{% /choosable %}} {{< /chooser >}} -> You could find more complete and detailed examples in the [pulumi-Doppler repository](https://github.com/pulumiverse/pulumi-doppler/tree/main/examples) +Authenticate with a [service account](https://docs.doppler.com/docs/service-accounts) token: + +```bash +pulumi config set --secret doppler:dopplerToken dp.sa.xxx +``` + +## Configuration + +Configure either `dopplerToken` or OIDC (`oidcIdentity` with one of `oidcToken` or `oidcTokenFile`), not both. + +- `dopplerToken` (Secret) — A Doppler personal or service token. May also be set with the `DOPPLER_TOKEN` environment variable. Use a service account token for automation: with a personal token the provider can't read secrets with [restricted visibility](https://docs.doppler.com/docs/secret-visibility), so refreshing them fails. Can't be combined with the OIDC options. +- `oidcIdentity` — The ID (a UUID) of the [service account identity](https://docs.doppler.com/docs/service-account-identities) to authenticate as with OIDC. May also be set with the `DOPPLER_OIDC_IDENTITY` environment variable. Requires `oidcToken` or `oidcTokenFile`. +- `oidcToken` (Secret) — A JWT for OIDC authentication. May also be set with the `DOPPLER_OIDC_TOKEN` environment variable. Can't be combined with `oidcTokenFile`. +- `oidcTokenFile` — A path to a file containing a JWT for OIDC authentication, such as a Kubernetes projected service account token. May also be set with the `DOPPLER_OIDC_TOKEN_FILE` environment variable. Can't be combined with `oidcToken`. +- `host` — The Doppler API host. May also be set with the `DOPPLER_API_HOST` environment variable. Defaults to `https://api.doppler.com`. +- `verifyTls` — Whether to verify TLS. May also be set with the `DOPPLER_VERIFY_TLS` environment variable. Defaults to `true`. + +### Configuration examples + +With a service account token: + +```bash +pulumi config set --secret doppler:dopplerToken dp.sa.xxx +``` + +With OIDC, for example from a Kubernetes pod using a projected service account token: + +```bash +pulumi config set doppler:oidcIdentity 00000000-0000-0000-0000-000000000000 +pulumi config set doppler:oidcTokenFile /var/run/secrets/tokens/doppler +``` diff --git a/docs/installation-configuration.md b/docs/installation-configuration.md deleted file mode 100644 index 15ffac0..0000000 --- a/docs/installation-configuration.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Doppler Installation & Configuration -meta_desc: Provides an overview on how to configure credentials for the Pulumi Doppler Provider. -layout: installation ---- - -## Installation - -1. To use this package, please [install the Pulumi CLI first](https://www.pulumi.com/docs/get-started/install/). -1. This package is only available for JavaScript and TypeScript but support for other languages will be available soon. - -### Node.js (JavaScript/TypeScript) - -To use from JavaScript or TypeScript in Node.js, install using either `npm` or `yarn`: - -```bash -$ npm install @pulumiverse/doppler -$ yarn add @pulumiverse/doppler -``` - -### Python - -```bash -$ pip install pulumiverse_doppler -``` -### Go & .NET - -> *TBA* - -## Authentication - -The Pulumi Doppler Provider needs to be configured with a Doppler `API Key` and `Account ID` before it can be used to create resources. - -> If you don't have an `API Key`, you can create one in the [Doppler Service](https://docs.doppler.com/docs/service-tokens). - -Once you generated the `API Key` there are two ways to communicate your authorization tokens to Pulumi: - -1. Set the environment variables `DOPPLER_API_KEY` and `DOPPLER_ACCOUNT_ID`: - - ```bash - $ export DOPPLER_API_KEY=cu_xxx - $ export DOPPLER_ACCOUNT_ID=xxx - ``` - -2. Set them using `pulumi config` command, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access: - - ```bash - $ pulumi config set doppler:apiKey cu_xxx --secret - $ pulumi config set doppler:accountId xxx - ``` - -> Remember to pass `--secret` when setting `doppler:apiKey` so it is properly encrypted. diff --git a/examples/.gitignore b/examples/.gitignore index ed6aaad..e6c6ddb 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -1,4 +1,5 @@ .pulumi/ **/bin/ +**/obj/ node_modules/ - +venv/ diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..d2ec962 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,33 @@ +# Examples and integration tests + +`core-ts`, `core-py`, `core-go` and `core-cs` are the same Pulumi program in each SDK language. Each one creates about 24 resources that need nothing but a Doppler workplace (projects, environments, configs, secrets, tokens, service accounts, groups, roles, members, webhooks, trusted IPs, tags and a change request policy) and calls every function. + +The tests in this directory run each program with [ProgramTest](https://pkg.go.dev/github.com/pulumi/pulumi/pkg/v3/testing/integration): + +1. Create everything from `values.json` and check the stack outputs. +2. Apply `step2/values.json`, which updates resources in place, and check the outputs again. +3. Refresh after each step. Any change fails the test, so a resource that drifts from what it wrote is caught. +4. Destroy. + +## Running + +The tests create and delete real resources in the workplace that the token belongs to. Use a test workplace and a service account token with workplace admin access. Every name is prefixed with `pt--` and a suffix from the stack name. + +```bash +make build install_sdks # provider binary in bin/ plus all four SDKs + +export DOPPLER_TOKEN=dp.sa.xxx +# Optional: an existing workplace user to add to the test group and project. +export DOPPLER_TEST_MEMBER_EMAIL=someone@example.com + +cd examples +go test -v -count=1 -timeout 60m -parallel 1 -tags=all -run TestCore . +``` + +Without `DOPPLER_TOKEN` the tests skip. Use `-tags=nodejs`, `python`, `go` or `dotnet` to run one language. + +Prefer running the languages one at a time (`-parallel 1`). With several programs writing secrets at once, the Doppler API intermittently answers secret writes with a 500, and the provider doesn't retry those. The tests retry failed steps up to three times to absorb this, since CI runs one job per language in parallel. + +## In CI + +CI passes the `DOPPLER_TOKEN` secret and the optional `DOPPLER_TEST_MEMBER_EMAIL` variable from `.ci-mgmt.yaml` to the test jobs, on pull requests from this repository and nightly. Fork pull requests get no secrets, so their tests skip. diff --git a/examples/core-cs/Program.cs b/examples/core-cs/Program.cs new file mode 100644 index 0000000..6f3e5a1 --- /dev/null +++ b/examples/core-cs/Program.cs @@ -0,0 +1,187 @@ +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text.Json; +using Pulumi; +using DopplerHQ.Doppler; +using DopplerHQ.Doppler.Inputs; +using ProjectMember = DopplerHQ.Doppler.ProjectMember; + +return await Deployment.RunAsync(() => +{ + // values.json holds everything that changes between test steps; step2/ replaces it. + var values = JsonDocument.Parse(File.ReadAllText("values.json")).RootElement; + string Str(string key) => values.GetProperty(key).GetString()!; + var config = new Pulumi.Config(); + // An existing workplace user to add to the group and project. Optional. + var memberEmail = config.Get("memberEmail"); + + // Doppler names are unique per workplace, so suffix them with the stack name. + var suffix = System.Text.RegularExpressions.Regex.Replace(Deployment.Instance.StackName.ToLowerInvariant(), "[^a-z0-9]", ""); + suffix = suffix.Length > 8 ? suffix[^8..] : suffix; + var prefix = $"pt-cs-{suffix}"; + + var tag = new Tag("tag", new TagArgs { Name = prefix, Color = Str("tagColor") }); + + var project = new Project("project", new ProjectArgs + { + Name = prefix, + Description = Str("projectDescription"), + }); + new ProjectTag("project-tag", new ProjectTagArgs { Project = project.Name, TagSlug = tag.Slug }); + + // Create every environment used here: workplaces differ in which defaults new projects get. + var qa = new DopplerHQ.Doppler.Environment("qa", new EnvironmentArgs { Project = project.Name, Slug = "qa", Name = "QA" }); + var uat = new DopplerHQ.Doppler.Environment("uat", new EnvironmentArgs { Project = project.Name, Slug = "uat", Name = "UAT" }); + var feature = new BranchConfig("qa-feature", new BranchConfigArgs + { + Project = project.Name, + Environment = qa.Slug, + Name = "qa_feature", + }); + + var apiKey = new Secret("api-key", new SecretArgs + { + Project = project.Name, + Config = qa.Slug, + Name = "API_KEY", + Value = Str("apiKey"), + }); + // Refreshing a restricted secret only works with a service token (issue #15). + new Secret("db-password", new SecretArgs + { + Project = project.Name, + Config = qa.Slug, + Name = "DB_PASSWORD", + Value = "hunter2", + Visibility = "restricted", + }); + new SecretNote("api-key-note", new SecretNoteArgs + { + Project = project.Name, + Name = apiKey.Name, + Note = "Owned by the provider integration test", + }); + + var serviceToken = new ServiceToken("service-token", new ServiceTokenArgs + { + Project = project.Name, + Config = qa.Slug, + Name = prefix, + Access = "read", + }); + + var sa = new ServiceAccount("service-account", new ServiceAccountArgs { Name = prefix, WorkplaceRole = "collaborator" }); + var saToken = new ServiceAccountToken("service-account-token", new ServiceAccountTokenArgs + { + ServiceAccountSlug = sa.Slug, + Name = prefix, + }); + new ServiceAccountIdentity("service-account-identity", new ServiceAccountIdentityArgs + { + ServiceAccountSlug = sa.Slug, + Name = prefix, + TtlSeconds = 600, + ConfigOidc = new ServiceAccountIdentityConfigOidcArgs + { + DiscoveryUrl = "https://token.actions.githubusercontent.com", + Claims = + { + new ServiceAccountIdentityConfigOidcClaimArgs { Key = "aud", Values = { "https://github.com/DopplerHQ" } }, + new ServiceAccountIdentityConfigOidcClaimArgs { Key = "sub", Values = { "repo:DopplerHQ/pulumi-doppler:ref:refs/heads/main" } }, + }, + }, + }); + + var group = new Group("group", new GroupArgs { Name = prefix }); + var projectRole = new ProjectRole("project-role", new ProjectRoleArgs + { + Name = $"{prefix} log viewer", + // enclave_config_logs alone is rejected; it requires secrets read. + Permissions = { "enclave_config_logs", "enclave_project_config_secrets_read" }, + }); + new WorkplaceRole("workplace-role", new WorkplaceRoleArgs { Name = $"{prefix} logs", Permissions = { "logs" } }); + + new ProjectMember.Group("project-group", new ProjectMember.GroupArgs + { + Project = project.Name, + GroupSlug = group.Slug, + Role = "viewer", + Environments = { qa.Slug }, + }); + new ProjectMember.ServiceAccount("project-service-account", new ProjectMember.ServiceAccountArgs + { + Project = project.Name, + ServiceAccountSlug = sa.Slug, + Role = projectRole.Identifier, + Environments = { qa.Slug }, + }); + + if (!string.IsNullOrEmpty(memberEmail)) + { + var user = GetUser.Invoke(new GetUserInvokeArgs { Email = memberEmail }); + new GroupMember("group-member", new GroupMemberArgs { GroupSlug = group.Slug, UserSlug = user.Apply(u => u.Slug) }); + new ProjectMember.User("project-user", new ProjectMember.UserArgs + { + Project = project.Name, + UserSlug = user.Apply(u => u.Slug), + Role = "viewer", + }); + } + + new Webhook("webhook", new WebhookArgs + { + Project = project.Name, + Name = Str("webhookName"), + Url = "https://example.com/doppler-webhook", + // Webhooks are always created enabled; upstream ignores enabled=false on create, so only + // the update step disables it. + Enabled = values.GetProperty("webhookEnabled").GetBoolean(), + EnabledConfigs = { feature.Name }, + Authentication = new WebhookAuthenticationArgs { Type = "Bearer", Token = "integration-test-token" }, + }); + + // Trusted IPs lock a config to those ranges for every caller, the provider included. Keep + // 0.0.0.0/0 and ::/0 in the list so the test can still read and delete the config. + // C# names the trustedIps property TrustedIpList: a member can't share its class's name. + var trustedIps = new TrustedIps("trusted-ips", new TrustedIpsArgs + { + Project = project.Name, + Config = feature.Name, + TrustedIpList = values.GetProperty("trustedIps").EnumerateArray().Select(e => e.GetString()!).ToList(), + }); + + new ChangeRequestPolicy("change-request-policy", new ChangeRequestPolicyArgs + { + Name = prefix, + Description = "Integration test policy", + Rules = new ChangeRequestPolicyRulesArgs + { + DisallowSelfReview = true, + RequiredReviewers = { new ChangeRequestPolicyRulesRequiredReviewerArgs { Count = 1 } }, + }, + Targets = new ChangeRequestPolicyTargetsArgs + { + Projects = + { + new ChangeRequestPolicyTargetsProjectArgs { ProjectName = project.Name, EnvironmentSlugs = { uat.Slug } }, + }, + }, + }); + + // Functions. GetSecrets reads after the secrets exist because its inputs come from them. + var secrets = GetSecrets.Invoke(new GetSecretsInvokeArgs { Project = apiKey.Project, Config = apiKey.Config }); + var environments = GetEnvironments.Invoke(new GetEnvironmentsInvokeArgs { Project = qa.Project }); + var foundGroup = GetGroup.Invoke(new GetGroupInvokeArgs { Slug = group.Slug }); + + return new Dictionary + { + ["projectName"] = project.Name, + ["environmentSlugs"] = environments.Apply(r => r.Environments.Select(e => e.Slug).OrderBy(s => s, System.StringComparer.Ordinal).ToList()), + ["apiKeyFromFunction"] = Output.Unsecret(secrets.Apply(r => r.Map["API_KEY"])), + ["groupName"] = foundGroup.Apply(g => g.Name), + ["serviceTokenIsSecret"] = Output.Create(Output.IsSecretAsync(serviceToken.Key)), + ["serviceAccountTokenIsSecret"] = Output.Create(Output.IsSecretAsync(saToken.ApiKey)), + ["trustedIpCount"] = trustedIps.TrustedIpList.Apply(l => l.Length), + }; +}); diff --git a/examples/core-cs/Pulumi.yaml b/examples/core-cs/Pulumi.yaml new file mode 100644 index 0000000..4d4054e --- /dev/null +++ b/examples/core-cs/Pulumi.yaml @@ -0,0 +1,3 @@ +name: core-cs +runtime: dotnet +description: Exercises the Doppler resources that need nothing but a Doppler workplace. diff --git a/examples/core-cs/core-cs.csproj b/examples/core-cs/core-cs.csproj new file mode 100644 index 0000000..e99fdda --- /dev/null +++ b/examples/core-cs/core-cs.csproj @@ -0,0 +1,13 @@ + + + + Exe + net8.0 + enable + + + + + + + diff --git a/examples/core-cs/step2/values.json b/examples/core-cs/step2/values.json new file mode 100644 index 0000000..202945c --- /dev/null +++ b/examples/core-cs/step2/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test (updated)", + "apiKey": "value-2", + "tagColor": "green", + "trustedIps": ["0.0.0.0/0", "::/0", "203.0.113.0/24"], + "webhookName": "Integration test webhook (renamed)", + "webhookEnabled": false +} diff --git a/examples/core-cs/values.json b/examples/core-cs/values.json new file mode 100644 index 0000000..118239f --- /dev/null +++ b/examples/core-cs/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test", + "apiKey": "value-1", + "tagColor": "blue", + "trustedIps": ["0.0.0.0/0", "::/0"], + "webhookName": "Integration test webhook", + "webhookEnabled": true +} diff --git a/examples/core-go/Pulumi.yaml b/examples/core-go/Pulumi.yaml new file mode 100644 index 0000000..226a4db --- /dev/null +++ b/examples/core-go/Pulumi.yaml @@ -0,0 +1,3 @@ +name: core-go +runtime: go +description: Exercises the Doppler resources that need nothing but a Doppler workplace. diff --git a/examples/core-go/go.mod b/examples/core-go/go.mod new file mode 100644 index 0000000..ae3ea65 --- /dev/null +++ b/examples/core-go/go.mod @@ -0,0 +1,123 @@ +module core-go + +go 1.26.6 + +require ( + github.com/DopplerHQ/pulumi-doppler/sdk v0.0.0 + github.com/pulumi/pulumi/sdk/v3 v3.270.0 +) + +require ( + github.com/BurntSushi/toml v1.6.0 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect + github.com/ProtonMail/go-crypto v1.5.2 // indirect + github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect + github.com/agext/levenshtein v1.2.3 // indirect + github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/blang/semver v3.5.1+incompatible // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/charmbracelet/bubbles v1.0.0 // indirect + github.com/charmbracelet/bubbletea v1.3.10 // indirect + github.com/charmbracelet/colorprofile v0.4.2 // indirect + github.com/charmbracelet/lipgloss v1.1.0 // indirect + github.com/charmbracelet/x/ansi v0.11.6 // indirect + github.com/charmbracelet/x/cellbuf v0.0.15 // indirect + github.com/charmbracelet/x/term v0.2.2 // indirect + github.com/clipperhouse/displaywidth v0.11.0 // indirect + github.com/clipperhouse/uax29/v2 v2.7.0 // indirect + github.com/cloudflare/circl v1.6.3 // indirect + github.com/danieljoos/wincred v1.2.3 // indirect + github.com/deckarep/golang-set/v2 v2.5.0 // indirect + github.com/djherbis/times v1.5.0 // indirect + github.com/ebitengine/purego v0.10.2 // indirect + github.com/emirpasic/gods v1.18.1 // indirect + github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect + github.com/go-git/gcfg/v2 v2.0.2 // indirect + github.com/go-git/go-billy/v6 v6.0.0-beta.1 // indirect + github.com/go-git/go-git/v6 v6.0.0-beta.1 // indirect + github.com/go-jose/go-jose/v4 v4.1.4 // indirect + github.com/go-logr/logr v1.4.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/godbus/dbus/v5 v5.2.2 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/glog v1.2.5 // indirect + github.com/google/go-tpm v0.9.8 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 // indirect + github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-version v1.8.0 // indirect + github.com/hashicorp/hcl/v2 v2.22.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/kevinburke/ssh_config v1.6.0 // indirect + github.com/klauspost/compress v1.18.7 // indirect + github.com/lucasb-eyer/go-colorful v1.3.0 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mattn/go-localereader v0.0.1 // indirect + github.com/mattn/go-runewidth v0.0.20 // indirect + github.com/mitchellh/go-ps v1.0.0 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect + github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect + github.com/muesli/cancelreader v0.2.2 // indirect + github.com/muesli/termenv v0.16.0 // indirect + github.com/opentracing/basictracer-go v1.1.0 // indirect + github.com/opentracing/opentracing-go v1.2.0 // indirect + github.com/pgavlin/fx v0.1.6 // indirect + github.com/pjbgf/sha1cd v0.7.0 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pkg/term v1.1.0 // indirect + github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect + github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/rogpeppe/go-internal v1.14.1 // indirect + github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect + github.com/sergi/go-diff v1.4.0 // indirect + github.com/spf13/cast v1.4.1 // indirect + github.com/spf13/cobra v1.10.2 // indirect + github.com/spf13/pflag v1.0.10 // indirect + github.com/texttheater/golang-levenshtein v1.0.1 // indirect + github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect + github.com/uber/jaeger-lib v2.4.1+incompatible // indirect + github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect + github.com/zalando/go-keyring v0.2.8 // indirect + github.com/zclconf/go-cty v1.13.2 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/collector/featuregate v1.53.0 // indirect + go.opentelemetry.io/collector/pdata v1.53.0 // indirect + go.opentelemetry.io/contrib/bridges/otelslog v0.20.0 // indirect + go.opentelemetry.io/otel v1.45.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0 // indirect + go.opentelemetry.io/otel/log v0.21.0 // indirect + go.opentelemetry.io/otel/metric v1.45.0 // indirect + go.opentelemetry.io/otel/sdk v1.45.0 // indirect + go.opentelemetry.io/otel/sdk/log v0.21.0 // indirect + go.opentelemetry.io/otel/trace v1.45.0 // indirect + go.opentelemetry.io/proto/otlp v1.11.0 // indirect + go.uber.org/atomic v1.11.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.57.0 // indirect + golang.org/x/mod v0.41.0 // indirect + golang.org/x/net v0.59.0 // indirect + golang.org/x/sync v0.23.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/term v0.46.0 // indirect + golang.org/x/text v0.42.0 // indirect + golang.org/x/tools v0.49.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d // indirect + google.golang.org/grpc v1.83.2 // indirect + google.golang.org/protobuf v1.36.11 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + lukechampine.com/frand v1.4.2 // indirect +) + +replace github.com/DopplerHQ/pulumi-doppler/sdk => ../../sdk diff --git a/examples/core-go/go.sum b/examples/core-go/go.sum new file mode 100644 index 0000000..1899b49 --- /dev/null +++ b/examples/core-go/go.sum @@ -0,0 +1,340 @@ +github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= +github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= +github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/ProtonMail/go-crypto v1.5.2 h1:cucYnvqcY7UOXVD//mSyjeaPY0SSN3v5cDkYPxumINk= +github.com/ProtonMail/go-crypto v1.5.2/go.mod h1:/RaSu30DaKO4RY+XdV/ACcCcZkGr7AhUIduq5sjzzCo= +github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= +github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= +github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= +github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= +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-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= +github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= +github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= +github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= +github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charmbracelet/bubbles v1.0.0 h1:12J8/ak/uCZEMQ6KU7pcfwceyjLlWsDLAxB5fXonfvc= +github.com/charmbracelet/bubbles v1.0.0/go.mod h1:9d/Zd5GdnauMI5ivUIVisuEm3ave1XwXtD1ckyV6r3E= +github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw= +github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4= +github.com/charmbracelet/colorprofile v0.4.2 h1:BdSNuMjRbotnxHSfxy+PCSa4xAmz7szw70ktAtWRYrY= +github.com/charmbracelet/colorprofile v0.4.2/go.mod h1:0rTi81QpwDElInthtrQ6Ni7cG0sDtwAd4C4le060fT8= +github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= +github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30= +github.com/charmbracelet/x/ansi v0.11.6 h1:GhV21SiDz/45W9AnV2R61xZMRri5NlLnl6CVF7ihZW8= +github.com/charmbracelet/x/ansi v0.11.6/go.mod h1:2JNYLgQUsyqaiLovhU2Rv/pb8r6ydXKS3NIttu3VGZQ= +github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI= +github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q= +github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= +github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= +github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= +github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= +github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= +github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= +github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= +github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= +github.com/danieljoos/wincred v1.2.3/go.mod h1:6qqX0WNrS4RzPZ1tnroDzq9kY3fu1KwE7MRLQK4X0bs= +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/deckarep/golang-set/v2 v2.5.0 h1:hn6cEZtQ0h3J8kFrHR/NrzyOoTnjgW1+FmNJzQ7y/sA= +github.com/deckarep/golang-set/v2 v2.5.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= +github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= +github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= +github.com/ebitengine/purego v0.10.2 h1:W809HbnvzAxgdm+aOvlSekrM16wGCdT/e76+9tS7gzE= +github.com/ebitengine/purego v0.10.2/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= +github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= +github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= +github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= +github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= +github.com/go-git/gcfg/v2 v2.0.2 h1:MY5SIIfTGGEMhdA7d7JePuVVxtKL7Hp+ApGDJAJ7dpo= +github.com/go-git/gcfg/v2 v2.0.2/go.mod h1:/lv2NsxvhepuMrldsFilrgct6pxzpGdSRC13ydTLSLs= +github.com/go-git/go-billy/v6 v6.0.0-beta.1 h1:OJ4r207zcEbeq/DJNajQUOMd+pph3r9A7hRq1Sjl1bA= +github.com/go-git/go-billy/v6 v6.0.0-beta.1/go.mod h1:QGOWN4CzmtRfpFeCw5paG3RJyKdTwsfGASkxBVkIaAU= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 h1:gmqi2jvsreu0s8JMLylYDFq4sbjHwwlhktMw0DUg3mA= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1/go.mod h1:ECf1MqJlBdYpKggBrOXjo/0EnvRZx6D++I86UYjPgAQ= +github.com/go-git/go-git/v6 v6.0.0-beta.1 h1:1t+vJYGDBN6f9GRWskgWx5UjXPFUa7wfffZZZ2C5GtA= +github.com/go-git/go-git/v6 v6.0.0-beta.1/go.mod h1:ugDlr38Wwc+fOw85J+Oluh5TNXQtJgYMcriOljg3l4s= +github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA= +github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= +github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v1.2.5 h1:DrW6hGnjIhtvhOIiAKT6Psh/Kd/ldepEa81DKeiRJ5I= +github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo= +github.com/google/go-tpm v0.9.8/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba h1:qJEJcuLzH5KDR0gKc0zcktin6KSAwL7+jWKBYceddTc= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba/go.mod h1:EFYHy8/1y2KfgTAsx7Luu7NGhoxtuVHnNo8jE7FikKc= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs= +github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= +github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-version v1.8.0 h1:KAkNb1HAiZd1ukkxDFGmokVZe1Xy9HG6NUp+bPle2i4= +github.com/hashicorp/go-version v1.8.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hcl/v2 v2.22.0 h1:hkZ3nCtqeJsDhPRFz5EA9iwcG1hNWGePOTw6oyul12M= +github.com/hashicorp/hcl/v2 v2.22.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/kevinburke/ssh_config v1.6.0 h1:J1FBfmuVosPHf5GRdltRLhPJtJpTlMdKTBjRgTaQBFY= +github.com/kevinburke/ssh_config v1.6.0/go.mod h1:q2RIzfka+BXARoNexmF9gkxEX7DmvbW9P4hIVx2Kg4M= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.18.7 h1:aUyZsS4kH3QTKurYhAOwAHxllVPnOthb3vPfnF1Ehjw= +github.com/klauspost/compress v1.18.7/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag= +github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= +github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= +github.com/mattn/go-runewidth v0.0.20 h1:WcT52H91ZUAwy8+HUkdM3THM6gXqXuLJi9O3rjcQQaQ= +github.com/mattn/go-runewidth v0.0.20/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= +github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= +github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= +github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo= +github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= +github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= +github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc= +github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= +github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0= +github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU= +github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M= +github.com/pgavlin/fx/v2 v2.0.12 h1:SjjaJ68Dt8Z4zHwOpY/RPijd7lShs6xYupJbF9ra00M= +github.com/pgavlin/fx/v2 v2.0.12/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc= +github.com/pjbgf/sha1cd v0.7.0 h1:ZRNPKHj+gfkLBf0KJv/p1Hmz+7bqCT5o311YX0nq+DA= +github.com/pjbgf/sha1cd v0.7.0/go.mod h1:pKR5Li+qTCo+ebqITZfwPlJGoCFCvSO00qxjbNtTUFQ= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= +github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= +github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= +github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0 h1:uq7VYDSrWGfQZbyUKr9emUbqRy1RsSnaFQ67mlcLBWU= +github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0/go.mod h1:NPA79X6Wmyr5zNKd+N+RiVJN8duwIrRmIaed8HCL9EM= +github.com/pulumi/pulumi/sdk/v3 v3.270.0 h1:qzqmv8CoZyZI9JT7yQTkgeu0fPFnjWl6421kwS+nwR4= +github.com/pulumi/pulumi/sdk/v3 v3.270.0/go.mod h1:aUQk7DpZpqUsxLSUUWUCzIapJNb4+Smgh81ONxIdfCo= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= +github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= +github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= +github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= +github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= +github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= +github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +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.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= +github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= +github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= +github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= +github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= +github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= +github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= +github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no= +github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/zalando/go-keyring v0.2.8 h1:6sD/Ucpl7jNq10rM2pgqTs0sZ9V3qMrqfIIy5YPccHs= +github.com/zalando/go-keyring v0.2.8/go.mod h1:tsMo+VpRq5NGyKfxoBVjCuMrG47yj8cmakZDO5QGii0= +github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= +github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/collector/featuregate v1.53.0 h1:cgjXdtl7jezWxq6V0eohe/JqjY4PBotZGb5+bTR2OJw= +go.opentelemetry.io/collector/featuregate v1.53.0/go.mod h1:PS7zY/zaCb28EqciePVwRHVhc3oKortTFXsi3I6ee4g= +go.opentelemetry.io/collector/internal/testutil v0.147.0 h1:DFlRxBRp23/sZnpTITK25yqe0d56yNvK+63IaWc6OsU= +go.opentelemetry.io/collector/internal/testutil v0.147.0/go.mod h1:Jkjs6rkqs973LqgZ0Fe3zrokQRKULYXPIf4HuqStiEE= +go.opentelemetry.io/collector/pdata v1.53.0 h1:DlYDbRwammEZaxDZHINx5v0n8SEOVNniPbi6FRTlVkA= +go.opentelemetry.io/collector/pdata v1.53.0/go.mod h1:LRSYGNjKXaUrZEwZv3Yl+8/zV2HmRGKXW62zB2bysms= +go.opentelemetry.io/contrib/bridges/otelslog v0.20.0 h1:oEl2Pw/i4OQwhAuda2pAHFAcOMivA+Xa+iTccBfab/g= +go.opentelemetry.io/contrib/bridges/otelslog v0.20.0/go.mod h1:yMSQaiiq5dpfrSJCYLBcqFeJkFFI67seT4ngvx6jfVo= +go.opentelemetry.io/otel v1.45.0 h1:pdrWmLHofpubmArBv1LgFSv1Z0Ie/ppdZzu+kUN5EeU= +go.opentelemetry.io/otel v1.45.0/go.mod h1:XZxIqPapzEYnhNSScF5DIqXhm/rYi0FzCe2XddAwZfQ= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0 h1:WseeVYf5dJZTsyPiyW5L14k5qsSibqXAMTSiFEDiWr0= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0/go.mod h1:SiLZnQS6Qk2eCpvr2CH/XMAOa64TWGXxEZJZCpD2Lmc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 h1:QRefszxJmfPdjXUUm3j6iDzY03mTPXMjqErFqQ67vUg= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0/go.mod h1:Tiz03lTBVBrm7eWZBOidzEaYaJa8tjwGUGv6d8mlTyk= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0 h1:fG5MCxGz8+2VtrN/WgqSpJFctVz24gpxj8CxkKmc8Ww= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0/go.mod h1:BmAYTn+3ysbRe+IU2msxmf5Rx3g6DHvex+tWI3LdhYI= +go.opentelemetry.io/otel/log v0.21.0 h1:SLsVDGmtyBrdw8/a2Z0bOIxou/+bN4z56GebH7T0LvA= +go.opentelemetry.io/otel/log v0.21.0/go.mod h1:iReetQrZL9Wyg84cCkOoCmqDHS5RCFfyxC7J+r8fn8g= +go.opentelemetry.io/otel/metric v1.45.0 h1:7Eg1uH7CJ5cXv9is6tnBe1FI6rj1nwUdbFypRm3br/M= +go.opentelemetry.io/otel/metric v1.45.0/go.mod h1:HAPbm1nd3p1PmFH7v2dR+6BjXxw+Lq4a2+pndMAm08s= +go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw= +go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA= +go.opentelemetry.io/otel/sdk/log v0.21.0 h1:QsE7XSR0ktQdKmRKGnR+f1ObGF32WG+7MER/P9KgmYc= +go.opentelemetry.io/otel/sdk/log v0.21.0/go.mod h1:m9mApjCoD2/1QuKCAptjv+BrG9WKOvQLVdNx+iBldTo= +go.opentelemetry.io/otel/sdk/log/logtest v0.21.0 h1:X+JBBgKlswCGYsmgL0CnoUUtlE//VB345c84jYAYkdQ= +go.opentelemetry.io/otel/sdk/log/logtest v0.21.0/go.mod h1:HD1575K8e6sIFBBDd5tZB3t9DlMytWXq9FuR+Y4rfjE= +go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o= +go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA= +go.opentelemetry.io/otel/trace v1.45.0 h1:l/mP6Uv7oNO7/TblbhpbgMidxhq1uO/rPsikOyVhxag= +go.opentelemetry.io/otel/trace v1.45.0/go.mod h1:qoJJA2xNMnxRrdISU/kLtfUH2wNeQbiv+jhs/CxI8bc= +go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= +go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= +go.opentelemetry.io/proto/slim/otlp v1.9.0 h1:fPVMv8tP3TrsqlkH1HWYUpbCY9cAIemx184VGkS6vlE= +go.opentelemetry.io/proto/slim/otlp v1.9.0/go.mod h1:xXdeJJ90Gqyll+orzUkY4bOd2HECo5JofeoLpymVqdI= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.2.0 h1:o13nadWDNkH/quoDomDUClnQBpdQQ2Qqv0lQBjIXjE8= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.2.0/go.mod h1:Gyb6Xe7FTi/6xBHwMmngGoHqL0w29Y4eW8TGFzpefGA= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.2.0 h1:EiUYvtwu6PMrMHVjcPfnsG3v+ajPkbUeH+IL93+QYyk= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.2.0/go.mod h1:mUUHKFiN2SST3AhJ8XhJxEoeVW12oqfXog0Bo8W3Ec4= +go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= +go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M= +golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA= +golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f h1:W3F4c+6OLc6H2lb//N1q4WpJkhzJCK5J6kUi1NTVXfM= +golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f/go.mod h1:J1xhfL/vlindoeF/aINzNzt2Bket5bjo9sdOYzOsU80= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/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.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c= +golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues= +golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= +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-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk= +golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE= +golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/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-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= +golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= +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= +gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= +gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= +google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d h1:FarXi840EJWSHYTN3ERkADbPWjl307+FGrA22KAVjjc= +google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d/go.mod h1:K/+WGbmBY7aNW1HDw1fJnKYo10i0DkAX6pows00dLig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d h1:IL4hdHzcUv2l/gcg98/Rj3FbtE6axwqslOW8SW0C+S0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= +google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/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-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v2 v2.2.2/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.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw= +lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s= +pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= +pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= diff --git a/examples/core-go/main.go b/examples/core-go/main.go new file mode 100644 index 0000000..649e993 --- /dev/null +++ b/examples/core-go/main.go @@ -0,0 +1,289 @@ +package main + +import ( + "encoding/json" + "os" + "regexp" + "sort" + "strings" + + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +) + +// values.json holds everything that changes between test steps; step2/ replaces it. +type stepValues struct { + ProjectDescription string `json:"projectDescription"` + APIKey string `json:"apiKey"` + TagColor string `json:"tagColor"` + TrustedIPs []string `json:"trustedIps"` + WebhookName string `json:"webhookName"` + WebhookEnabled bool `json:"webhookEnabled"` +} + +func main() { + pulumi.Run(func(ctx *pulumi.Context) error { + raw, err := os.ReadFile("values.json") + if err != nil { + return err + } + var values stepValues + if err := json.Unmarshal(raw, &values); err != nil { + return err + } + // An existing workplace user to add to the group and project. Optional. + memberEmail := config.Get(ctx, "memberEmail") + + // Doppler names are unique per workplace, so suffix them with the stack name. + suffix := regexp.MustCompile(`[^a-z0-9]`).ReplaceAllString(strings.ToLower(ctx.Stack()), "") + if len(suffix) > 8 { + suffix = suffix[len(suffix)-8:] + } + prefix := "pt-go-" + suffix + + tag, err := doppler.NewTag(ctx, "tag", &doppler.TagArgs{ + Name: pulumi.String(prefix), + Color: pulumi.String(values.TagColor), + }) + if err != nil { + return err + } + + project, err := doppler.NewProject(ctx, "project", &doppler.ProjectArgs{ + Name: pulumi.String(prefix), + Description: pulumi.String(values.ProjectDescription), + }) + if err != nil { + return err + } + if _, err := doppler.NewProjectTag(ctx, "project-tag", &doppler.ProjectTagArgs{ + Project: project.Name, + TagSlug: tag.Slug, + }); err != nil { + return err + } + + // Create every environment used here: workplaces differ in which defaults new projects get. + qa, err := doppler.NewEnvironment(ctx, "qa", &doppler.EnvironmentArgs{ + Project: project.Name, + Slug: pulumi.String("qa"), + Name: pulumi.String("QA"), + }) + if err != nil { + return err + } + uat, err := doppler.NewEnvironment(ctx, "uat", &doppler.EnvironmentArgs{ + Project: project.Name, + Slug: pulumi.String("uat"), + Name: pulumi.String("UAT"), + }) + if err != nil { + return err + } + feature, err := doppler.NewBranchConfig(ctx, "qa-feature", &doppler.BranchConfigArgs{ + Project: project.Name, + Environment: qa.Slug, + Name: pulumi.String("qa_feature"), + }) + if err != nil { + return err + } + + apiKey, err := doppler.NewSecret(ctx, "api-key", &doppler.SecretArgs{ + Project: project.Name, + Config: qa.Slug, + Name: pulumi.String("API_KEY"), + Value: pulumi.String(values.APIKey), + }) + if err != nil { + return err + } + // Refreshing a restricted secret only works with a service token (issue #15). + if _, err := doppler.NewSecret(ctx, "db-password", &doppler.SecretArgs{ + Project: project.Name, + Config: qa.Slug, + Name: pulumi.String("DB_PASSWORD"), + Value: pulumi.String("hunter2"), + Visibility: pulumi.String("restricted"), + }); err != nil { + return err + } + if _, err := doppler.NewSecretNote(ctx, "api-key-note", &doppler.SecretNoteArgs{ + Project: project.Name, + Name: apiKey.Name, + Note: pulumi.String("Owned by the provider integration test"), + }); err != nil { + return err + } + + serviceToken, err := doppler.NewServiceToken(ctx, "service-token", &doppler.ServiceTokenArgs{ + Project: project.Name, + Config: qa.Slug, + Name: pulumi.String(prefix), + Access: pulumi.String("read"), + }) + if err != nil { + return err + } + + sa, err := doppler.NewServiceAccount(ctx, "service-account", &doppler.ServiceAccountArgs{ + Name: pulumi.String(prefix), + WorkplaceRole: pulumi.String("collaborator"), + }) + if err != nil { + return err + } + saToken, err := doppler.NewServiceAccountToken(ctx, "service-account-token", &doppler.ServiceAccountTokenArgs{ + ServiceAccountSlug: sa.Slug, + Name: pulumi.String(prefix), + }) + if err != nil { + return err + } + if _, err := doppler.NewServiceAccountIdentity(ctx, "service-account-identity", &doppler.ServiceAccountIdentityArgs{ + ServiceAccountSlug: sa.Slug, + Name: pulumi.String(prefix), + TtlSeconds: pulumi.Int(600), + ConfigOidc: &doppler.ServiceAccountIdentityConfigOidcArgs{ + DiscoveryUrl: pulumi.String("https://token.actions.githubusercontent.com"), + Claims: doppler.ServiceAccountIdentityConfigOidcClaimArray{ + &doppler.ServiceAccountIdentityConfigOidcClaimArgs{ + Key: pulumi.String("aud"), + Values: pulumi.StringArray{pulumi.String("https://github.com/DopplerHQ")}, + }, + &doppler.ServiceAccountIdentityConfigOidcClaimArgs{ + Key: pulumi.String("sub"), + Values: pulumi.StringArray{pulumi.String("repo:DopplerHQ/pulumi-doppler:ref:refs/heads/main")}, + }, + }, + }, + }); err != nil { + return err + } + + group, err := doppler.NewGroup(ctx, "group", &doppler.GroupArgs{Name: pulumi.String(prefix)}) + if err != nil { + return err + } + projectRole, err := doppler.NewProjectRole(ctx, "project-role", &doppler.ProjectRoleArgs{ + Name: pulumi.String(prefix + " log viewer"), + // enclave_config_logs alone is rejected; it requires secrets read. + Permissions: pulumi.StringArray{ + pulumi.String("enclave_config_logs"), + pulumi.String("enclave_project_config_secrets_read"), + }, + }) + if err != nil { + return err + } + if _, err := doppler.NewWorkplaceRole(ctx, "workplace-role", &doppler.WorkplaceRoleArgs{ + Name: pulumi.String(prefix + " logs"), + Permissions: pulumi.StringArray{pulumi.String("logs")}, + }); err != nil { + return err + } + + if _, err := projectmember.NewGroup(ctx, "project-group", &projectmember.GroupArgs{ + Project: project.Name, + GroupSlug: group.Slug, + Role: pulumi.String("viewer"), + Environments: pulumi.StringArray{qa.Slug}, + }); err != nil { + return err + } + if _, err := projectmember.NewServiceAccount(ctx, "project-service-account", &projectmember.ServiceAccountArgs{ + Project: project.Name, + ServiceAccountSlug: sa.Slug, + Role: projectRole.Identifier, + Environments: pulumi.StringArray{qa.Slug}, + }); err != nil { + return err + } + + if memberEmail != "" { + user := doppler.GetUserOutput(ctx, doppler.GetUserOutputArgs{Email: pulumi.String(memberEmail)}) + if _, err := doppler.NewGroupMember(ctx, "group-member", &doppler.GroupMemberArgs{ + GroupSlug: group.Slug, + UserSlug: user.Slug(), + }); err != nil { + return err + } + if _, err := projectmember.NewUser(ctx, "project-user", &projectmember.UserArgs{ + Project: project.Name, + UserSlug: user.Slug(), + Role: pulumi.String("viewer"), + }); err != nil { + return err + } + } + + if _, err := doppler.NewWebhook(ctx, "webhook", &doppler.WebhookArgs{ + Project: project.Name, + Name: pulumi.String(values.WebhookName), + Url: pulumi.String("https://example.com/doppler-webhook"), + // Webhooks are always created enabled; upstream ignores enabled=false on create, so + // only the update step disables it. + Enabled: pulumi.Bool(values.WebhookEnabled), + EnabledConfigs: pulumi.StringArray{feature.Name}, + Authentication: &doppler.WebhookAuthenticationArgs{ + Type: pulumi.String("Bearer"), + Token: pulumi.String("integration-test-token"), + }, + }); err != nil { + return err + } + + // Trusted IPs lock a config to those ranges for every caller, the provider included. + // Keep 0.0.0.0/0 and ::/0 in the list so the test can still read and delete the config. + if _, err := doppler.NewTrustedIps(ctx, "trusted-ips", &doppler.TrustedIpsArgs{ + Project: project.Name, + Config: feature.Name, + TrustedIps: pulumi.ToStringArray(values.TrustedIPs), + }); err != nil { + return err + } + + if _, err := doppler.NewChangeRequestPolicy(ctx, "change-request-policy", &doppler.ChangeRequestPolicyArgs{ + Name: pulumi.String(prefix), + Description: pulumi.String("Integration test policy"), + Rules: &doppler.ChangeRequestPolicyRulesArgs{ + DisallowSelfReview: pulumi.Bool(true), + RequiredReviewers: doppler.ChangeRequestPolicyRulesRequiredReviewerArray{ + &doppler.ChangeRequestPolicyRulesRequiredReviewerArgs{Count: pulumi.Int(1)}, + }, + }, + Targets: &doppler.ChangeRequestPolicyTargetsArgs{ + Projects: doppler.ChangeRequestPolicyTargetsProjectArray{ + &doppler.ChangeRequestPolicyTargetsProjectArgs{ + ProjectName: project.Name, + EnvironmentSlugs: pulumi.StringArray{uat.Slug}, + }, + }, + }, + }); err != nil { + return err + } + + // Functions. GetSecrets reads after the secrets exist because its inputs come from them. + secrets := doppler.GetSecretsOutput(ctx, doppler.GetSecretsOutputArgs{Project: apiKey.Project, Config: apiKey.Config}) + environments := doppler.GetEnvironmentsOutput(ctx, doppler.GetEnvironmentsOutputArgs{Project: qa.Project}) + foundGroup := doppler.LookupGroupOutput(ctx, doppler.LookupGroupOutputArgs{Slug: group.Slug}) + + ctx.Export("projectName", project.Name) + ctx.Export("environmentSlugs", environments.Environments().ApplyT(func(es []doppler.GetEnvironmentsEnvironment) []string { + slugs := make([]string, len(es)) + for i, e := range es { + slugs[i] = e.Slug + } + sort.Strings(slugs) + return slugs + })) + ctx.Export("apiKeyFromFunction", pulumi.Unsecret(secrets.Map().MapIndex(pulumi.String("API_KEY")))) + ctx.Export("groupName", foundGroup.Name()) + ctx.Export("serviceTokenIsSecret", pulumi.Bool(pulumi.IsSecret(serviceToken.Key))) + ctx.Export("serviceAccountTokenIsSecret", pulumi.Bool(pulumi.IsSecret(saToken.ApiKey))) + return nil + }) +} diff --git a/examples/core-go/step2/values.json b/examples/core-go/step2/values.json new file mode 100644 index 0000000..202945c --- /dev/null +++ b/examples/core-go/step2/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test (updated)", + "apiKey": "value-2", + "tagColor": "green", + "trustedIps": ["0.0.0.0/0", "::/0", "203.0.113.0/24"], + "webhookName": "Integration test webhook (renamed)", + "webhookEnabled": false +} diff --git a/examples/core-go/values.json b/examples/core-go/values.json new file mode 100644 index 0000000..118239f --- /dev/null +++ b/examples/core-go/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test", + "apiKey": "value-1", + "tagColor": "blue", + "trustedIps": ["0.0.0.0/0", "::/0"], + "webhookName": "Integration test webhook", + "webhookEnabled": true +} diff --git a/examples/core-py/Pulumi.yaml b/examples/core-py/Pulumi.yaml new file mode 100644 index 0000000..021d9be --- /dev/null +++ b/examples/core-py/Pulumi.yaml @@ -0,0 +1,7 @@ +name: core-py +runtime: + name: python + options: + toolchain: pip + virtualenv: venv +description: Exercises the Doppler resources that need nothing but a Doppler workplace. diff --git a/examples/core-py/__main__.py b/examples/core-py/__main__.py new file mode 100644 index 0000000..cad2c74 --- /dev/null +++ b/examples/core-py/__main__.py @@ -0,0 +1,129 @@ +import json +import re + +import pulumi +import pulumi_doppler as doppler + +# values.json holds everything that changes between test steps; step2/ replaces it. +with open("values.json") as f: + values = json.load(f) +config = pulumi.Config() +# An existing workplace user to add to the group and project. Optional. +member_email = config.get("memberEmail") + +# Doppler names are unique per workplace, so suffix them with the stack name. +suffix = re.sub(r"[^a-z0-9]", "", pulumi.get_stack().lower())[-8:] +prefix = f"pt-py-{suffix}" + +tag = doppler.Tag("tag", name=prefix, color=values["tagColor"]) + +project = doppler.Project("project", name=prefix, description=values["projectDescription"]) +doppler.ProjectTag("project-tag", project=project.name, tag_slug=tag.slug) + +# Create every environment used here: workplaces differ in which defaults new projects get. +qa = doppler.Environment("qa", project=project.name, slug="qa", name="QA") +uat = doppler.Environment("uat", project=project.name, slug="uat", name="UAT") +feature = doppler.BranchConfig("qa-feature", project=project.name, environment=qa.slug, name="qa_feature") + +api_key = doppler.Secret("api-key", project=project.name, config=qa.slug, name="API_KEY", value=values["apiKey"]) +# Refreshing a restricted secret only works with a service token (issue #15). +doppler.Secret( + "db-password", + project=project.name, + config=qa.slug, + name="DB_PASSWORD", + value="hunter2", + visibility="restricted", +) +doppler.SecretNote( + "api-key-note", + project=project.name, + name=api_key.name, + note="Owned by the provider integration test", +) + +service_token = doppler.ServiceToken("service-token", project=project.name, config=qa.slug, name=prefix, access="read") + +sa = doppler.ServiceAccount("service-account", name=prefix, workplace_role="collaborator") +sa_token = doppler.ServiceAccountToken("service-account-token", service_account_slug=sa.slug, name=prefix) +doppler.ServiceAccountIdentity( + "service-account-identity", + service_account_slug=sa.slug, + name=prefix, + ttl_seconds=600, + config_oidc=doppler.ServiceAccountIdentityConfigOidcArgs( + discovery_url="https://token.actions.githubusercontent.com", + claims=[ + doppler.ServiceAccountIdentityConfigOidcClaimArgs(key="aud", values=["https://github.com/DopplerHQ"]), + doppler.ServiceAccountIdentityConfigOidcClaimArgs( + key="sub", values=["repo:DopplerHQ/pulumi-doppler:ref:refs/heads/main"] + ), + ], + ), +) + +group = doppler.Group("group", name=prefix) +project_role = doppler.ProjectRole( + "project-role", + name=f"{prefix} log viewer", + # enclave_config_logs alone is rejected; it requires secrets read. + permissions=["enclave_config_logs", "enclave_project_config_secrets_read"], +) +doppler.WorkplaceRole("workplace-role", name=f"{prefix} logs", permissions=["logs"]) + +doppler.projectmember.Group( + "project-group", project=project.name, group_slug=group.slug, role="viewer", environments=[qa.slug] +) +doppler.projectmember.ServiceAccount( + "project-service-account", + project=project.name, + service_account_slug=sa.slug, + role=project_role.identifier, + environments=[qa.slug], +) + +if member_email: + user = doppler.get_user_output(email=member_email) + doppler.GroupMember("group-member", group_slug=group.slug, user_slug=user.slug) + doppler.projectmember.User("project-user", project=project.name, user_slug=user.slug, role="viewer") + +doppler.Webhook( + "webhook", + project=project.name, + name=values["webhookName"], + url="https://example.com/doppler-webhook", + # Webhooks are always created enabled; upstream ignores enabled=False on create, so only + # the update step disables it. + enabled=values["webhookEnabled"], + enabled_configs=[feature.name], + authentication=doppler.WebhookAuthenticationArgs(type="Bearer", token="integration-test-token"), +) + +# Trusted IPs lock a config to those ranges for every caller, the provider included. Keep +# 0.0.0.0/0 and ::/0 in the list so the test can still read and delete the config. +doppler.TrustedIps("trusted-ips", project=project.name, config=feature.name, trusted_ips=values["trustedIps"]) + +doppler.ChangeRequestPolicy( + "change-request-policy", + name=prefix, + description="Integration test policy", + rules=doppler.ChangeRequestPolicyRulesArgs( + disallow_self_review=True, + required_reviewers=[doppler.ChangeRequestPolicyRulesRequiredReviewerArgs(count=1)], + ), + targets=doppler.ChangeRequestPolicyTargetsArgs( + projects=[doppler.ChangeRequestPolicyTargetsProjectArgs(project_name=project.name, environment_slugs=[uat.slug])] + ), +) + +# Functions. get_secrets reads after the secrets exist because its inputs come from them. +secrets = doppler.get_secrets_output(project=api_key.project, config=api_key.config) +environments = doppler.get_environments_output(project=qa.project) +found_group = doppler.get_group_output(slug=group.slug) + +pulumi.export("projectName", project.name) +pulumi.export("environmentSlugs", environments.environments.apply(lambda es: sorted(e.slug for e in es))) +pulumi.export("apiKeyFromFunction", pulumi.Output.unsecret(secrets.map.apply(lambda m: m["API_KEY"]))) +pulumi.export("groupName", found_group.name) +pulumi.export("serviceTokenIsSecret", pulumi.Output.from_input(service_token.key.is_secret())) +pulumi.export("serviceAccountTokenIsSecret", pulumi.Output.from_input(sa_token.api_key.is_secret())) diff --git a/examples/core-py/requirements.txt b/examples/core-py/requirements.txt new file mode 100644 index 0000000..bc4e430 --- /dev/null +++ b/examples/core-py/requirements.txt @@ -0,0 +1 @@ +pulumi>=3.0.0,<4.0.0 diff --git a/examples/core-py/step2/values.json b/examples/core-py/step2/values.json new file mode 100644 index 0000000..202945c --- /dev/null +++ b/examples/core-py/step2/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test (updated)", + "apiKey": "value-2", + "tagColor": "green", + "trustedIps": ["0.0.0.0/0", "::/0", "203.0.113.0/24"], + "webhookName": "Integration test webhook (renamed)", + "webhookEnabled": false +} diff --git a/examples/core-py/values.json b/examples/core-py/values.json new file mode 100644 index 0000000..118239f --- /dev/null +++ b/examples/core-py/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test", + "apiKey": "value-1", + "tagColor": "blue", + "trustedIps": ["0.0.0.0/0", "::/0"], + "webhookName": "Integration test webhook", + "webhookEnabled": true +} diff --git a/examples/core-ts/Pulumi.yaml b/examples/core-ts/Pulumi.yaml new file mode 100644 index 0000000..afcfe6b --- /dev/null +++ b/examples/core-ts/Pulumi.yaml @@ -0,0 +1,3 @@ +name: core-ts +runtime: nodejs +description: Exercises the Doppler resources that need nothing but a Doppler workplace. diff --git a/examples/core-ts/index.ts b/examples/core-ts/index.ts new file mode 100644 index 0000000..168be4d --- /dev/null +++ b/examples/core-ts/index.ts @@ -0,0 +1,144 @@ +import * as fs from "fs"; +import * as pulumi from "@pulumi/pulumi"; +import * as doppler from "@dopplerhq/pulumi-doppler"; + +// values.json holds everything that changes between test steps; step2/ replaces it. +const values = JSON.parse(fs.readFileSync("values.json", "utf8")); +const config = new pulumi.Config(); +// An existing workplace user to add to the group and project. Optional. +const memberEmail = config.get("memberEmail"); + +// Doppler names are unique per workplace, so suffix them with the stack name. +const suffix = pulumi.getStack().toLowerCase().replace(/[^a-z0-9]/g, "").slice(-8); +const prefix = `pt-ts-${suffix}`; + +const tag = new doppler.Tag("tag", { name: prefix, color: values.tagColor }); + +const project = new doppler.Project("project", { + name: prefix, + description: values.projectDescription, +}); +new doppler.ProjectTag("project-tag", { project: project.name, tagSlug: tag.slug }); + +// Create every environment used here: workplaces differ in which defaults new projects get. +const qa = new doppler.Environment("qa", { project: project.name, slug: "qa", name: "QA" }); +const uat = new doppler.Environment("uat", { project: project.name, slug: "uat", name: "UAT" }); +const feature = new doppler.BranchConfig("qa-feature", { + project: project.name, + environment: qa.slug, + name: "qa_feature", +}); + +const apiKey = new doppler.Secret("api-key", { + project: project.name, + config: qa.slug, + name: "API_KEY", + value: values.apiKey, +}); +// Refreshing a restricted secret only works with a service token (issue #15). +new doppler.Secret("db-password", { + project: project.name, + config: qa.slug, + name: "DB_PASSWORD", + value: "hunter2", + visibility: "restricted", +}); +new doppler.SecretNote("api-key-note", { + project: project.name, + name: apiKey.name, + note: "Owned by the provider integration test", +}); + +const serviceToken = new doppler.ServiceToken("service-token", { + project: project.name, + config: qa.slug, + name: prefix, + access: "read", +}); + +const sa = new doppler.ServiceAccount("service-account", { name: prefix, workplaceRole: "collaborator" }); +const saToken = new doppler.ServiceAccountToken("service-account-token", { + serviceAccountSlug: sa.slug, + name: prefix, +}); +new doppler.ServiceAccountIdentity("service-account-identity", { + serviceAccountSlug: sa.slug, + name: prefix, + ttlSeconds: 600, + configOidc: { + discoveryUrl: "https://token.actions.githubusercontent.com", + claims: [ + { key: "aud", values: ["https://github.com/DopplerHQ"] }, + { key: "sub", values: ["repo:DopplerHQ/pulumi-doppler:ref:refs/heads/main"] }, + ], + }, +}); + +const group = new doppler.Group("group", { name: prefix }); +const projectRole = new doppler.ProjectRole("project-role", { + name: `${prefix} log viewer`, + // enclave_config_logs alone is rejected; it requires secrets read. + permissions: ["enclave_config_logs", "enclave_project_config_secrets_read"], +}); +new doppler.WorkplaceRole("workplace-role", { name: `${prefix} logs`, permissions: ["logs"] }); + +new doppler.projectmember.Group("project-group", { + project: project.name, + groupSlug: group.slug, + role: "viewer", + environments: [qa.slug], +}); +new doppler.projectmember.ServiceAccount("project-service-account", { + project: project.name, + serviceAccountSlug: sa.slug, + role: projectRole.identifier, + environments: [qa.slug], +}); + +if (memberEmail) { + const user = doppler.getUserOutput({ email: memberEmail }); + new doppler.GroupMember("group-member", { groupSlug: group.slug, userSlug: user.slug }); + new doppler.projectmember.User("project-user", { + project: project.name, + userSlug: user.slug, + role: "viewer", + }); +} + +new doppler.Webhook("webhook", { + project: project.name, + name: values.webhookName, + url: "https://example.com/doppler-webhook", + // Webhooks are always created enabled; upstream ignores enabled=false on create, so only + // the update step disables it. + enabled: values.webhookEnabled, + enabledConfigs: [feature.name], + authentication: { type: "Bearer", token: "integration-test-token" }, +}); + +// Trusted IPs lock a config to those ranges for every caller, the provider included. Keep +// 0.0.0.0/0 and ::/0 in the list so the test can still read and delete the config. +new doppler.TrustedIps("trusted-ips", { + project: project.name, + config: feature.name, + trustedIps: values.trustedIps, +}); + +new doppler.ChangeRequestPolicy("change-request-policy", { + name: prefix, + description: "Integration test policy", + rules: { disallowSelfReview: true, requiredReviewers: [{ count: 1 }] }, + targets: { projects: [{ projectName: project.name, environmentSlugs: [uat.slug] }] }, +}); + +// Functions. getSecrets reads after the secrets exist because its inputs come from them. +const secrets = doppler.getSecretsOutput({ project: apiKey.project, config: apiKey.config }); +const environments = doppler.getEnvironmentsOutput({ project: qa.project }); +const foundGroup = doppler.getGroupOutput({ slug: group.slug }); + +export const projectName = project.name; +export const environmentSlugs = environments.environments.apply(es => es.map(e => e.slug).sort()); +export const apiKeyFromFunction = pulumi.unsecret(secrets.map.apply(m => m["API_KEY"])); +export const groupName = foundGroup.name; +export const serviceTokenIsSecret = pulumi.isSecret(serviceToken.key); +export const serviceAccountTokenIsSecret = pulumi.isSecret(saToken.apiKey); diff --git a/examples/core-ts/package.json b/examples/core-ts/package.json new file mode 100644 index 0000000..87ac00a --- /dev/null +++ b/examples/core-ts/package.json @@ -0,0 +1,10 @@ +{ + "name": "core-ts", + "main": "index.ts", + "devDependencies": { + "@types/node": "^20" + }, + "dependencies": { + "@pulumi/pulumi": "^3.142.0" + } +} diff --git a/examples/core-ts/step2/values.json b/examples/core-ts/step2/values.json new file mode 100644 index 0000000..202945c --- /dev/null +++ b/examples/core-ts/step2/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test (updated)", + "apiKey": "value-2", + "tagColor": "green", + "trustedIps": ["0.0.0.0/0", "::/0", "203.0.113.0/24"], + "webhookName": "Integration test webhook (renamed)", + "webhookEnabled": false +} diff --git a/examples/core-ts/tsconfig.json b/examples/core-ts/tsconfig.json new file mode 100644 index 0000000..29b296e --- /dev/null +++ b/examples/core-ts/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "strict": true, + "outDir": "bin", + "target": "es2020", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "resolveJsonModule": true, + "esModuleInterop": true + }, + "files": [ + "index.ts" + ] +} diff --git a/examples/core-ts/values.json b/examples/core-ts/values.json new file mode 100644 index 0000000..118239f --- /dev/null +++ b/examples/core-ts/values.json @@ -0,0 +1,8 @@ +{ + "projectDescription": "Pulumi provider integration test", + "apiKey": "value-1", + "tagColor": "blue", + "trustedIps": ["0.0.0.0/0", "::/0"], + "webhookName": "Integration test webhook", + "webhookEnabled": true +} diff --git a/examples/examples_dotnet_test.go b/examples/examples_dotnet_test.go new file mode 100644 index 0000000..feb966e --- /dev/null +++ b/examples/examples_dotnet_test.go @@ -0,0 +1,21 @@ +//go:build dotnet || all +// +build dotnet all + +package examples + +import ( + "testing" + + "github.com/pulumi/pulumi/pkg/v3/testing/integration" +) + +func TestCoreCs(t *testing.T) { + test := getBaseOptions(t). + With(integration.ProgramTestOptions{ + // Published to the local feed (PULUMI_LOCAL_NUGET) by `make install_dotnet_sdk`. + Dependencies: []string{"DopplerHQ.Doppler"}, + }). + With(coreTestOptions(t, "core-cs")) + + integration.ProgramTest(t, &test) +} diff --git a/examples/examples_go_test.go b/examples/examples_go_test.go new file mode 100644 index 0000000..81b92e4 --- /dev/null +++ b/examples/examples_go_test.go @@ -0,0 +1,33 @@ +//go:build go || all +// +build go all + +package examples + +import ( + "fmt" + "os" + "path/filepath" + "testing" + + "github.com/pulumi/pulumi/pkg/v3/testing/integration" + "github.com/stretchr/testify/require" +) + +func TestCoreGo(t *testing.T) { + sdkPath, err := filepath.Abs("../sdk") + require.NoError(t, err) + goDepRoot := os.Getenv("PULUMI_GO_DEP_ROOT") + if goDepRoot == "" { + goDepRoot, err = filepath.Abs("../..") + require.NoError(t, err) + } + + test := getBaseOptions(t). + With(integration.ProgramTestOptions{ + Dependencies: []string{fmt.Sprintf("github.com/DopplerHQ/pulumi-doppler/sdk=%s", sdkPath)}, + Env: []string{fmt.Sprintf("PULUMI_GO_DEP_ROOT=%s", goDepRoot)}, + }). + With(coreTestOptions(t, "core-go")) + + integration.ProgramTest(t, &test) +} diff --git a/examples/examples_nodejs_test.go b/examples/examples_nodejs_test.go index 6983bd8..d1a5868 100644 --- a/examples/examples_nodejs_test.go +++ b/examples/examples_nodejs_test.go @@ -9,13 +9,13 @@ import ( "github.com/pulumi/pulumi/pkg/v3/testing/integration" ) -func getJSBaseOptions(t *testing.T) integration.ProgramTestOptions { - base := getBaseOptions() - baseJS := base.With(integration.ProgramTestOptions{ - Dependencies: []string{ - "@pulumi/foo", - }, - }) +func TestCoreTs(t *testing.T) { + test := getBaseOptions(t). + With(integration.ProgramTestOptions{ + // Linked by `make install_nodejs_sdk`. + Dependencies: []string{"@dopplerhq/pulumi-doppler"}, + }). + With(coreTestOptions(t, "core-ts")) - return baseJS + integration.ProgramTest(t, &test) } diff --git a/examples/examples_py_test.go b/examples/examples_py_test.go index 7d832f4..881887a 100644 --- a/examples/examples_py_test.go +++ b/examples/examples_py_test.go @@ -10,13 +10,13 @@ import ( "github.com/pulumi/pulumi/pkg/v3/testing/integration" ) -func getPythonBaseOptions(t *testing.T) integration.ProgramTestOptions { - base := getBaseOptions() - basePython := base.With(integration.ProgramTestOptions{ - Dependencies: []string{ - filepath.Join("..", "sdk", "python", "bin"), - }, - }) +func TestCorePy(t *testing.T) { + test := getBaseOptions(t). + With(integration.ProgramTestOptions{ + // Built by `make build_python`. + Dependencies: []string{filepath.Join("..", "sdk", "python", "bin")}, + }). + With(coreTestOptions(t, "core-py")) - return basePython + integration.ProgramTest(t, &test) } diff --git a/examples/examples_test.go b/examples/examples_test.go index 9810e75..421b436 100644 --- a/examples/examples_test.go +++ b/examples/examples_test.go @@ -1,10 +1,13 @@ package examples import ( + "fmt" "os" + "path/filepath" "testing" "github.com/pulumi/pulumi/pkg/v3/testing/integration" + "github.com/stretchr/testify/assert" ) func getCwd(t *testing.T) string { @@ -16,9 +19,58 @@ func getCwd(t *testing.T) string { return cwd } -func getBaseOptions() integration.ProgramTestOptions { +// getBaseOptions configures a test that creates real resources in the Doppler workplace that +// DOPPLER_TOKEN belongs to, and skips the test when it isn't set. Set +// DOPPLER_TEST_MEMBER_EMAIL to an existing workplace user to also test group and project +// membership for users. +func getBaseOptions(t *testing.T) integration.ProgramTestOptions { + t.Helper() + if os.Getenv("DOPPLER_TOKEN") == "" { + t.Skip("DOPPLER_TOKEN is not set; skipping tests that create Doppler resources") + } + binPath, err := filepath.Abs("../bin") + if err != nil { + t.Fatal(err) + } + config := map[string]string{} + if email := os.Getenv("DOPPLER_TEST_MEMBER_EMAIL"); email != "" { + config["memberEmail"] = email + } return integration.ProgramTestOptions{ - RunUpdateTest: false, - ExpectRefreshChanges: true, + LocalProviders: []integration.LocalDependency{{Package: "doppler", Path: binPath}}, + Config: config, + // With several programs writing secrets at once, the Doppler API intermittently + // answers with a 500, and upstream doesn't retry those. CI runs one job per + // language in parallel. A retried update resumes where it failed; real drift fails + // every attempt, so this doesn't hide it. + RetryFailedSteps: true, + } +} + +// coreTestOptions runs a core- program: create, then step2/ updates values in place. +// Refreshes must find no changes, so a provider that drifts from what it wrote fails here. +func coreTestOptions(t *testing.T, dir string) integration.ProgramTestOptions { + t.Helper() + return integration.ProgramTestOptions{ + Dir: filepath.Join(getCwd(t), dir), + ExpectRefreshChanges: false, + ExtraRuntimeValidation: validateCoreOutputs("value-1"), + EditDirs: []integration.EditDir{{ + Dir: filepath.Join(getCwd(t), dir, "step2"), + Additive: true, + ExtraRuntimeValidation: validateCoreOutputs("value-2"), + }}, + } +} + +func validateCoreOutputs(apiKey string) func(t *testing.T, stack integration.RuntimeValidationStackInfo) { + return func(t *testing.T, stack integration.RuntimeValidationStackInfo) { + out := stack.Outputs + assert.Equal(t, apiKey, out["apiKeyFromFunction"], "getSecrets should return the API_KEY just written") + assert.Equal(t, []interface{}{"qa", "uat"}, out["environmentSlugs"]) + assert.Equal(t, out["projectName"], out["groupName"], "getGroup should find the group by slug") + assert.Equal(t, true, out["serviceTokenIsSecret"], "service token keys must be secret") + assert.Equal(t, true, out["serviceAccountTokenIsSecret"], "service account API keys must be secret") + fmt.Printf("validated outputs for %s\n", out["projectName"]) } } diff --git a/examples/go.mod b/examples/go.mod index 80f9289..a1fe518 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,104 +1,134 @@ -module github.com/pulumiverse/pulumi-doppler/examples +module github.com/DopplerHQ/pulumi-doppler/examples -go 1.21 +go 1.26.6 -require github.com/pulumi/pulumi/pkg/v3 v3.129.0 +require ( + github.com/pulumi/pulumi/pkg/v3 v3.270.0 + github.com/stretchr/testify v1.12.1 +) require ( - cloud.google.com/go v0.112.1 // indirect - cloud.google.com/go/compute v1.25.0 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.6 // indirect - cloud.google.com/go/kms v1.15.7 // indirect - cloud.google.com/go/logging v1.9.0 // indirect - cloud.google.com/go/longrunning v0.5.5 // indirect - cloud.google.com/go/storage v1.39.1 // indirect - dario.cat/mergo v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect - github.com/BurntSushi/toml v1.2.1 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.0.0 // indirect - github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect + cel.dev/expr v0.25.2 // indirect + cloud.google.com/go v0.123.0 // indirect + cloud.google.com/go/auth v0.22.0 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect + cloud.google.com/go/compute/metadata v0.9.0 // indirect + cloud.google.com/go/iam v1.12.0 // indirect + cloud.google.com/go/kms v1.33.0 // indirect + cloud.google.com/go/logging v1.19.0 // indirect + cloud.google.com/go/longrunning v1.2.0 // indirect + cloud.google.com/go/monitoring v1.30.0 // indirect + cloud.google.com/go/storage v1.64.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.5.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v1.7.2 // indirect + github.com/BurntSushi/toml v1.6.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.35.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.59.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.59.0 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect + github.com/ProtonMail/go-crypto v1.5.2 // indirect + github.com/VividCortex/ewma v1.2.0 // indirect + github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect github.com/agext/levenshtein v1.2.3 // indirect - github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect - github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go v1.50.36 // indirect - github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect - github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect - github.com/aws/aws-sdk-go-v2/service/kms v1.30.1 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect - github.com/aws/smithy-go v1.20.2 // indirect + github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/aws/aws-sdk-go-v2 v1.43.0 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14 // indirect + github.com/aws/aws-sdk-go-v2/config v1.32.31 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.19.30 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.31 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.31 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.31 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.32 // indirect + github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.74.4 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.13 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.31 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.32 // indirect + github.com/aws/aws-sdk-go-v2/service/kms v1.55.0 // indirect + github.com/aws/aws-sdk-go-v2/service/s3 v1.106.0 // indirect + github.com/aws/aws-sdk-go-v2/service/signin v1.5.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.33.0 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.38.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.45.0 // indirect + github.com/aws/smithy-go v1.27.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/bazelbuild/buildtools v0.0.0-20260211083412-859bfffeef82 // indirect github.com/blang/semver v3.5.1+incompatible // indirect - github.com/cenkalti/backoff/v3 v3.2.2 // indirect - github.com/charmbracelet/bubbles v0.16.1 // indirect - github.com/charmbracelet/bubbletea v0.25.0 // indirect - github.com/charmbracelet/lipgloss v0.7.1 // indirect - github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/deckarep/golang-set/v2 v2.5.0 // indirect + github.com/cenkalti/backoff/v4 v4.3.0 // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/charmbracelet/bubbles v1.0.0 // indirect + github.com/charmbracelet/bubbletea v1.3.10 // indirect + github.com/charmbracelet/colorprofile v0.4.3 // indirect + github.com/charmbracelet/lipgloss v1.1.0 // indirect + github.com/charmbracelet/x/ansi v0.11.9 // indirect + github.com/charmbracelet/x/cellbuf v0.0.15 // indirect + github.com/charmbracelet/x/term v0.2.2 // indirect + github.com/clipperhouse/displaywidth v0.11.0 // indirect + github.com/clipperhouse/uax29/v2 v2.7.0 // indirect + github.com/cloudflare/circl v1.6.3 // indirect + github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect + github.com/danieljoos/wincred v1.2.3 // indirect + github.com/deckarep/golang-set/v2 v2.9.0 // indirect github.com/djherbis/times v1.5.0 // indirect + github.com/ebitengine/purego v0.10.2 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.12.0 // indirect - github.com/go-jose/go-jose/v3 v3.0.3 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect + github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect + github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect + github.com/felixge/httpsnoop v1.1.0 // indirect + github.com/git-pkgs/manifests v0.4.1 // indirect + github.com/git-pkgs/packageurl-go v0.3.1 // indirect + github.com/git-pkgs/purl v0.1.10 // indirect + github.com/git-pkgs/vers v0.2.4 // indirect + github.com/go-git/gcfg/v2 v2.0.2 // indirect + github.com/go-git/go-billy/v6 v6.0.0-beta.1 // indirect + github.com/go-git/go-git/v6 v6.0.0-beta.1 // indirect + github.com/go-jose/go-jose/v4 v4.1.4 // indirect + github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-test/deep v1.1.1 // indirect + github.com/godbus/dbus/v5 v5.2.2 // indirect github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/golang/glog v1.2.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.4 // indirect + github.com/golang-jwt/jwt/v5 v5.3.1 // indirect + github.com/golang/glog v1.2.5 // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/s2a-go v0.1.7 // indirect + github.com/google/go-tpm v0.9.8 // indirect + github.com/google/s2a-go v0.1.9 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/google/wire v0.6.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.2 // indirect + github.com/google/wire v0.7.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.19 // indirect + github.com/googleapis/gax-go/v2 v2.23.0 // indirect github.com/gorilla/mux v1.8.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.32.0 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-retryablehttp v0.7.7 // indirect + github.com/hashicorp/go-retryablehttp v0.7.8 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect - github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 // indirect + github.com/hashicorp/go-secure-stdlib/parseutil v0.2.0 // indirect github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect - github.com/hashicorp/go-sockaddr v1.0.6 // indirect - github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.17.0 // indirect - github.com/hashicorp/vault/api v1.12.0 // indirect + github.com/hashicorp/go-sockaddr v1.0.7 // indirect + github.com/hashicorp/go-version v1.9.0 // indirect + github.com/hashicorp/hcl v1.0.1-vault-7 // indirect + github.com/hashicorp/hcl/v2 v2.24.0 // indirect + github.com/hashicorp/vault/api v1.22.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect - github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kevinburke/ssh_config v1.2.0 // indirect + github.com/kevinburke/ssh_config v1.6.0 // indirect + github.com/klauspost/compress v1.18.7 // indirect github.com/kylelemons/godebug v1.1.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect + github.com/lucasb-eyer/go-colorful v1.4.1 // indirect + github.com/mattn/go-isatty v0.0.24 // indirect github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.31 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect @@ -106,74 +136,89 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/reflow v0.3.0 // indirect - github.com/muesli/termenv v0.15.2 // indirect + github.com/muesli/termenv v0.16.0 // indirect github.com/natefinch/atomic v1.0.1 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pgavlin/fx v0.1.6 // indirect + github.com/pgavlin/fx/v2 v2.0.12 // indirect github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect - github.com/pjbgf/sha1cd v0.3.0 // indirect + github.com/pjbgf/sha1cd v0.7.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.129.0 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/pulumi/inflector v0.1.1 // indirect + github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.270.0 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect github.com/segmentio/asm v1.1.3 // indirect github.com/segmentio/encoding v0.3.5 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect - github.com/skeema/knownhosts v1.2.2 // indirect - github.com/spf13/cobra v1.8.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.9.0 // indirect + github.com/sergi/go-diff v1.4.0 // indirect + github.com/spf13/afero v1.15.0 // indirect + github.com/spf13/cobra v1.10.2 // indirect + github.com/spf13/pflag v1.0.10 // indirect + github.com/spiffe/go-spiffe/v2 v2.8.1 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/xanzy/ssh-agent v0.3.3 // indirect + github.com/vbauerster/cupwriter v0.0.4 // indirect + github.com/vbauerster/mpb/v8 v8.15.2 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/zclconf/go-cty v1.13.2 // indirect - go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect - go.opentelemetry.io/otel v1.24.0 // indirect - go.opentelemetry.io/otel/metric v1.24.0 // indirect - go.opentelemetry.io/otel/trace v1.24.0 // indirect - go.uber.org/atomic v1.9.0 // indirect - gocloud.dev v0.37.0 // indirect - gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.25.0 // indirect - golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/oauth2 v0.18.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/term v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.22.0 // indirect - golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect - google.golang.org/api v0.169.0 // indirect - google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect - gopkg.in/warnings.v0 v0.1.2 // indirect + github.com/xo/terminfo v1.2.0 // indirect + github.com/zalando/go-keyring v0.2.8 // indirect + github.com/zclconf/go-cty v1.16.3 // indirect + go.mongodb.org/mongo-driver v1.17.10 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/collector/featuregate v1.69.0 // indirect + go.opentelemetry.io/collector/pdata v1.69.0 // indirect + go.opentelemetry.io/contrib/bridges/otelslog v0.21.0 // indirect + go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.72.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 // indirect + go.opentelemetry.io/otel v1.47.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.23.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.47.0 // indirect + go.opentelemetry.io/otel/log v1.47.0 // indirect + go.opentelemetry.io/otel/metric v1.47.0 // indirect + go.opentelemetry.io/otel/sdk v1.47.0 // indirect + go.opentelemetry.io/otel/sdk/log v1.47.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.47.0 // indirect + go.opentelemetry.io/otel/trace v1.47.0 // indirect + go.opentelemetry.io/proto/otlp v1.11.1 // indirect + go.uber.org/atomic v1.12.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + go.yaml.in/yaml/v3 v3.0.5 // indirect + gocloud.dev v0.46.1-0.20260810195832-b5401c07b5f1 // indirect + gocloud.dev/secrets/hashivault v0.46.0 // indirect + golang.org/x/crypto v0.58.0 // indirect + golang.org/x/mod v0.42.0 // indirect + golang.org/x/net v0.61.0 // indirect + golang.org/x/oauth2 v0.36.0 // indirect + golang.org/x/sync v0.24.0 // indirect + golang.org/x/sys v0.49.0 // indirect + golang.org/x/term v0.47.0 // indirect + golang.org/x/text v0.43.0 // indirect + golang.org/x/time v0.15.0 // indirect + golang.org/x/tools v0.52.0 // indirect + golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect + google.golang.org/api v0.290.0 // indirect + google.golang.org/genproto v0.0.0-20260724162435-b2f20204f0df // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20261012220534-4341edf3f941 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941 // indirect + google.golang.org/grpc v1.84.0 // indirect + google.golang.org/protobuf v1.36.12 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/frand v1.4.2 // indirect + lukechampine.com/frand v1.5.1 // indirect ) diff --git a/examples/go.sum b/examples/go.sum index d9d59af..fdbc3ea 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1,228 +1,250 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM= -cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= -cloud.google.com/go/compute v1.25.0 h1:H1/4SqSUhjPFE7L5ddzHOfY2bCAvjwNRZPNl6Ni5oYU= -cloud.google.com/go/compute v1.25.0/go.mod h1:GR7F0ZPZH8EhChlMo9FkLd7eUTwEymjqQagxzilIxIE= -cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -cloud.google.com/go/iam v1.1.6 h1:bEa06k05IO4f4uJonbB5iAgKTPpABy1ayxaIZV/GHVc= -cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= -cloud.google.com/go/kms v1.15.7 h1:7caV9K3yIxvlQPAcaFffhlT7d1qpxjB1wHBtjWa13SM= -cloud.google.com/go/kms v1.15.7/go.mod h1:ub54lbsa6tDkUwnu4W7Yt1aAIFLnspgh0kPGToDukeI= -cloud.google.com/go/logging v1.9.0 h1:iEIOXFO9EmSiTjDmfpbRjOxECO7R8C7b8IXUGOj7xZw= -cloud.google.com/go/logging v1.9.0/go.mod h1:1Io0vnZv4onoUnsVUQY3HZ3Igb1nBchky0A0y7BBBhE= -cloud.google.com/go/longrunning v0.5.5 h1:GOE6pZFdSrTb4KAiKnXsJBtlE6mEyaW44oKyMILWnOg= -cloud.google.com/go/longrunning v0.5.5/go.mod h1:WV2LAxD8/rg5Z1cNW6FJ/ZpX4E4VnDnoTk0yawPBB7s= -cloud.google.com/go/storage v1.39.1 h1:MvraqHKhogCOTXTlct/9C3K3+Uy2jBmFYb3/Sp6dVtY= -cloud.google.com/go/storage v1.39.1/go.mod h1:xK6xZmxZmo+fyP7+DEF6FhNc24/JAe95OLyOHCXFH1o= -dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= -dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqbjDYsgN+RzP4q16yV5eM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 h1:U2rTu3Ef+7w9FHKIAXM6ZyqF3UOWJZ12zIm8zECAFfg= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 h1:m/sWOGCREuSBqg2htVQTBY8nOZpyajYztF0vUvSZTuM= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0/go.mod h1:Pu5Zksi2KrU7LPbZbNINx6fuVrUp/ffvpxdDj+i8LeE= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= -github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +cel.dev/expr v0.25.2 h1:K6j46C81hXtZQfuX60cVWQFBJahKSE2gfRbNuvr5bFs= +cel.dev/expr v0.25.2/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= +cloud.google.com/go v0.123.0 h1:2NAUJwPR47q+E35uaJeYoNhuNEM9kM8SjgRgdeOJUSE= +cloud.google.com/go v0.123.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU= +cloud.google.com/go/auth v0.22.0 h1:Xp9wAKkLoeaYb5pYZZoQGz4E9sdPxIbzS3gywZE3ciQ= +cloud.google.com/go/auth v0.22.0/go.mod h1:M9o2Oz+YI2jAfxewJgb1vyI3vceHF+eohmxyzmrl+9s= +cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= +cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= +cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= +cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= +cloud.google.com/go/iam v1.12.0 h1:Aki3bX9aHUDKPHfnRJfDcTdVedvy6quGBQcTqx3DRXk= +cloud.google.com/go/iam v1.12.0/go.mod h1:FEZ4lXpADAC2AIpQY7LANNjjwyQ2jK439CI2VaD+sLY= +cloud.google.com/go/kms v1.33.0 h1:pG0X78m212b2pv9N4fdMoUO69LuZGQ9kSvn8sHBOFAo= +cloud.google.com/go/kms v1.33.0/go.mod h1:CSGvW6GnMQbY+1nOHcIzhMtHSbExXlOmCKjWtYVjcpA= +cloud.google.com/go/logging v1.19.0 h1:NCqhdVUg3wQ8Cobdf16FDSuTGi3+6+hdSBHrY5TsR6Q= +cloud.google.com/go/logging v1.19.0/go.mod h1:i40NZCHC9Gqvod4yE+yQfDWwlgwW/SrshkkGibCHxcA= +cloud.google.com/go/longrunning v1.2.0 h1:WjYH3YHBGCxGJP9M4dWGHBfXr/cFIjMkNgWcJj7/iMM= +cloud.google.com/go/longrunning v1.2.0/go.mod h1:5KMQALFGOCtFoi2xSOA1u3H7WKlhmckgiyFw7+LGQp0= +cloud.google.com/go/monitoring v1.30.0 h1:r/d+JUbyKmJ8b07iznuKfzVzrIXTWxHQ3lBRm3x2LlY= +cloud.google.com/go/monitoring v1.30.0/go.mod h1:htlUR0QWVMrjFzZmN4LGnMAve9xB/eduwjmINxVZ8RM= +cloud.google.com/go/storage v1.64.0 h1:KLpxI/oX9LxeRsNqn877d2WyeT3ryiEwnGt8pwcSPZg= +cloud.google.com/go/storage v1.64.0/go.mod h1:lWyAtwvDZHdL3k68WVKbESP6bmWaV23ZJJ/JEVw/ZaQ= +cloud.google.com/go/trace v1.16.0 h1:GmQovzFc5F0CNfl0VLgL64aoTtu7xsM0YajW2GlG9+E= +cloud.google.com/go/trace v1.16.0/go.mod h1:r+bdAn16dKLSV1G2D5v3e58IlQlizfxWrUfjx7kM7X0= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0 h1:aokoqcHvaGjiM3VpjKDfMMnF/8epJ+Q1HLJ7CudztqE= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0/go.mod h1:/WYEx9pcM9Y+Dd/APJaNlSvVSvzl54rrMdZT5+Oi2LM= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0 h1:CU4+EJeJi3TKYWEcYuSdWsjzw0nVsK/H0MSQOiPcymU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0/go.mod h1:q0+UTSRvShwUCrR/s5HtyInYphN7Wvxb7snFM3u+SLA= +github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0 h1:xFaZZ+IubdftrDHnGGwZ6QvQ3KHTtWl2MCK+GMt2vxs= +github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0/go.mod h1:mCBhUhlMjLLJKr5aqw2TNS/VqJOie8MzWq3DAMJeKso= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 h1:fhqpLE3UEXi9lPaBRpQ6XuRW0nU7hgg4zlmZZa+a9q4= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0/go.mod h1:7dCRMLwisfRH3dBupKeNCioWYUZ4SS09Z14H+7i8ZoY= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.5.0 h1:MaKvxE6D0KkjOg6Wd9M00iqP5PR0kUxCfiezes4JweM= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.5.0/go.mod h1:i2h9fsTFKZorh8RdV2IcSUf/Qj98GlTkrTvUbX/s8as= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.2.0 h1:nCYfgcSyHZXJI8J0IWE5MsCGlb2xp9fJiXyxWgmOFg4= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.2.0/go.mod h1:ucUjca2JtSZboY8IoUqyQyuuXvwbMBVwFOm0vdQPNhA= +github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= +github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE= +github.com/AzureAD/microsoft-authentication-library-for-go v1.7.2 h1:RHK7bS+HQMslb1sZpAokUt+zTVmue0hKSs2C791hhzU= +github.com/AzureAD/microsoft-authentication-library-for-go v1.7.2/go.mod h1:HKpQxkWaGLJ+D/5H8QRpyQXA1eKjxkFlOMwck5+33Jk= +github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= +github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.35.0 h1:bN1gA3of5bXtbnLsRPrwfmbbe7A5UWFlcTHseujLnpc= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.35.0/go.mod h1:Yj5vHEz/aAepZGliRJsA6uvHAVAQyEwajq9ORCHPxzM= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.59.0 h1:c/Ivw7FuawPLfrr+zB0LZKeCchO2cAHQpF2qZ6OV7rQ= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.59.0/go.mod h1:Zba7lknY/d78oxbKqFTmCsaGwfpzeJ3ktrrLXtnTV6g= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.59.0 h1:xTXsqDOj5k9mK3VVWHYUryryJCIdYfXxdjKFwpzINUw= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.59.0/go.mod h1:V9g30lTKzfUsEW+gpWssck6u9IhARajmipodImLLcwI= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.59.0 h1:18FRm6ZcN/x9+ZmhMr96hLcTtlLn2/gHPuDLVeg7XcY= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.59.0/go.mod h1:YqwkQPrWSC7+byyc1VlKbWLBF5JsW5IoL6xUkemYSXk= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= -github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= -github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= -github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= -github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= -github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= -github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/ProtonMail/go-crypto v1.5.2 h1:cucYnvqcY7UOXVD//mSyjeaPY0SSN3v5cDkYPxumINk= +github.com/ProtonMail/go-crypto v1.5.2/go.mod h1:/RaSu30DaKO4RY+XdV/ACcCcZkGr7AhUIduq5sjzzCo= +github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow= +github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4= +github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8= +github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= -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-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= +github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= -github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= -github.com/aws/aws-sdk-go v1.50.36 h1:PjWXHwZPuTLMR1NIb8nEjLucZBMzmf84TLoLbD8BZqk= -github.com/aws/aws-sdk-go v1.50.36/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= -github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+EkA= -github.com/aws/aws-sdk-go-v2 v1.26.1/go.mod h1:ffIFB97e2yNsv4aTSGkqtHnppsIJzw7G7BReUZ3jCXM= -github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 h1:x6xsQXGSmW6frevwDA+vi/wqhp1ct18mVXYN08/93to= -github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2/go.mod h1:lPprDr1e6cJdyYeGXnRaJoP4Md+cDBvi2eOj00BlGmg= -github.com/aws/aws-sdk-go-v2/config v1.27.11 h1:f47rANd2LQEYHda2ddSCKYId18/8BhSRM4BULGmfgNA= -github.com/aws/aws-sdk-go-v2/config v1.27.11/go.mod h1:SMsV78RIOYdve1vf36z8LmnszlRWkwMQtomCAI0/mIE= -github.com/aws/aws-sdk-go-v2/credentials v1.17.11 h1:YuIB1dJNf1Re822rriUOTxopaHHvIq0l/pX3fwO+Tzs= -github.com/aws/aws-sdk-go-v2/credentials v1.17.11/go.mod h1:AQtFPsDH9bI2O+71anW6EKL+NcD7LG3dpKGMV4SShgo= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 h1:FVJ0r5XTHSmIHJV6KuDmdYhEpvlHpiSd38RQWhut5J4= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1/go.mod h1:zusuAeqezXzAB24LGuzuekqMAEgWkVYukBec3kr3jUg= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 h1:7Zwtt/lP3KNRkeZre7soMELMGNoBrutx8nobg1jKWmo= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15/go.mod h1:436h2adoHb57yd+8W+gYPrrA9U/R/SuAuOO42Ushzhw= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 h1:aw39xVGeRWlWx9EzGVnhOR4yOjQDHPQ6o6NmBlscyQg= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5/go.mod h1:FSaRudD0dXiMPK2UjknVwwTYyZMRsHv3TtkabsZih5I= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 h1:PG1F3OD1szkuQPzDw3CIQsRIrtTlUC3lP84taWzHlq0= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5/go.mod h1:jU1li6RFryMz+so64PpKtudI+QzbKoIEivqdf6LNpOc= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5 h1:81KE7vaZzrl7yHBYHVEzYB8sypz11NMOZ40YlWvPxsU= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5/go.mod h1:LIt2rg7Mcgn09Ygbdh/RdIm0rQ+3BNkbP1gyVMFtRK0= +github.com/aws/aws-sdk-go-v2 v1.43.0 h1:fharf/WhbRAVZ1du0QL7roNFxZ6T/sWr+4Ni617bwSI= +github.com/aws/aws-sdk-go-v2 v1.43.0/go.mod h1:5pKeft2eJj+gElQ38Jqg4ibCqh+/AK33/0X3hip7IjM= +github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14 h1:3IZY0XAJquT3aHzbkHfPzy4ACPcEjVG0x87KOwtpqGY= +github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14/go.mod h1:zwM6veDkhGgQFqkBy+uT28AAYpLu+uFMlPl+rCg/73E= +github.com/aws/aws-sdk-go-v2/config v1.32.31 h1:n4nY9O3QKoHIkL85EX+V8RcMFtOhlpTFhGArg915PXk= +github.com/aws/aws-sdk-go-v2/config v1.32.31/go.mod h1:PN0NYDCCoOpGGsZ2+elDUidmHfQBPyYzN2GCgl8HEBs= +github.com/aws/aws-sdk-go-v2/credentials v1.19.30 h1:TTCvvzFU6gXa4iJecNG/0F/B0oYTiazoRECr2XyLHrY= +github.com/aws/aws-sdk-go-v2/credentials v1.19.30/go.mod h1:jKxAp2AEncnliinzpgOSZDFv6+VjvWhjw/AtbfsWT9U= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.31 h1:kfVL5wAunCJycL6MOQ6aNh6PlAYEymflcjuKmrWUA0o= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.31/go.mod h1:nWfRNDAppujCQgOUd43lKT4yeLv9z3nJ3bw1G3BgQKo= +github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.3.5 h1:7ZFdtE1XEHH+58GZU4Mbhq6SO/UbColleDApOtlv3vo= +github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.3.5/go.mod h1:M/qt7xBBXqilBwNmrO1yiu0cywZwQx5aqtKpdJN9J2A= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.31 h1:Z8F3hfCY33IGpJjFAnv0wvtv1FIKj1GHmRDEYqy64tw= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.31/go.mod h1:aVyUoytEyOViR6jhq6jula0xkc5NfBE2hgeF6BvOrao= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.31 h1:hyOxUyXdh3AyjE93gBgsfziJag9ACwcs+ZpDBLzi8mw= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.31/go.mod h1:OERqI9k0draSLB8O8woxY3q25ZWTELRK4RRoLMuMZFo= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.32 h1:0MrUL35H/Y4kdFfItoR5jCgtDQ4Z/8LudAoIHRfA4hE= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.32/go.mod h1:2tNZkuWz54arj8mHVf+8Y7cKkcD8Wr/fBpENgEXpjLc= +github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.74.4 h1:4GBRq2ZWJkOy6S4HRNuJJpaZ5KXPNIDe/QJysoyXglI= +github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.74.4/go.mod h1:Op4lD9kBH1InUC+DxIALi0ALAASdpY71vRdtevYFVrs= github.com/aws/aws-sdk-go-v2/service/iam v1.31.4 h1:eVm30ZIDv//r6Aogat9I88b5YX1xASSLcEDqHYRPVl0= github.com/aws/aws-sdk-go-v2/service/iam v1.31.4/go.mod h1:aXWImQV0uTW35LM0A/T4wEg6R1/ReXUu4SM6/lUHYK0= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 h1:Ji0DY1xUsUr3I8cHps0G+XM3WWU16lP6yG8qu1GAZAs= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2/go.mod h1:5CsjAbs3NlGQyZNFACh+zztPDI7fU6eW9QsxjfnuBKg= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7 h1:ZMeFZ5yk+Ek+jNr1+uwCd2tG89t6oTS5yVWpa6yy2es= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7/go.mod h1:mxV05U+4JiHqIpGqqYXOHLPKUC6bDXC44bsUhNjOEwY= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 h1:ogRAwT1/gxJBcSWDMZlgyFUM962F51A5CRhDLbxLdmo= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7/go.mod h1:YCsIZhXfRPLFFCl5xxY+1T9RKzOKjCut+28JSX2DnAk= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5 h1:f9RyWNtS8oH7cZlbn+/JNPpjUk5+5fLd5lM9M0i49Ys= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5/go.mod h1:h5CoMZV2VF297/VLhRhO1WF+XYWOzXo+4HsObA4HjBQ= -github.com/aws/aws-sdk-go-v2/service/kms v1.30.1 h1:SBn4I0fJXF9FYOVRSVMWuhvEKoAHDikjGpS3wlmw5DE= -github.com/aws/aws-sdk-go-v2/service/kms v1.30.1/go.mod h1:2snWQJQUKsbN66vAawJuOGX7dr37pfOq9hb0tZDGIqQ= -github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 h1:6cnno47Me9bRykw9AEv9zkXE+5or7jz8TsskTTccbgc= -github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1/go.mod h1:qmdkIIAC+GCLASF7R2whgNrJADz0QZPX+Seiw/i4S3o= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 h1:vN8hEbpRnL7+Hopy9dzmRle1xmDc7o8tmY0klsr175w= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.5/go.mod h1:qGzynb/msuZIE8I75DVRCUXw3o3ZyBmUvMwQ2t/BrGM= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 h1:Jux+gDDyi1Lruk+KHF91tK2KCuY61kzoCpvtvJJBtOE= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4/go.mod h1:mUYPBhaF2lGiukDEjJX2BLRRKTmoUSitGDUgM4tRxak= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 h1:cwIxeBttqPN3qkaAjcEcsh8NYr8n2HZPkcKgPAi1phU= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.6/go.mod h1:FZf1/nKNEkHdGGJP/cI2MoIMquumuRK6ol3QQJNDxmw= -github.com/aws/smithy-go v1.20.2 h1:tbp628ireGtzcHDDmLT/6ADHidqnwgF57XOXZe6tp4Q= -github.com/aws/smithy-go v1.20.2/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.13 h1:mbRIur/BiHK6SKPjoBIXSE/hJ6g6JGRLuxQy1jGjlN4= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.13/go.mod h1:ITg9em2KbJx1s0y4aqRX5OYWG6HBZ5TVR//OdpEZ2CQ= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.24 h1:mdPwDQPqxlw9Sc62Nt15yjEcARaDbPXkjRYtXsUripo= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.24/go.mod h1:ls5ytnwLTcQaUu32fMYXFI3MjpKuTwL840PAm9iqyEg= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.31 h1:w2SIhW92DZPFrSL4ksVCr8IYff5OZwIcxg8+95tzvAI= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.31/go.mod h1:wAhpCQbkov+IcvjozJbd2xRCoZybUEHNkcFunssNACg= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.32 h1:jWXtZdCnhXa9sGFixRaU2AxT4DIVse9HS4E2f+/KwV0= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.32/go.mod h1:9JS1UpfVvyD/ZPX8GsKb/Pq8scEM+7GP5fqh9SwH7po= +github.com/aws/aws-sdk-go-v2/service/kms v1.55.0 h1:uB8ymkVosyourmGXCZHyWhJ4wuKA4xq3ii2dVMPtBZY= +github.com/aws/aws-sdk-go-v2/service/kms v1.55.0/go.mod h1:rK4RITSY/qJw3qVJ7p19fceOWuvrisqqOChFkX05n5I= +github.com/aws/aws-sdk-go-v2/service/s3 v1.106.0 h1:7QZWVJZWzHivHWIa+5TELLaBBkbuoj0GPwQtMlJ0sqk= +github.com/aws/aws-sdk-go-v2/service/s3 v1.106.0/go.mod h1:fcvq5L7dK+5cQFicEJwpI6e6Wn8NY2i6yT5wRLYVc7s= +github.com/aws/aws-sdk-go-v2/service/signin v1.5.0 h1:OHH5iTQvVGmfHjX/5Q+vFuA/Rf2x6/95aJ/75QCQSm4= +github.com/aws/aws-sdk-go-v2/service/signin v1.5.0/go.mod h1:mCF3AK9PpL49oOrhniUXWAfhVBVQ/XbytoE5eccZUIs= +github.com/aws/aws-sdk-go-v2/service/sso v1.33.0 h1:CaJyYhxBE0M/HJX/YvSaSmQlsI91VHB0lKU8LtLxL3A= +github.com/aws/aws-sdk-go-v2/service/sso v1.33.0/go.mod h1:+e6BMRMPjBQoCw/WovYR9GLy2IU0z4Q77smOB1DraSg= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.38.0 h1:tC323YV77QdafeBr6LUhLDTsboyuyHLNRwAyCP44kGU= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.38.0/go.mod h1:SfLK1sgviHmbI+MozR9iDwDjL4cdCVZtahsjoR+z7wg= +github.com/aws/aws-sdk-go-v2/service/sts v1.45.0 h1:Pd6PNlp4t8PTXxqzstICl52Wsy78vpjFZ7PRUj44mJc= +github.com/aws/aws-sdk-go-v2/service/sts v1.45.0/go.mod h1:rmQ0TnHzuLPmabgjPcsywhsSOmaBDgzR4zvDxSPsGdg= +github.com/aws/smithy-go v1.27.4 h1:JQcphmBN4f0q/sPqXqROIItRNV/hy10cgu7CsFy616M= +github.com/aws/smithy-go v1.27.4/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/bazelbuild/buildtools v0.0.0-20260211083412-859bfffeef82 h1:PmoVmwzAnGb0iCjulb7Mgsaqw2Wj36LQJ8VyYaFe/ak= +github.com/bazelbuild/buildtools v0.0.0-20260211083412-859bfffeef82/go.mod h1:PLNUetjLa77TCCziPsz0EI8a6CUxgC+1jgmWv0H25tg= github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/cenkalti/backoff/v3 v3.2.2 h1:cfUAAO3yvKMYKPrvhDuHSwQnhZNk/RMHKdZqKTxfm6M= -github.com/cenkalti/backoff/v3 v3.2.2/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY= -github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc= -github.com/charmbracelet/bubbletea v0.25.0 h1:bAfwk7jRz7FKFl9RzlIULPkStffg5k6pNt5dywy4TcM= -github.com/charmbracelet/bubbletea v0.25.0/go.mod h1:EN3QDR1T5ZdWmdfDzYcqOCAps45+QIJbLOBxmVNWNNg= -github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E= -github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c= -github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= -github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= -github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY= -github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk= -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= -github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= +github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charmbracelet/bubbles v1.0.0 h1:12J8/ak/uCZEMQ6KU7pcfwceyjLlWsDLAxB5fXonfvc= +github.com/charmbracelet/bubbles v1.0.0/go.mod h1:9d/Zd5GdnauMI5ivUIVisuEm3ave1XwXtD1ckyV6r3E= +github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw= +github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4= +github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q= +github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q= +github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= +github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30= +github.com/charmbracelet/x/ansi v0.11.9 h1:kIrqLBxtTVbLyyHO2Evoi93EjQo1mylWmpNEsfPxXAM= +github.com/charmbracelet/x/ansi v0.11.9/go.mod h1:DG/hpOnaI2QJ/KMMqLL2h0KVhluuJLazf8973P+Vy5w= +github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI= +github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q= +github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= +github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= +github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= +github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= +github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= +github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= +github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= +github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= +github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 h1:aBangftG7EVZoUb69Os8IaYg++6uMOdKK83QtkkvJik= +github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2/go.mod h1:qwXFYgsP6T7XnJtbKlf1HP8AjxZZyzxMmc+Lq5GjlU4= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= +github.com/danieljoos/wincred v1.2.3/go.mod h1:6qqX0WNrS4RzPZ1tnroDzq9kY3fu1KwE7MRLQK4X0bs= 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/deckarep/golang-set/v2 v2.5.0 h1:hn6cEZtQ0h3J8kFrHR/NrzyOoTnjgW1+FmNJzQ7y/sA= -github.com/deckarep/golang-set/v2 v2.5.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/deckarep/golang-set/v2 v2.9.0 h1:prva4eP9UysWagLyKrtn074ughi0NnkIf0A4M5yOCKI= +github.com/deckarep/golang-set/v2 v2.9.0/go.mod h1:EWknQXbs0mcFpat2QOoXV0Ee57cD+w6ZEN76BR2JVrM= github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= +github.com/ebitengine/purego v0.10.2 h1:W809HbnvzAxgdm+aOvlSekrM16wGCdT/e76+9tS7gzE= +github.com/ebitengine/purego v0.10.2/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ= github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q= -github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a h1:mATvB/9r/3gvcejNsXKSkQ6lcIaNec2nyfOdlTBR2lU= -github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -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/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= -github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= -github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= -github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= -github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= -github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= -github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= -github.com/go-jose/go-jose/v3 v3.0.3 h1:fFKWeig/irsp7XD2zBxvnmA/XaRWp5V3CBsZXJF7G7k= -github.com/go-jose/go-jose/v3 v3.0.3/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= +github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA= +github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU= +github.com/envoyproxy/go-control-plane/envoy v1.37.0 h1:u3riX6BoYRfF4Dr7dwSOroNfdSbEPe9Yyl09/B6wBrQ= +github.com/envoyproxy/go-control-plane/envoy v1.37.0/go.mod h1:DReE9MMrmecPy+YvQOAOHNYMALuowAnbjjEMkkWOi6A= +github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= +github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4= +github.com/envoyproxy/protoc-gen-validate v1.3.3 h1:MVQghNeW+LZcmXe7SY1V36Z+WFMDjpqGAGacLe2T0ds= +github.com/envoyproxy/protoc-gen-validate v1.3.3/go.mod h1:TsndJ/ngyIdQRhMcVVGDDHINPLWB7C82oDArY51KfB0= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= +github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= +github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc= +github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE= +github.com/git-pkgs/manifests v0.4.1 h1:CWml+TrRXVzrfNJ2pTNKLqyi+9y/BFiQP/BX3pL4pPQ= +github.com/git-pkgs/manifests v0.4.1/go.mod h1:7SPFwU9diUG1Az682/p4ZupHJkfpbWKwRvNPwCcOeVs= +github.com/git-pkgs/packageurl-go v0.3.1 h1:WM3RBABQZLaRBxgKyYughc3cVBE8KyQxbSC6Jt5ak7M= +github.com/git-pkgs/packageurl-go v0.3.1/go.mod h1:rcIxiG37BlQLB6FZfgdj9Fm7yjhRQd3l+5o7J0QPAk4= +github.com/git-pkgs/purl v0.1.10 h1:NMjeF10nzFn3tdQlz6rbmHB+i+YkyrFQxho3e33ePTQ= +github.com/git-pkgs/purl v0.1.10/go.mod h1:C5Vp/kyZ/wGckCLexx4wPVfUxEiToRkdsOPh5Z7ig/I= +github.com/git-pkgs/vers v0.2.4 h1:Zr3jR/Xf1i/6cvBaJKPxhCwjzqz7uvYHE0Fhid/GPBk= +github.com/git-pkgs/vers v0.2.4/go.mod h1:biTbSQK1qdbrsxDEKnqe3Jzclxz8vW6uDcwKjfUGcOo= +github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= +github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= +github.com/go-git/gcfg/v2 v2.0.2 h1:MY5SIIfTGGEMhdA7d7JePuVVxtKL7Hp+ApGDJAJ7dpo= +github.com/go-git/gcfg/v2 v2.0.2/go.mod h1:/lv2NsxvhepuMrldsFilrgct6pxzpGdSRC13ydTLSLs= +github.com/go-git/go-billy/v6 v6.0.0-beta.1 h1:OJ4r207zcEbeq/DJNajQUOMd+pph3r9A7hRq1Sjl1bA= +github.com/go-git/go-billy/v6 v6.0.0-beta.1/go.mod h1:QGOWN4CzmtRfpFeCw5paG3RJyKdTwsfGASkxBVkIaAU= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 h1:gmqi2jvsreu0s8JMLylYDFq4sbjHwwlhktMw0DUg3mA= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1/go.mod h1:ECf1MqJlBdYpKggBrOXjo/0EnvRZx6D++I86UYjPgAQ= +github.com/go-git/go-git/v6 v6.0.0-beta.1 h1:1t+vJYGDBN6f9GRWskgWx5UjXPFUa7wfffZZZ2C5GtA= +github.com/go-git/go-git/v6 v6.0.0-beta.1/go.mod h1:ugDlr38Wwc+fOw85J+Oluh5TNXQtJgYMcriOljg3l4s= +github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA= +github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -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/go-test/deep v1.1.1 h1:0r/53hagsehfO4bzD2Pgr/+RgHqhmf+k1Bpse2cTu1U= +github.com/go-test/deep v1.1.1/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= +github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= -github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= -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/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -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.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= +github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= +github.com/golang/glog v1.2.5 h1:DrW6hGnjIhtvhOIiAKT6Psh/Kd/ldepEa81DKeiRJ5I= +github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -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.5.0/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.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -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-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= 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/go-replayers/grpcreplay v1.1.0 h1:S5+I3zYyZ+GQz68OfbURDdt/+cSMqCK1wrvNx7WBzTE= -github.com/google/go-replayers/grpcreplay v1.1.0/go.mod h1:qzAvJ8/wi57zq7gWqaE6AwLM6miiXUQwP1S+I9icmhk= +github.com/google/go-replayers/grpcreplay v1.3.0 h1:1Keyy0m1sIpqstQmgz307zhiJ1pV4uIlFds5weTmxbo= +github.com/google/go-replayers/grpcreplay v1.3.0/go.mod h1:v6NgKtkijC0d3e3RW8il6Sy5sqRVUwoQa4mHOGEy8DI= github.com/google/go-replayers/httpreplay v1.2.0 h1:VM1wEyyjaoU53BwrOnaf9VhAyQQEEioJvFYxYcLRKzk= github.com/google/go-replayers/httpreplay v1.2.0/go.mod h1:WahEFFZZ7a1P4VM1qEeHy+tME4bwyqPcwWbNlUI1Mcg= +github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo= +github.com/google/go-tpm v0.9.8/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba h1:qJEJcuLzH5KDR0gKc0zcktin6KSAwL7+jWKBYceddTc= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba/go.mod h1:EFYHy8/1y2KfgTAsx7Luu7NGhoxtuVHnNo8jE7FikKc= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -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/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= -github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= -github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/martian/v3 v3.3.3 h1:DIhPTQrbPkgs2yJYdXU/eNACCG5DVQjySNRNlflZ9Fc= +github.com/google/martian/v3 v3.3.3/go.mod h1:iEPrYcgCF7jA9OtScMFQyAlZZ4YXTKEtJ1E6RWzmBA0= +github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= +github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/wire v0.6.0 h1:HBkoIh4BdSxoyo9PveV8giw7ZsaBOvzWKfcg/6MrVwI= -github.com/google/wire v0.6.0/go.mod h1:F4QhpQ9EDIdJ1Mbop/NZBRB+5yrR6qg3BnctaoUk6NA= -github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= -github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= -github.com/googleapis/gax-go/v2 v2.12.2 h1:mhN09QQW1jEWeMF74zGR81R30z4VJzjZsfkUhuHF+DA= -github.com/googleapis/gax-go/v2 v2.12.2/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= +github.com/google/wire v0.7.0 h1:JxUKI6+CVBgCO2WToKy/nQk0sS+amI9z9EjVmdaocj4= +github.com/google/wire v0.7.0/go.mod h1:n6YbUQD9cPKTnHXEBN2DXlOp/mVADhVErcMFb0v3J18= +github.com/googleapis/enterprise-certificate-proxy v0.3.19 h1:mMOE7DN2+p76/EdIrmAy9B9bH+yC4563vmnJ34QR8i4= +github.com/googleapis/enterprise-certificate-proxy v0.3.19/go.mod h1:rSEsBUemEBZEexP2y6jPp16LUmUbjmSbcPMQizR0o4k= +github.com/googleapis/gax-go/v2 v2.23.0 h1:Tchl7qkvE7Ip3y+ztvNufYFvkfqTe7NfLTYGIdJRLuE= +github.com/googleapis/gax-go/v2 v2.23.0/go.mod h1:rBQKOVJCdb8IFEzg+FCwlt1LP/xMDGuqUXhUG+XMXEg= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.32.0 h1:QMILzF8BA7xftE4zVORkRrlv08m12St3csK4RsyRgRs= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.32.0/go.mod h1:+ZQ6iUL8+ATyxGDQNuRKpNwJFdGDUi0e7E1QL9MvI7U= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -234,37 +256,39 @@ github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB1 github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= -github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= +github.com/hashicorp/go-retryablehttp v0.7.8 h1:ylXZWnqa7Lhqpk0L1P1LzDtGcCR0rPVUrx/c8Unxc48= +github.com/hashicorp/go-retryablehttp v0.7.8/go.mod h1:rjiScheydd+CxvumBsIrFKlx3iS0jrZ7LvzFGFmuKbw= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 h1:iBt4Ew4XEGLfh6/bPk4rSYmuZJGizr6/x/AEizP0CQc= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8/go.mod h1:aiJI+PIApBRQG7FZTEBx5GiiX+HbOHilUdNxUZi4eV0= +github.com/hashicorp/go-secure-stdlib/parseutil v0.2.0 h1:U+kC2dOhMFQctRfhK0gRctKAPTloZdMU5ZJxaesJ/VM= +github.com/hashicorp/go-secure-stdlib/parseutil v0.2.0/go.mod h1:Ll013mhdmsVDuoIXVfBtvgGJsXDYkTw1kooNcoCXuE0= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 h1:kes8mmyCpxJsI7FTwtzRqEy9CdjCtrXrXGuOpxEA7Ts= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2/go.mod h1:Gou2R9+il93BqX25LAKCLuM+y9U2T4hlwvT1yprcna4= -github.com/hashicorp/go-sockaddr v1.0.6 h1:RSG8rKU28VTUTvEKghe5gIhIQpv8evvNpnDEyqO4u9I= -github.com/hashicorp/go-sockaddr v1.0.6/go.mod h1:uoUUmtwU7n9Dv3O4SNLeFvg0SxQ3lyjsj6+CCykpaxI= -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.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= -github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= -github.com/hashicorp/vault/api v1.12.0 h1:meCpJSesvzQyao8FCOgk2fGdoADAnbDu2WPJN1lDLJ4= -github.com/hashicorp/vault/api v1.12.0/go.mod h1:si+lJCYO7oGkIoNPAN8j3azBLTn9SjMGS+jFaHd1Cck= +github.com/hashicorp/go-sockaddr v1.0.7 h1:G+pTkSO01HpR5qCxg7lxfsFEZaG+C0VssTy/9dbT+Fw= +github.com/hashicorp/go-sockaddr v1.0.7/go.mod h1:FZQbEYa1pxkQ7WLpyXJ6cbjpT8q0YgQaK/JakXqGyWw= +github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA= +github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hcl v1.0.1-vault-7 h1:ag5OxFVy3QYTFTJODRzTKVZ6xvdfLLCA1cy/Y6xGI0I= +github.com/hashicorp/hcl v1.0.1-vault-7/go.mod h1:XYhtn6ijBSAj6n4YqAaf7RBPS4I06AItNorpy+MoQNM= +github.com/hashicorp/hcl/v2 v2.24.0 h1:2QJdZ454DSsYGoaE6QheQZjtKZSUs9Nh2izTWiwQxvE= +github.com/hashicorp/hcl/v2 v2.24.0/go.mod h1:oGoO1FIQYfn/AgyOhlg9qLC6/nOJPX3qGbkZpYAcqfM= +github.com/hashicorp/vault/api v1.22.0 h1:+HYFquE35/B74fHoIeXlZIP2YADVboaPjaSicHEZiH0= +github.com/hashicorp/vault/api v1.22.0/go.mod h1:IUZA2cDvr4Ok3+NtK2Oq/r+lJeXkeCrHRmqdyWfpmGM= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -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/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/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kevinburke/ssh_config v1.6.0 h1:J1FBfmuVosPHf5GRdltRLhPJtJpTlMdKTBjRgTaQBFY= +github.com/kevinburke/ssh_config v1.6.0/go.mod h1:q2RIzfka+BXARoNexmF9gkxEX7DmvbW9P4hIVx2Kg4M= +github.com/keybase/go-keychain v0.0.1 h1:way+bWYa6lDppZoZcgMbYsvC7GxljxrskdNInRtuthU= +github.com/keybase/go-keychain v0.0.1/go.mod h1:PdEILRW3i9D8JcdM+FmY6RwkHGnhHxXwkPPMeUgOK1k= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.18.7 h1:aUyZsS4kH3QTKurYhAOwAHxllVPnOthb3vPfnF1Ehjw= +github.com/klauspost/compress v1.18.7/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -274,21 +298,16 @@ 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 v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= -github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/lucasb-eyer/go-colorful v1.4.1 h1:1EO+WB73+EH8EVbzlrG3KLAfEypQWVHIBqlTf+2hNss= +github.com/lucasb-eyer/go-colorful v1.4.1/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= +github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= +github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI= +github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= -github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.31 h1:1oCV4ReTlosDBc6rYRw5cL8S/4y8iv5oRl4SJ5IBgwo= +github.com/mattn/go-runewidth v0.0.31/go.mod h1:3qAiGCV4Koz/yuveO58qUefmUTRm8r0IGEXZ9jeHp/8= 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.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= @@ -304,20 +323,19 @@ github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo= github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= -github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s= -github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8= -github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo= -github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= +github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc= +github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= +github.com/mxschmitt/golang-combinations v1.0.0 h1:NFoO7CSP8MUcFlHpe1YdewKwMa15dgDbaqkVLC5DUPI= +github.com/mxschmitt/golang-combinations v1.0.0/go.mod h1:RbMhWvfCelHR6WROvT2bVfxJvZHoEvBj71SKe+H0MYU= github.com/natefinch/atomic v1.0.1 h1:ZPYKxkqQOx3KZ+RsbnP/YsgvxWQPGxjC0oBt2AhwV0A= github.com/natefinch/atomic v1.0.1/go.mod h1:N/D/ELrljoqDyT3rZrsUmtsuzvHkeB/wWjHV22AZRbM= -github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= -github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0= github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -325,33 +343,35 @@ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+ github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU= github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M= +github.com/pgavlin/fx/v2 v2.0.12 h1:SjjaJ68Dt8Z4zHwOpY/RPijd7lShs6xYupJbF9ra00M= +github.com/pgavlin/fx/v2 v2.0.12/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 h1:LoCV5cscNVWyK5ChN/uCoIFJz8jZD63VQiGJIRgr6uo= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386/go.mod h1:MRxHTJrf9FhdfNQ8Hdeh9gmHevC9RJE/fu8M3JIGjoE= -github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= -github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pjbgf/sha1cd v0.7.0 h1:ZRNPKHj+gfkLBf0KJv/p1Hmz+7bqCT5o311YX0nq+DA= +github.com/pjbgf/sha1cd v0.7.0/go.mod h1:pKR5Li+qTCo+ebqITZfwPlJGoCFCvSO00qxjbNtTUFQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= -github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/pkg/v3 v3.129.0 h1:n4Jd4ctlvw3eqyHglb/yJKDtRqjOvdkCBfG5T+orU30= -github.com/pulumi/pulumi/pkg/v3 v3.129.0/go.mod h1:W3c7JgO064kUH5IfyQMCgmsAr5iwr3PO6KEeIQiO0dY= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= -github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= -github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= +github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= +github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0 h1:uq7VYDSrWGfQZbyUKr9emUbqRy1RsSnaFQ67mlcLBWU= +github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0/go.mod h1:NPA79X6Wmyr5zNKd+N+RiVJN8duwIrRmIaed8HCL9EM= +github.com/pulumi/pulumi/pkg/v3 v3.270.0 h1:eReuhd+Mp2TEyvC8nTTgw86DRDhUARGcRHYmew61tHE= +github.com/pulumi/pulumi/pkg/v3 v3.270.0/go.mod h1:NwRln8Ew9+ZqPkpClgaJzRRlqLU9AMxsSjyKD4AE/AA= +github.com/pulumi/pulumi/sdk/v3 v3.270.0 h1:qzqmv8CoZyZI9JT7yQTkgeu0fPFnjWl6421kwS+nwR4= +github.com/pulumi/pulumi/sdk/v3 v3.270.0/go.mod h1:aUQk7DpZpqUsxLSUUWUCzIapJNb4+Smgh81ONxIdfCo= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= @@ -363,262 +383,199 @@ github.com/segmentio/asm v1.1.3 h1:WM03sfUOENvvKexOLp+pCqgb/WDjsi7EK8gIsICtzhc= github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg= github.com/segmentio/encoding v0.3.5 h1:UZEiaZ55nlXGDL92scoVuw00RmiRCazIEmvPSbSvt8Y= github.com/segmentio/encoding v0.3.5/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= -github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= -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/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= +github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= +github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= +github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= +github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spiffe/go-spiffe/v2 v2.8.1 h1:eXZMLsu+3MLEPJyGJkolqtVrteZfQdUpOWj6LTiDl/E= +github.com/spiffe/go-spiffe/v2 v2.8.1/go.mod h1:47Q0Q9/AqGha8QLHp+kxpH4Wca7X7EnOtlIJy3mxZ3U= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= +github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= 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.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= -github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/vbauerster/cupwriter v0.0.4 h1:9sBPe0uXWLZuWQU5lqVbhyFlxX6c09asST/YfatFAys= +github.com/vbauerster/cupwriter v0.0.4/go.mod h1:IFyzS6Xis5dnBH/rdAhrnuzg3c+KkUqEN6yE8lhJlDw= +github.com/vbauerster/mpb/v8 v8.15.2 h1:hyIM0fSQn98i/9jz9Z0dpqhXQoSssgDN+6yXDidAx9k= +github.com/vbauerster/mpb/v8 v8.15.2/go.mod h1:HgpQPKfcWe3kbuGGPmi+jatHreMase5C3Fp5dpdAy0Q= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= +github.com/xo/terminfo v1.2.0 h1:d0ZTOCpuGE0lwSAOs0zcJjwz3jWQyqcRt9XbGJpCOl4= +github.com/xo/terminfo v1.2.0/go.mod h1:lGzkSo8Fe7IRh/w+Gqz7n5mDog4FVXCj3gy/DYTBqio= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= -github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= -go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= -go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= -go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= -go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= -go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw= -go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= -go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= -go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= -go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -gocloud.dev v0.37.0 h1:XF1rN6R0qZI/9DYjN16Uy0durAmSlf58DHOcb28GPro= -gocloud.dev v0.37.0/go.mod h1:7/O4kqdInCNsc6LqgmuFnS0GRew4XNNYWpA44yQnwco= -gocloud.dev/secrets/hashivault v0.37.0 h1:5ehGtUBP29DFAgAs6bPw7fVSgqQ3TxaoK2xVcLp1x+c= -gocloud.dev/secrets/hashivault v0.37.0/go.mod h1:4ClUWjBfP8wLdGts56acjHz3mWLuATMoH9vi74FjIv8= +github.com/zalando/go-keyring v0.2.8 h1:6sD/Ucpl7jNq10rM2pgqTs0sZ9V3qMrqfIIy5YPccHs= +github.com/zalando/go-keyring v0.2.8/go.mod h1:tsMo+VpRq5NGyKfxoBVjCuMrG47yj8cmakZDO5QGii0= +github.com/zclconf/go-cty v1.16.3 h1:osr++gw2T61A8KVYHoQiFbFd1Lh3JOCXc/jFLJXKTxk= +github.com/zclconf/go-cty v1.16.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= +go.mongodb.org/mongo-driver v1.17.10 h1:kdAgQvu8TROXZpSkJQd5wzfaNCCrMbpZyKFtQ6qkPCE= +go.mongodb.org/mongo-driver v1.17.10/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/collector/featuregate v1.69.0 h1:RapEMYjBfvt9IUP3ypQ9Y7/g21nwRzvtKO3dSOCCL6E= +go.opentelemetry.io/collector/featuregate v1.69.0/go.mod h1:dRYifiJa2vQ6LWpPwHny4mL82mnGWsWEVeVWw+DhYJw= +go.opentelemetry.io/collector/internal/testutil v0.163.0 h1:JR65ZHtuOP1E5cJZKl4ub/UFHQ7xo3KN/Iryhtc0P5E= +go.opentelemetry.io/collector/internal/testutil v0.163.0/go.mod h1:RUvWdMZGEBicc0C3teDcnTrifUX8HB4AJ4l8pMONURU= +go.opentelemetry.io/collector/pdata v1.69.0 h1:u0a2n1kOS/OGwIEQMOKCnl+bbmFG5wGO/OfFXajICpA= +go.opentelemetry.io/collector/pdata v1.69.0/go.mod h1:5U4aIRhQKQgo3DifeWgVdWBhSBbYV2BQ6Nz4bJc7dfE= +go.opentelemetry.io/contrib/bridges/otelslog v0.21.0 h1:/CdgE52i1OEPHhsGUqrggYNRaZy4v4YgVenGd52dRBI= +go.opentelemetry.io/contrib/bridges/otelslog v0.21.0/go.mod h1:9pBdbVbuehIDzxN4accnzzxEUPT8Nq7grbZMo+J1VN4= +go.opentelemetry.io/contrib/detectors/gcp v1.44.0 h1:NmLfL734pJhM0JKaYd2Y28+nY9dPRWYAAbxhRCrKXPw= +go.opentelemetry.io/contrib/detectors/gcp v1.44.0/go.mod h1:tNAsgd8avTGke1+MndXlU5Cru4PQ9Ai/cCNWQv/ZJ/s= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.72.0 h1:Tq+E65HaNbZTeqcLw6QUhsV+/EIWdkfUH2CQzcrlE5M= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.72.0/go.mod h1:A+EVhDakAj1waJBPhmTszZaSr08ww8MRRKy1nB1rqck= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 h1:LxwW/9ctSCv+QkE/cLR7M91ZIkXNMqJtEMi1vCw9U8s= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0/go.mod h1:tOsftB4SslBwwErVEPaenU2RpThXWPIU8DoJHEC4dyw= +go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= +go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.23.0 h1:5Ek4qQ5XX0PSQfY7lMW3CvcR36yy8YFDfGnYnaku8zE= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.23.0/go.mod h1:NUKIMOKSexQdTmS1pSxOQBDiVes3DHRier2ePsGW/gQ= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 h1:julhjPeUH/q/7hinbSdDdqt5h7Zw9YWmRlWRhI0jd54= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0/go.mod h1:Ao2mz688LH/tFf0yMAenidq6k2YNSx6SIY2q6jDACck= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.47.0 h1:UFpxOpYPmMNUtOWhdb+nC1WELIgVf8z9higURrbzYU4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.47.0/go.mod h1:YBGjxe3lt0jtXoEXxGrGhv/jM7oUBUDVK7zhAvNyEjc= +go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.44.0 h1:hqxVTu/GtBF+vJ8d1fzW7fRxZFvgoDjWcxwwCaFDYpU= +go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.44.0/go.mod h1:z5fVEF4X5v0ESvlJqBrrFlBVoj5EQuefZpzsu7R+x5Q= +go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= +go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= +go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= +go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= +go.opentelemetry.io/otel/metric/x v0.69.0 h1:DjRLr15H83v+hCW7JA9NoJvOkYTtmq5YoDRbe9deYpM= +go.opentelemetry.io/otel/metric/x v0.69.0/go.mod h1:uVvsMPMFFyj/HUQfrUnH3JjnOQ1dwFDorgFLRBasM0k= +go.opentelemetry.io/otel/sdk v1.47.0 h1:zWXEr4j2lFefG87TU6Yg8a7ngfohIKFZHKp0Hf5hC6I= +go.opentelemetry.io/otel/sdk v1.47.0/go.mod h1:VUc24kiOeoGsxG8G9ULx3fWKvB7jMhnGE8Oi607lgR0= +go.opentelemetry.io/otel/sdk/log v1.47.0 h1:W4N/ZfgpkRRnmARnqYoQ6BrWA0mrj8IzVDNLlpmUJZY= +go.opentelemetry.io/otel/sdk/log v1.47.0/go.mod h1:Wu74Z2EmOKXi2FleSNAb0Hyau2G+r5kubSEMJw5aAMs= +go.opentelemetry.io/otel/sdk/log/logtest v0.23.0 h1:j3pm42QCrKYYLLkI6OrV1QHFkUfDA6/4EP+Y1PzggLg= +go.opentelemetry.io/otel/sdk/log/logtest v0.23.0/go.mod h1:zt0gEnuTZgDvqvczHwYswz93eqMaIr6upTTsdV/HUlU= +go.opentelemetry.io/otel/sdk/metric v1.47.0 h1:lfISg2j93VT6yqdk9OfUaZmw/GfcZqCCV3jdXtsPnKw= +go.opentelemetry.io/otel/sdk/metric v1.47.0/go.mod h1:ypLp+mW1Nt2x+Szt3b5/i1syodyts49lMOwxpDI3VGw= +go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= +go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= +go.opentelemetry.io/proto/otlp v1.11.1 h1:SCrPqH9NE5CmBrOqpjNCiT0X5mGwMyGERXdogfR7Yjw= +go.opentelemetry.io/proto/otlp v1.11.1/go.mod h1:wq8W4aSf6bOy8RZyESOeQFr9Pu7wydWX/TY4sgvrTPg= +go.opentelemetry.io/proto/slim/otlp v1.11.1 h1:qf2OA3kQcIDXh3q7b6kc0IzRe8BFXlVIlH5uaOACrVQ= +go.opentelemetry.io/proto/slim/otlp v1.11.1/go.mod h1:15pWfj6/rYjQzyrC3ZGQoZ0rNgLqI/Lk+jFgYgV4UIE= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.4.1 h1:pgPIbi29ViNY/gE//bHlHuLyqHE+PDhhw7jAhItWIaM= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.4.1/go.mod h1:MSbd82YGFGySHE+GsR2J7+RvMf7mgnknr7IFjsxfoTs= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.4.1 h1:pso/53PWXaoGeW+/ww9WHKxoWTbTJBSmUH1VsiEmelU= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.4.1/go.mod h1:axuN0N02xZ3l+3zFqWXXRBTC6766vGQ0PbeCh46kuXA= +go.uber.org/atomic v1.12.0 h1:BvcXdFKuviU4fTL/f+SxdQ5qJX/Jix8pAkgdUcb3XOE= +go.uber.org/atomic v1.12.0/go.mod h1:I6c4cg+6HCxRjfjSsYtApoFILnpc0CGUdGkXVqbYVNk= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +gocloud.dev v0.46.1-0.20260810195832-b5401c07b5f1 h1:IAkFU35NtKgVP8FV3zm1b16DMucGz3f4XqrqdAZQ1aU= +gocloud.dev v0.46.1-0.20260810195832-b5401c07b5f1/go.mod h1:HdtAx0btBlExxR61nWzUxviFmndZTvWrKMPeGiFwRYk= +gocloud.dev/secrets/hashivault v0.46.0 h1:gQlpb/1wEwVoOavi/RGeQs5WlnzYddcDW81b0kywI0w= +gocloud.dev/secrets/hashivault v0.46.0/go.mod h1:I9RZ3S1+v/o++SRTJzSJ904LUGaBx7cpKVrzobm2SIA= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= -golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= -golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= -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-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= +golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/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.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0= -golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/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-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= +golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.6.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.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= -golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= -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/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= +golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= +golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= 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-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/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 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= +golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/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-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211110154304-99a53858aa08/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/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.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.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.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -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.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= -golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= -golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= +golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= +golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= +golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.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.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.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= +golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= +golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= +golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/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-20190114222345-bf090417da8b/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-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= -golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= -golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= -golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= +golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= +golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= 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-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= -google.golang.org/api v0.169.0 h1:QwWPy71FgMWqJN/l6jVlFHUa29a7dcUy02I8o799nPY= -google.golang.org/api v0.169.0/go.mod h1:gpNOiMA2tZ4mf5R9Iwf4rK/Dcz0fbdIgWYWVoxmsyLg= -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.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= -google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 h1:ImUcDPHjTrAqNhlOkSocDLfG9rrNHH7w7uoKWPaWZ8s= -google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7/go.mod h1:/3XmxOjePkvmKrHuBy4zNFw7IzxJXtAgdpXi8Ll990U= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 h1:oqta3O3AnlWbmIE3bFnWbu4bRxZjfbWCp0cKSuZh01E= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7/go.mod h1:VQW3tUculP/D4B+xVCo+VgSq8As6wA9ZjHl//pmk+6s= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 h1:8EeVk1VKMD+GD/neyEHGmz7pFblqPjHoi+PGQIlLx2s= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -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.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= -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.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.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhSt0ABwskkZKjD3bXGnZGpNY= +golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= +gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= +google.golang.org/api v0.290.0 h1:eMw0Xo+IfbbMlKmW7aHvpyQRv9RCXuWx/vs8AD+0x9A= +google.golang.org/api v0.290.0/go.mod h1:weJZ3lldHFYI0DBFNKpJelUDNnusTt5YaOEgxvt8ci8= +google.golang.org/genproto v0.0.0-20260724162435-b2f20204f0df h1:A7u56ilVtWR3CySHErsWAsimNwD4FoX9KWd8SUCn6vc= +google.golang.org/genproto v0.0.0-20260724162435-b2f20204f0df/go.mod h1:4RPHZcXMGptb7aRZb+M43xI7ixmjEtASEf2VtOOBZbU= +google.golang.org/genproto/googleapis/api v0.0.0-20261012220534-4341edf3f941 h1:DS/w3N8rsfrwxwgGSj6WhMsPo7aNQGmDx74J81zd0NQ= +google.golang.org/genproto/googleapis/api v0.0.0-20261012220534-4341edf3f941/go.mod h1:AuGAdi9KnXss7xbLxIKhCvk+Ro/SxpET/iS45DNYN+M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941 h1:QG6hS4zFplRZvOQedzei4t2pT/zkQc3VR1u+S9/rcAw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= +google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0= +google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/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-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -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.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw= -lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s= -pgregory.net/rapid v0.6.1 h1:4eyrDxyht86tT4Ztm+kvlyNBLIk071gR+ZQdhphc9dQ= -pgregory.net/rapid v0.6.1/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +lukechampine.com/frand v1.5.1 h1:fg0eRtdmGFIxhP5zQJzM1lFDbD6CUfu/f+7WgAZd5/w= +lukechampine.com/frand v1.5.1/go.mod h1:4VstaWc2plN4Mjr10chUD46RAVGWhpkZ5Nja8+Azp0Q= +pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= +pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= diff --git a/go.work b/go.work deleted file mode 100644 index 6a98961..0000000 --- a/go.work +++ /dev/null @@ -1,7 +0,0 @@ -go 1.22 - -use ( - ./provider - ./sdk - ./examples -) \ No newline at end of file diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..1d76d88 --- /dev/null +++ b/mise.toml @@ -0,0 +1,18 @@ +# Overrides for the generated .config/mise.toml. See https://mise.jdx.dev/configuration.html + +[tools] +# The generated config pins Node 20, but @pulumi/pulumi 3.270+ requires Node 22 or newer. +node = "24.22.0" +# The generated pin (2.5.0) is built with Go 1.25 and refuses to lint a Go 1.26 module. +golangci-lint = "2.13.2" + +# Plugins tfgen needs to convert the upstream docs' HCL examples. Some examples use AWS and +# random resources alongside Doppler ones. +"vfox-pulumi:pulumi/pulumi-converter-terraform" = "1.4.0" +"vfox-pulumi:pulumi/pulumi-random" = "4.21.4" +"vfox-pulumi:pulumi/pulumi-aws" = "7.51.1" + +[settings] +# The Java SDK is not built or published (.ci-mgmt.yaml: publish.sdk "all,!java"), so skip +# installing its JDK and Gradle. +disable_tools = ["java", "aqua:gradle/gradle-distributions"] diff --git a/provider/cmd/pulumi-resource-doppler/.gitignore b/provider/cmd/pulumi-resource-doppler/.gitignore index eaadaff..7ba7cf4 100644 --- a/provider/cmd/pulumi-resource-doppler/.gitignore +++ b/provider/cmd/pulumi-resource-doppler/.gitignore @@ -1 +1 @@ -schema.go +schema-embed.json diff --git a/provider/cmd/pulumi-resource-doppler/Pulumi.yaml b/provider/cmd/pulumi-resource-doppler/Pulumi.yaml index e69de29..7b62a56 100644 --- a/provider/cmd/pulumi-resource-doppler/Pulumi.yaml +++ b/provider/cmd/pulumi-resource-doppler/Pulumi.yaml @@ -0,0 +1,3 @@ +name: doppler +description: A Pulumi resource provider for doppler. +language: schema diff --git a/provider/cmd/pulumi-resource-doppler/bridge-metadata.json b/provider/cmd/pulumi-resource-doppler/bridge-metadata.json new file mode 100644 index 0000000..0a5ebe5 --- /dev/null +++ b/provider/cmd/pulumi-resource-doppler/bridge-metadata.json @@ -0,0 +1,408 @@ +{ + "auto-aliasing": { + "resources": { + "doppler_change_request_policy": { + "current": "doppler:index/changeRequestPolicy:ChangeRequestPolicy", + "fields": { + "rules": { + "maxItemsOne": true, + "elem": { + "fields": { + "required_reviewers": { + "maxItemsOne": false, + "elem": { + "fields": { + "group_slugs": { + "maxItemsOne": false + }, + "user_slugs": { + "maxItemsOne": false + } + } + } + } + } + } + }, + "targets": { + "maxItemsOne": true, + "elem": { + "fields": { + "project": { + "maxItemsOne": false, + "elem": { + "fields": { + "config_names": { + "maxItemsOne": false + }, + "environment_slugs": { + "maxItemsOne": false + } + } + } + } + } + } + } + } + }, + "doppler_config": { + "current": "doppler:index/branchConfig:BranchConfig", + "fields": { + "inherits": { + "maxItemsOne": false + } + } + }, + "doppler_environment": { + "current": "doppler:index/environment:Environment" + }, + "doppler_group": { + "current": "doppler:index/group:Group" + }, + "doppler_group_member": { + "current": "doppler:index/groupMember:GroupMember" + }, + "doppler_group_members": { + "current": "doppler:index/groupMembers:GroupMembers", + "fields": { + "user_slugs": { + "maxItemsOne": false + } + } + }, + "doppler_integration_aws_iam_user_keys": { + "current": "doppler:integration/awsIamUserKeys:AwsIamUserKeys" + }, + "doppler_integration_aws_mssql": { + "current": "doppler:integration/awsMssql:AwsMssql" + }, + "doppler_integration_aws_mysql": { + "current": "doppler:integration/awsMysql:AwsMysql" + }, + "doppler_integration_aws_parameter_store": { + "current": "doppler:integration/awsParameterStore:AwsParameterStore" + }, + "doppler_integration_aws_postgres": { + "current": "doppler:integration/awsPostgres:AwsPostgres" + }, + "doppler_integration_aws_secrets_manager": { + "current": "doppler:integration/awsSecretsManager:AwsSecretsManager" + }, + "doppler_integration_azure_dynamic_service_principal": { + "current": "doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal" + }, + "doppler_integration_azure_dynamic_service_principal_oidc": { + "current": "doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc" + }, + "doppler_integration_azure_rotated_service_principal": { + "current": "doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal" + }, + "doppler_integration_azure_rotated_service_principal_oidc": { + "current": "doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc" + }, + "doppler_integration_azure_vault_service_principal": { + "current": "doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal" + }, + "doppler_integration_circleci": { + "current": "doppler:integration/circleci:Circleci" + }, + "doppler_integration_cloudflare_tokens": { + "current": "doppler:integration/cloudflareTokens:CloudflareTokens" + }, + "doppler_integration_external_id": { + "current": "doppler:integration/externalId:ExternalId" + }, + "doppler_integration_flyio": { + "current": "doppler:integration/flyio:Flyio" + }, + "doppler_integration_gcp_cloudsql_mysql": { + "current": "doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql" + }, + "doppler_integration_gcp_cloudsql_mysql_oidc": { + "current": "doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc" + }, + "doppler_integration_gcp_cloudsql_postgres": { + "current": "doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres" + }, + "doppler_integration_gcp_cloudsql_postgres_oidc": { + "current": "doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc" + }, + "doppler_integration_gcp_cloudsql_sqlserver": { + "current": "doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver" + }, + "doppler_integration_gcp_cloudsql_sqlserver_oidc": { + "current": "doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc" + }, + "doppler_integration_gcp_secret_manager": { + "current": "doppler:integration/gcpSecretManager:GcpSecretManager" + }, + "doppler_integration_gcp_secret_manager_oidc": { + "current": "doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc" + }, + "doppler_integration_gcp_service_account_keys": { + "current": "doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys" + }, + "doppler_integration_member_group": { + "current": "doppler:integration/memberGroup:MemberGroup" + }, + "doppler_integration_member_service_account": { + "current": "doppler:integration/memberServiceAccount:MemberServiceAccount" + }, + "doppler_integration_member_user": { + "current": "doppler:integration/memberUser:MemberUser" + }, + "doppler_integration_mongodb_atlas": { + "current": "doppler:integration/mongodbAtlas:MongodbAtlas" + }, + "doppler_integration_openai": { + "current": "doppler:integration/openai:Openai" + }, + "doppler_integration_sendgrid": { + "current": "doppler:integration/sendgrid:Sendgrid" + }, + "doppler_integration_terraform_cloud": { + "current": "doppler:integration/terraformCloud:TerraformCloud" + }, + "doppler_integration_twilio": { + "current": "doppler:integration/twilio:Twilio" + }, + "doppler_project": { + "current": "doppler:index/project:Project" + }, + "doppler_project_member_group": { + "current": "doppler:projectMember/group:Group", + "fields": { + "environments": { + "maxItemsOne": false + } + } + }, + "doppler_project_member_service_account": { + "current": "doppler:projectMember/serviceAccount:ServiceAccount", + "fields": { + "environments": { + "maxItemsOne": false + } + } + }, + "doppler_project_member_user": { + "current": "doppler:projectMember/user:User", + "fields": { + "environments": { + "maxItemsOne": false + } + } + }, + "doppler_project_role": { + "current": "doppler:index/projectRole:ProjectRole", + "fields": { + "permissions": { + "maxItemsOne": false + } + } + }, + "doppler_project_tag": { + "current": "doppler:index/projectTag:ProjectTag" + }, + "doppler_rotated_secret_aws_iam_user_keys": { + "current": "doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys" + }, + "doppler_rotated_secret_aws_mssql": { + "current": "doppler:rotatedSecret/awsMssql:AwsMssql", + "fields": { + "credentials": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_aws_mysql": { + "current": "doppler:rotatedSecret/awsMysql:AwsMysql", + "fields": { + "credentials": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_aws_postgres": { + "current": "doppler:rotatedSecret/awsPostgres:AwsPostgres", + "fields": { + "credentials": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_cloudflare_tokens": { + "current": "doppler:rotatedSecret/cloudflareTokens:CloudflareTokens", + "fields": { + "credentials": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_gcp_cloudsql": { + "current": "doppler:rotatedSecret/gcpCloudsql:GcpCloudsql", + "fields": { + "credentials": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_gcp_service_account_keys": { + "current": "doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys" + }, + "doppler_rotated_secret_mongodb_atlas": { + "current": "doppler:rotatedSecret/mongodbAtlas:MongodbAtlas", + "fields": { + "credentials": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_openai": { + "current": "doppler:rotatedSecret/openai:Openai" + }, + "doppler_rotated_secret_sendgrid": { + "current": "doppler:rotatedSecret/sendgrid:Sendgrid", + "fields": { + "scopes": { + "maxItemsOne": false + } + } + }, + "doppler_rotated_secret_twilio": { + "current": "doppler:rotatedSecret/twilio:Twilio" + }, + "doppler_secret": { + "current": "doppler:index/secret:Secret" + }, + "doppler_secret_note": { + "current": "doppler:index/secretNote:SecretNote" + }, + "doppler_secrets_sync_aws_parameter_store": { + "current": "doppler:secretsSync/awsParameterStore:AwsParameterStore" + }, + "doppler_secrets_sync_aws_secrets_manager": { + "current": "doppler:secretsSync/awsSecretsManager:AwsSecretsManager" + }, + "doppler_secrets_sync_azure_vault": { + "current": "doppler:secretsSync/azureVault:AzureVault" + }, + "doppler_secrets_sync_circleci": { + "current": "doppler:secretsSync/circleci:Circleci" + }, + "doppler_secrets_sync_flyio": { + "current": "doppler:secretsSync/flyio:Flyio" + }, + "doppler_secrets_sync_gcp_secret_manager": { + "current": "doppler:secretsSync/gcpSecretManager:GcpSecretManager", + "fields": { + "regions": { + "maxItemsOne": false + } + } + }, + "doppler_secrets_sync_github_actions": { + "current": "doppler:secretsSync/githubActions:GithubActions" + }, + "doppler_secrets_sync_github_agents": { + "current": "doppler:secretsSync/githubAgents:GithubAgents" + }, + "doppler_secrets_sync_github_codespaces": { + "current": "doppler:secretsSync/githubCodespaces:GithubCodespaces" + }, + "doppler_secrets_sync_github_dependabot": { + "current": "doppler:secretsSync/githubDependabot:GithubDependabot" + }, + "doppler_secrets_sync_terraform_cloud": { + "current": "doppler:secretsSync/terraformCloud:TerraformCloud" + }, + "doppler_service_account": { + "current": "doppler:index/serviceAccount:ServiceAccount", + "fields": { + "workplace_permissions": { + "maxItemsOne": false + } + } + }, + "doppler_service_account_identity": { + "current": "doppler:index/serviceAccountIdentity:ServiceAccountIdentity", + "fields": { + "config_oidc": { + "maxItemsOne": true, + "elem": { + "fields": { + "claims": { + "maxItemsOne": false, + "elem": { + "fields": { + "values": { + "maxItemsOne": false + } + } + } + } + } + } + } + } + }, + "doppler_service_account_token": { + "current": "doppler:index/serviceAccountToken:ServiceAccountToken" + }, + "doppler_service_token": { + "current": "doppler:index/serviceToken:ServiceToken" + }, + "doppler_tag": { + "current": "doppler:index/tag:Tag" + }, + "doppler_trusted_ips": { + "current": "doppler:index/trustedIps:TrustedIps", + "fields": { + "trusted_ips": { + "maxItemsOne": false + } + } + }, + "doppler_webhook": { + "current": "doppler:index/webhook:Webhook", + "fields": { + "authentication": { + "maxItemsOne": true + }, + "enabled_configs": { + "maxItemsOne": false + } + } + }, + "doppler_workplace_role": { + "current": "doppler:index/workplaceRole:WorkplaceRole", + "fields": { + "permissions": { + "maxItemsOne": false + } + } + } + }, + "datasources": { + "doppler_environments": { + "current": "doppler:index/getEnvironments:getEnvironments", + "fields": { + "list": { + "maxItemsOne": false + } + } + }, + "doppler_group": { + "current": "doppler:index/getGroup:getGroup" + }, + "doppler_secrets": { + "current": "doppler:index/getSecrets:getSecrets" + }, + "doppler_user": { + "current": "doppler:index/getUser:getUser" + } + } + }, + "auto-settings": {} +} \ No newline at end of file diff --git a/provider/cmd/pulumi-resource-doppler/generate.go b/provider/cmd/pulumi-resource-doppler/generate.go index a548fda..8b25fcb 100644 --- a/provider/cmd/pulumi-resource-doppler/generate.go +++ b/provider/cmd/pulumi-resource-doppler/generate.go @@ -12,14 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build ignore // +build ignore package main import ( "encoding/json" - "fmt" - "io/ioutil" + "errors" + "io/fs" "log" "os" @@ -32,7 +33,7 @@ func main() { log.Fatal("version not found") } - schemaContents, err := ioutil.ReadFile("./schema.json") + schemaContents, err := os.ReadFile("./schema.json") if err != nil { log.Fatal(err) } @@ -49,9 +50,13 @@ func main() { log.Fatalf("cannot reserialize schema: %v", err) } - err = ioutil.WriteFile("./schema.go", []byte(fmt.Sprintf(`package main -var pulumiSchema = %#v -`, versionedContents)), 0600) + // Clean up schema.go as it may be present & gitignored and tolerate an error if the file isn't present. + err = os.Remove("./schema.go") + if err != nil && !errors.Is(err, fs.ErrNotExist) { + log.Fatal(err) + } + + err = os.WriteFile("./schema-embed.json", versionedContents, 0600) if err != nil { log.Fatal(err) } diff --git a/provider/cmd/pulumi-resource-doppler/main.go b/provider/cmd/pulumi-resource-doppler/main.go index df1d613..92b16c9 100644 --- a/provider/cmd/pulumi-resource-doppler/main.go +++ b/provider/cmd/pulumi-resource-doppler/main.go @@ -17,11 +17,18 @@ package main import ( + // The linter requires unnamed imports to have a doc comment + _ "embed" + "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge" - doppler "github.com/pulumiverse/pulumi-doppler/provider" - "github.com/pulumiverse/pulumi-doppler/provider/pkg/version" + + doppler "github.com/DopplerHQ/pulumi-doppler/provider" + "github.com/DopplerHQ/pulumi-doppler/provider/pkg/version" ) +//go:embed schema-embed.json +var pulumiSchema []byte + func main() { // Modify the path to point to the new provider tfbridge.Main("doppler", version.Version, doppler.Provider(), pulumiSchema) diff --git a/provider/cmd/pulumi-resource-doppler/schema.json b/provider/cmd/pulumi-resource-doppler/schema.json index fa55e23..9fdc07c 100644 --- a/provider/cmd/pulumi-resource-doppler/schema.json +++ b/provider/cmd/pulumi-resource-doppler/schema.json @@ -1,19 +1,21 @@ { "name": "doppler", "displayName": "Doppler", - "description": "A Pulumi package for creating and managing doppler cloud resources.", + "description": "A Pulumi package for managing Doppler projects, secrets, and access.", "keywords": [ "pulumi", "doppler", + "secrets", + "secrets-management", "category/cloud" ], - "homepage": "https://www.pulumi.com", + "homepage": "https://www.doppler.com", "license": "Apache-2.0", "attribution": "This Pulumi package is based on the [`doppler` Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler).", - "repository": "https://github.com/pulumiverse/pulumi-doppler", - "logoUrl": "https://raw.githubusercontent.com/pulumiverse/pulumi-doppler/main/docs/logo.png", - "pluginDownloadURL": "github://api.github.com/pulumiverse", - "publisher": "Pulumiverse", + "repository": "https://github.com/DopplerHQ/pulumi-doppler", + "logoUrl": "https://raw.githubusercontent.com/DopplerHQ/pulumi-doppler/main/docs/logo.png", + "pluginDownloadURL": "github://api.github.com/DopplerHQ", + "publisher": "Doppler", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, @@ -23,57 +25,203 @@ "Pulumi": "3.*" }, "compatibility": "tfbridge20", - "rootNamespace": "Pulumiverse" + "rootNamespace": "DopplerHQ", + "respectSchemaVersion": true }, "go": { - "importBasePath": "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler", + "importBasePath": "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler", "generateResourceContainerTypes": true, - "generateExtraInputTypes": true + "generateExtraInputTypes": true, + "respectSchemaVersion": true }, "nodejs": { - "packageName": "@pulumiverse/doppler", - "packageDescription": "A Pulumi package for creating and managing doppler cloud resources.", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-doppler` repo](https://github.com/pulumiverse/pulumi-doppler/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues).", - "dependencies": { - "@pulumi/pulumi": "^3.0.0" - }, - "devDependencies": { - "@types/mime": "^2.0.0", - "@types/node": "^10.0.0" - }, + "packageName": "@dopplerhq/pulumi-doppler", + "packageDescription": "A Pulumi package for managing Doppler projects, secrets, and access.", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler)\n\u003e distributed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-doppler` repo](https://github.com/DopplerHQ/pulumi-doppler/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues).", "compatibility": "tfbridge20", - "disableUnionOutputTypes": true + "disableUnionOutputTypes": true, + "respectSchemaVersion": true }, "python": { - "packageName": "pulumiverse_doppler", + "packageName": "pulumi_doppler", "requires": { "pulumi": "\u003e=3.0.0,\u003c4.0.0" }, - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-doppler` repo](https://github.com/pulumiverse/pulumi-doppler/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues).", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler)\n\u003e distributed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-doppler` repo](https://github.com/DopplerHQ/pulumi-doppler/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues).", "compatibility": "tfbridge20", - "pyproject": {} + "respectSchemaVersion": true, + "pyproject": { + "enabled": true + } } }, "config": { "variables": { "dopplerToken": { "type": "string", - "description": "A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable.\n" + "description": "A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of \u003cspan pulumi-lang-nodejs=\"`dopplerToken`\" pulumi-lang-dotnet=\"`DopplerToken`\" pulumi-lang-go=\"`dopplerToken`\" pulumi-lang-python=\"`doppler_token`\" pulumi-lang-yaml=\"`dopplerToken`\" pulumi-lang-java=\"`dopplerToken`\" pulumi-lang-hcl=\"`doppler_token`\"\u003e`dopplerToken`\u003c/span\u003e or OIDC authentication (\u003cspan pulumi-lang-nodejs=\"`oidcIdentity`\" pulumi-lang-dotnet=\"`OidcIdentity`\" pulumi-lang-go=\"`oidcIdentity`\" pulumi-lang-python=\"`oidc_identity`\" pulumi-lang-yaml=\"`oidcIdentity`\" pulumi-lang-java=\"`oidcIdentity`\" pulumi-lang-hcl=\"`oidc_identity`\"\u003e`oidcIdentity`\u003c/span\u003e + \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e/\u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e) may be specified.", + "secret": true }, "host": { "type": "string", - "description": "The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable.\n" + "description": "The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable." + }, + "oidcIdentity": { + "type": "string", + "description": "The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable." + }, + "oidcToken": { + "type": "string", + "description": "A JWT token to use for OIDC authentication. Only one of \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable.", + "secret": true + }, + "oidcTokenFile": { + "type": "string", + "description": "A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable." }, "verifyTls": { "type": "boolean", - "description": "Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable.\n" + "description": "Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable." } - }, - "defaults": [ - "dopplerToken" - ] + } }, "types": { + "doppler:index/ChangeRequestPolicyRules:ChangeRequestPolicyRules": { + "properties": { + "autoAssignReviewers": { + "type": "string", + "description": "If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default)\n" + }, + "disallowSelfReview": { + "type": "boolean", + "description": "If true, approvals from the author of a change request will be excluded when evaluating this policy\n" + }, + "requiredReviewers": { + "type": "array", + "items": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyRulesRequiredReviewer:ChangeRequestPolicyRulesRequiredReviewer" + }, + "description": "Enforces that a specific number of users approve a change request before it can be applied\n" + } + }, + "type": "object" + }, + "doppler:index/ChangeRequestPolicyRulesRequiredReviewer:ChangeRequestPolicyRulesRequiredReviewer": { + "properties": { + "count": { + "type": "integer", + "description": "The number of approvals a change request must receive before it can be applied\n" + }, + "groupSlugs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "If set, only approvals from members of these groups will satisfy this rule\n" + }, + "userSlugs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "If set, only approvals from these users will satisfy this rule\n" + } + }, + "type": "object", + "required": [ + "count" + ] + }, + "doppler:index/ChangeRequestPolicyTargets:ChangeRequestPolicyTargets": { + "properties": { + "allProjects": { + "type": "boolean", + "description": "Whether or not the policy applies to all projects in the workplace\n" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyTargetsProject:ChangeRequestPolicyTargetsProject" + }, + "description": "A project that the policy will apply to\n" + } + }, + "type": "object" + }, + "doppler:index/ChangeRequestPolicyTargetsProject:ChangeRequestPolicyTargetsProject": { + "properties": { + "all": { + "type": "boolean", + "description": "Whether or not the policy applies to all configs in the project\n" + }, + "configNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specific configs the policy applies to\n" + }, + "environmentSlugs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Entire environments the policy applies to\n" + }, + "projectName": { + "type": "string", + "description": "The name of the project to apply the policy to\n" + } + }, + "type": "object", + "required": [ + "projectName" + ] + }, + "doppler:index/ServiceAccountIdentityConfigOidc:ServiceAccountIdentityConfigOidc": { + "properties": { + "claims": { + "type": "array", + "items": { + "$ref": "#/types/doppler:index/ServiceAccountIdentityConfigOidcClaim:ServiceAccountIdentityConfigOidcClaim" + }, + "description": "A set of valid values for a specific claim. At least \"aud\" and \"sub\" must be provided\n" + }, + "claimsType": { + "type": "string", + "description": "If \"wildcard\", wildcard characters will be expanded during claims validation. Defaults to \"exact\"\n" + }, + "discoveryUrl": { + "type": "string", + "description": "The public URL of the OpenID discovery service\n" + } + }, + "type": "object", + "required": [ + "claims", + "discoveryUrl" + ] + }, + "doppler:index/ServiceAccountIdentityConfigOidcClaim:ServiceAccountIdentityConfigOidcClaim": { + "properties": { + "key": { + "type": "string", + "description": "The key of the claim to validate\n" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The set of valid values for this claim\n" + } + }, + "type": "object", + "required": [ + "key", + "values" + ] + }, "doppler:index/WebhookAuthentication:WebhookAuthentication": { "properties": { "password": { @@ -95,6 +243,133 @@ "required": [ "type" ] + }, + "doppler:index/getEnvironmentsEnvironment:getEnvironmentsEnvironment": { + "properties": { + "createdAt": { + "type": "string", + "description": "When the environment was created\n" + }, + "name": { + "type": "string", + "description": "The name of the environment\n" + }, + "project": { + "type": "string", + "description": "The project the environment belongs to\n" + }, + "slug": { + "type": "string", + "description": "The slug of the environment\n" + } + }, + "type": "object", + "required": [ + "createdAt", + "name", + "project", + "slug" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "doppler:rotatedSecret/AwsMssqlCredential:AwsMssqlCredential": { + "properties": { + "password": { + "type": "string", + "secret": true + }, + "username": { + "type": "string" + } + }, + "type": "object", + "required": [ + "password", + "username" + ] + }, + "doppler:rotatedSecret/AwsMysqlCredential:AwsMysqlCredential": { + "properties": { + "password": { + "type": "string", + "secret": true + }, + "username": { + "type": "string" + } + }, + "type": "object", + "required": [ + "password", + "username" + ] + }, + "doppler:rotatedSecret/AwsPostgresCredential:AwsPostgresCredential": { + "properties": { + "password": { + "type": "string", + "secret": true + }, + "username": { + "type": "string" + } + }, + "type": "object", + "required": [ + "password", + "username" + ] + }, + "doppler:rotatedSecret/CloudflareTokensCredential:CloudflareTokensCredential": { + "properties": { + "value": { + "type": "string", + "secret": true + } + }, + "type": "object", + "required": [ + "value" + ] + }, + "doppler:rotatedSecret/GcpCloudsqlCredential:GcpCloudsqlCredential": { + "properties": { + "password": { + "type": "string", + "secret": true + }, + "userHostName": { + "type": "string" + }, + "username": { + "type": "string" + } + }, + "type": "object", + "required": [ + "password", + "username" + ] + }, + "doppler:rotatedSecret/MongodbAtlasCredential:MongodbAtlasCredential": { + "properties": { + "password": { + "type": "string", + "secret": true + }, + "username": { + "type": "string" + } + }, + "type": "object", + "required": [ + "password", + "username" + ] } }, "provider": { @@ -102,46 +377,86 @@ "properties": { "dopplerToken": { "type": "string", - "description": "A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable.\n" + "description": "A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of \u003cspan pulumi-lang-nodejs=\"`dopplerToken`\" pulumi-lang-dotnet=\"`DopplerToken`\" pulumi-lang-go=\"`dopplerToken`\" pulumi-lang-python=\"`doppler_token`\" pulumi-lang-yaml=\"`dopplerToken`\" pulumi-lang-java=\"`dopplerToken`\" pulumi-lang-hcl=\"`doppler_token`\"\u003e`dopplerToken`\u003c/span\u003e or OIDC authentication (\u003cspan pulumi-lang-nodejs=\"`oidcIdentity`\" pulumi-lang-dotnet=\"`OidcIdentity`\" pulumi-lang-go=\"`oidcIdentity`\" pulumi-lang-python=\"`oidc_identity`\" pulumi-lang-yaml=\"`oidcIdentity`\" pulumi-lang-java=\"`oidcIdentity`\" pulumi-lang-hcl=\"`oidc_identity`\"\u003e`oidcIdentity`\u003c/span\u003e + \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e/\u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e) may be specified.", + "secret": true }, "host": { "type": "string", - "description": "The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable.\n" + "description": "The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable." + }, + "oidcIdentity": { + "type": "string", + "description": "The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable." + }, + "oidcToken": { + "type": "string", + "description": "A JWT token to use for OIDC authentication. Only one of \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable.", + "secret": true + }, + "oidcTokenFile": { + "type": "string", + "description": "A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable." }, "verifyTls": { "type": "boolean", - "description": "Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable.\n" + "description": "Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable." } }, - "required": [ - "dopplerToken" - ], "inputProperties": { "dopplerToken": { "type": "string", - "description": "A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable.\n" + "description": "A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of \u003cspan pulumi-lang-nodejs=\"`dopplerToken`\" pulumi-lang-dotnet=\"`DopplerToken`\" pulumi-lang-go=\"`dopplerToken`\" pulumi-lang-python=\"`doppler_token`\" pulumi-lang-yaml=\"`dopplerToken`\" pulumi-lang-java=\"`dopplerToken`\" pulumi-lang-hcl=\"`doppler_token`\"\u003e`dopplerToken`\u003c/span\u003e or OIDC authentication (\u003cspan pulumi-lang-nodejs=\"`oidcIdentity`\" pulumi-lang-dotnet=\"`OidcIdentity`\" pulumi-lang-go=\"`oidcIdentity`\" pulumi-lang-python=\"`oidc_identity`\" pulumi-lang-yaml=\"`oidcIdentity`\" pulumi-lang-java=\"`oidcIdentity`\" pulumi-lang-hcl=\"`oidc_identity`\"\u003e`oidcIdentity`\u003c/span\u003e + \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e/\u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e) may be specified.", + "secret": true }, "host": { "type": "string", - "description": "The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable.\n" + "description": "The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable." + }, + "oidcIdentity": { + "type": "string", + "description": "The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable." + }, + "oidcToken": { + "type": "string", + "description": "A JWT token to use for OIDC authentication. Only one of \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable.", + "secret": true + }, + "oidcTokenFile": { + "type": "string", + "description": "A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of \u003cspan pulumi-lang-nodejs=\"`oidcToken`\" pulumi-lang-dotnet=\"`OidcToken`\" pulumi-lang-go=\"`oidcToken`\" pulumi-lang-python=\"`oidc_token`\" pulumi-lang-yaml=\"`oidcToken`\" pulumi-lang-java=\"`oidcToken`\" pulumi-lang-hcl=\"`oidc_token`\"\u003e`oidcToken`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`oidcTokenFile`\" pulumi-lang-dotnet=\"`OidcTokenFile`\" pulumi-lang-go=\"`oidcTokenFile`\" pulumi-lang-python=\"`oidc_token_file`\" pulumi-lang-yaml=\"`oidcTokenFile`\" pulumi-lang-java=\"`oidcTokenFile`\" pulumi-lang-hcl=\"`oidc_token_file`\"\u003e`oidcTokenFile`\u003c/span\u003e may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable." }, "verifyTls": { "type": "boolean", - "description": "Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable.\n" + "description": "Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable." } }, - "requiredInputs": [ - "dopplerToken" - ] + "methods": { + "terraformConfig": "pulumi:providers:doppler/terraformConfig" + } }, "resources": { "doppler:index/branchConfig:BranchConfig": { - "description": "Manage a Doppler config.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst backendCiGithub = new doppler.BranchConfig(\"backend_ci_github\", {\n project: \"backend\",\n environment: \"ci\",\n name: \"ci_github\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nbackend_ci_github = doppler.BranchConfig(\"backend_ci_github\",\n project=\"backend\",\n environment=\"ci\",\n name=\"ci_github\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCiGithub = new Doppler.BranchConfig(\"backend_ci_github\", new()\n {\n Project = \"backend\",\n Environment = \"ci\",\n Name = \"ci_github\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewBranchConfig(ctx, \"backend_ci_github\", \u0026doppler.BranchConfigArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tEnvironment: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"ci_github\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.BranchConfig;\nimport com.pulumi.doppler.BranchConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCiGithub = new BranchConfig(\"backendCiGithub\", BranchConfigArgs.builder()\n .project(\"backend\")\n .environment(\"ci\")\n .name(\"ci_github\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCiGithub:\n type: doppler:BranchConfig\n name: backend_ci_github\n properties:\n project: backend\n environment: ci\n name: ci_github\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/branchConfig:BranchConfig default \u003cproject-name\u003e.\u003cenvironment-slug\u003e.\u003cconfig-name\u003e\n```\n\n", + "description": "Manage a Doppler config.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backendCiGithub = new doppler.BranchConfig(\"backend_ci_github\", {\n project: \"backend\",\n environment: \"ci\",\n name: \"ci_github\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend_ci_github = doppler.BranchConfig(\"backend_ci_github\",\n project=\"backend\",\n environment=\"ci\",\n name=\"ci_github\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCiGithub = new Doppler.BranchConfig(\"backend_ci_github\", new()\n {\n Project = \"backend\",\n Environment = \"ci\",\n Name = \"ci_github\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewBranchConfig(ctx, \"backend_ci_github\", \u0026doppler.BranchConfigArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tEnvironment: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"ci_github\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_branch_config\" \"backend_ci_github\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n environment = \"ci\"\n name = \"ci_github\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.BranchConfig;\nimport com.pulumi.doppler.BranchConfigArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCiGithub = new BranchConfig(\"backendCiGithub\", BranchConfigArgs.builder()\n .project(\"backend\")\n .environment(\"ci\")\n .name(\"ci_github\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCiGithub:\n type: doppler:BranchConfig\n name: backend_ci_github\n properties:\n project: backend\n environment: ci\n name: ci_github\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/branchConfig:BranchConfig default \u003cproject-name\u003e.\u003cenvironment-slug\u003e.\u003cconfig-name\u003e\n```\n\n", "properties": { + "descriptor": { + "type": "string", + "description": "The descriptor (project.config) of the Doppler config\n" + }, "environment": { "type": "string", "description": "The name of the Doppler environment where the config is located\n" }, + "inheritable": { + "type": "boolean", + "description": "Whether or not the Doppler config can be inherited by other configs\n" + }, + "inherits": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of other Doppler config descriptors that this config inherits from. Descriptors match the format \"project.config\" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor)\n" + }, "name": { "type": "string", "description": "The name of the Doppler config\n" @@ -152,6 +467,7 @@ } }, "required": [ + "descriptor", "environment", "name", "project" @@ -162,6 +478,17 @@ "description": "The name of the Doppler environment where the config is located\n", "willReplaceOnChanges": true }, + "inheritable": { + "type": "boolean", + "description": "Whether or not the Doppler config can be inherited by other configs\n" + }, + "inherits": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of other Doppler config descriptors that this config inherits from. Descriptors match the format \"project.config\" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor)\n" + }, "name": { "type": "string", "description": "The name of the Doppler config\n" @@ -179,11 +506,26 @@ "stateInputs": { "description": "Input properties used for looking up and filtering BranchConfig resources.\n", "properties": { + "descriptor": { + "type": "string", + "description": "The descriptor (project.config) of the Doppler config\n" + }, "environment": { "type": "string", "description": "The name of the Doppler environment where the config is located\n", "willReplaceOnChanges": true }, + "inheritable": { + "type": "boolean", + "description": "Whether or not the Doppler config can be inherited by other configs\n" + }, + "inherits": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of other Doppler config descriptors that this config inherits from. Descriptors match the format \"project.config\" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor)\n" + }, "name": { "type": "string", "description": "The name of the Doppler config\n" @@ -202,33 +544,113 @@ } ] }, - "doppler:index/environment:Environment": { - "description": "Manage a Doppler environment.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst backendCi = new doppler.Environment(\"backend_ci\", {\n project: \"backend\",\n slug: \"ci\",\n name: \"Continuous Integration\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nbackend_ci = doppler.Environment(\"backend_ci\",\n project=\"backend\",\n slug=\"ci\",\n name=\"Continuous Integration\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCi = new Doppler.Environment(\"backend_ci\", new()\n {\n Project = \"backend\",\n Slug = \"ci\",\n Name = \"Continuous Integration\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewEnvironment(ctx, \"backend_ci\", \u0026doppler.EnvironmentArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tSlug: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"Continuous Integration\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Environment;\nimport com.pulumi.doppler.EnvironmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCi = new Environment(\"backendCi\", EnvironmentArgs.builder()\n .project(\"backend\")\n .slug(\"ci\")\n .name(\"Continuous Integration\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCi:\n type: doppler:Environment\n name: backend_ci\n properties:\n project: backend\n slug: ci\n name: Continuous Integration\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/environment:Environment default \u003cproject-name\u003e.\u003cenvironment-slug\u003e\n```\n\n", + "doppler:index/changeRequestPolicy:ChangeRequestPolicy": { + "description": "Manage a Doppler change request policy.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nexport = async () =\u003e {\n const nic = await doppler.getUser({\n email: \"nic@doppler.com\",\n });\n const emily = await doppler.getUser({\n email: \"emily@doppler.com\",\n });\n const testProj = new doppler.Project(\"test_proj\", {\n name: \"my-test-project\",\n description: \"This is a test project\",\n });\n const prd = new doppler.Environment(\"prd\", {\n project: testProj.name,\n slug: \"prd\",\n name: \"prd\",\n });\n const ci = new doppler.Environment(\"ci\", {\n project: testProj.name,\n slug: \"ci\",\n name: \"CI-CD\",\n });\n const ciGithub = new doppler.BranchConfig(\"ci_github\", {\n project: testProj.name,\n environment: ci.slug,\n name: \"ci_github\",\n });\n const prodReviewers = new doppler.Group(\"prod_reviewers\", {name: \"Prod Reviewers\"});\n const prodReviewersGroupMember: doppler.GroupMember[] = [];\n for (const range of Object.entries([nic.slug].reduce((__obj, entry) =\u003e ({ ...__obj, [entry]: entry }), {})).sort().map(([k, v]) =\u003e ({key: k, value: v}))) {\n prodReviewersGroupMember.push(new doppler.GroupMember(`prod_reviewers-${range.key}`, {\n groupSlug: prodReviewers.slug,\n userSlug: range.value,\n }));\n }\n const prdReview = new doppler.ChangeRequestPolicy(\"prd_review\", {\n rules: {\n requiredReviewers: [\n {\n count: 2,\n },\n {\n count: 1,\n groupSlugs: [prodReviewers.slug],\n userSlugs: [emily.slug],\n },\n ],\n disallowSelfReview: true,\n autoAssignReviewers: \"matchCount\",\n },\n targets: {\n projects: [{\n projectName: testProj.name,\n environmentSlugs: [prd.slug],\n configNames: [ciGithub.name],\n }],\n },\n name: \"Prod Review\",\n description: `A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\nReviews from the author of the change request are not counted.\nThis policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\n`,\n });\n}\n```\n```python\nimport pulumi\nfrom typing import Any\nimport pulumi_doppler as doppler\n\nnic = doppler.get_user(email=\"nic@doppler.com\")\nemily = doppler.get_user(email=\"emily@doppler.com\")\ntest_proj = doppler.Project(\"test_proj\",\n name=\"my-test-project\",\n description=\"This is a test project\")\nprd = doppler.Environment(\"prd\",\n project=test_proj.name,\n slug=\"prd\",\n name=\"prd\")\nci = doppler.Environment(\"ci\",\n project=test_proj.name,\n slug=\"ci\",\n name=\"CI-CD\")\nci_github = doppler.BranchConfig(\"ci_github\",\n project=test_proj.name,\n environment=ci.slug,\n name=\"ci_github\")\nprod_reviewers = doppler.Group(\"prod_reviewers\", name=\"Prod Reviewers\")\nprod_reviewers_group_member: list[doppler.GroupMember] = []\nfor prod_reviewers_group_member_range in [{\"key\": k, \"value\": v} for [k, v] in enumerate({entry: entry for entry in [nic.slug]})]:\n prod_reviewers_group_member.append(doppler.GroupMember(f\"prod_reviewers-{prod_reviewers_group_member_range['key']}\",\n group_slug=prod_reviewers.slug,\n user_slug=prod_reviewers_group_member_range[\"value\"]))\nprd_review = doppler.ChangeRequestPolicy(\"prd_review\",\n rules={\n \"required_reviewers\": [\n {\n \"count\": 2,\n },\n {\n \"count\": 1,\n \"group_slugs\": [prod_reviewers.slug],\n \"user_slugs\": [emily.slug],\n },\n ],\n \"disallow_self_review\": True,\n \"auto_assign_reviewers\": \"matchCount\",\n },\n targets={\n \"projects\": [{\n \"project_name\": test_proj.name,\n \"environment_slugs\": [prd.slug],\n \"config_names\": [ci_github.name],\n }],\n },\n name=\"Prod Review\",\n description=\"\"\"A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\nReviews from the author of the change request are not counted.\nThis policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\n\"\"\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(async() =\u003e \n{\n var nic = await Doppler.GetUser.InvokeAsync(new()\n {\n Email = \"nic@doppler.com\",\n });\n\n var emily = await Doppler.GetUser.InvokeAsync(new()\n {\n Email = \"emily@doppler.com\",\n });\n\n var testProj = new Doppler.Project(\"test_proj\", new()\n {\n Name = \"my-test-project\",\n Description = \"This is a test project\",\n });\n\n var prd = new Doppler.Environment(\"prd\", new()\n {\n Project = testProj.Name,\n Slug = \"prd\",\n Name = \"prd\",\n });\n\n var ci = new Doppler.Environment(\"ci\", new()\n {\n Project = testProj.Name,\n Slug = \"ci\",\n Name = \"CI-CD\",\n });\n\n var ciGithub = new Doppler.BranchConfig(\"ci_github\", new()\n {\n Project = testProj.Name,\n Environment = ci.Slug,\n Name = \"ci_github\",\n });\n\n var prodReviewers = new Doppler.Group(\"prod_reviewers\", new()\n {\n Name = \"Prod Reviewers\",\n });\n\n var prodReviewersGroupMember = new List\u003cDoppler.GroupMember\u003e();\n foreach (var range in new[]\n {\n nic.Slug,\n }.ToDictionary(item =\u003e {\n var entry = item.Value;\n return entry;\n }, item =\u003e {\n var entry = item.Value;\n return entry;\n }).Select(pair =\u003e new { pair.Key, pair.Value }))\n {\n prodReviewersGroupMember.Add(new Doppler.GroupMember($\"prod_reviewers-{range.Key}\", new()\n {\n GroupSlug = prodReviewers.Slug,\n UserSlug = range.Value,\n }));\n }\n var prdReview = new Doppler.ChangeRequestPolicy(\"prd_review\", new()\n {\n Rules = new Doppler.Inputs.ChangeRequestPolicyRulesArgs\n {\n RequiredReviewers = new[]\n {\n new Doppler.Inputs.ChangeRequestPolicyRulesRequiredReviewerArgs\n {\n Count = 2,\n },\n new Doppler.Inputs.ChangeRequestPolicyRulesRequiredReviewerArgs\n {\n Count = 1,\n GroupSlugs = new[]\n {\n prodReviewers.Slug,\n },\n UserSlugs = new[]\n {\n emily.Slug,\n },\n },\n },\n DisallowSelfReview = true,\n AutoAssignReviewers = \"matchCount\",\n },\n Targets = new Doppler.Inputs.ChangeRequestPolicyTargetsArgs\n {\n Projects = new[]\n {\n new Doppler.Inputs.ChangeRequestPolicyTargetsProjectArgs\n {\n ProjectName = testProj.Name,\n EnvironmentSlugs = new[]\n {\n prd.Slug,\n },\n ConfigNames = new[]\n {\n ciGithub.Name,\n },\n },\n },\n },\n Name = \"Prod Review\",\n Description = @\"A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\nReviews from the author of the change request are not counted.\nThis policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\n\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tnic, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"nic@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\temily, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"emily@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\ttestProj, err := doppler.NewProject(ctx, \"test_proj\", \u0026doppler.ProjectArgs{\n\t\t\tName: pulumi.String(\"my-test-project\"),\n\t\t\tDescription: pulumi.String(\"This is a test project\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprd, err := doppler.NewEnvironment(ctx, \"prd\", \u0026doppler.EnvironmentArgs{\n\t\t\tProject: testProj.Name,\n\t\t\tSlug: pulumi.String(\"prd\"),\n\t\t\tName: pulumi.String(\"prd\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tci, err := doppler.NewEnvironment(ctx, \"ci\", \u0026doppler.EnvironmentArgs{\n\t\t\tProject: testProj.Name,\n\t\t\tSlug: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"CI-CD\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tciGithub, err := doppler.NewBranchConfig(ctx, \"ci_github\", \u0026doppler.BranchConfigArgs{\n\t\t\tProject: testProj.Name,\n\t\t\tEnvironment: ci.Slug,\n\t\t\tName: pulumi.String(\"ci_github\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprodReviewers, err := doppler.NewGroup(ctx, \"prod_reviewers\", \u0026doppler.GroupArgs{\n\t\t\tName: pulumi.String(\"Prod Reviewers\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tforResult0 := map[string]*string{}\n\t\tfor _, entry := range []*string{\n\t\t\tnic.Slug,\n\t\t} {\n\t\t\tforResult0[entry] = entry\n\t\t}\n\t\tvar prodReviewersGroupMember []*doppler.GroupMember\n\t\tfor key0, val0 := range forResult0 {\n\t\t\t__res, err := doppler.NewGroupMember(ctx, fmt.Sprintf(\"prod_reviewers-%v\", key0), \u0026doppler.GroupMemberArgs{\n\t\t\t\tGroupSlug: prodReviewers.Slug,\n\t\t\t\tUserSlug: pulumi.String(val0),\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tprodReviewersGroupMember = append(prodReviewersGroupMember, __res)\n\t\t}\n\t\t_, err = doppler.NewChangeRequestPolicy(ctx, \"prd_review\", \u0026doppler.ChangeRequestPolicyArgs{\n\t\t\tRules: \u0026doppler.ChangeRequestPolicyRulesArgs{\n\t\t\t\tRequiredReviewers: doppler.ChangeRequestPolicyRulesRequiredReviewerArray{\n\t\t\t\t\t\u0026doppler.ChangeRequestPolicyRulesRequiredReviewerArgs{\n\t\t\t\t\t\tCount: pulumi.Int(2),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026doppler.ChangeRequestPolicyRulesRequiredReviewerArgs{\n\t\t\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\t\t\tGroupSlugs: pulumi.StringArray{\n\t\t\t\t\t\t\tprodReviewers.Slug,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tUserSlugs: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(emily.Slug),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tDisallowSelfReview: pulumi.Bool(true),\n\t\t\t\tAutoAssignReviewers: pulumi.String(\"matchCount\"),\n\t\t\t},\n\t\t\tTargets: \u0026doppler.ChangeRequestPolicyTargetsArgs{\n\t\t\t\tProjects: doppler.ChangeRequestPolicyTargetsProjectArray{\n\t\t\t\t\t\u0026doppler.ChangeRequestPolicyTargetsProjectArgs{\n\t\t\t\t\t\tProjectName: testProj.Name,\n\t\t\t\t\t\tEnvironmentSlugs: pulumi.StringArray{\n\t\t\t\t\t\t\tprd.Slug,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tConfigNames: pulumi.StringArray{\n\t\t\t\t\t\t\tciGithub.Name,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tName: pulumi.String(\"Prod Review\"),\n\t\t\tDescription: pulumi.String(\"A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\\nReviews from the author of the change request are not counted.\\nThis policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\\n\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_user\" \"nic\" {\n email = \"nic@doppler.com\"\n}\ndata \"doppler_user\" \"emily\" {\n email = \"emily@doppler.com\"\n}\n\nresource \"doppler_project\" \"test_proj\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"my-test-project\"\n description = \"This is a test project\"\n}\nresource \"doppler_environment\" \"prd\" {\n lifecycle {\n create_before_destroy = true\n }\n project = doppler_project.test_proj.name\n slug = \"prd\"\n name = \"prd\"\n}\nresource \"doppler_environment\" \"ci\" {\n lifecycle {\n create_before_destroy = true\n }\n project = doppler_project.test_proj.name\n slug = \"ci\"\n name = \"CI-CD\"\n}\nresource \"doppler_branch_config\" \"ci_github\" {\n lifecycle {\n create_before_destroy = true\n }\n project = doppler_project.test_proj.name\n environment = doppler_environment.ci.slug\n name = \"ci_github\"\n}\nresource \"doppler_group\" \"prod_reviewers\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Prod Reviewers\"\n}\nresource \"doppler_group_member\" \"prod_reviewers\" {\n for_each = {for entry in [data.doppler_user.nic.slug] : entry =\u003e entry}\n pulumi {\n name =\"prod_reviewers-${each.key}\"\n }\n lifecycle {\n create_before_destroy = true\n }\n group_slug = doppler_group.prod_reviewers.slug\n user_slug = each.value\n}\nresource \"doppler_change_request_policy\" \"prd_review\" {\n lifecycle {\n create_before_destroy = true\n }\n rules = {\n required_reviewers = [{\n count = 2\n }, {\n count = 1\n group_slugs = [doppler_group.prod_reviewers.slug]\n user_slugs = [data.doppler_user.emily.slug]\n }]\n disallow_self_review = true\n auto_assign_reviewers = \"matchCount\"\n }\n targets = {\n projects = [{\n project_name = doppler_project.test_proj.name\n environment_slugs = [doppler_environment.prd.slug]\n config_names = [doppler_branch_config.ci_github.name]\n }]\n }\n name = \"Prod Review\"\n description = \u003c\u003cEOT\nA change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\nReviews from the author of the change request are not counted.\nThis policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\nEOT\n\n}\n```\n```yaml\nresources:\n testProj:\n type: doppler:Project\n name: test_proj\n properties:\n name: my-test-project\n description: This is a test project\n prd:\n type: doppler:Environment\n properties:\n project: ${testProj.name}\n slug: prd\n name: prd\n ci:\n type: doppler:Environment\n properties:\n project: ${testProj.name}\n slug: ci\n name: CI-CD\n ciGithub:\n type: doppler:BranchConfig\n name: ci_github\n properties:\n project: ${testProj.name}\n environment: ${ci.slug}\n name: ci_github\n prodReviewers:\n type: doppler:Group\n name: prod_reviewers\n properties:\n name: Prod Reviewers\n prodReviewersGroupMember:\n type: doppler:GroupMember\n name: prod_reviewers\n properties:\n groupSlug: ${prodReviewers.slug}\n userSlug: ${range.value}\n options: {}\n prdReview:\n type: doppler:ChangeRequestPolicy\n name: prd_review\n properties:\n rules:\n requiredReviewers:\n - count: 2\n - count: 1\n groupSlugs:\n - ${prodReviewers.slug}\n userSlugs:\n - ${emily.slug}\n disallowSelfReview: true\n autoAssignReviewers: matchCount\n targets:\n projects:\n - projectName: ${testProj.name}\n environmentSlugs:\n - ${prd.slug}\n configNames:\n - ${ciGithub.name}\n name: Prod Review\n description: |\n A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\n Reviews from the author of the change request are not counted.\n This policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\nvariables:\n nic:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: nic@doppler.com\n emily:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: emily@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/changeRequestPolicy:ChangeRequestPolicy \u003cname\u003e \u003cchange-request-policy-id\u003e\n```\n\n", "properties": { - "name": { + "description": { "type": "string", - "description": "The name of the Doppler environment\n" - }, - "personalConfigs": { - "type": "boolean", - "description": "Whether or not personal configs are enabled for the environment\n" + "description": "A description of the change request policy\n" }, - "project": { + "name": { "type": "string", - "description": "The name of the Doppler project where the environment is located\n" + "description": "The name of the change request policy\n" + }, + "rules": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyRules:ChangeRequestPolicyRules", + "description": "Rules that the policy will apply to its targets\n" }, "slug": { "type": "string", - "description": "The slug of the Doppler environment\n" + "description": "The unique identifier of the change request policy\n" + }, + "targets": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyTargets:ChangeRequestPolicyTargets", + "description": "Where the policy will apply\n" } }, "required": [ "name", - "project", - "slug" + "rules", + "slug", + "targets" ], "inputProperties": { - "name": { + "description": { + "type": "string", + "description": "A description of the change request policy\n" + }, + "name": { + "type": "string", + "description": "The name of the change request policy\n" + }, + "rules": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyRules:ChangeRequestPolicyRules", + "description": "Rules that the policy will apply to its targets\n" + }, + "targets": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyTargets:ChangeRequestPolicyTargets", + "description": "Where the policy will apply\n" + } + }, + "requiredInputs": [ + "name", + "rules", + "targets" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ChangeRequestPolicy resources.\n", + "properties": { + "description": { + "type": "string", + "description": "A description of the change request policy\n" + }, + "name": { + "type": "string", + "description": "The name of the change request policy\n" + }, + "rules": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyRules:ChangeRequestPolicyRules", + "description": "Rules that the policy will apply to its targets\n" + }, + "slug": { + "type": "string", + "description": "The unique identifier of the change request policy\n" + }, + "targets": { + "$ref": "#/types/doppler:index/ChangeRequestPolicyTargets:ChangeRequestPolicyTargets", + "description": "Where the policy will apply\n" + } + }, + "type": "object" + } + }, + "doppler:index/environment:Environment": { + "description": "Manage a Doppler environment.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backendCi = new doppler.Environment(\"backend_ci\", {\n project: \"backend\",\n slug: \"ci\",\n name: \"Continuous Integration\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend_ci = doppler.Environment(\"backend_ci\",\n project=\"backend\",\n slug=\"ci\",\n name=\"Continuous Integration\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCi = new Doppler.Environment(\"backend_ci\", new()\n {\n Project = \"backend\",\n Slug = \"ci\",\n Name = \"Continuous Integration\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewEnvironment(ctx, \"backend_ci\", \u0026doppler.EnvironmentArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tSlug: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"Continuous Integration\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_environment\" \"backend_ci\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n slug = \"ci\"\n name = \"Continuous Integration\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Environment;\nimport com.pulumi.doppler.EnvironmentArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCi = new Environment(\"backendCi\", EnvironmentArgs.builder()\n .project(\"backend\")\n .slug(\"ci\")\n .name(\"Continuous Integration\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCi:\n type: doppler:Environment\n name: backend_ci\n properties:\n project: backend\n slug: ci\n name: Continuous Integration\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/environment:Environment default \u003cproject-name\u003e.\u003cenvironment-slug\u003e\n```\n\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the Doppler environment\n" + }, + "personalConfigs": { + "type": "boolean", + "description": "Whether or not personal configs are enabled for the environment\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the environment is located\n" + }, + "slug": { + "type": "string", + "description": "The slug of the Doppler environment\n" + } + }, + "required": [ + "name", + "project", + "slug" + ], + "inputProperties": { + "name": { "type": "string", "description": "The name of the Doppler environment\n" }, @@ -276,11 +698,11 @@ } }, "doppler:index/group:Group": { - "description": "Manage a Doppler group.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst engineering = new doppler.Group(\"engineering\", {name: \"engineering\"});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nengineering = doppler.Group(\"engineering\", name=\"engineering\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var engineering = new Doppler.Group(\"engineering\", new()\n {\n Name = \"engineering\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewGroup(ctx, \"engineering\", \u0026doppler.GroupArgs{\n\t\t\tName: pulumi.String(\"engineering\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Group;\nimport com.pulumi.doppler.GroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var engineering = new Group(\"engineering\", GroupArgs.builder()\n .name(\"engineering\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n engineering:\n type: doppler:Group\n properties:\n name: engineering\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the group slug from the URL:\n\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]\n\n```sh\n$ pulumi import doppler:index/group:Group default \u003cgroup-slug\u003e\n```\n\n", + "description": "Manage a Doppler group.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst engineering = new doppler.Group(\"engineering\", {\n name: \"engineering\",\n workplaceRole: \"viewer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nengineering = doppler.Group(\"engineering\",\n name=\"engineering\",\n workplace_role=\"viewer\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var engineering = new Doppler.Group(\"engineering\", new()\n {\n Name = \"engineering\",\n WorkplaceRole = \"viewer\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewGroup(ctx, \"engineering\", \u0026doppler.GroupArgs{\n\t\t\tName: pulumi.String(\"engineering\"),\n\t\t\tWorkplaceRole: pulumi.String(\"viewer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_group\" \"engineering\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"engineering\"\n workplace_role = \"viewer\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Group;\nimport com.pulumi.doppler.GroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var engineering = new Group(\"engineering\", GroupArgs.builder()\n .name(\"engineering\")\n .workplaceRole(\"viewer\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n engineering:\n type: doppler:Group\n properties:\n name: engineering\n workplaceRole: viewer\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the group slug from the URL:\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]\n\n```sh\n$ pulumi import doppler:index/group:Group default \u003cgroup-slug\u003e\n```\n\n", "properties": { "defaultProjectRole": { "type": "string", - "description": "The default project role assigned to the group when added to a Doppler project\n" + "description": "The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting.\n" }, "name": { "type": "string", @@ -289,6 +711,10 @@ "slug": { "type": "string", "description": "The slug of the group\n" + }, + "workplaceRole": { + "type": "string", + "description": "The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use \u003cspan pulumi-lang-nodejs=\"\"noAccess\"\" pulumi-lang-dotnet=\"\"NoAccess\"\" pulumi-lang-go=\"\"noAccess\"\" pulumi-lang-python=\"\"no_access\"\" pulumi-lang-yaml=\"\"noAccess\"\" pulumi-lang-java=\"\"noAccess\"\" pulumi-lang-hcl=\"\"no_access\"\"\u003e\"noAccess\"\u003c/span\u003e to ensure the group has no workplace permissions\n" } }, "required": [ @@ -298,11 +724,15 @@ "inputProperties": { "defaultProjectRole": { "type": "string", - "description": "The default project role assigned to the group when added to a Doppler project\n" + "description": "The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting.\n" }, "name": { "type": "string", "description": "The name of the group\n" + }, + "workplaceRole": { + "type": "string", + "description": "The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use \u003cspan pulumi-lang-nodejs=\"\"noAccess\"\" pulumi-lang-dotnet=\"\"NoAccess\"\" pulumi-lang-go=\"\"noAccess\"\" pulumi-lang-python=\"\"no_access\"\" pulumi-lang-yaml=\"\"noAccess\"\" pulumi-lang-java=\"\"noAccess\"\" pulumi-lang-hcl=\"\"no_access\"\"\u003e\"noAccess\"\u003c/span\u003e to ensure the group has no workplace permissions\n" } }, "requiredInputs": [ @@ -313,7 +743,7 @@ "properties": { "defaultProjectRole": { "type": "string", - "description": "The default project role assigned to the group when added to a Doppler project\n" + "description": "The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting.\n" }, "name": { "type": "string", @@ -322,13 +752,17 @@ "slug": { "type": "string", "description": "The slug of the group\n" + }, + "workplaceRole": { + "type": "string", + "description": "The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use \u003cspan pulumi-lang-nodejs=\"\"noAccess\"\" pulumi-lang-dotnet=\"\"NoAccess\"\" pulumi-lang-go=\"\"noAccess\"\" pulumi-lang-python=\"\"no_access\"\" pulumi-lang-yaml=\"\"noAccess\"\" pulumi-lang-java=\"\"noAccess\"\" pulumi-lang-hcl=\"\"no_access\"\"\u003e\"noAccess\"\u003c/span\u003e to ensure the group has no workplace permissions\n" } }, "type": "object" } }, "doppler:index/groupMember:GroupMember": { - "description": "Manage a Doppler user/group membership.\n\n**Note:** You can also exclusively manage all memberships in a group with a single resource.\nSee the `doppler.GroupMembers` resource for more information.\n\n## Import\n\nimport using the group slug from the URL:\n\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]\n\nand the user slug from the URL:\n\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug]\n\n```sh\n$ pulumi import doppler:index/groupMember:GroupMember default \u003cgroup-slug\u003e.workplace_user.\u003cuser-slug\u003e\n```\n\n", + "description": "Manage a Doppler user/group membership.\n\n**Note:** You can also exclusively manage all memberships in a group with a single resource.\nSee the \u003cspan pulumi-lang-nodejs=\"`doppler.GroupMembers`\" pulumi-lang-dotnet=\"`doppler.GroupMembers`\" pulumi-lang-go=\"`GroupMembers`\" pulumi-lang-python=\"`GroupMembers`\" pulumi-lang-yaml=\"`doppler.GroupMembers`\" pulumi-lang-java=\"`doppler.GroupMembers`\" pulumi-lang-hcl=\"`doppler_group_members`\"\u003e`doppler.GroupMembers`\u003c/span\u003e resource for more information.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nexport = async () =\u003e {\n const engineering = new doppler.Group(\"engineering\", {name: \"engineering\"});\n const nic = await doppler.getUser({\n email: \"nic@doppler.com\",\n });\n const andre = await doppler.getUser({\n email: \"andre@doppler.com\",\n });\n const engineeringGroupMember: doppler.GroupMember[] = [];\n for (const range of Object.entries([\n nic.slug,\n andre.slug,\n ].reduce((__obj, entry) =\u003e ({ ...__obj, [entry]: entry }), {})).sort().map(([k, v]) =\u003e ({key: k, value: v}))) {\n engineeringGroupMember.push(new doppler.GroupMember(`engineering-${range.key}`, {\n groupSlug: engineering.slug,\n userSlug: range.value,\n }));\n }\n}\n```\n```python\nimport pulumi\nfrom typing import Any\nimport pulumi_doppler as doppler\n\nengineering = doppler.Group(\"engineering\", name=\"engineering\")\nnic = doppler.get_user(email=\"nic@doppler.com\")\nandre = doppler.get_user(email=\"andre@doppler.com\")\nengineering_group_member: list[doppler.GroupMember] = []\nfor engineering_group_member_range in [{\"key\": k, \"value\": v} for [k, v] in enumerate({entry: entry for entry in [\n nic.slug,\n andre.slug,\n]})]:\n engineering_group_member.append(doppler.GroupMember(f\"engineering-{engineering_group_member_range['key']}\",\n group_slug=engineering.slug,\n user_slug=engineering_group_member_range[\"value\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(async() =\u003e \n{\n var engineering = new Doppler.Group(\"engineering\", new()\n {\n Name = \"engineering\",\n });\n\n var nic = await Doppler.GetUser.InvokeAsync(new()\n {\n Email = \"nic@doppler.com\",\n });\n\n var andre = await Doppler.GetUser.InvokeAsync(new()\n {\n Email = \"andre@doppler.com\",\n });\n\n var engineeringGroupMember = new List\u003cDoppler.GroupMember\u003e();\n foreach (var range in new[]\n {\n nic.Slug,\n andre.Slug,\n }.ToDictionary(item =\u003e {\n var entry = item.Value;\n return entry;\n }, item =\u003e {\n var entry = item.Value;\n return entry;\n }).Select(pair =\u003e new { pair.Key, pair.Value }))\n {\n engineeringGroupMember.Add(new Doppler.GroupMember($\"engineering-{range.Key}\", new()\n {\n GroupSlug = engineering.Slug,\n UserSlug = range.Value,\n }));\n }\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tengineering, err := doppler.NewGroup(ctx, \"engineering\", \u0026doppler.GroupArgs{\n\t\t\tName: pulumi.String(\"engineering\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tnic, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"nic@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tandre, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"andre@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tforResult0 := map[string]*string{}\n\t\tfor _, entry := range []*string{\n\t\t\tnic.Slug,\n\t\t\tandre.Slug,\n\t\t} {\n\t\t\tforResult0[entry] = entry\n\t\t}\n\t\tvar engineeringGroupMember []*doppler.GroupMember\n\t\tfor key0, val0 := range forResult0 {\n\t\t\t__res, err := doppler.NewGroupMember(ctx, fmt.Sprintf(\"engineering-%v\", key0), \u0026doppler.GroupMemberArgs{\n\t\t\t\tGroupSlug: engineering.Slug,\n\t\t\t\tUserSlug: pulumi.String(val0),\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tengineeringGroupMember = append(engineeringGroupMember, __res)\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_user\" \"nic\" {\n email = \"nic@doppler.com\"\n}\ndata \"doppler_user\" \"andre\" {\n email = \"andre@doppler.com\"\n}\n\nresource \"doppler_group\" \"engineering\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"engineering\"\n}\nresource \"doppler_group_member\" \"engineering\" {\n for_each = {for entry in [data.doppler_user.nic.slug, data.doppler_user.andre.slug] : entry =\u003e entry}\n pulumi {\n name =\"engineering-${each.key}\"\n }\n lifecycle {\n create_before_destroy = true\n }\n group_slug = doppler_group.engineering.slug\n user_slug = each.value\n}\n```\n```yaml\nresources:\n engineering:\n type: doppler:Group\n properties:\n name: engineering\n engineeringGroupMember:\n type: doppler:GroupMember\n name: engineering\n properties:\n groupSlug: ${engineering.slug}\n userSlug: ${range.value}\n options: {}\nvariables:\n nic:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: nic@doppler.com\n andre:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: andre@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the group slug from the URL:\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]\nand the user slug from the URL:\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug]\n\n```sh\n$ pulumi import doppler:index/groupMember:GroupMember default \u003cgroup-slug\u003e.workplace_user.\u003cuser-slug\u003e\n```\n\n", "properties": { "groupSlug": { "type": "string", @@ -377,7 +811,7 @@ } }, "doppler:index/groupMembers:GroupMembers": { - "description": "Manage a Doppler group's memberships.\n\n**Note:** The `doppler.GroupMembers` resource will clear/replace all existing memberships.\nMultiple `doppler.GroupMembers` resources or combinations of `doppler.GroupMembers` and `doppler.GroupMember` will produce inconsistent behavior.\nTo non-exclusively manage group memberships, use `doppler.GroupMember` only.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumi/doppler\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst engineering = new doppler.Group(\"engineering\", {name: \"engineering\"});\nconst nic = doppler.getUser({\n email: \"nic@doppler.com\",\n});\nconst andre = doppler.getUser({\n email: \"andre@doppler.com\",\n});\nconst engineeringGroupMembers = new doppler.GroupMembers(\"engineering\", {\n groupSlug: engineering.slug,\n userSlugs: [\n nic.then(nic =\u003e nic.slug),\n andre.then(andre =\u003e andre.slug),\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumiverse_doppler as doppler\n\nengineering = doppler.Group(\"engineering\", name=\"engineering\")\nnic = doppler.get_user(email=\"nic@doppler.com\")\nandre = doppler.get_user(email=\"andre@doppler.com\")\nengineering_group_members = doppler.GroupMembers(\"engineering\",\n group_slug=engineering.slug,\n user_slugs=[\n nic.slug,\n andre.slug,\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumi.Doppler;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var engineering = new Doppler.Group(\"engineering\", new()\n {\n Name = \"engineering\",\n });\n\n var nic = Doppler.GetUser.Invoke(new()\n {\n Email = \"nic@doppler.com\",\n });\n\n var andre = Doppler.GetUser.Invoke(new()\n {\n Email = \"andre@doppler.com\",\n });\n\n var engineeringGroupMembers = new Doppler.GroupMembers(\"engineering\", new()\n {\n GroupSlug = engineering.Slug,\n UserSlugs = new[]\n {\n nic.Apply(getUserResult =\u003e getUserResult.Slug),\n andre.Apply(getUserResult =\u003e getUserResult.Slug),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tengineering, err := doppler.NewGroup(ctx, \"engineering\", \u0026doppler.GroupArgs{\n\t\t\tName: pulumi.String(\"engineering\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tnic, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"nic@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tandre, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"andre@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewGroupMembers(ctx, \"engineering\", \u0026doppler.GroupMembersArgs{\n\t\t\tGroupSlug: engineering.Slug,\n\t\t\tUserSlugs: pulumi.StringArray{\n\t\t\t\tpulumi.String(nic.Slug),\n\t\t\t\tpulumi.String(andre.Slug),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Group;\nimport com.pulumi.doppler.GroupArgs;\nimport com.pulumi.doppler.DopplerFunctions;\nimport com.pulumi.doppler.inputs.GetUserArgs;\nimport com.pulumi.doppler.GroupMembers;\nimport com.pulumi.doppler.GroupMembersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var engineering = new Group(\"engineering\", GroupArgs.builder()\n .name(\"engineering\")\n .build());\n\n final var nic = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"nic@doppler.com\")\n .build());\n\n final var andre = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"andre@doppler.com\")\n .build());\n\n var engineeringGroupMembers = new GroupMembers(\"engineeringGroupMembers\", GroupMembersArgs.builder()\n .groupSlug(engineering.slug())\n .userSlugs( \n nic.applyValue(getUserResult -\u003e getUserResult.slug()),\n andre.applyValue(getUserResult -\u003e getUserResult.slug()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n engineering:\n type: doppler:Group\n properties:\n name: engineering\n engineeringGroupMembers:\n type: doppler:GroupMembers\n name: engineering\n properties:\n groupSlug: ${engineering.slug}\n userSlugs:\n - ${nic.slug}\n - ${andre.slug}\nvariables:\n nic:\n fn::invoke:\n Function: doppler:getUser\n Arguments:\n email: nic@doppler.com\n andre:\n fn::invoke:\n Function: doppler:getUser\n Arguments:\n email: andre@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the group slug from the URL:\n\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]\n\nand the user slugs from the URL:\n\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug]\n\n```sh\n$ pulumi import doppler:index/groupMembers:GroupMembers default \u003cgroup-slug\u003e\n```\n\n", + "description": "Manage a Doppler group's memberships.\n\n**Note:** The \u003cspan pulumi-lang-nodejs=\"`doppler.GroupMembers`\" pulumi-lang-dotnet=\"`doppler.GroupMembers`\" pulumi-lang-go=\"`GroupMembers`\" pulumi-lang-python=\"`GroupMembers`\" pulumi-lang-yaml=\"`doppler.GroupMembers`\" pulumi-lang-java=\"`doppler.GroupMembers`\" pulumi-lang-hcl=\"`doppler_group_members`\"\u003e`doppler.GroupMembers`\u003c/span\u003e resource will clear/replace all existing memberships.\nMultiple \u003cspan pulumi-lang-nodejs=\"`doppler.GroupMembers`\" pulumi-lang-dotnet=\"`doppler.GroupMembers`\" pulumi-lang-go=\"`GroupMembers`\" pulumi-lang-python=\"`GroupMembers`\" pulumi-lang-yaml=\"`doppler.GroupMembers`\" pulumi-lang-java=\"`doppler.GroupMembers`\" pulumi-lang-hcl=\"`doppler_group_members`\"\u003e`doppler.GroupMembers`\u003c/span\u003e resources or combinations of \u003cspan pulumi-lang-nodejs=\"`doppler.GroupMembers`\" pulumi-lang-dotnet=\"`doppler.GroupMembers`\" pulumi-lang-go=\"`GroupMembers`\" pulumi-lang-python=\"`GroupMembers`\" pulumi-lang-yaml=\"`doppler.GroupMembers`\" pulumi-lang-java=\"`doppler.GroupMembers`\" pulumi-lang-hcl=\"`doppler_group_members`\"\u003e`doppler.GroupMembers`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`doppler.GroupMember`\" pulumi-lang-dotnet=\"`doppler.GroupMember`\" pulumi-lang-go=\"`GroupMember`\" pulumi-lang-python=\"`GroupMember`\" pulumi-lang-yaml=\"`doppler.GroupMember`\" pulumi-lang-java=\"`doppler.GroupMember`\" pulumi-lang-hcl=\"`doppler_group_member`\"\u003e`doppler.GroupMember`\u003c/span\u003e will produce inconsistent behavior.\nTo non-exclusively manage group memberships, use \u003cspan pulumi-lang-nodejs=\"`doppler.GroupMember`\" pulumi-lang-dotnet=\"`doppler.GroupMember`\" pulumi-lang-go=\"`GroupMember`\" pulumi-lang-python=\"`GroupMember`\" pulumi-lang-yaml=\"`doppler.GroupMember`\" pulumi-lang-java=\"`doppler.GroupMember`\" pulumi-lang-hcl=\"`doppler_group_member`\"\u003e`doppler.GroupMember`\u003c/span\u003e only.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst engineering = new doppler.Group(\"engineering\", {name: \"engineering\"});\nconst nic = doppler.getUser({\n email: \"nic@doppler.com\",\n});\nconst andre = doppler.getUser({\n email: \"andre@doppler.com\",\n});\nconst engineeringGroupMembers = new doppler.GroupMembers(\"engineering\", {\n groupSlug: engineering.slug,\n userSlugs: [\n nic.then(nic =\u003e nic.slug),\n andre.then(andre =\u003e andre.slug),\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nengineering = doppler.Group(\"engineering\", name=\"engineering\")\nnic = doppler.get_user(email=\"nic@doppler.com\")\nandre = doppler.get_user(email=\"andre@doppler.com\")\nengineering_group_members = doppler.GroupMembers(\"engineering\",\n group_slug=engineering.slug,\n user_slugs=[\n nic.slug,\n andre.slug,\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var engineering = new Doppler.Group(\"engineering\", new()\n {\n Name = \"engineering\",\n });\n\n var nic = Doppler.GetUser.Invoke(new()\n {\n Email = \"nic@doppler.com\",\n });\n\n var andre = Doppler.GetUser.Invoke(new()\n {\n Email = \"andre@doppler.com\",\n });\n\n var engineeringGroupMembers = new Doppler.GroupMembers(\"engineering\", new()\n {\n GroupSlug = engineering.Slug,\n UserSlugs = new[]\n {\n nic.Apply(getUserResult =\u003e getUserResult.Slug),\n andre.Apply(getUserResult =\u003e getUserResult.Slug),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tengineering, err := doppler.NewGroup(ctx, \"engineering\", \u0026doppler.GroupArgs{\n\t\t\tName: pulumi.String(\"engineering\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tnic, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"nic@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tandre, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"andre@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewGroupMembers(ctx, \"engineering\", \u0026doppler.GroupMembersArgs{\n\t\t\tGroupSlug: engineering.Slug,\n\t\t\tUserSlugs: pulumi.StringArray{\n\t\t\t\tpulumi.String(nic.Slug),\n\t\t\t\tpulumi.String(andre.Slug),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_user\" \"nic\" {\n email = \"nic@doppler.com\"\n}\ndata \"doppler_user\" \"andre\" {\n email = \"andre@doppler.com\"\n}\n\nresource \"doppler_group\" \"engineering\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"engineering\"\n}\nresource \"doppler_group_members\" \"engineering\" {\n lifecycle {\n create_before_destroy = true\n }\n group_slug = doppler_group.engineering.slug\n user_slugs = [data.doppler_user.nic.slug, data.doppler_user.andre.slug]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Group;\nimport com.pulumi.doppler.GroupArgs;\nimport com.pulumi.doppler.DopplerFunctions;\nimport com.pulumi.doppler.inputs.GetUserArgs;\nimport com.pulumi.doppler.GroupMembers;\nimport com.pulumi.doppler.GroupMembersArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var engineering = new Group(\"engineering\", GroupArgs.builder()\n .name(\"engineering\")\n .build());\n\n final var nic = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"nic@doppler.com\")\n .build());\n\n final var andre = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"andre@doppler.com\")\n .build());\n\n var engineeringGroupMembers = new GroupMembers(\"engineeringGroupMembers\", GroupMembersArgs.builder()\n .groupSlug(engineering.slug())\n .userSlugs( \n nic.slug(),\n andre.slug())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n engineering:\n type: doppler:Group\n properties:\n name: engineering\n engineeringGroupMembers:\n type: doppler:GroupMembers\n name: engineering\n properties:\n groupSlug: ${engineering.slug}\n userSlugs:\n - ${nic.slug}\n - ${andre.slug}\nvariables:\n nic:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: nic@doppler.com\n andre:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: andre@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the group slug from the URL:\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]\nand the user slugs from the URL:\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug]\n\n```sh\n$ pulumi import doppler:index/groupMembers:GroupMembers default \u003cgroup-slug\u003e\n```\n\n", "properties": { "groupSlug": { "type": "string", @@ -433,7 +867,7 @@ } }, "doppler:index/project:Project": { - "description": "Manage a Doppler project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst backend = new doppler.Project(\"backend\", {\n name: \"backend\",\n description: \"The main backend project\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nbackend = doppler.Project(\"backend\",\n name=\"backend\",\n description=\"The main backend project\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backend = new Doppler.Project(\"backend\", new()\n {\n Name = \"backend\",\n Description = \"The main backend project\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewProject(ctx, \"backend\", \u0026doppler.ProjectArgs{\n\t\t\tName: pulumi.String(\"backend\"),\n\t\t\tDescription: pulumi.String(\"The main backend project\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Project;\nimport com.pulumi.doppler.ProjectArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backend = new Project(\"backend\", ProjectArgs.builder()\n .name(\"backend\")\n .description(\"The main backend project\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backend:\n type: doppler:Project\n properties:\n name: backend\n description: The main backend project\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/project:Project default \u003cproject-name\u003e\n```\n\n", + "description": "Manage a Doppler project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backend = new doppler.Project(\"backend\", {\n name: \"backend\",\n description: \"The main backend project\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend = doppler.Project(\"backend\",\n name=\"backend\",\n description=\"The main backend project\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backend = new Doppler.Project(\"backend\", new()\n {\n Name = \"backend\",\n Description = \"The main backend project\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewProject(ctx, \"backend\", \u0026doppler.ProjectArgs{\n\t\t\tName: pulumi.String(\"backend\"),\n\t\t\tDescription: pulumi.String(\"The main backend project\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_project\" \"backend\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"backend\"\n description = \"The main backend project\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Project;\nimport com.pulumi.doppler.ProjectArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backend = new Project(\"backend\", ProjectArgs.builder()\n .name(\"backend\")\n .description(\"The main backend project\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backend:\n type: doppler:Project\n properties:\n name: backend\n description: The main backend project\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/project:Project default \u003cproject-name\u003e\n```\n\n", "properties": { "description": { "type": "string", @@ -476,7 +910,7 @@ } }, "doppler:index/projectRole:ProjectRole": { - "description": "Manage a Doppler project_role.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst logViewer = new doppler.ProjectRole(\"log_viewer\", {\n name: \"Log Viewer\",\n permissions: [\"enclave_config_logs\"],\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nlog_viewer = doppler.ProjectRole(\"log_viewer\",\n name=\"Log Viewer\",\n permissions=[\"enclave_config_logs\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var logViewer = new Doppler.ProjectRole(\"log_viewer\", new()\n {\n Name = \"Log Viewer\",\n Permissions = new[]\n {\n \"enclave_config_logs\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewProjectRole(ctx, \"log_viewer\", \u0026doppler.ProjectRoleArgs{\n\t\t\tName: pulumi.String(\"Log Viewer\"),\n\t\t\tPermissions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"enclave_config_logs\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ProjectRole;\nimport com.pulumi.doppler.ProjectRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var logViewer = new ProjectRole(\"logViewer\", ProjectRoleArgs.builder()\n .name(\"Log Viewer\")\n .permissions(\"enclave_config_logs\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n logViewer:\n type: doppler:ProjectRole\n name: log_viewer\n properties:\n name: Log Viewer\n permissions:\n - enclave_config_logs\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/projectRole:ProjectRole default \u003cproject-role-identifier\u003e\n```\n\n", + "description": "Manage a Doppler project_role.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst logViewer = new doppler.ProjectRole(\"log_viewer\", {\n name: \"Log Viewer\",\n permissions: [\"enclave_config_logs\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nlog_viewer = doppler.ProjectRole(\"log_viewer\",\n name=\"Log Viewer\",\n permissions=[\"enclave_config_logs\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var logViewer = new Doppler.ProjectRole(\"log_viewer\", new()\n {\n Name = \"Log Viewer\",\n Permissions = new[]\n {\n \"enclave_config_logs\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewProjectRole(ctx, \"log_viewer\", \u0026doppler.ProjectRoleArgs{\n\t\t\tName: pulumi.String(\"Log Viewer\"),\n\t\t\tPermissions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"enclave_config_logs\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_project_role\" \"log_viewer\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Log Viewer\"\n permissions = [\"enclave_config_logs\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ProjectRole;\nimport com.pulumi.doppler.ProjectRoleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var logViewer = new ProjectRole(\"logViewer\", ProjectRoleArgs.builder()\n .name(\"Log Viewer\")\n .permissions(\"enclave_config_logs\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n logViewer:\n type: doppler:ProjectRole\n name: log_viewer\n properties:\n name: Log Viewer\n permissions:\n - enclave_config_logs\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/projectRole:ProjectRole default \u003cproject-role-identifier\u003e\n```\n\n", "properties": { "identifier": { "type": "string", @@ -547,8 +981,57 @@ "type": "object" } }, + "doppler:index/projectTag:ProjectTag": { + "description": "Manage a Doppler tag assigned to a project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backend = new doppler.Tag(\"backend\", {name: \"Backend\"});\nconst backendProjectTag = new doppler.ProjectTag(\"backend\", {\n project: \"backend\",\n tagSlug: backend.slug,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend = doppler.Tag(\"backend\", name=\"Backend\")\nbackend_project_tag = doppler.ProjectTag(\"backend\",\n project=\"backend\",\n tag_slug=backend.slug)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backend = new Doppler.Tag(\"backend\", new()\n {\n Name = \"Backend\",\n });\n\n var backendProjectTag = new Doppler.ProjectTag(\"backend\", new()\n {\n Project = \"backend\",\n TagSlug = backend.Slug,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbackend, err := doppler.NewTag(ctx, \"backend\", \u0026doppler.TagArgs{\n\t\t\tName: pulumi.String(\"Backend\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewProjectTag(ctx, \"backend\", \u0026doppler.ProjectTagArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tTagSlug: backend.Slug,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_tag\" \"backend\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend\"\n}\nresource \"doppler_project_tag\" \"backend\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n tag_slug = doppler_tag.backend.slug\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Tag;\nimport com.pulumi.doppler.TagArgs;\nimport com.pulumi.doppler.ProjectTag;\nimport com.pulumi.doppler.ProjectTagArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backend = new Tag(\"backend\", TagArgs.builder()\n .name(\"Backend\")\n .build());\n\n var backendProjectTag = new ProjectTag(\"backendProjectTag\", ProjectTagArgs.builder()\n .project(\"backend\")\n .tagSlug(backend.slug())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backend:\n type: doppler:Tag\n properties:\n name: Backend\n backendProjectTag:\n type: doppler:ProjectTag\n name: backend\n properties:\n project: backend\n tagSlug: ${backend.slug}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/projectTag:ProjectTag default \u003cproject-name\u003e.\u003ctag-slug\u003e\n```\n\n", + "properties": { + "project": { + "type": "string", + "description": "The name of the Doppler project the tag is assigned to\n" + }, + "tagSlug": { + "type": "string", + "description": "The slug of the Doppler tag\n" + } + }, + "required": [ + "project", + "tagSlug" + ], + "inputProperties": { + "project": { + "type": "string", + "description": "The name of the Doppler project the tag is assigned to\n", + "willReplaceOnChanges": true + }, + "tagSlug": { + "type": "string", + "description": "The slug of the Doppler tag\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "project", + "tagSlug" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ProjectTag resources.\n", + "properties": { + "project": { + "type": "string", + "description": "The name of the Doppler project the tag is assigned to\n", + "willReplaceOnChanges": true + }, + "tagSlug": { + "type": "string", + "description": "The slug of the Doppler tag\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, "doppler:index/secret:Secret": { - "description": "Manage a single Doppler secret in a config.\n\n## Import\n\n```sh\n$ pulumi import doppler:index/secret:Secret default \u003cproject-name\u003e.\u003cconfig-name\u003e.\u003csecret-name\u003e\n```\n\n", + "description": "Manage a single Doppler secret in a config.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as random from \"@pulumi/random\";\n\nconst dbPassword = new random.index.Password(\"db_password\", {\n length: 32,\n special: true,\n});\nconst dbPasswordSecret = new doppler.Secret(\"db_password\", {\n project: \"backend\",\n config: \"dev\",\n name: \"DB_PASSWORD\",\n value: dbPassword.result,\n});\nexport const resourceValue = pulumi.unsecret(dbPasswordSecret.value);\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_random as random\n\ndb_password = random.Password(\"db_password\",\n length=32,\n special=True)\ndb_password_secret = doppler.Secret(\"db_password\",\n project=\"backend\",\n config=\"dev\",\n name=\"DB_PASSWORD\",\n value=db_password[\"result\"])\npulumi.export(\"resourceValue\", pulumi.Output.unsecret(db_password_secret.value))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Random = Pulumi.Random;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dbPassword = new Random.Password(\"db_password\", new()\n {\n Length = 32,\n Special = true,\n });\n\n var dbPasswordSecret = new Doppler.Secret(\"db_password\", new()\n {\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB_PASSWORD\",\n Value = dbPassword.Result,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"resourceValue\"] = Output.Unsecret(dbPasswordSecret.Value),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi-random/sdk/v4/go/random\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdbPassword, err := random.NewPassword(ctx, \"db_password\", \u0026random.PasswordArgs{\n\t\t\tLength: 32,\n\t\t\tSpecial: true,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdbPasswordSecret, err := doppler.NewSecret(ctx, \"db_password\", \u0026doppler.SecretArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB_PASSWORD\"),\n\t\t\tValue: dbPassword.Result,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"resourceValue\", pulumi.Unsecret(dbPasswordSecret.Value).(pulumi.StringOutput))\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n random = {\n source = \"pulumi/random\"\n }\n }\n}\n\nresource \"random_password\" \"db_password\" {\n lifecycle {\n create_before_destroy = true\n }\n length = 32\n special = true\n}\nresource \"doppler_secret\" \"db_password\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n config = \"dev\"\n name = \"DB_PASSWORD\"\n value = random_password.db_password.result\n}\noutput \"resourceValue\" {\n value = nonsensitive(doppler_secret.db_password.value)\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.random.Password;\nimport com.pulumi.random.PasswordArgs;\nimport com.pulumi.doppler.Secret;\nimport com.pulumi.doppler.SecretArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dbPassword = new Password(\"dbPassword\", PasswordArgs.builder()\n .length(32)\n .special(true)\n .build());\n\n var dbPasswordSecret = new Secret(\"dbPasswordSecret\", SecretArgs.builder()\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB_PASSWORD\")\n .value(dbPassword.get(\"result\"))\n .build());\n\n ctx.export(\"resourceValue\", dbPasswordSecret.value().asPlaintext());\n }\n}\n```\n```yaml\nresources:\n dbPassword:\n type: random:Password\n name: db_password\n properties:\n length: 32\n special: true\n dbPasswordSecret:\n type: doppler:Secret\n name: db_password\n properties:\n project: backend\n config: dev\n name: DB_PASSWORD\n value: ${dbPassword.result}\noutputs:\n resourceValue:\n fn::unsecret: ${dbPasswordSecret.value}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/secret:Secret default \u003cproject-name\u003e.\u003cconfig-name\u003e.\u003csecret-name\u003e\n```\n\n", "properties": { "computed": { "type": "string", @@ -572,9 +1055,13 @@ "description": "The raw secret value\n", "secret": true }, + "valueType": { + "type": "string", + "description": "The value type of the secret\n" + }, "visibility": { "type": "string", - "description": "The visibility of the secret\n" + "description": "The visibility of the secret. One of \u003cspan pulumi-lang-nodejs=\"`masked`\" pulumi-lang-dotnet=\"`Masked`\" pulumi-lang-go=\"`masked`\" pulumi-lang-python=\"`masked`\" pulumi-lang-yaml=\"`masked`\" pulumi-lang-java=\"`masked`\" pulumi-lang-hcl=\"`masked`\"\u003e`masked`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`restricted`\" pulumi-lang-dotnet=\"`Restricted`\" pulumi-lang-go=\"`restricted`\" pulumi-lang-python=\"`restricted`\" pulumi-lang-yaml=\"`restricted`\" pulumi-lang-java=\"`restricted`\" pulumi-lang-hcl=\"`restricted`\"\u003e`restricted`\u003c/span\u003e. Defaults to \u003cspan pulumi-lang-nodejs=\"`masked`\" pulumi-lang-dotnet=\"`Masked`\" pulumi-lang-go=\"`masked`\" pulumi-lang-python=\"`masked`\" pulumi-lang-yaml=\"`masked`\" pulumi-lang-java=\"`masked`\" pulumi-lang-hcl=\"`masked`\"\u003e`masked`\u003c/span\u003e.\n" } }, "required": [ @@ -604,9 +1091,13 @@ "description": "The raw secret value\n", "secret": true }, + "valueType": { + "type": "string", + "description": "The value type of the secret\n" + }, "visibility": { "type": "string", - "description": "The visibility of the secret\n" + "description": "The visibility of the secret. One of \u003cspan pulumi-lang-nodejs=\"`masked`\" pulumi-lang-dotnet=\"`Masked`\" pulumi-lang-go=\"`masked`\" pulumi-lang-python=\"`masked`\" pulumi-lang-yaml=\"`masked`\" pulumi-lang-java=\"`masked`\" pulumi-lang-hcl=\"`masked`\"\u003e`masked`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`restricted`\" pulumi-lang-dotnet=\"`Restricted`\" pulumi-lang-go=\"`restricted`\" pulumi-lang-python=\"`restricted`\" pulumi-lang-yaml=\"`restricted`\" pulumi-lang-java=\"`restricted`\" pulumi-lang-hcl=\"`restricted`\"\u003e`restricted`\u003c/span\u003e. Defaults to \u003cspan pulumi-lang-nodejs=\"`masked`\" pulumi-lang-dotnet=\"`Masked`\" pulumi-lang-go=\"`masked`\" pulumi-lang-python=\"`masked`\" pulumi-lang-yaml=\"`masked`\" pulumi-lang-java=\"`masked`\" pulumi-lang-hcl=\"`masked`\"\u003e`masked`\u003c/span\u003e.\n" } }, "requiredInputs": [ @@ -642,16 +1133,83 @@ "description": "The raw secret value\n", "secret": true }, + "valueType": { + "type": "string", + "description": "The value type of the secret\n" + }, "visibility": { "type": "string", - "description": "The visibility of the secret\n" + "description": "The visibility of the secret. One of \u003cspan pulumi-lang-nodejs=\"`masked`\" pulumi-lang-dotnet=\"`Masked`\" pulumi-lang-go=\"`masked`\" pulumi-lang-python=\"`masked`\" pulumi-lang-yaml=\"`masked`\" pulumi-lang-java=\"`masked`\" pulumi-lang-hcl=\"`masked`\"\u003e`masked`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`restricted`\" pulumi-lang-dotnet=\"`Restricted`\" pulumi-lang-go=\"`restricted`\" pulumi-lang-python=\"`restricted`\" pulumi-lang-yaml=\"`restricted`\" pulumi-lang-java=\"`restricted`\" pulumi-lang-hcl=\"`restricted`\"\u003e`restricted`\u003c/span\u003e. Defaults to \u003cspan pulumi-lang-nodejs=\"`masked`\" pulumi-lang-dotnet=\"`Masked`\" pulumi-lang-go=\"`masked`\" pulumi-lang-python=\"`masked`\" pulumi-lang-yaml=\"`masked`\" pulumi-lang-java=\"`masked`\" pulumi-lang-hcl=\"`masked`\"\u003e`masked`\u003c/span\u003e.\n" + } + }, + "type": "object" + } + }, + "doppler:index/secretNote:SecretNote": { + "description": "Manage the note attached to a Doppler secret. Notes are scoped per project and secret name, and they apply across all configs in the project.\n\nThe note resource is independent of \u003cspan pulumi-lang-nodejs=\"`doppler.Secret`\" pulumi-lang-dotnet=\"`doppler.Secret`\" pulumi-lang-go=\"`Secret`\" pulumi-lang-python=\"`Secret`\" pulumi-lang-yaml=\"`doppler.Secret`\" pulumi-lang-java=\"`doppler.Secret`\" pulumi-lang-hcl=\"`doppler_secret`\"\u003e`doppler.Secret`\u003c/span\u003e. A note can be declared for a secret managed inside or outside Terraform, as long as the secret exists in at least one config in the project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst stripeKey = new doppler.SecretNote(\"stripe_key\", {\n project: \"backend\",\n name: \"STRIPE_SECRET_KEY\",\n note: \"Owner: payments team. Rotate quarterly via Stripe dashboard.\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nstripe_key = doppler.SecretNote(\"stripe_key\",\n project=\"backend\",\n name=\"STRIPE_SECRET_KEY\",\n note=\"Owner: payments team. Rotate quarterly via Stripe dashboard.\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var stripeKey = new Doppler.SecretNote(\"stripe_key\", new()\n {\n Project = \"backend\",\n Name = \"STRIPE_SECRET_KEY\",\n Note = \"Owner: payments team. Rotate quarterly via Stripe dashboard.\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewSecretNote(ctx, \"stripe_key\", \u0026doppler.SecretNoteArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tName: pulumi.String(\"STRIPE_SECRET_KEY\"),\n\t\t\tNote: pulumi.String(\"Owner: payments team. Rotate quarterly via Stripe dashboard.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_secret_note\" \"stripe_key\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n name = \"STRIPE_SECRET_KEY\"\n note = \"Owner: payments team. Rotate quarterly via Stripe dashboard.\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.SecretNote;\nimport com.pulumi.doppler.SecretNoteArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var stripeKey = new SecretNote(\"stripeKey\", SecretNoteArgs.builder()\n .project(\"backend\")\n .name(\"STRIPE_SECRET_KEY\")\n .note(\"Owner: payments team. Rotate quarterly via Stripe dashboard.\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n stripeKey:\n type: doppler:SecretNote\n name: stripe_key\n properties:\n project: backend\n name: STRIPE_SECRET_KEY\n note: 'Owner: payments team. Rotate quarterly via Stripe dashboard.'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the secret. Notes are scoped per project + secret name and apply across all configs.\n" + }, + "note": { + "type": "string", + "description": "The note content to attach to the secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project that owns the secret\n" + } + }, + "required": [ + "name", + "note", + "project" + ], + "inputProperties": { + "name": { + "type": "string", + "description": "The name of the secret. Notes are scoped per project + secret name and apply across all configs.\n", + "willReplaceOnChanges": true + }, + "note": { + "type": "string", + "description": "The note content to attach to the secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project that owns the secret\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "name", + "note", + "project" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering SecretNote resources.\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the secret. Notes are scoped per project + secret name and apply across all configs.\n", + "willReplaceOnChanges": true + }, + "note": { + "type": "string", + "description": "The note content to attach to the secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project that owns the secret\n", + "willReplaceOnChanges": true } }, "type": "object" } }, "doppler:index/serviceAccount:ServiceAccount": { - "description": "Manage a Doppler service account.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst ci = new doppler.ServiceAccount(\"ci\", {name: \"ci\"});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nci = doppler.ServiceAccount(\"ci\", name=\"ci\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ci = new Doppler.ServiceAccount(\"ci\", new()\n {\n Name = \"ci\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewServiceAccount(ctx, \"ci\", \u0026doppler.ServiceAccountArgs{\n\t\t\tName: pulumi.String(\"ci\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ServiceAccount;\nimport com.pulumi.doppler.ServiceAccountArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var ci = new ServiceAccount(\"ci\", ServiceAccountArgs.builder()\n .name(\"ci\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n ci:\n type: doppler:ServiceAccount\n properties:\n name: ci\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the service account slug from the URL:\n\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug]\n\n```sh\n$ pulumi import doppler:index/serviceAccount:ServiceAccount default \u003cservice-account-slug\u003e\n```\n\n", + "description": "Manage a Doppler service account.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst ci = new doppler.ServiceAccount(\"ci\", {\n name: \"ci\",\n workplaceRole: \"collaborator\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nci = doppler.ServiceAccount(\"ci\",\n name=\"ci\",\n workplace_role=\"collaborator\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ci = new Doppler.ServiceAccount(\"ci\", new()\n {\n Name = \"ci\",\n WorkplaceRole = \"collaborator\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewServiceAccount(ctx, \"ci\", \u0026doppler.ServiceAccountArgs{\n\t\t\tName: pulumi.String(\"ci\"),\n\t\t\tWorkplaceRole: pulumi.String(\"collaborator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_service_account\" \"ci\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"ci\"\n workplace_role = \"collaborator\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ServiceAccount;\nimport com.pulumi.doppler.ServiceAccountArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var ci = new ServiceAccount(\"ci\", ServiceAccountArgs.builder()\n .name(\"ci\")\n .workplaceRole(\"collaborator\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n ci:\n type: doppler:ServiceAccount\n properties:\n name: ci\n workplaceRole: collaborator\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nimport using the service account slug from the URL:\nhttps://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug]\n\n```sh\n$ pulumi import doppler:index/serviceAccount:ServiceAccount default \u003cservice-account-slug\u003e\n```\n\n", "properties": { "name": { "type": "string", @@ -666,11 +1224,11 @@ "items": { "type": "string" }, - "description": "A list of the workplace permissions for the service account (or use `workplace_role`)\n" + "description": "A list of the workplace permissions for the service account (or use \u003cspan pulumi-lang-nodejs=\"`workplaceRole`\" pulumi-lang-dotnet=\"`WorkplaceRole`\" pulumi-lang-go=\"`workplaceRole`\" pulumi-lang-python=\"`workplace_role`\" pulumi-lang-yaml=\"`workplaceRole`\" pulumi-lang-java=\"`workplaceRole`\" pulumi-lang-hcl=\"`workplace_role`\"\u003e`workplaceRole`\u003c/span\u003e)\n" }, "workplaceRole": { "type": "string", - "description": "The identifier of the workplace role for the service account (or use `workplace_permissions`)\n" + "description": "The identifier of the workplace role for the service account (or use \u003cspan pulumi-lang-nodejs=\"`workplacePermissions`\" pulumi-lang-dotnet=\"`WorkplacePermissions`\" pulumi-lang-go=\"`workplacePermissions`\" pulumi-lang-python=\"`workplace_permissions`\" pulumi-lang-yaml=\"`workplacePermissions`\" pulumi-lang-java=\"`workplacePermissions`\" pulumi-lang-hcl=\"`workplace_permissions`\"\u003e`workplacePermissions`\u003c/span\u003e)\n" } }, "required": [ @@ -687,11 +1245,11 @@ "items": { "type": "string" }, - "description": "A list of the workplace permissions for the service account (or use `workplace_role`)\n" + "description": "A list of the workplace permissions for the service account (or use \u003cspan pulumi-lang-nodejs=\"`workplaceRole`\" pulumi-lang-dotnet=\"`WorkplaceRole`\" pulumi-lang-go=\"`workplaceRole`\" pulumi-lang-python=\"`workplace_role`\" pulumi-lang-yaml=\"`workplaceRole`\" pulumi-lang-java=\"`workplaceRole`\" pulumi-lang-hcl=\"`workplace_role`\"\u003e`workplaceRole`\u003c/span\u003e)\n" }, "workplaceRole": { "type": "string", - "description": "The identifier of the workplace role for the service account (or use `workplace_permissions`)\n" + "description": "The identifier of the workplace role for the service account (or use \u003cspan pulumi-lang-nodejs=\"`workplacePermissions`\" pulumi-lang-dotnet=\"`WorkplacePermissions`\" pulumi-lang-go=\"`workplacePermissions`\" pulumi-lang-python=\"`workplace_permissions`\" pulumi-lang-yaml=\"`workplacePermissions`\" pulumi-lang-java=\"`workplacePermissions`\" pulumi-lang-hcl=\"`workplace_permissions`\"\u003e`workplacePermissions`\u003c/span\u003e)\n" } }, "requiredInputs": [ @@ -713,18 +1271,102 @@ "items": { "type": "string" }, - "description": "A list of the workplace permissions for the service account (or use `workplace_role`)\n" + "description": "A list of the workplace permissions for the service account (or use \u003cspan pulumi-lang-nodejs=\"`workplaceRole`\" pulumi-lang-dotnet=\"`WorkplaceRole`\" pulumi-lang-go=\"`workplaceRole`\" pulumi-lang-python=\"`workplace_role`\" pulumi-lang-yaml=\"`workplaceRole`\" pulumi-lang-java=\"`workplaceRole`\" pulumi-lang-hcl=\"`workplace_role`\"\u003e`workplaceRole`\u003c/span\u003e)\n" }, "workplaceRole": { "type": "string", - "description": "The identifier of the workplace role for the service account (or use `workplace_permissions`)\n" + "description": "The identifier of the workplace role for the service account (or use \u003cspan pulumi-lang-nodejs=\"`workplacePermissions`\" pulumi-lang-dotnet=\"`WorkplacePermissions`\" pulumi-lang-go=\"`workplacePermissions`\" pulumi-lang-python=\"`workplace_permissions`\" pulumi-lang-yaml=\"`workplacePermissions`\" pulumi-lang-java=\"`workplacePermissions`\" pulumi-lang-hcl=\"`workplace_permissions`\"\u003e`workplacePermissions`\u003c/span\u003e)\n" + } + }, + "type": "object" + } + }, + "doppler:index/serviceAccountIdentity:ServiceAccountIdentity": { + "description": "Manage a Doppler service account identity.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst ci = new doppler.ServiceAccount(\"ci\", {\n name: \"ci\",\n workplaceRole: \"collaborator\",\n});\nconst githubOidc = new doppler.ServiceAccountIdentity(\"github_oidc\", {\n configOidc: {\n claims: [\n {\n key: \"aud\",\n values: [\"https://github.com/DopplerHQ\"],\n },\n {\n key: \"sub\",\n values: [\n \"repo:DopplerHQ/terraform-provider-doppler:pull_request\",\n \"repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\",\n ],\n },\n ],\n discoveryUrl: \"https://token.actions.githubusercontent.com\",\n claimsType: \"wildcard\",\n },\n serviceAccountSlug: ci.slug,\n name: \"GitHub Actions OIDC\",\n ttlSeconds: 600,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nci = doppler.ServiceAccount(\"ci\",\n name=\"ci\",\n workplace_role=\"collaborator\")\ngithub_oidc = doppler.ServiceAccountIdentity(\"github_oidc\",\n config_oidc={\n \"claims\": [\n {\n \"key\": \"aud\",\n \"values\": [\"https://github.com/DopplerHQ\"],\n },\n {\n \"key\": \"sub\",\n \"values\": [\n \"repo:DopplerHQ/terraform-provider-doppler:pull_request\",\n \"repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\",\n ],\n },\n ],\n \"discovery_url\": \"https://token.actions.githubusercontent.com\",\n \"claims_type\": \"wildcard\",\n },\n service_account_slug=ci.slug,\n name=\"GitHub Actions OIDC\",\n ttl_seconds=600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ci = new Doppler.ServiceAccount(\"ci\", new()\n {\n Name = \"ci\",\n WorkplaceRole = \"collaborator\",\n });\n\n var githubOidc = new Doppler.ServiceAccountIdentity(\"github_oidc\", new()\n {\n ConfigOidc = new Doppler.Inputs.ServiceAccountIdentityConfigOidcArgs\n {\n Claims = new[]\n {\n new Doppler.Inputs.ServiceAccountIdentityConfigOidcClaimArgs\n {\n Key = \"aud\",\n Values = new[]\n {\n \"https://github.com/DopplerHQ\",\n },\n },\n new Doppler.Inputs.ServiceAccountIdentityConfigOidcClaimArgs\n {\n Key = \"sub\",\n Values = new[]\n {\n \"repo:DopplerHQ/terraform-provider-doppler:pull_request\",\n \"repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\",\n },\n },\n },\n DiscoveryUrl = \"https://token.actions.githubusercontent.com\",\n ClaimsType = \"wildcard\",\n },\n ServiceAccountSlug = ci.Slug,\n Name = \"GitHub Actions OIDC\",\n TtlSeconds = 600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tci, err := doppler.NewServiceAccount(ctx, \"ci\", \u0026doppler.ServiceAccountArgs{\n\t\t\tName: pulumi.String(\"ci\"),\n\t\t\tWorkplaceRole: pulumi.String(\"collaborator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewServiceAccountIdentity(ctx, \"github_oidc\", \u0026doppler.ServiceAccountIdentityArgs{\n\t\t\tConfigOidc: \u0026doppler.ServiceAccountIdentityConfigOidcArgs{\n\t\t\t\tClaims: doppler.ServiceAccountIdentityConfigOidcClaimArray{\n\t\t\t\t\t\u0026doppler.ServiceAccountIdentityConfigOidcClaimArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"aud\"),\n\t\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"https://github.com/DopplerHQ\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t\u0026doppler.ServiceAccountIdentityConfigOidcClaimArgs{\n\t\t\t\t\t\tKey: pulumi.String(\"sub\"),\n\t\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"repo:DopplerHQ/terraform-provider-doppler:pull_request\"),\n\t\t\t\t\t\t\tpulumi.String(\"repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tDiscoveryUrl: pulumi.String(\"https://token.actions.githubusercontent.com\"),\n\t\t\t\tClaimsType: pulumi.String(\"wildcard\"),\n\t\t\t},\n\t\t\tServiceAccountSlug: ci.Slug,\n\t\t\tName: pulumi.String(\"GitHub Actions OIDC\"),\n\t\t\tTtlSeconds: pulumi.Int(600),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_service_account\" \"ci\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"ci\"\n workplace_role = \"collaborator\"\n}\nresource \"doppler_service_account_identity\" \"github_oidc\" {\n lifecycle {\n create_before_destroy = true\n }\n config_oidc = {\n claims = [{\n key = \"aud\"\n values = [\"https://github.com/DopplerHQ\"]\n }, {\n key = \"sub\"\n values = [\"repo:DopplerHQ/terraform-provider-doppler:pull_request\", \"repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\"]\n }]\n discovery_url = \"https://token.actions.githubusercontent.com\"\n claims_type = \"wildcard\"\n }\n service_account_slug = doppler_service_account.ci.slug\n name = \"GitHub Actions OIDC\"\n ttl_seconds = 600\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ServiceAccount;\nimport com.pulumi.doppler.ServiceAccountArgs;\nimport com.pulumi.doppler.ServiceAccountIdentity;\nimport com.pulumi.doppler.ServiceAccountIdentityArgs;\nimport com.pulumi.doppler.inputs.ServiceAccountIdentityConfigOidcArgs;\nimport com.pulumi.doppler.inputs.ServiceAccountIdentityConfigOidcClaimArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var ci = new ServiceAccount(\"ci\", ServiceAccountArgs.builder()\n .name(\"ci\")\n .workplaceRole(\"collaborator\")\n .build());\n\n var githubOidc = new ServiceAccountIdentity(\"githubOidc\", ServiceAccountIdentityArgs.builder()\n .configOidc(ServiceAccountIdentityConfigOidcArgs.builder()\n .claims( \n ServiceAccountIdentityConfigOidcClaimArgs.builder()\n .key(\"aud\")\n .values(\"https://github.com/DopplerHQ\")\n .build(),\n ServiceAccountIdentityConfigOidcClaimArgs.builder()\n .key(\"sub\")\n .values( \n \"repo:DopplerHQ/terraform-provider-doppler:pull_request\",\n \"repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\")\n .build())\n .discoveryUrl(\"https://token.actions.githubusercontent.com\")\n .claimsType(\"wildcard\")\n .build())\n .serviceAccountSlug(ci.slug())\n .name(\"GitHub Actions OIDC\")\n .ttlSeconds(600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n ci:\n type: doppler:ServiceAccount\n properties:\n name: ci\n workplaceRole: collaborator\n githubOidc:\n type: doppler:ServiceAccountIdentity\n name: github_oidc\n properties:\n configOidc:\n claims:\n - key: aud\n values:\n - https://github.com/DopplerHQ\n - key: sub\n values:\n - repo:DopplerHQ/terraform-provider-doppler:pull_request\n - repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*\n discoveryUrl: https://token.actions.githubusercontent.com\n claimsType: wildcard\n serviceAccountSlug: ${ci.slug}\n name: GitHub Actions OIDC\n ttlSeconds: 600\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/serviceAccountIdentity:ServiceAccountIdentity default \u003cservice-account-slug\u003e.\u003cservice-account-identity-slug\u003e\n```\n\n", + "properties": { + "configOidc": { + "$ref": "#/types/doppler:index/ServiceAccountIdentityConfigOidc:ServiceAccountIdentityConfigOidc", + "description": "The OIDC configuration for the identity\n" + }, + "name": { + "type": "string", + "description": "The display name of the service account identity\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "Slug of the service account\n" + }, + "slug": { + "type": "string", + "description": "Slug of the service account identity\n" + }, + "ttlSeconds": { + "type": "integer", + "description": "The amount of time, in seconds, that auth tokens for this identity will be valid\n" + } + }, + "required": [ + "configOidc", + "name", + "serviceAccountSlug", + "slug", + "ttlSeconds" + ], + "inputProperties": { + "configOidc": { + "$ref": "#/types/doppler:index/ServiceAccountIdentityConfigOidc:ServiceAccountIdentityConfigOidc", + "description": "The OIDC configuration for the identity\n" + }, + "name": { + "type": "string", + "description": "The display name of the service account identity\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "Slug of the service account\n", + "willReplaceOnChanges": true + }, + "ttlSeconds": { + "type": "integer", + "description": "The amount of time, in seconds, that auth tokens for this identity will be valid\n" + } + }, + "requiredInputs": [ + "configOidc", + "name", + "serviceAccountSlug", + "ttlSeconds" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ServiceAccountIdentity resources.\n", + "properties": { + "configOidc": { + "$ref": "#/types/doppler:index/ServiceAccountIdentityConfigOidc:ServiceAccountIdentityConfigOidc", + "description": "The OIDC configuration for the identity\n" + }, + "name": { + "type": "string", + "description": "The display name of the service account identity\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "Slug of the service account\n", + "willReplaceOnChanges": true + }, + "slug": { + "type": "string", + "description": "Slug of the service account identity\n" + }, + "ttlSeconds": { + "type": "integer", + "description": "The amount of time, in seconds, that auth tokens for this identity will be valid\n" } }, "type": "object" } }, "doppler:index/serviceAccountToken:ServiceAccountToken": { - "description": "Manage a Doppler service account token.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```yaml\nresources:\n builderCiToken:\n type: doppler:ServiceAccountToken\n name: builder_ci_token\n properties:\n serviceAccount: builder\n name: Builder CI Token\n expiresAt: 2024-05-30T11:00:00.000Z\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Manage a Doppler service account token.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst ci = new doppler.ServiceAccount(\"ci\", {\n name: \"ci\",\n workplaceRole: \"collaborator\",\n});\nconst builderCiToken = new doppler.ServiceAccountToken(\"builder_ci_token\", {\n serviceAccountSlug: ci.slug,\n name: \"Builder CI Token\",\n expiresAt: \"2024-05-30T11:00:00.000Z\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nci = doppler.ServiceAccount(\"ci\",\n name=\"ci\",\n workplace_role=\"collaborator\")\nbuilder_ci_token = doppler.ServiceAccountToken(\"builder_ci_token\",\n service_account_slug=ci.slug,\n name=\"Builder CI Token\",\n expires_at=\"2024-05-30T11:00:00.000Z\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ci = new Doppler.ServiceAccount(\"ci\", new()\n {\n Name = \"ci\",\n WorkplaceRole = \"collaborator\",\n });\n\n var builderCiToken = new Doppler.ServiceAccountToken(\"builder_ci_token\", new()\n {\n ServiceAccountSlug = ci.Slug,\n Name = \"Builder CI Token\",\n ExpiresAt = \"2024-05-30T11:00:00.000Z\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tci, err := doppler.NewServiceAccount(ctx, \"ci\", \u0026doppler.ServiceAccountArgs{\n\t\t\tName: pulumi.String(\"ci\"),\n\t\t\tWorkplaceRole: pulumi.String(\"collaborator\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewServiceAccountToken(ctx, \"builder_ci_token\", \u0026doppler.ServiceAccountTokenArgs{\n\t\t\tServiceAccountSlug: ci.Slug,\n\t\t\tName: pulumi.String(\"Builder CI Token\"),\n\t\t\tExpiresAt: pulumi.String(\"2024-05-30T11:00:00.000Z\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_service_account\" \"ci\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"ci\"\n workplace_role = \"collaborator\"\n}\nresource \"doppler_service_account_token\" \"builder_ci_token\" {\n lifecycle {\n create_before_destroy = true\n }\n service_account_slug = doppler_service_account.ci.slug\n name = \"Builder CI Token\"\n expires_at = \"2024-05-30T11:00:00.000Z\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ServiceAccount;\nimport com.pulumi.doppler.ServiceAccountArgs;\nimport com.pulumi.doppler.ServiceAccountToken;\nimport com.pulumi.doppler.ServiceAccountTokenArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var ci = new ServiceAccount(\"ci\", ServiceAccountArgs.builder()\n .name(\"ci\")\n .workplaceRole(\"collaborator\")\n .build());\n\n var builderCiToken = new ServiceAccountToken(\"builderCiToken\", ServiceAccountTokenArgs.builder()\n .serviceAccountSlug(ci.slug())\n .name(\"Builder CI Token\")\n .expiresAt(\"2024-05-30T11:00:00.000Z\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n ci:\n type: doppler:ServiceAccount\n properties:\n name: ci\n workplaceRole: collaborator\n builderCiToken:\n type: doppler:ServiceAccountToken\n name: builder_ci_token\n properties:\n serviceAccountSlug: ${ci.slug}\n name: Builder CI Token\n expiresAt: 2024-05-30T11:00:00.000Z\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "apiKey": { "type": "string", @@ -816,7 +1458,7 @@ } }, "doppler:index/serviceToken:ServiceToken": { - "description": "Manage a Doppler service token.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst backendCiToken = new doppler.ServiceToken(\"backend_ci_token\", {\n project: \"backend\",\n config: \"ci\",\n name: \"Builder Token\",\n access: \"read\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nbackend_ci_token = doppler.ServiceToken(\"backend_ci_token\",\n project=\"backend\",\n config=\"ci\",\n name=\"Builder Token\",\n access=\"read\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCiToken = new Doppler.ServiceToken(\"backend_ci_token\", new()\n {\n Project = \"backend\",\n Config = \"ci\",\n Name = \"Builder Token\",\n Access = \"read\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewServiceToken(ctx, \"backend_ci_token\", \u0026doppler.ServiceTokenArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"Builder Token\"),\n\t\t\tAccess: pulumi.String(\"read\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ServiceToken;\nimport com.pulumi.doppler.ServiceTokenArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCiToken = new ServiceToken(\"backendCiToken\", ServiceTokenArgs.builder()\n .project(\"backend\")\n .config(\"ci\")\n .name(\"Builder Token\")\n .access(\"read\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCiToken:\n type: doppler:ServiceToken\n name: backend_ci_token\n properties:\n project: backend\n config: ci\n name: Builder Token\n access: read\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Manage a Doppler service token.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backendCiToken = new doppler.ServiceToken(\"backend_ci_token\", {\n project: \"backend\",\n config: \"ci\",\n name: \"Builder Token\",\n access: \"read\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend_ci_token = doppler.ServiceToken(\"backend_ci_token\",\n project=\"backend\",\n config=\"ci\",\n name=\"Builder Token\",\n access=\"read\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCiToken = new Doppler.ServiceToken(\"backend_ci_token\", new()\n {\n Project = \"backend\",\n Config = \"ci\",\n Name = \"Builder Token\",\n Access = \"read\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewServiceToken(ctx, \"backend_ci_token\", \u0026doppler.ServiceTokenArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"ci\"),\n\t\t\tName: pulumi.String(\"Builder Token\"),\n\t\t\tAccess: pulumi.String(\"read\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_service_token\" \"backend_ci_token\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n config = \"ci\"\n name = \"Builder Token\"\n access = \"read\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.ServiceToken;\nimport com.pulumi.doppler.ServiceTokenArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCiToken = new ServiceToken(\"backendCiToken\", ServiceTokenArgs.builder()\n .project(\"backend\")\n .config(\"ci\")\n .name(\"Builder Token\")\n .access(\"read\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCiToken:\n type: doppler:ServiceToken\n name: backend_ci_token\n properties:\n project: backend\n config: ci\n name: Builder Token\n access: read\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "access": { "type": "string", @@ -905,67 +1547,221 @@ "type": "object" } }, - "doppler:index/webhook:Webhook": { + "doppler:index/tag:Tag": { + "description": "Manage a Doppler tag.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backend = new doppler.Tag(\"backend\", {\n name: \"Backend\",\n color: \"blue\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend = doppler.Tag(\"backend\",\n name=\"Backend\",\n color=\"blue\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backend = new Doppler.Tag(\"backend\", new()\n {\n Name = \"Backend\",\n Color = \"blue\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewTag(ctx, \"backend\", \u0026doppler.TagArgs{\n\t\t\tName: pulumi.String(\"Backend\"),\n\t\t\tColor: pulumi.String(\"blue\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_tag\" \"backend\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend\"\n color = \"blue\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Tag;\nimport com.pulumi.doppler.TagArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backend = new Tag(\"backend\", TagArgs.builder()\n .name(\"Backend\")\n .color(\"blue\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backend:\n type: doppler:Tag\n properties:\n name: Backend\n color: blue\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/tag:Tag default \u003ctag-slug\u003e\n```\n\n", "properties": { - "authentication": { - "$ref": "#/types/doppler:index/WebhookAuthentication:WebhookAuthentication", - "description": "Authentication method used by the webhook\n" - }, - "enabled": { - "type": "boolean", - "description": "Whether the webhook is enabled or disabled. Default to true.\n" - }, - "enabledConfigs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Configs this webhook will trigger for\n" - }, - "payload": { - "type": "string", - "description": "The webhook's payload as a JSON string. Leave empty to use the default webhook payload\n", - "secret": true - }, - "project": { + "color": { "type": "string", - "description": "The name of the Doppler project where the webhook is located\n" + "description": "The color of the tag. One of \u003cspan pulumi-lang-nodejs=\"`gray`\" pulumi-lang-dotnet=\"`Gray`\" pulumi-lang-go=\"`gray`\" pulumi-lang-python=\"`gray`\" pulumi-lang-yaml=\"`gray`\" pulumi-lang-java=\"`gray`\" pulumi-lang-hcl=\"`gray`\"\u003e`gray`\u003c/span\u003e (default), \u003cspan pulumi-lang-nodejs=\"`purple`\" pulumi-lang-dotnet=\"`Purple`\" pulumi-lang-go=\"`purple`\" pulumi-lang-python=\"`purple`\" pulumi-lang-yaml=\"`purple`\" pulumi-lang-java=\"`purple`\" pulumi-lang-hcl=\"`purple`\"\u003e`purple`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`blue`\" pulumi-lang-dotnet=\"`Blue`\" pulumi-lang-go=\"`blue`\" pulumi-lang-python=\"`blue`\" pulumi-lang-yaml=\"`blue`\" pulumi-lang-java=\"`blue`\" pulumi-lang-hcl=\"`blue`\"\u003e`blue`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`green`\" pulumi-lang-dotnet=\"`Green`\" pulumi-lang-go=\"`green`\" pulumi-lang-python=\"`green`\" pulumi-lang-yaml=\"`green`\" pulumi-lang-java=\"`green`\" pulumi-lang-hcl=\"`green`\"\u003e`green`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`yellow`\" pulumi-lang-dotnet=\"`Yellow`\" pulumi-lang-go=\"`yellow`\" pulumi-lang-python=\"`yellow`\" pulumi-lang-yaml=\"`yellow`\" pulumi-lang-java=\"`yellow`\" pulumi-lang-hcl=\"`yellow`\"\u003e`yellow`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`orange`\" pulumi-lang-dotnet=\"`Orange`\" pulumi-lang-go=\"`orange`\" pulumi-lang-python=\"`orange`\" pulumi-lang-yaml=\"`orange`\" pulumi-lang-java=\"`orange`\" pulumi-lang-hcl=\"`orange`\"\u003e`orange`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`red`\" pulumi-lang-dotnet=\"`Red`\" pulumi-lang-go=\"`red`\" pulumi-lang-python=\"`red`\" pulumi-lang-yaml=\"`red`\" pulumi-lang-java=\"`red`\" pulumi-lang-hcl=\"`red`\"\u003e`red`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`pink`\" pulumi-lang-dotnet=\"`Pink`\" pulumi-lang-go=\"`pink`\" pulumi-lang-python=\"`pink`\" pulumi-lang-yaml=\"`pink`\" pulumi-lang-java=\"`pink`\" pulumi-lang-hcl=\"`pink`\"\u003e`pink`\u003c/span\u003e\n" }, - "secret": { + "name": { "type": "string", - "description": "Secret used for request signing\n", - "secret": true + "description": "The name of the tag\n" }, "slug": { "type": "string", - "description": "The slug of the Webhook\n" - }, - "url": { - "type": "string", - "description": "The URL of the webhook endpoint\n" + "description": "The slug of the tag. Generated from the name when omitted\n" } }, "required": [ - "project", - "slug", - "url" + "name", + "slug" ], "inputProperties": { - "authentication": { - "$ref": "#/types/doppler:index/WebhookAuthentication:WebhookAuthentication", - "description": "Authentication method used by the webhook\n" + "color": { + "type": "string", + "description": "The color of the tag. One of \u003cspan pulumi-lang-nodejs=\"`gray`\" pulumi-lang-dotnet=\"`Gray`\" pulumi-lang-go=\"`gray`\" pulumi-lang-python=\"`gray`\" pulumi-lang-yaml=\"`gray`\" pulumi-lang-java=\"`gray`\" pulumi-lang-hcl=\"`gray`\"\u003e`gray`\u003c/span\u003e (default), \u003cspan pulumi-lang-nodejs=\"`purple`\" pulumi-lang-dotnet=\"`Purple`\" pulumi-lang-go=\"`purple`\" pulumi-lang-python=\"`purple`\" pulumi-lang-yaml=\"`purple`\" pulumi-lang-java=\"`purple`\" pulumi-lang-hcl=\"`purple`\"\u003e`purple`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`blue`\" pulumi-lang-dotnet=\"`Blue`\" pulumi-lang-go=\"`blue`\" pulumi-lang-python=\"`blue`\" pulumi-lang-yaml=\"`blue`\" pulumi-lang-java=\"`blue`\" pulumi-lang-hcl=\"`blue`\"\u003e`blue`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`green`\" pulumi-lang-dotnet=\"`Green`\" pulumi-lang-go=\"`green`\" pulumi-lang-python=\"`green`\" pulumi-lang-yaml=\"`green`\" pulumi-lang-java=\"`green`\" pulumi-lang-hcl=\"`green`\"\u003e`green`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`yellow`\" pulumi-lang-dotnet=\"`Yellow`\" pulumi-lang-go=\"`yellow`\" pulumi-lang-python=\"`yellow`\" pulumi-lang-yaml=\"`yellow`\" pulumi-lang-java=\"`yellow`\" pulumi-lang-hcl=\"`yellow`\"\u003e`yellow`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`orange`\" pulumi-lang-dotnet=\"`Orange`\" pulumi-lang-go=\"`orange`\" pulumi-lang-python=\"`orange`\" pulumi-lang-yaml=\"`orange`\" pulumi-lang-java=\"`orange`\" pulumi-lang-hcl=\"`orange`\"\u003e`orange`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`red`\" pulumi-lang-dotnet=\"`Red`\" pulumi-lang-go=\"`red`\" pulumi-lang-python=\"`red`\" pulumi-lang-yaml=\"`red`\" pulumi-lang-java=\"`red`\" pulumi-lang-hcl=\"`red`\"\u003e`red`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`pink`\" pulumi-lang-dotnet=\"`Pink`\" pulumi-lang-go=\"`pink`\" pulumi-lang-python=\"`pink`\" pulumi-lang-yaml=\"`pink`\" pulumi-lang-java=\"`pink`\" pulumi-lang-hcl=\"`pink`\"\u003e`pink`\u003c/span\u003e\n" }, - "enabled": { - "type": "boolean", - "description": "Whether the webhook is enabled or disabled. Default to true.\n" + "name": { + "type": "string", + "description": "The name of the tag\n" }, - "enabledConfigs": { - "type": "array", - "items": { - "type": "string" - }, + "slug": { + "type": "string", + "description": "The slug of the tag. Generated from the name when omitted\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Tag resources.\n", + "properties": { + "color": { + "type": "string", + "description": "The color of the tag. One of \u003cspan pulumi-lang-nodejs=\"`gray`\" pulumi-lang-dotnet=\"`Gray`\" pulumi-lang-go=\"`gray`\" pulumi-lang-python=\"`gray`\" pulumi-lang-yaml=\"`gray`\" pulumi-lang-java=\"`gray`\" pulumi-lang-hcl=\"`gray`\"\u003e`gray`\u003c/span\u003e (default), \u003cspan pulumi-lang-nodejs=\"`purple`\" pulumi-lang-dotnet=\"`Purple`\" pulumi-lang-go=\"`purple`\" pulumi-lang-python=\"`purple`\" pulumi-lang-yaml=\"`purple`\" pulumi-lang-java=\"`purple`\" pulumi-lang-hcl=\"`purple`\"\u003e`purple`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`blue`\" pulumi-lang-dotnet=\"`Blue`\" pulumi-lang-go=\"`blue`\" pulumi-lang-python=\"`blue`\" pulumi-lang-yaml=\"`blue`\" pulumi-lang-java=\"`blue`\" pulumi-lang-hcl=\"`blue`\"\u003e`blue`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`green`\" pulumi-lang-dotnet=\"`Green`\" pulumi-lang-go=\"`green`\" pulumi-lang-python=\"`green`\" pulumi-lang-yaml=\"`green`\" pulumi-lang-java=\"`green`\" pulumi-lang-hcl=\"`green`\"\u003e`green`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`yellow`\" pulumi-lang-dotnet=\"`Yellow`\" pulumi-lang-go=\"`yellow`\" pulumi-lang-python=\"`yellow`\" pulumi-lang-yaml=\"`yellow`\" pulumi-lang-java=\"`yellow`\" pulumi-lang-hcl=\"`yellow`\"\u003e`yellow`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`orange`\" pulumi-lang-dotnet=\"`Orange`\" pulumi-lang-go=\"`orange`\" pulumi-lang-python=\"`orange`\" pulumi-lang-yaml=\"`orange`\" pulumi-lang-java=\"`orange`\" pulumi-lang-hcl=\"`orange`\"\u003e`orange`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`red`\" pulumi-lang-dotnet=\"`Red`\" pulumi-lang-go=\"`red`\" pulumi-lang-python=\"`red`\" pulumi-lang-yaml=\"`red`\" pulumi-lang-java=\"`red`\" pulumi-lang-hcl=\"`red`\"\u003e`red`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`pink`\" pulumi-lang-dotnet=\"`Pink`\" pulumi-lang-go=\"`pink`\" pulumi-lang-python=\"`pink`\" pulumi-lang-yaml=\"`pink`\" pulumi-lang-java=\"`pink`\" pulumi-lang-hcl=\"`pink`\"\u003e`pink`\u003c/span\u003e\n" + }, + "name": { + "type": "string", + "description": "The name of the tag\n" + }, + "slug": { + "type": "string", + "description": "The slug of the tag. Generated from the name when omitted\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:index/trustedIps:TrustedIps": { + "description": "Manage the trusted IP allowlist for a Doppler config. Only requests from the specified IP ranges will be permitted to access the config's secrets via the API.\n\nRequires a **Team or Enterprise plan**. Collaborators and other project roles with the \u003cspan pulumi-lang-nodejs=\"`enclaveProjectConfigTrustedIps`\" pulumi-lang-dotnet=\"`EnclaveProjectConfigTrustedIps`\" pulumi-lang-go=\"`enclaveProjectConfigTrustedIps`\" pulumi-lang-python=\"`enclave_project_config_trusted_ips`\" pulumi-lang-yaml=\"`enclaveProjectConfigTrustedIps`\" pulumi-lang-java=\"`enclaveProjectConfigTrustedIps`\" pulumi-lang-hcl=\"`enclave_project_config_trusted_ips`\"\u003e`enclaveProjectConfigTrustedIps`\u003c/span\u003e permission have permission to manage trusted ips for a config.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backendPrd = new doppler.TrustedIps(\"backend_prd\", {\n project: \"backend\",\n config: \"prd\",\n trustedIps: [\n \"203.0.113.0/24\",\n \"198.51.100.5/32\",\n \"2001:db8::1/128\",\n ],\n});\nconst backendStg = new doppler.TrustedIps(\"backend_stg\", {\n project: \"backend\",\n config: \"stg\",\n trustedIps: [\"203.0.113.0/24\"],\n});\nconst backendDev = new doppler.TrustedIps(\"backend_dev\", {\n project: \"backend\",\n config: \"dev\",\n trustedIps: [\"0.0.0.0/0\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend_prd = doppler.TrustedIps(\"backend_prd\",\n project=\"backend\",\n config=\"prd\",\n trusted_ips=[\n \"203.0.113.0/24\",\n \"198.51.100.5/32\",\n \"2001:db8::1/128\",\n ])\nbackend_stg = doppler.TrustedIps(\"backend_stg\",\n project=\"backend\",\n config=\"stg\",\n trusted_ips=[\"203.0.113.0/24\"])\nbackend_dev = doppler.TrustedIps(\"backend_dev\",\n project=\"backend\",\n config=\"dev\",\n trusted_ips=[\"0.0.0.0/0\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendPrd = new Doppler.TrustedIps(\"backend_prd\", new()\n {\n Project = \"backend\",\n Config = \"prd\",\n TrustedIpList = new[]\n {\n \"203.0.113.0/24\",\n \"198.51.100.5/32\",\n \"2001:db8::1/128\",\n },\n });\n\n var backendStg = new Doppler.TrustedIps(\"backend_stg\", new()\n {\n Project = \"backend\",\n Config = \"stg\",\n TrustedIpList = new[]\n {\n \"203.0.113.0/24\",\n },\n });\n\n var backendDev = new Doppler.TrustedIps(\"backend_dev\", new()\n {\n Project = \"backend\",\n Config = \"dev\",\n TrustedIpList = new[]\n {\n \"0.0.0.0/0\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewTrustedIps(ctx, \"backend_prd\", \u0026doppler.TrustedIpsArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tTrustedIps: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"203.0.113.0/24\"),\n\t\t\t\tpulumi.String(\"198.51.100.5/32\"),\n\t\t\t\tpulumi.String(\"2001:db8::1/128\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewTrustedIps(ctx, \"backend_stg\", \u0026doppler.TrustedIpsArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"stg\"),\n\t\t\tTrustedIps: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"203.0.113.0/24\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = doppler.NewTrustedIps(ctx, \"backend_dev\", \u0026doppler.TrustedIpsArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tTrustedIps: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_trusted_ips\" \"backend_prd\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n config = \"prd\"\n trusted_ips = [\"203.0.113.0/24\", \"198.51.100.5/32\", \"2001:db8::1/128\"]\n}\nresource \"doppler_trusted_ips\" \"backend_stg\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n config = \"stg\"\n trusted_ips = [\"203.0.113.0/24\"]\n}\nresource \"doppler_trusted_ips\" \"backend_dev\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n config = \"dev\"\n trusted_ips = [\"0.0.0.0/0\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.TrustedIps;\nimport com.pulumi.doppler.TrustedIpsArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendPrd = new TrustedIps(\"backendPrd\", TrustedIpsArgs.builder()\n .project(\"backend\")\n .config(\"prd\")\n .trustedIps( \n \"203.0.113.0/24\",\n \"198.51.100.5/32\",\n \"2001:db8::1/128\")\n .build());\n\n var backendStg = new TrustedIps(\"backendStg\", TrustedIpsArgs.builder()\n .project(\"backend\")\n .config(\"stg\")\n .trustedIps(\"203.0.113.0/24\")\n .build());\n\n var backendDev = new TrustedIps(\"backendDev\", TrustedIpsArgs.builder()\n .project(\"backend\")\n .config(\"dev\")\n .trustedIps(\"0.0.0.0/0\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendPrd:\n type: doppler:TrustedIps\n name: backend_prd\n properties:\n project: backend\n config: prd\n trustedIps:\n - 203.0.113.0/24\n - 198.51.100.5/32\n - 2001:db8::1/128\n backendStg:\n type: doppler:TrustedIps\n name: backend_stg\n properties:\n project: backend\n config: stg\n trustedIps:\n - 203.0.113.0/24\n backendDev:\n type: doppler:TrustedIps\n name: backend_dev\n properties:\n project: backend\n config: dev\n trustedIps:\n - 0.0.0.0/0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n## Notes\n\n- **Warning:** Reconfiguring trusted IPs could lock you out of the config if the current client IP is not included in the trusted list.\n- The default state for any config is `[\"0.0.0.0/0\"]` (allow all traffic). Deleting this resource restores that default.\n- Trusted IPs restrict API access only. They do not affect Dashboard logins.\n- IP addresses must be specified in CIDR notation. Use `/32` for an exact IPv4 address and `/128` for an exact IPv6 address (e.g. `1.2.3.4/32` or `2001:db8::1/128`).\n\n## Import\n\nAn existing trusted IP configuration can be imported using `\u003cproject\u003e.\u003cconfig\u003e`:\n\n```sh\n$ pulumi import doppler:index/trustedIps:TrustedIps backend_prd backend.prd\n```\n\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the config is located\n" + }, + "trustedIps": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic.\n", + "language": { + "csharp": { + "name": "TrustedIpList" + } + } + } + }, + "required": [ + "config", + "project", + "trustedIps" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the config is located\n", + "willReplaceOnChanges": true + }, + "trustedIps": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic.\n", + "language": { + "csharp": { + "name": "TrustedIpList" + } + } + } + }, + "requiredInputs": [ + "config", + "project", + "trustedIps" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering TrustedIps resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the config is located\n", + "willReplaceOnChanges": true + }, + "trustedIps": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic.\n", + "language": { + "csharp": { + "name": "TrustedIpList" + } + } + } + }, + "type": "object" + } + }, + "doppler:index/webhook:Webhook": { + "description": "Manage a Doppler Webhook.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst ci = new doppler.Webhook(\"ci\", {\n authentication: {\n type: \"Bearer\",\n token: \"my bearer token\",\n },\n project: testProj.name,\n url: \"https://localhost/webhook\",\n name: \"My Webhook\",\n secret: \"my signing secret-2\",\n enabled: true,\n enabledConfigs: [ciGithub.name],\n payload: JSON.stringify({\n myKey: \"my value\",\n }),\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_doppler as doppler\n\nci = doppler.Webhook(\"ci\",\n authentication={\n \"type\": \"Bearer\",\n \"token\": \"my bearer token\",\n },\n project=test_proj[\"name\"],\n url=\"https://localhost/webhook\",\n name=\"My Webhook\",\n secret=\"my signing secret-2\",\n enabled=True,\n enabled_configs=[ci_github[\"name\"]],\n payload=json.dumps({\n \"myKey\": \"my value\",\n }))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ci = new Doppler.Webhook(\"ci\", new()\n {\n Authentication = new Doppler.Inputs.WebhookAuthenticationArgs\n {\n Type = \"Bearer\",\n Token = \"my bearer token\",\n },\n Project = testProj.Name,\n Url = \"https://localhost/webhook\",\n Name = \"My Webhook\",\n Secret = \"my signing secret-2\",\n Enabled = true,\n EnabledConfigs = new[]\n {\n ciGithub.Name,\n },\n Payload = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"myKey\"] = \"my value\",\n }),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]string{\n\t\t\t\"myKey\": \"my value\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = doppler.NewWebhook(ctx, \"ci\", \u0026doppler.WebhookArgs{\n\t\t\tAuthentication: \u0026doppler.WebhookAuthenticationArgs{\n\t\t\t\tType: pulumi.String(\"Bearer\"),\n\t\t\t\tToken: pulumi.String(\"my bearer token\"),\n\t\t\t},\n\t\t\tProject: pulumi.Any(testProj.Name),\n\t\t\tUrl: pulumi.String(\"https://localhost/webhook\"),\n\t\t\tName: pulumi.String(\"My Webhook\"),\n\t\t\tSecret: pulumi.String(\"my signing secret-2\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tEnabledConfigs: pulumi.StringArray{\n\t\t\t\tciGithub.Name,\n\t\t\t},\n\t\t\tPayload: pulumi.String(json0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_webhook\" \"ci\" {\n lifecycle {\n create_before_destroy = true\n }\n authentication = {\n type = \"Bearer\"\n token = \"my bearer token\"\n }\n project = testProj.name\n url = \"https://localhost/webhook\"\n name = \"My Webhook\"\n secret = \"my signing secret-2\"\n enabled = true\n enabled_configs = [ciGithub.name]\n payload = jsonencode({\n \"myKey\" = \"my value\"\n })\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.Webhook;\nimport com.pulumi.doppler.WebhookArgs;\nimport com.pulumi.doppler.inputs.WebhookAuthenticationArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var ci = new Webhook(\"ci\", WebhookArgs.builder()\n .authentication(WebhookAuthenticationArgs.builder()\n .type(\"Bearer\")\n .token(\"my bearer token\")\n .build())\n .project(testProj.get(\"name\"))\n .url(\"https://localhost/webhook\")\n .name(\"My Webhook\")\n .secret(\"my signing secret-2\")\n .enabled(true)\n .enabledConfigs(ciGithub.get(\"name\"))\n .payload(serializeJson(\n jsonObject(\n jsonProperty(\"myKey\", \"my value\")\n )))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n ci:\n type: doppler:Webhook\n properties:\n authentication:\n type: Bearer\n token: my bearer token\n project: ${testProj.name}\n url: https://localhost/webhook\n name: My Webhook\n secret: my signing secret-2\n enabled: true\n enabledConfigs:\n - ${ciGithub.name}\n payload:\n fn::toJSON:\n myKey: my value\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n## State Management\n\nFor security reasons, the Doppler API does not return the fields listed below, which prevents the Terraform provider from checking this external state.\nIn other words, the Terraform provider can be used to update these webhook fields but it will be unaware of external changes.\n\n- \u003cspan pulumi-lang-nodejs=\"`secret`\" pulumi-lang-dotnet=\"`Secret`\" pulumi-lang-go=\"`secret`\" pulumi-lang-python=\"`secret`\" pulumi-lang-yaml=\"`secret`\" pulumi-lang-java=\"`secret`\" pulumi-lang-hcl=\"`secret`\"\u003e`secret`\u003c/span\u003e\n- \u003cspan pulumi-lang-nodejs=\"`authentication`\" pulumi-lang-dotnet=\"`Authentication`\" pulumi-lang-go=\"`authentication`\" pulumi-lang-python=\"`authentication`\" pulumi-lang-yaml=\"`authentication`\" pulumi-lang-java=\"`authentication`\" pulumi-lang-hcl=\"`authentication`\"\u003e`authentication`\u003c/span\u003e\n- \u003cspan pulumi-lang-nodejs=\"`payload`\" pulumi-lang-dotnet=\"`Payload`\" pulumi-lang-go=\"`payload`\" pulumi-lang-python=\"`payload`\" pulumi-lang-yaml=\"`payload`\" pulumi-lang-java=\"`payload`\" pulumi-lang-hcl=\"`payload`\"\u003e`payload`\u003c/span\u003e\n", + "properties": { + "authentication": { + "$ref": "#/types/doppler:index/WebhookAuthentication:WebhookAuthentication", + "description": "Authentication method used by the webhook\n" + }, + "enabled": { + "type": "boolean", + "description": "Whether the webhook is enabled or disabled. Default to true.\n" + }, + "enabledConfigs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Configs this webhook will trigger for\n" + }, + "name": { + "type": "string", + "description": "Name of the webhook\n" + }, + "payload": { + "type": "string", + "description": "The webhook's payload as a JSON string. Leave empty to use the default webhook payload\n", + "secret": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the webhook is located\n" + }, + "secret": { + "type": "string", + "description": "Secret used for request signing\n", + "secret": true + }, + "slug": { + "type": "string", + "description": "The slug of the Webhook\n" + }, + "url": { + "type": "string", + "description": "The URL of the webhook endpoint\n" + } + }, + "required": [ + "project", + "slug", + "url" + ], + "inputProperties": { + "authentication": { + "$ref": "#/types/doppler:index/WebhookAuthentication:WebhookAuthentication", + "description": "Authentication method used by the webhook\n" + }, + "enabled": { + "type": "boolean", + "description": "Whether the webhook is enabled or disabled. Default to true.\n" + }, + "enabledConfigs": { + "type": "array", + "items": { + "type": "string" + }, "description": "Configs this webhook will trigger for\n" }, + "name": { + "type": "string", + "description": "Name of the webhook\n" + }, "payload": { "type": "string", "description": "The webhook's payload as a JSON string. Leave empty to use the default webhook payload\n", @@ -1008,6 +1804,10 @@ }, "description": "Configs this webhook will trigger for\n" }, + "name": { + "type": "string", + "description": "Name of the webhook\n" + }, "payload": { "type": "string", "description": "The webhook's payload as a JSON string. Leave empty to use the default webhook payload\n", @@ -1035,59 +1835,84 @@ "type": "object" } }, - "doppler:integration/awsParameterStore:AwsParameterStore": { - "description": "Manage an AWS Parameter Store Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst dopplerParameterStore = new aws.iam.Role(\"doppler_parameter_store\", {\n name: \"doppler_parameter_store\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inlinePolicies: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n});\nconst prod = new doppler.integration.AwsParameterStore(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerParameterStore.arn,\n});\nconst backendProd = new doppler.secretssync.AwsParameterStore(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n secureString: true,\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumiverse_doppler as doppler\n\ndoppler_parameter_store = aws.iam.Role(\"doppler_parameter_store\",\n name=\"doppler_parameter_store\",\n assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n \"Condition\": {\n \"StringEquals\": {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inline_policies=[{\n \"name\": \"doppler_secret_manager\",\n \"policy\": json.dumps({\n \"version\": \"2012-10-17\",\n \"statement\": [{\n \"action\": [\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n ],\n \"effect\": \"Allow\",\n \"resource\": \"*\",\n }],\n }),\n }])\nprod = doppler.integration.AwsParameterStore(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_parameter_store.arn)\nbackend_prod = doppler.secrets_sync.AwsParameterStore(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n secure_string=True,\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerParameterStore = new Aws.Iam.Role(\"doppler_parameter_store\", new()\n {\n Name = \"doppler_parameter_store\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n InlinePolicies = new[]\n {\n new Aws.Iam.Inputs.RoleInlinePolicyArgs\n {\n Name = \"doppler_secret_manager\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }),\n },\n },\n });\n\n var prod = new Doppler.Integration.AwsParameterStore(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerParameterStore.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsParameterStore(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n SecureString = true,\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Condition\": map[string]interface{}{\n\t\t\t\t\t\t\"StringEquals\": map[string]interface{}{\n\t\t\t\t\t\t\t\"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\ttmpJSON1, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"ssm:PutParameter\",\n\t\t\t\t\t\t\"ssm:LabelParameterVersion\",\n\t\t\t\t\t\t\"ssm:DeleteParameter\",\n\t\t\t\t\t\t\"ssm:RemoveTagsFromResource\",\n\t\t\t\t\t\t\"ssm:GetParameterHistory\",\n\t\t\t\t\t\t\"ssm:AddTagsToResource\",\n\t\t\t\t\t\t\"ssm:GetParametersByPath\",\n\t\t\t\t\t\t\"ssm:GetParameters\",\n\t\t\t\t\t\t\"ssm:GetParameter\",\n\t\t\t\t\t\t\"ssm:DeleteParameters\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson1 := string(tmpJSON1)\n\t\tdopplerParameterStore, err := iam.NewRole(ctx, \"doppler_parameter_store\", \u0026iam.RoleArgs{\n\t\t\tName: pulumi.String(\"doppler_parameter_store\"),\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t\tInlinePolicies: iam.RoleInlinePolicyArray{\n\t\t\t\t\u0026iam.RoleInlinePolicyArgs{\n\t\t\t\t\tName: pulumi.String(\"doppler_secret_manager\"),\n\t\t\t\t\tPolicy: pulumi.String(json1),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewAwsParameterStore(ctx, \"prod\", \u0026integration.AwsParameterStoreArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tAssumeRoleArn: dopplerParameterStore.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewAwsParameterStore(ctx, \"backend_prod\", \u0026secretsSync.AwsParameterStoreArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tPath: pulumi.String(\"/backend/\"),\n\t\t\tSecureString: pulumi.Bool(true),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"myTag\": pulumi.String(\"enabled\"),\n\t\t\t},\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;\nimport com.pulumi.doppler.integration.AwsParameterStore;\nimport com.pulumi.doppler.integration.AwsParameterStoreArgs;\nimport com.pulumi.doppler.secretsSync.AwsParameterStore;\nimport com.pulumi.doppler.secretsSync.AwsParameterStoreArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerParameterStore = new Role(\"dopplerParameterStore\", RoleArgs.builder()\n .name(\"doppler_parameter_store\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .inlinePolicies(RoleInlinePolicyArgs.builder()\n .name(\"doppler_secret_manager\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"ssm:PutParameter\", \n \"ssm:LabelParameterVersion\", \n \"ssm:DeleteParameter\", \n \"ssm:RemoveTagsFromResource\", \n \"ssm:GetParameterHistory\", \n \"ssm:AddTagsToResource\", \n \"ssm:GetParametersByPath\", \n \"ssm:GetParameters\", \n \"ssm:GetParameter\", \n \"ssm:DeleteParameters\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n .build())\n .build());\n\n var prod = new AwsParameterStore(\"prod\", AwsParameterStoreArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerParameterStore.arn())\n .build());\n\n var backendProd = new AwsParameterStore(\"backendProd\", AwsParameterStoreArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .secureString(true)\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerParameterStore:\n type: aws:iam:Role\n name: doppler_parameter_store\n properties:\n name: doppler_parameter_store\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n inlinePolicies:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - ssm:PutParameter\n - ssm:LabelParameterVersion\n - ssm:DeleteParameter\n - ssm:RemoveTagsFromResource\n - ssm:GetParameterHistory\n - ssm:AddTagsToResource\n - ssm:GetParametersByPath\n - ssm:GetParameters\n - ssm:GetParameter\n - ssm:DeleteParameters\n Effect: Allow\n Resource: '*'\n prod:\n type: doppler:integration:AwsParameterStore\n properties:\n name: Production\n assumeRoleArn: ${dopplerParameterStore.arn}\n backendProd:\n type: doppler:secretsSync:AwsParameterStore\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n secureString: true\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:index/workplaceRole:WorkplaceRole": { + "description": "Manage a Doppler workplace_role.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst teamManager = new doppler.WorkplaceRole(\"team_manager\", {\n name: \"Team Manager\",\n permissions: [\"team_manage\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nteam_manager = doppler.WorkplaceRole(\"team_manager\",\n name=\"Team Manager\",\n permissions=[\"team_manage\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var teamManager = new Doppler.WorkplaceRole(\"team_manager\", new()\n {\n Name = \"Team Manager\",\n Permissions = new[]\n {\n \"team_manage\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.NewWorkplaceRole(ctx, \"team_manager\", \u0026doppler.WorkplaceRoleArgs{\n\t\t\tName: pulumi.String(\"Team Manager\"),\n\t\t\tPermissions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"team_manage\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_workplace_role\" \"team_manager\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Team Manager\"\n permissions = [\"team_manage\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.WorkplaceRole;\nimport com.pulumi.doppler.WorkplaceRoleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var teamManager = new WorkplaceRole(\"teamManager\", WorkplaceRoleArgs.builder()\n .name(\"Team Manager\")\n .permissions(\"team_manage\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n teamManager:\n type: doppler:WorkplaceRole\n name: team_manager\n properties:\n name: Team Manager\n permissions:\n - team_manage\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import doppler:index/workplaceRole:WorkplaceRole default \u003cworkplace-role-identifier\u003e\n```\n\n", "properties": { - "assumeRoleArn": { + "identifier": { "type": "string", - "description": "The ARN of the AWS role for Doppler to assume\n" + "description": "The role's unique identifier\n" + }, + "isCustomRole": { + "type": "boolean", + "description": "Whether or not the role is custom (as opposed to Doppler built-in)\n" }, "name": { "type": "string", - "description": "The name of the integration\n" + "description": "The name of the Doppler workplace role\n" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create)\n" } }, "required": [ - "assumeRoleArn", - "name" + "identifier", + "isCustomRole", + "name", + "permissions" ], "inputProperties": { - "assumeRoleArn": { - "type": "string", - "description": "The ARN of the AWS role for Doppler to assume\n" - }, "name": { "type": "string", - "description": "The name of the integration\n", - "willReplaceOnChanges": true + "description": "The name of the Doppler workplace role\n" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create)\n" } }, "requiredInputs": [ - "assumeRoleArn", - "name" + "name", + "permissions" ], "stateInputs": { - "description": "Input properties used for looking up and filtering AwsParameterStore resources.\n", + "description": "Input properties used for looking up and filtering WorkplaceRole resources.\n", "properties": { - "assumeRoleArn": { + "identifier": { "type": "string", - "description": "The ARN of the AWS role for Doppler to assume\n" + "description": "The role's unique identifier\n" + }, + "isCustomRole": { + "type": "boolean", + "description": "Whether or not the role is custom (as opposed to Doppler built-in)\n" }, "name": { "type": "string", - "description": "The name of the integration\n", - "willReplaceOnChanges": true + "description": "The name of the Doppler workplace role\n" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create)\n" } }, "type": "object" } }, - "doppler:integration/awsSecretsManager:AwsSecretsManager": { - "description": "Manage an AWS Secrets Manager Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst dopplerSecretsManager = new aws.iam.Role(\"doppler_secrets_manager\", {\n name: \"doppler_secrets_manager\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inlinePolicies: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n});\nconst prod = new doppler.integration.AwsSecretsManager(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerSecretsManager.arn,\n});\nconst backendProd = new doppler.secretssync.AwsSecretsManager(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumiverse_doppler as doppler\n\ndoppler_secrets_manager = aws.iam.Role(\"doppler_secrets_manager\",\n name=\"doppler_secrets_manager\",\n assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n \"Condition\": {\n \"StringEquals\": {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inline_policies=[{\n \"name\": \"doppler_secret_manager\",\n \"policy\": json.dumps({\n \"version\": \"2012-10-17\",\n \"statement\": [{\n \"action\": [\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n ],\n \"effect\": \"Allow\",\n \"resource\": \"*\",\n }],\n }),\n }])\nprod = doppler.integration.AwsSecretsManager(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_secrets_manager.arn)\nbackend_prod = doppler.secrets_sync.AwsSecretsManager(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerSecretsManager = new Aws.Iam.Role(\"doppler_secrets_manager\", new()\n {\n Name = \"doppler_secrets_manager\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n InlinePolicies = new[]\n {\n new Aws.Iam.Inputs.RoleInlinePolicyArgs\n {\n Name = \"doppler_secret_manager\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }),\n },\n },\n });\n\n var prod = new Doppler.Integration.AwsSecretsManager(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerSecretsManager.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsSecretsManager(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Condition\": map[string]interface{}{\n\t\t\t\t\t\t\"StringEquals\": map[string]interface{}{\n\t\t\t\t\t\t\t\"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\ttmpJSON1, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"secretsmanager:GetSecretValue\",\n\t\t\t\t\t\t\"secretsmanager:DescribeSecret\",\n\t\t\t\t\t\t\"secretsmanager:PutSecretValue\",\n\t\t\t\t\t\t\"secretsmanager:CreateSecret\",\n\t\t\t\t\t\t\"secretsmanager:DeleteSecret\",\n\t\t\t\t\t\t\"secretsmanager:TagResource\",\n\t\t\t\t\t\t\"secretsmanager:UpdateSecret\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson1 := string(tmpJSON1)\n\t\tdopplerSecretsManager, err := iam.NewRole(ctx, \"doppler_secrets_manager\", \u0026iam.RoleArgs{\n\t\t\tName: pulumi.String(\"doppler_secrets_manager\"),\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t\tInlinePolicies: iam.RoleInlinePolicyArray{\n\t\t\t\t\u0026iam.RoleInlinePolicyArgs{\n\t\t\t\t\tName: pulumi.String(\"doppler_secret_manager\"),\n\t\t\t\t\tPolicy: pulumi.String(json1),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewAwsSecretsManager(ctx, \"prod\", \u0026integration.AwsSecretsManagerArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tAssumeRoleArn: dopplerSecretsManager.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewAwsSecretsManager(ctx, \"backend_prod\", \u0026secretsSync.AwsSecretsManagerArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tPath: pulumi.String(\"/backend/\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"myTag\": pulumi.String(\"enabled\"),\n\t\t\t},\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;\nimport com.pulumi.doppler.integration.AwsSecretsManager;\nimport com.pulumi.doppler.integration.AwsSecretsManagerArgs;\nimport com.pulumi.doppler.secretsSync.AwsSecretsManager;\nimport com.pulumi.doppler.secretsSync.AwsSecretsManagerArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerSecretsManager = new Role(\"dopplerSecretsManager\", RoleArgs.builder()\n .name(\"doppler_secrets_manager\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .inlinePolicies(RoleInlinePolicyArgs.builder()\n .name(\"doppler_secret_manager\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"secretsmanager:GetSecretValue\", \n \"secretsmanager:DescribeSecret\", \n \"secretsmanager:PutSecretValue\", \n \"secretsmanager:CreateSecret\", \n \"secretsmanager:DeleteSecret\", \n \"secretsmanager:TagResource\", \n \"secretsmanager:UpdateSecret\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n .build())\n .build());\n\n var prod = new AwsSecretsManager(\"prod\", AwsSecretsManagerArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerSecretsManager.arn())\n .build());\n\n var backendProd = new AwsSecretsManager(\"backendProd\", AwsSecretsManagerArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerSecretsManager:\n type: aws:iam:Role\n name: doppler_secrets_manager\n properties:\n name: doppler_secrets_manager\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n inlinePolicies:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - secretsmanager:GetSecretValue\n - secretsmanager:DescribeSecret\n - secretsmanager:PutSecretValue\n - secretsmanager:CreateSecret\n - secretsmanager:DeleteSecret\n - secretsmanager:TagResource\n - secretsmanager:UpdateSecret\n Effect: Allow\n Resource: '*'\n prod:\n type: doppler:integration:AwsSecretsManager\n properties:\n name: Production\n assumeRoleArn: ${dopplerSecretsManager.arn}\n backendProd:\n type: doppler:secretsSync:AwsSecretsManager\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:integration/awsIamUserKeys:AwsIamUserKeys": { + "description": "Manage a AWS IAM User Keys Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst iAwsIamUk = new doppler.integration.AwsIamUserKeys(\"i_aws_iam_uk\", {\n name: \"TF AWS IAM UK\",\n assumeRoleArn: \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n});\nconst rsAwsIamUk = new doppler.rotatedsecret.AwsIamUserKeys(\"rs_aws_iam_uk\", {\n integration: iAwsIamUk.id,\n project: \"backend\",\n config: \"dev\",\n name: \"AWS_IAM_UK\",\n rotationPeriodSec: 2592000,\n username: \"xxxxxxxxxxxxx\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\ni_aws_iam_uk = doppler.integration.AwsIamUserKeys(\"i_aws_iam_uk\",\n name=\"TF AWS IAM UK\",\n assume_role_arn=\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\")\nrs_aws_iam_uk = doppler.rotatedsecret.AwsIamUserKeys(\"rs_aws_iam_uk\",\n integration=i_aws_iam_uk.id,\n project=\"backend\",\n config=\"dev\",\n name=\"AWS_IAM_UK\",\n rotation_period_sec=2592000,\n username=\"xxxxxxxxxxxxx\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var iAwsIamUk = new Doppler.Integration.AwsIamUserKeys(\"i_aws_iam_uk\", new()\n {\n Name = \"TF AWS IAM UK\",\n AssumeRoleArn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n });\n\n var rsAwsIamUk = new Doppler.RotatedSecret.AwsIamUserKeys(\"rs_aws_iam_uk\", new()\n {\n Integration = iAwsIamUk.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"AWS_IAM_UK\",\n RotationPeriodSec = 2592000,\n Username = \"xxxxxxxxxxxxx\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tiAwsIamUk, err := integration.NewAwsIamUserKeys(ctx, \"i_aws_iam_uk\", \u0026integration.AwsIamUserKeysArgs{\n\t\t\tName: pulumi.String(\"TF AWS IAM UK\"),\n\t\t\tAssumeRoleArn: pulumi.String(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewAwsIamUserKeys(ctx, \"rs_aws_iam_uk\", \u0026rotatedsecret.AwsIamUserKeysArgs{\n\t\t\tIntegration: iAwsIamUk.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"AWS_IAM_UK\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_aws_iam_user_keys\" \"i_aws_iam_uk\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF AWS IAM UK\"\n assume_role_arn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_aws_iam_user_keys\" \"rs_aws_iam_uk\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_aws_iam_user_keys.i_aws_iam_uk.id\n project = \"backend\"\n config = \"dev\"\n name = \"AWS_IAM_UK\"\n rotation_period_sec = 2592000\n username = \"xxxxxxxxxxxxx\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var iAwsIamUk = new com.pulumi.doppler.integration.AwsIamUserKeys(\"iAwsIamUk\", com.pulumi.doppler.integration.AwsIamUserKeysArgs.builder()\n .name(\"TF AWS IAM UK\")\n .assumeRoleArn(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\")\n .build());\n\n var rsAwsIamUk = new com.pulumi.doppler.rotatedSecret.AwsIamUserKeys(\"rsAwsIamUk\", com.pulumi.doppler.rotatedSecret.AwsIamUserKeysArgs.builder()\n .integration(iAwsIamUk.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"AWS_IAM_UK\")\n .rotationPeriodSec(2592000)\n .username(\"xxxxxxxxxxxxx\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n iAwsIamUk:\n type: doppler:integration:AwsIamUserKeys\n name: i_aws_iam_uk\n properties:\n name: TF AWS IAM UK\n assumeRoleArn: arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\n rsAwsIamUk:\n type: doppler:rotatedSecret:AwsIamUserKeys\n name: rs_aws_iam_uk\n properties:\n integration: ${iAwsIamUk.id}\n project: backend\n config: dev\n name: AWS_IAM_UK\n rotationPeriodSec: 2.592e+06\n username: xxxxxxxxxxxxx\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "assumeRoleArn": { "type": "string", - "description": "The ARN of the AWS role for Doppler to assume\n" + "description": "IAM Role ARN for role assumption\n" }, "name": { "type": "string", @@ -1101,12 +1926,11 @@ "inputProperties": { "assumeRoleArn": { "type": "string", - "description": "The ARN of the AWS role for Doppler to assume\n" + "description": "IAM Role ARN for role assumption\n" }, "name": { "type": "string", - "description": "The name of the integration\n", - "willReplaceOnChanges": true + "description": "The name of the integration\n" } }, "requiredInputs": [ @@ -1114,28 +1938,30 @@ "name" ], "stateInputs": { - "description": "Input properties used for looking up and filtering AwsSecretsManager resources.\n", + "description": "Input properties used for looking up and filtering AwsIamUserKeys resources.\n", "properties": { "assumeRoleArn": { "type": "string", - "description": "The ARN of the AWS role for Doppler to assume\n" + "description": "IAM Role ARN for role assumption\n" }, "name": { "type": "string", - "description": "The name of the integration\n", - "willReplaceOnChanges": true + "description": "The name of the integration\n" } }, "type": "object" } }, - "doppler:integration/circleci:Circleci": { - "description": "Manage a CircleCI Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst prod = new doppler.integration.Circleci(\"prod\", {\n name: \"Production\",\n apiToken: \"my_api_token\",\n});\nconst backendProd = new doppler.secretssync.Circleci(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n resourceType: \"project\",\n resourceId: \"github/myorg/myproject\",\n organizationSlug: \"myorg\",\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nprod = doppler.integration.Circleci(\"prod\",\n name=\"Production\",\n api_token=\"my_api_token\")\nbackend_prod = doppler.secrets_sync.Circleci(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n resource_type=\"project\",\n resource_id=\"github/myorg/myproject\",\n organization_slug=\"myorg\",\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Circleci(\"prod\", new()\n {\n Name = \"Production\",\n ApiToken = \"my_api_token\",\n });\n\n var backendProd = new Doppler.SecretsSync.Circleci(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n ResourceType = \"project\",\n ResourceId = \"github/myorg/myproject\",\n OrganizationSlug = \"myorg\",\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewCircleci(ctx, \"prod\", \u0026integration.CircleciArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tApiToken: pulumi.String(\"my_api_token\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewCircleci(ctx, \"backend_prod\", \u0026secretsSync.CircleciArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tResourceType: pulumi.String(\"project\"),\n\t\t\tResourceId: pulumi.String(\"github/myorg/myproject\"),\n\t\t\tOrganizationSlug: pulumi.String(\"myorg\"),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.Circleci;\nimport com.pulumi.doppler.integration.CircleciArgs;\nimport com.pulumi.doppler.secretsSync.Circleci;\nimport com.pulumi.doppler.secretsSync.CircleciArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new Circleci(\"prod\", CircleciArgs.builder()\n .name(\"Production\")\n .apiToken(\"my_api_token\")\n .build());\n\n var backendProd = new Circleci(\"backendProd\", CircleciArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .resourceType(\"project\")\n .resourceId(\"github/myorg/myproject\")\n .organizationSlug(\"myorg\")\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Circleci\n properties:\n name: Production\n apiToken: my_api_token\n backendProd:\n type: doppler:secretsSync:Circleci\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n resourceType: project\n resourceId: github/myorg/myproject\n organizationSlug: myorg\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:integration/awsMssql:AwsMssql": { + "description": "Manage a AWS MS SQL Server Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iAwsMssql = new doppler.integration.AwsMssql(\"i_aws_mssql\", {\n name: \"TF AWS MS SQL Server\",\n assumeRoleArn: \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n lambdaArn: \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsAwsMssql = new doppler.rotatedsecret.AwsMssql(\"rs_aws_mssql\", {\n credentials: [\n {\n username: \"xxxxxxxxxxx\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxxxx\",\n password: dbPassword2,\n },\n ],\n integration: iAwsMssql.id,\n project: \"backend\",\n config: \"dev\",\n name: \"DB\",\n rotationPeriodSec: 2592000,\n host: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n port: 1433,\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_aws_mssql = doppler.integration.AwsMssql(\"i_aws_mssql\",\n name=\"TF AWS MS SQL Server\",\n assume_role_arn=\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n lambda_arn=\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\")\nrs_aws_mssql = doppler.rotatedsecret.AwsMssql(\"rs_aws_mssql\",\n credentials=[\n {\n \"username\": \"xxxxxxxxxxx\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxxxx\",\n \"password\": db_password2,\n },\n ],\n integration=i_aws_mssql.id,\n project=\"backend\",\n config=\"dev\",\n name=\"DB\",\n rotation_period_sec=2592000,\n host=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n port=1433,\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iAwsMssql = new Doppler.Integration.AwsMssql(\"i_aws_mssql\", new()\n {\n Name = \"TF AWS MS SQL Server\",\n AssumeRoleArn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n LambdaArn = \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsAwsMssql = new Doppler.RotatedSecret.AwsMssql(\"rs_aws_mssql\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.AwsMssqlCredentialArgs\n {\n Username = \"xxxxxxxxxxx\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.AwsMssqlCredentialArgs\n {\n Username = \"xxxxxxxxxxx\",\n Password = dbPassword2,\n },\n },\n Integration = iAwsMssql.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB\",\n RotationPeriodSec = 2592000,\n Host = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n Port = 1433,\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiAwsMssql, err := integration.NewAwsMssql(ctx, \"i_aws_mssql\", \u0026integration.AwsMssqlArgs{\n\t\t\tName: pulumi.String(\"TF AWS MS SQL Server\"),\n\t\t\tAssumeRoleArn: pulumi.String(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"),\n\t\t\tLambdaArn: pulumi.String(\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewAwsMssql(ctx, \"rs_aws_mssql\", \u0026rotatedsecret.AwsMssqlArgs{\n\t\t\tCredentials: rotatedsecret.AwsMssqlCredentialArray{\n\t\t\t\t\u0026rotatedsecret.AwsMssqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.AwsMssqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iAwsMssql.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tHost: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t\tPort: pulumi.Int(1433),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_aws_mssql\" \"i_aws_mssql\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF AWS MS SQL Server\"\n assume_role_arn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"\n lambda_arn = \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_aws_mssql\" \"rs_aws_mssql\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxxxx\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxxxx\"\n password = var.dbPassword2\n }\n integration = doppler_integration_aws_mssql.i_aws_mssql.id\n project = \"backend\"\n config = \"dev\"\n name = \"DB\"\n rotation_period_sec = 2592000\n host = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n port = 1433\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.rotatedSecret.inputs.AwsMssqlCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iAwsMssql = new com.pulumi.doppler.integration.AwsMssql(\"iAwsMssql\", com.pulumi.doppler.integration.AwsMssqlArgs.builder()\n .name(\"TF AWS MS SQL Server\")\n .assumeRoleArn(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\")\n .lambdaArn(\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsAwsMssql = new com.pulumi.doppler.rotatedSecret.AwsMssql(\"rsAwsMssql\", com.pulumi.doppler.rotatedSecret.AwsMssqlArgs.builder()\n .credentials( \n AwsMssqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxx\")\n .password(dbPassword1)\n .build(),\n AwsMssqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxx\")\n .password(dbPassword2)\n .build())\n .integration(iAwsMssql.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB\")\n .rotationPeriodSec(2592000)\n .host(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .port(1433)\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iAwsMssql:\n type: doppler:integration:AwsMssql\n name: i_aws_mssql\n properties:\n name: TF AWS MS SQL Server\n assumeRoleArn: arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\n lambdaArn: arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\n rsAwsMssql:\n type: doppler:rotatedSecret:AwsMssql\n name: rs_aws_mssql\n properties:\n credentials:\n - username: xxxxxxxxxxx\n password: ${dbPassword1}\n - username: xxxxxxxxxxx\n password: ${dbPassword2}\n integration: ${iAwsMssql.id}\n project: backend\n config: dev\n name: DB\n rotationPeriodSec: 2.592e+06\n host: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n port: 1433\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { - "apiToken": { + "assumeRoleArn": { "type": "string", - "description": "A CircleCI API token. See https://docs.doppler.com/docs/circleci for details.\n", - "secret": true + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" }, "name": { "type": "string", @@ -1143,49 +1969,58 @@ } }, "required": [ - "apiToken", + "assumeRoleArn", + "lambdaArn", "name" ], "inputProperties": { - "apiToken": { + "assumeRoleArn": { "type": "string", - "description": "A CircleCI API token. See https://docs.doppler.com/docs/circleci for details.\n", - "secret": true + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" }, "name": { "type": "string", - "description": "The name of the integration\n", - "willReplaceOnChanges": true + "description": "The name of the integration\n" } }, "requiredInputs": [ - "apiToken", + "assumeRoleArn", + "lambdaArn", "name" ], "stateInputs": { - "description": "Input properties used for looking up and filtering Circleci resources.\n", + "description": "Input properties used for looking up and filtering AwsMssql resources.\n", "properties": { - "apiToken": { + "assumeRoleArn": { "type": "string", - "description": "A CircleCI API token. See https://docs.doppler.com/docs/circleci for details.\n", - "secret": true + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" }, "name": { "type": "string", - "description": "The name of the integration\n", - "willReplaceOnChanges": true + "description": "The name of the integration\n" } }, "type": "object" } }, - "doppler:integration/flyio:Flyio": { - "description": "Manage a Fly.io Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst prod = new doppler.integration.Flyio(\"prod\", {\n name: \"TF Fly.io\",\n apiKey: \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst backendProd = new doppler.secretssync.Flyio(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n appId: \"my-app\",\n restartMachines: true,\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nprod = doppler.integration.Flyio(\"prod\",\n name=\"TF Fly.io\",\n api_key=\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nbackend_prod = doppler.secrets_sync.Flyio(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n app_id=\"my-app\",\n restart_machines=True,\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Flyio(\"prod\", new()\n {\n Name = \"TF Fly.io\",\n ApiKey = \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var backendProd = new Doppler.SecretsSync.Flyio(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n AppId = \"my-app\",\n RestartMachines = true,\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewFlyio(ctx, \"prod\", \u0026integration.FlyioArgs{\n\t\t\tName: pulumi.String(\"TF Fly.io\"),\n\t\t\tApiKey: pulumi.String(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewFlyio(ctx, \"backend_prod\", \u0026secretsSync.FlyioArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tAppId: pulumi.String(\"my-app\"),\n\t\t\tRestartMachines: pulumi.Bool(true),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.Flyio;\nimport com.pulumi.doppler.integration.FlyioArgs;\nimport com.pulumi.doppler.secretsSync.Flyio;\nimport com.pulumi.doppler.secretsSync.FlyioArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new Flyio(\"prod\", FlyioArgs.builder()\n .name(\"TF Fly.io\")\n .apiKey(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var backendProd = new Flyio(\"backendProd\", FlyioArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .appId(\"my-app\")\n .restartMachines(true)\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Flyio\n properties:\n name: TF Fly.io\n apiKey: fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n backendProd:\n type: doppler:secretsSync:Flyio\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n appId: my-app\n restartMachines: true\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:integration/awsMysql:AwsMysql": { + "description": "Manage a AWS MySQL Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iAwsMysql = new doppler.integration.AwsMysql(\"i_aws_mysql\", {\n name: \"TF AWS MySQL\",\n assumeRoleArn: \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n lambdaArn: \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsAwsMysql = new doppler.rotatedsecret.AwsMysql(\"rs_aws_mysql\", {\n credentials: [\n {\n username: \"xxxxxxxxxxx\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxxxx\",\n password: dbPassword2,\n },\n ],\n integration: iAwsMysql.id,\n project: \"backend\",\n config: \"dev\",\n name: \"DB\",\n rotationPeriodSec: 2592000,\n host: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n port: 3306,\n managingUserUsername: \"xxxxxxxx\",\n managingUserPassword: \"xxxxxxxxxxxxxxxxxxxx\",\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_aws_mysql = doppler.integration.AwsMysql(\"i_aws_mysql\",\n name=\"TF AWS MySQL\",\n assume_role_arn=\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n lambda_arn=\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\")\nrs_aws_mysql = doppler.rotatedsecret.AwsMysql(\"rs_aws_mysql\",\n credentials=[\n {\n \"username\": \"xxxxxxxxxxx\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxxxx\",\n \"password\": db_password2,\n },\n ],\n integration=i_aws_mysql.id,\n project=\"backend\",\n config=\"dev\",\n name=\"DB\",\n rotation_period_sec=2592000,\n host=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n port=3306,\n managing_user_username=\"xxxxxxxx\",\n managing_user_password=\"xxxxxxxxxxxxxxxxxxxx\",\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iAwsMysql = new Doppler.Integration.AwsMysql(\"i_aws_mysql\", new()\n {\n Name = \"TF AWS MySQL\",\n AssumeRoleArn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n LambdaArn = \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsAwsMysql = new Doppler.RotatedSecret.AwsMysql(\"rs_aws_mysql\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.AwsMysqlCredentialArgs\n {\n Username = \"xxxxxxxxxxx\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.AwsMysqlCredentialArgs\n {\n Username = \"xxxxxxxxxxx\",\n Password = dbPassword2,\n },\n },\n Integration = iAwsMysql.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB\",\n RotationPeriodSec = 2592000,\n Host = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n Port = 3306,\n ManagingUserUsername = \"xxxxxxxx\",\n ManagingUserPassword = \"xxxxxxxxxxxxxxxxxxxx\",\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiAwsMysql, err := integration.NewAwsMysql(ctx, \"i_aws_mysql\", \u0026integration.AwsMysqlArgs{\n\t\t\tName: pulumi.String(\"TF AWS MySQL\"),\n\t\t\tAssumeRoleArn: pulumi.String(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"),\n\t\t\tLambdaArn: pulumi.String(\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewAwsMysql(ctx, \"rs_aws_mysql\", \u0026rotatedsecret.AwsMysqlArgs{\n\t\t\tCredentials: rotatedsecret.AwsMysqlCredentialArray{\n\t\t\t\t\u0026rotatedsecret.AwsMysqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.AwsMysqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iAwsMysql.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tHost: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t\tPort: pulumi.Int(3306),\n\t\t\tManagingUserUsername: pulumi.String(\"xxxxxxxx\"),\n\t\t\tManagingUserPassword: pulumi.String(\"xxxxxxxxxxxxxxxxxxxx\"),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_aws_mysql\" \"i_aws_mysql\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF AWS MySQL\"\n assume_role_arn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"\n lambda_arn = \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_aws_mysql\" \"rs_aws_mysql\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxxxx\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxxxx\"\n password = var.dbPassword2\n }\n integration = doppler_integration_aws_mysql.i_aws_mysql.id\n project = \"backend\"\n config = \"dev\"\n name = \"DB\"\n rotation_period_sec = 2592000\n host = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n port = 3306\n managing_user_username = \"xxxxxxxx\"\n managing_user_password = \"xxxxxxxxxxxxxxxxxxxx\"\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.rotatedSecret.inputs.AwsMysqlCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iAwsMysql = new com.pulumi.doppler.integration.AwsMysql(\"iAwsMysql\", com.pulumi.doppler.integration.AwsMysqlArgs.builder()\n .name(\"TF AWS MySQL\")\n .assumeRoleArn(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\")\n .lambdaArn(\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsAwsMysql = new com.pulumi.doppler.rotatedSecret.AwsMysql(\"rsAwsMysql\", com.pulumi.doppler.rotatedSecret.AwsMysqlArgs.builder()\n .credentials( \n AwsMysqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxx\")\n .password(dbPassword1)\n .build(),\n AwsMysqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxx\")\n .password(dbPassword2)\n .build())\n .integration(iAwsMysql.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB\")\n .rotationPeriodSec(2592000)\n .host(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .port(3306)\n .managingUserUsername(\"xxxxxxxx\")\n .managingUserPassword(\"xxxxxxxxxxxxxxxxxxxx\")\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iAwsMysql:\n type: doppler:integration:AwsMysql\n name: i_aws_mysql\n properties:\n name: TF AWS MySQL\n assumeRoleArn: arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\n lambdaArn: arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\n rsAwsMysql:\n type: doppler:rotatedSecret:AwsMysql\n name: rs_aws_mysql\n properties:\n credentials:\n - username: xxxxxxxxxxx\n password: ${dbPassword1}\n - username: xxxxxxxxxxx\n password: ${dbPassword2}\n integration: ${iAwsMysql.id}\n project: backend\n config: dev\n name: DB\n rotationPeriodSec: 2.592e+06\n host: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n port: 3306\n managingUserUsername: xxxxxxxx\n managingUserPassword: xxxxxxxxxxxxxxxxxxxx\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { - "apiKey": { + "assumeRoleArn": { "type": "string", - "description": "A Fly.io API key.\n", - "secret": true + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" }, "name": { "type": "string", @@ -1193,259 +2028,4331 @@ } }, "required": [ - "apiKey", + "assumeRoleArn", + "lambdaArn", "name" ], "inputProperties": { - "apiKey": { + "assumeRoleArn": { "type": "string", - "description": "A Fly.io API key.\n", - "secret": true + "description": "IAM Role ARN for role assumption\n" }, - "name": { + "lambdaArn": { "type": "string", - "description": "The name of the integration\n", + "description": "The Lambda ARN\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "assumeRoleArn", + "lambdaArn", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsMysql resources.\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/awsParameterStore:AwsParameterStore": { + "description": "Manage an AWS Parameter Store Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst dopplerParameterStore = new aws.index.IamRole(\"doppler_parameter_store\", {\n inlinePolicy: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n name: \"doppler_parameter_store\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n});\nconst prod = new doppler.integration.AwsParameterStore(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerParameterStore.arn,\n});\nconst backendProd = new doppler.secretssync.AwsParameterStore(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n secureString: true,\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumi_doppler as doppler\n\ndoppler_parameter_store = aws.IamRole(\"doppler_parameter_store\",\n inline_policy=[{\n name: doppler_secret_manager,\n policy: json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Action: [\n ssm:PutParameter,\n ssm:LabelParameterVersion,\n ssm:DeleteParameter,\n ssm:RemoveTagsFromResource,\n ssm:GetParameterHistory,\n ssm:AddTagsToResource,\n ssm:GetParametersByPath,\n ssm:GetParameters,\n ssm:GetParameter,\n ssm:DeleteParameters,\n ],\n Effect: Allow,\n Resource: *,\n }],\n }),\n }],\n name=doppler_parameter_store,\n assume_role_policy=json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Effect: Allow,\n Action: sts:AssumeRole,\n Principal: {\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator,\n },\n Condition: {\n StringEquals: {\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e,\n },\n },\n }],\n }))\nprod = doppler.integration.AwsParameterStore(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_parameter_store[\"arn\"])\nbackend_prod = doppler.secretssync.AwsParameterStore(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n secure_string=True,\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerParameterStore = new Aws.IamRole(\"doppler_parameter_store\", new()\n {\n InlinePolicy = new[]\n {\n \n {\n { \"name\", \"doppler_secret_manager\" },\n { \"policy\", JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }) },\n },\n },\n Name = \"doppler_parameter_store\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n });\n\n var prod = new Doppler.Integration.AwsParameterStore(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerParameterStore.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsParameterStore(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n SecureString = true,\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v7/go/aws\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\nfunc main() {\npulumi.Run(func(ctx *pulumi.Context) error {\ndopplerParameterStore, err := aws.NewIamRole(ctx, \"doppler_parameter_store\", \u0026aws.IamRoleArgs{\nInlinePolicy: []map[string]string{\n{\n\"name\": \"doppler_secret_manager\",\n\"policy\": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n},\n},\nName: \"doppler_parameter_store\",\nAssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n})\nif err != nil {\nreturn err\n}\nprod, err := integration.NewAwsParameterStore(ctx, \"prod\", \u0026integration.AwsParameterStoreArgs{\nName: pulumi.String(\"Production\"),\nAssumeRoleArn: dopplerParameterStore.Arn,\n})\nif err != nil {\nreturn err\n}\n_, err = secretssync.NewAwsParameterStore(ctx, \"backend_prod\", \u0026secretssync.AwsParameterStoreArgs{\nIntegration: prod.ID(),\nProject: pulumi.String(\"backend\"),\nConfig: pulumi.String(\"prd\"),\nRegion: pulumi.String(\"us-east-1\"),\nPath: pulumi.String(\"/backend/\"),\nSecureString: pulumi.Bool(true),\nTags: pulumi.StringMap{\n\"myTag\": pulumi.String(\"enabled\"),\n},\nDeleteBehavior: pulumi.String(\"leave_in_target\"),\n})\nif err != nil {\nreturn err\n}\nreturn nil\n})\n}\n```\n```hcl\nterraform {\n required_providers {\n aws = {\n source = \"pulumi/aws\"\n }\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"aws_iam_role\" \"doppler_parameter_store\" {\n lifecycle {\n create_before_destroy = true\n }\n inline_policy = [{\n \"name\" = \"doppler_secret_manager\"\n \"policy\" = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Action\" = [\"ssm:PutParameter\", \"ssm:LabelParameterVersion\", \"ssm:DeleteParameter\", \"ssm:RemoveTagsFromResource\", \"ssm:GetParameterHistory\", \"ssm:AddTagsToResource\", \"ssm:GetParametersByPath\", \"ssm:GetParameters\", \"ssm:GetParameter\", \"ssm:DeleteParameters\"]\n \"Effect\" = \"Allow\"\n \"Resource\" = \"*\"\n }]\n })\n }]\n name = \"doppler_parameter_store\"\n assume_role_policy = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Effect\" = \"Allow\"\n \"Action\" = \"sts:AssumeRole\"\n \"Principal\" = {\n \"AWS\" = \"arn:aws:iam::299900769157:user/doppler-integration-operator\"\n }\n \"Condition\" = {\n \"StringEquals\" = {\n \"sts:ExternalId\" = \"\u003cYOUR_WORKPLACE_SLUG\u003e\"\n }\n }\n }]\n })\n}\nresource \"doppler_integration_aws_parameter_store\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n assume_role_arn = aws_iam_role.doppler_parameter_store.arn\n}\nresource \"doppler_secrets_sync_aws_parameter_store\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_aws_parameter_store.prod.id\n project = \"backend\"\n config = \"prd\"\n region = \"us-east-1\"\n path = \"/backend/\"\n secure_string = true\n tags = {\n \"myTag\" = \"enabled\"\n }\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.IamRole;\nimport com.pulumi.aws.IamRoleArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerParameterStore = new IamRole(\"dopplerParameterStore\", IamRoleArgs.builder()\n .inlinePolicy(Arrays.asList(Map.ofEntries(\n Map.entry(\"name\", \"doppler_secret_manager\"),\n Map.entry(\"policy\", serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"ssm:PutParameter\", \n \"ssm:LabelParameterVersion\", \n \"ssm:DeleteParameter\", \n \"ssm:RemoveTagsFromResource\", \n \"ssm:GetParameterHistory\", \n \"ssm:AddTagsToResource\", \n \"ssm:GetParametersByPath\", \n \"ssm:GetParameters\", \n \"ssm:GetParameter\", \n \"ssm:DeleteParameters\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n )))\n .name(\"doppler_parameter_store\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .build());\n\n var prod = new com.pulumi.doppler.integration.AwsParameterStore(\"prod\", com.pulumi.doppler.integration.AwsParameterStoreArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerParameterStore.get(\"arn\"))\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.AwsParameterStore(\"backendProd\", com.pulumi.doppler.secretsSync.AwsParameterStoreArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .secureString(true)\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerParameterStore:\n type: aws:IamRole\n name: doppler_parameter_store\n properties:\n inlinePolicy:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - ssm:PutParameter\n - ssm:LabelParameterVersion\n - ssm:DeleteParameter\n - ssm:RemoveTagsFromResource\n - ssm:GetParameterHistory\n - ssm:AddTagsToResource\n - ssm:GetParametersByPath\n - ssm:GetParameters\n - ssm:GetParameter\n - ssm:DeleteParameters\n Effect: Allow\n Resource: '*'\n name: doppler_parameter_store\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n prod:\n type: doppler:integration:AwsParameterStore\n properties:\n name: Production\n assumeRoleArn: ${dopplerParameterStore.arn}\n backendProd:\n type: doppler:secretsSync:AwsParameterStore\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n secureString: true\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "The ARN of the AWS role for Doppler to assume\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "assumeRoleArn", + "name" + ], + "inputProperties": { + "assumeRoleArn": { + "type": "string", + "description": "The ARN of the AWS role for Doppler to assume\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "assumeRoleArn", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsParameterStore resources.\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "The ARN of the AWS role for Doppler to assume\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/awsPostgres:AwsPostgres": { + "description": "Manage a AWS Postgres Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iAwsPostgres = new doppler.integration.AwsPostgres(\"i_aws_postgres\", {\n name: \"TF AWS Postgres\",\n assumeRoleArn: \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n lambdaArn: \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsAwsPostgres = new doppler.rotatedsecret.AwsPostgres(\"rs_aws_postgres\", {\n credentials: [\n {\n username: \"xxxxxxxxxxx\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxxxx\",\n password: dbPassword2,\n },\n ],\n integration: iAwsPostgres.id,\n project: \"backend\",\n config: \"dev\",\n name: \"DB\",\n rotationPeriodSec: 2592000,\n host: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n port: 5432,\n database: \"xxxxxxxx\",\n managingUserUsername: \"xxxxxxxx\",\n managingUserPassword: \"xxxxxxxxxxxxxxxxxxxx\",\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_aws_postgres = doppler.integration.AwsPostgres(\"i_aws_postgres\",\n name=\"TF AWS Postgres\",\n assume_role_arn=\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n lambda_arn=\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\")\nrs_aws_postgres = doppler.rotatedsecret.AwsPostgres(\"rs_aws_postgres\",\n credentials=[\n {\n \"username\": \"xxxxxxxxxxx\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxxxx\",\n \"password\": db_password2,\n },\n ],\n integration=i_aws_postgres.id,\n project=\"backend\",\n config=\"dev\",\n name=\"DB\",\n rotation_period_sec=2592000,\n host=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n port=5432,\n database=\"xxxxxxxx\",\n managing_user_username=\"xxxxxxxx\",\n managing_user_password=\"xxxxxxxxxxxxxxxxxxxx\",\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iAwsPostgres = new Doppler.Integration.AwsPostgres(\"i_aws_postgres\", new()\n {\n Name = \"TF AWS Postgres\",\n AssumeRoleArn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\",\n LambdaArn = \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsAwsPostgres = new Doppler.RotatedSecret.AwsPostgres(\"rs_aws_postgres\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.AwsPostgresCredentialArgs\n {\n Username = \"xxxxxxxxxxx\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.AwsPostgresCredentialArgs\n {\n Username = \"xxxxxxxxxxx\",\n Password = dbPassword2,\n },\n },\n Integration = iAwsPostgres.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB\",\n RotationPeriodSec = 2592000,\n Host = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n Port = 5432,\n Database = \"xxxxxxxx\",\n ManagingUserUsername = \"xxxxxxxx\",\n ManagingUserPassword = \"xxxxxxxxxxxxxxxxxxxx\",\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiAwsPostgres, err := integration.NewAwsPostgres(ctx, \"i_aws_postgres\", \u0026integration.AwsPostgresArgs{\n\t\t\tName: pulumi.String(\"TF AWS Postgres\"),\n\t\t\tAssumeRoleArn: pulumi.String(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"),\n\t\t\tLambdaArn: pulumi.String(\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewAwsPostgres(ctx, \"rs_aws_postgres\", \u0026rotatedsecret.AwsPostgresArgs{\n\t\t\tCredentials: rotatedsecret.AwsPostgresCredentialArray{\n\t\t\t\t\u0026rotatedsecret.AwsPostgresCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.AwsPostgresCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iAwsPostgres.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tHost: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t\tPort: pulumi.Int(5432),\n\t\t\tDatabase: pulumi.String(\"xxxxxxxx\"),\n\t\t\tManagingUserUsername: pulumi.String(\"xxxxxxxx\"),\n\t\t\tManagingUserPassword: pulumi.String(\"xxxxxxxxxxxxxxxxxxxx\"),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_aws_postgres\" \"i_aws_postgres\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF AWS Postgres\"\n assume_role_arn = \"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\"\n lambda_arn = \"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_aws_postgres\" \"rs_aws_postgres\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxxxx\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxxxx\"\n password = var.dbPassword2\n }\n integration = doppler_integration_aws_postgres.i_aws_postgres.id\n project = \"backend\"\n config = \"dev\"\n name = \"DB\"\n rotation_period_sec = 2592000\n host = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n port = 5432\n database = \"xxxxxxxx\"\n managing_user_username = \"xxxxxxxx\"\n managing_user_password = \"xxxxxxxxxxxxxxxxxxxx\"\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.rotatedSecret.inputs.AwsPostgresCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iAwsPostgres = new com.pulumi.doppler.integration.AwsPostgres(\"iAwsPostgres\", com.pulumi.doppler.integration.AwsPostgresArgs.builder()\n .name(\"TF AWS Postgres\")\n .assumeRoleArn(\"arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\")\n .lambdaArn(\"arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsAwsPostgres = new com.pulumi.doppler.rotatedSecret.AwsPostgres(\"rsAwsPostgres\", com.pulumi.doppler.rotatedSecret.AwsPostgresArgs.builder()\n .credentials( \n AwsPostgresCredentialArgs.builder()\n .username(\"xxxxxxxxxxx\")\n .password(dbPassword1)\n .build(),\n AwsPostgresCredentialArgs.builder()\n .username(\"xxxxxxxxxxx\")\n .password(dbPassword2)\n .build())\n .integration(iAwsPostgres.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB\")\n .rotationPeriodSec(2592000)\n .host(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .port(5432)\n .database(\"xxxxxxxx\")\n .managingUserUsername(\"xxxxxxxx\")\n .managingUserPassword(\"xxxxxxxxxxxxxxxxxxxx\")\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iAwsPostgres:\n type: doppler:integration:AwsPostgres\n name: i_aws_postgres\n properties:\n name: TF AWS Postgres\n assumeRoleArn: arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx\n lambdaArn: arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx\n rsAwsPostgres:\n type: doppler:rotatedSecret:AwsPostgres\n name: rs_aws_postgres\n properties:\n credentials:\n - username: xxxxxxxxxxx\n password: ${dbPassword1}\n - username: xxxxxxxxxxx\n password: ${dbPassword2}\n integration: ${iAwsPostgres.id}\n project: backend\n config: dev\n name: DB\n rotationPeriodSec: 2.592e+06\n host: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n port: 5432\n database: xxxxxxxx\n managingUserUsername: xxxxxxxx\n managingUserPassword: xxxxxxxxxxxxxxxxxxxx\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "assumeRoleArn", + "lambdaArn", + "name" + ], + "inputProperties": { + "assumeRoleArn": { + "type": "string", + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "assumeRoleArn", + "lambdaArn", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsPostgres resources.\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "IAM Role ARN for role assumption\n" + }, + "lambdaArn": { + "type": "string", + "description": "The Lambda ARN\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/awsSecretsManager:AwsSecretsManager": { + "description": "Manage an AWS Secrets Manager Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst dopplerSecretsManager = new aws.index.IamRole(\"doppler_secrets_manager\", {\n inlinePolicy: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n name: \"doppler_secrets_manager\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n});\nconst prod = new doppler.integration.AwsSecretsManager(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerSecretsManager.arn,\n});\nconst backendProd = new doppler.secretssync.AwsSecretsManager(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumi_doppler as doppler\n\ndoppler_secrets_manager = aws.IamRole(\"doppler_secrets_manager\",\n inline_policy=[{\n name: doppler_secret_manager,\n policy: json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Action: [\n secretsmanager:GetSecretValue,\n secretsmanager:DescribeSecret,\n secretsmanager:PutSecretValue,\n secretsmanager:CreateSecret,\n secretsmanager:DeleteSecret,\n secretsmanager:TagResource,\n secretsmanager:UpdateSecret,\n ],\n Effect: Allow,\n Resource: *,\n }],\n }),\n }],\n name=doppler_secrets_manager,\n assume_role_policy=json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Effect: Allow,\n Action: sts:AssumeRole,\n Principal: {\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator,\n },\n Condition: {\n StringEquals: {\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e,\n },\n },\n }],\n }))\nprod = doppler.integration.AwsSecretsManager(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_secrets_manager[\"arn\"])\nbackend_prod = doppler.secretssync.AwsSecretsManager(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerSecretsManager = new Aws.IamRole(\"doppler_secrets_manager\", new()\n {\n InlinePolicy = new[]\n {\n \n {\n { \"name\", \"doppler_secret_manager\" },\n { \"policy\", JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }) },\n },\n },\n Name = \"doppler_secrets_manager\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n });\n\n var prod = new Doppler.Integration.AwsSecretsManager(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerSecretsManager.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsSecretsManager(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v7/go/aws\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\nfunc main() {\npulumi.Run(func(ctx *pulumi.Context) error {\ndopplerSecretsManager, err := aws.NewIamRole(ctx, \"doppler_secrets_manager\", \u0026aws.IamRoleArgs{\nInlinePolicy: []map[string]string{\n{\n\"name\": \"doppler_secret_manager\",\n\"policy\": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n},\n},\nName: \"doppler_secrets_manager\",\nAssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n})\nif err != nil {\nreturn err\n}\nprod, err := integration.NewAwsSecretsManager(ctx, \"prod\", \u0026integration.AwsSecretsManagerArgs{\nName: pulumi.String(\"Production\"),\nAssumeRoleArn: dopplerSecretsManager.Arn,\n})\nif err != nil {\nreturn err\n}\n_, err = secretssync.NewAwsSecretsManager(ctx, \"backend_prod\", \u0026secretssync.AwsSecretsManagerArgs{\nIntegration: prod.ID(),\nProject: pulumi.String(\"backend\"),\nConfig: pulumi.String(\"prd\"),\nRegion: pulumi.String(\"us-east-1\"),\nPath: pulumi.String(\"/backend/\"),\nTags: pulumi.StringMap{\n\"myTag\": pulumi.String(\"enabled\"),\n},\nDeleteBehavior: pulumi.String(\"leave_in_target\"),\n})\nif err != nil {\nreturn err\n}\nreturn nil\n})\n}\n```\n```hcl\nterraform {\n required_providers {\n aws = {\n source = \"pulumi/aws\"\n }\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"aws_iam_role\" \"doppler_secrets_manager\" {\n lifecycle {\n create_before_destroy = true\n }\n inline_policy = [{\n \"name\" = \"doppler_secret_manager\"\n \"policy\" = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Action\" = [\"secretsmanager:GetSecretValue\", \"secretsmanager:DescribeSecret\", \"secretsmanager:PutSecretValue\", \"secretsmanager:CreateSecret\", \"secretsmanager:DeleteSecret\", \"secretsmanager:TagResource\", \"secretsmanager:UpdateSecret\"]\n \"Effect\" = \"Allow\"\n \"Resource\" = \"*\"\n }]\n })\n }]\n name = \"doppler_secrets_manager\"\n assume_role_policy = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Effect\" = \"Allow\"\n \"Action\" = \"sts:AssumeRole\"\n \"Principal\" = {\n \"AWS\" = \"arn:aws:iam::299900769157:user/doppler-integration-operator\"\n }\n \"Condition\" = {\n \"StringEquals\" = {\n \"sts:ExternalId\" = \"\u003cYOUR_WORKPLACE_SLUG\u003e\"\n }\n }\n }]\n })\n}\nresource \"doppler_integration_aws_secrets_manager\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n assume_role_arn = aws_iam_role.doppler_secrets_manager.arn\n}\nresource \"doppler_secrets_sync_aws_secrets_manager\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_aws_secrets_manager.prod.id\n project = \"backend\"\n config = \"prd\"\n region = \"us-east-1\"\n path = \"/backend/\"\n tags = {\n \"myTag\" = \"enabled\"\n }\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.IamRole;\nimport com.pulumi.aws.IamRoleArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerSecretsManager = new IamRole(\"dopplerSecretsManager\", IamRoleArgs.builder()\n .inlinePolicy(Arrays.asList(Map.ofEntries(\n Map.entry(\"name\", \"doppler_secret_manager\"),\n Map.entry(\"policy\", serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"secretsmanager:GetSecretValue\", \n \"secretsmanager:DescribeSecret\", \n \"secretsmanager:PutSecretValue\", \n \"secretsmanager:CreateSecret\", \n \"secretsmanager:DeleteSecret\", \n \"secretsmanager:TagResource\", \n \"secretsmanager:UpdateSecret\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n )))\n .name(\"doppler_secrets_manager\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .build());\n\n var prod = new com.pulumi.doppler.integration.AwsSecretsManager(\"prod\", com.pulumi.doppler.integration.AwsSecretsManagerArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerSecretsManager.get(\"arn\"))\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.AwsSecretsManager(\"backendProd\", com.pulumi.doppler.secretsSync.AwsSecretsManagerArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerSecretsManager:\n type: aws:IamRole\n name: doppler_secrets_manager\n properties:\n inlinePolicy:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - secretsmanager:GetSecretValue\n - secretsmanager:DescribeSecret\n - secretsmanager:PutSecretValue\n - secretsmanager:CreateSecret\n - secretsmanager:DeleteSecret\n - secretsmanager:TagResource\n - secretsmanager:UpdateSecret\n Effect: Allow\n Resource: '*'\n name: doppler_secrets_manager\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n prod:\n type: doppler:integration:AwsSecretsManager\n properties:\n name: Production\n assumeRoleArn: ${dopplerSecretsManager.arn}\n backendProd:\n type: doppler:secretsSync:AwsSecretsManager\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "The ARN of the AWS role for Doppler to assume\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "assumeRoleArn", + "name" + ], + "inputProperties": { + "assumeRoleArn": { + "type": "string", + "description": "The ARN of the AWS role for Doppler to assume\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "assumeRoleArn", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsSecretsManager resources.\n", + "properties": { + "assumeRoleArn": { + "type": "string", + "description": "The ARN of the AWS role for Doppler to assume\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal": { + "description": "Manage an Azure Dynamic Service Principal Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.AzureDynamicServicePrincipal(\"prod\", {\n name: \"Production\",\n tenantId: \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n clientId: \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n clientSecret: \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.AzureDynamicServicePrincipal(\"prod\",\n name=\"Production\",\n tenant_id=\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n client_id=\"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n client_secret=\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.AzureDynamicServicePrincipal(\"prod\", new()\n {\n Name = \"Production\",\n TenantId = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n ClientId = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n ClientSecret = \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := integration.NewAzureDynamicServicePrincipal(ctx, \"prod\", \u0026integration.AzureDynamicServicePrincipalArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tTenantId: pulumi.String(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"),\n\t\t\tClientId: pulumi.String(\"77ed9112-b7f5-4d1d-a60f-198375e7f265\"),\n\t\t\tClientSecret: pulumi.String(\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_azure_dynamic_service_principal\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n tenant_id = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"\n client_id = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"\n client_secret = \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.AzureDynamicServicePrincipal;\nimport com.pulumi.doppler.integration.AzureDynamicServicePrincipalArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new AzureDynamicServicePrincipal(\"prod\", AzureDynamicServicePrincipalArgs.builder()\n .name(\"Production\")\n .tenantId(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\")\n .clientId(\"77ed9112-b7f5-4d1d-a60f-198375e7f265\")\n .clientSecret(\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:AzureDynamicServicePrincipal\n properties:\n name: Production\n tenantId: c77d1b3d-6350-4696-b59f-90dae3e0b41e\n clientId: 77ed9112-b7f5-4d1d-a60f-198375e7f265\n clientSecret: kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "clientSecret": { + "type": "string", + "description": "The client secret of the managing service principal\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "required": [ + "clientId", + "clientSecret", + "name", + "tenantId" + ], + "inputProperties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "clientSecret": { + "type": "string", + "description": "The client secret of the managing service principal\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "requiredInputs": [ + "clientId", + "clientSecret", + "name", + "tenantId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AzureDynamicServicePrincipal resources.\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "clientSecret": { + "type": "string", + "description": "The client secret of the managing service principal\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "type": "object" + } + }, + "doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc": { + "description": "Manage an Azure Dynamic Service Principal Doppler integration using workload identity federation.\n\nThe managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst dopplerManager = azuread.application({\n clientId: \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n});\nconst prod = new doppler.integration.AzureDynamicServicePrincipalOidc(\"prod\", {\n name: \"Production\",\n tenantId: \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n clientId: dopplerManager.clientId,\n});\nconst doppler2 = new azuread.index.ApplicationFederatedIdentityCredential(\"doppler\", {\n applicationId: dopplerManager.id,\n displayName: \"doppler-production\",\n issuer: prod.federationIssuer,\n subject: prod.federationSubject,\n audiences: [prod.federationAudience],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_doppler as doppler\n\ndoppler_manager = azuread.application(client_id=\"77ed9112-b7f5-4d1d-a60f-198375e7f265\")\nprod = doppler.integration.AzureDynamicServicePrincipalOidc(\"prod\",\n name=\"Production\",\n tenant_id=\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n client_id=doppler_manager[\"clientId\"])\ndoppler_1 = azuread.ApplicationFederatedIdentityCredential(\"doppler\",\n application_id=doppler_manager.id,\n display_name=doppler-production,\n issuer=prod.federation_issuer,\n subject=prod.federation_subject,\n audiences=[prod.federation_audience])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azuread = Pulumi.Azuread;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerManager = Azuread.Application.Invoke(new()\n {\n ClientId = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n });\n\n var prod = new Doppler.Integration.AzureDynamicServicePrincipalOidc(\"prod\", new()\n {\n Name = \"Production\",\n TenantId = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n ClientId = dopplerManager.ClientId,\n });\n\n var doppler = new Azuread.ApplicationFederatedIdentityCredential(\"doppler\", new()\n {\n ApplicationId = dopplerManager.Id,\n DisplayName = \"doppler-production\",\n Issuer = prod.FederationIssuer,\n Subject = prod.FederationSubject,\n Audiences = new[]\n {\n prod.FederationAudience,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdopplerManager, err := azuread.Application(ctx, map[string]string{\n\t\t\t\"clientId\": \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewAzureDynamicServicePrincipalOidc(ctx, \"prod\", \u0026integration.AzureDynamicServicePrincipalOidcArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tTenantId: pulumi.String(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"),\n\t\t\tClientId: pulumi.Any(dopplerManager.ClientId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationFederatedIdentityCredential(ctx, \"doppler\", \u0026azuread.ApplicationFederatedIdentityCredentialArgs{\n\t\t\tApplicationId: dopplerManager.Id,\n\t\t\tDisplayName: \"doppler-production\",\n\t\t\tIssuer: prod.FederationIssuer,\n\t\t\tSubject: prod.FederationSubject,\n\t\t\tAudiences: pulumi.StringArray{\n\t\t\t\tprod.FederationAudience,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"azuread_application\" \"dopplerManager\" {\n client_id = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"\n}\n\nresource \"doppler_integration_azure_dynamic_service_principal_oidc\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n tenant_id = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"\n client_id = data.azuread_application.dopplerManager.client_id\n}\nresource \"azuread_application_federated_identity_credential\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n application_id = data.azuread_application.dopplerManager.id\n display_name = \"doppler-production\"\n issuer = doppler_integration_azure_dynamic_service_principal_oidc.prod.federation_issuer\n subject = doppler_integration_azure_dynamic_service_principal_oidc.prod.federation_subject\n audiences = [doppler_integration_azure_dynamic_service_principal_oidc.prod.federation_audience]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.doppler.integration.AzureDynamicServicePrincipalOidc;\nimport com.pulumi.doppler.integration.AzureDynamicServicePrincipalOidcArgs;\nimport com.pulumi.azuread.ApplicationFederatedIdentityCredential;\nimport com.pulumi.azuread.ApplicationFederatedIdentityCredentialArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var dopplerManager = AzureadFunctions.Application(Map.of(\"clientId\", \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"));\n\n var prod = new AzureDynamicServicePrincipalOidc(\"prod\", AzureDynamicServicePrincipalOidcArgs.builder()\n .name(\"Production\")\n .tenantId(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\")\n .clientId(dopplerManager.get(\"clientId\"))\n .build());\n\n var doppler = new ApplicationFederatedIdentityCredential(\"doppler\", ApplicationFederatedIdentityCredentialArgs.builder()\n .applicationId(dopplerManager.get(\"id\"))\n .displayName(\"doppler-production\")\n .issuer(prod.federationIssuer())\n .subject(prod.federationSubject())\n .audiences(Arrays.asList(prod.federationAudience()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:AzureDynamicServicePrincipalOidc\n properties:\n name: Production\n tenantId: c77d1b3d-6350-4696-b59f-90dae3e0b41e\n clientId: ${dopplerManager.clientId}\n doppler:\n type: azuread:ApplicationFederatedIdentityCredential\n properties:\n applicationId: ${dopplerManager.id}\n displayName: doppler-production\n issuer: ${prod.federationIssuer}\n subject: ${prod.federationSubject}\n audiences:\n - ${prod.federationAudience}\nvariables:\n dopplerManager:\n fn::invoke:\n function: azuread:Application\n arguments:\n clientId: 77ed9112-b7f5-4d1d-a60f-198375e7f265\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "federationAudience": { + "type": "string", + "description": "The audience to configure on the federated identity credential\n" + }, + "federationIssuer": { + "type": "string", + "description": "The issuer of the OIDC tokens Doppler issues for this integration\n" + }, + "federationSubject": { + "type": "string", + "description": "The subject of the OIDC tokens Doppler issues for this integration\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "required": [ + "clientId", + "federationAudience", + "federationIssuer", + "federationSubject", + "name", + "tenantId" + ], + "inputProperties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "requiredInputs": [ + "clientId", + "name", + "tenantId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AzureDynamicServicePrincipalOidc resources.\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "federationAudience": { + "type": "string", + "description": "The audience to configure on the federated identity credential\n" + }, + "federationIssuer": { + "type": "string", + "description": "The issuer of the OIDC tokens Doppler issues for this integration\n" + }, + "federationSubject": { + "type": "string", + "description": "The subject of the OIDC tokens Doppler issues for this integration\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "type": "object" + } + }, + "doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal": { + "description": "Manage an Azure Rotated Service Principal Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.AzureRotatedServicePrincipal(\"prod\", {\n name: \"Production\",\n tenantId: \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n clientId: \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n clientSecret: \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.AzureRotatedServicePrincipal(\"prod\",\n name=\"Production\",\n tenant_id=\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n client_id=\"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n client_secret=\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.AzureRotatedServicePrincipal(\"prod\", new()\n {\n Name = \"Production\",\n TenantId = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n ClientId = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n ClientSecret = \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := integration.NewAzureRotatedServicePrincipal(ctx, \"prod\", \u0026integration.AzureRotatedServicePrincipalArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tTenantId: pulumi.String(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"),\n\t\t\tClientId: pulumi.String(\"77ed9112-b7f5-4d1d-a60f-198375e7f265\"),\n\t\t\tClientSecret: pulumi.String(\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_azure_rotated_service_principal\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n tenant_id = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"\n client_id = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"\n client_secret = \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.AzureRotatedServicePrincipal;\nimport com.pulumi.doppler.integration.AzureRotatedServicePrincipalArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new AzureRotatedServicePrincipal(\"prod\", AzureRotatedServicePrincipalArgs.builder()\n .name(\"Production\")\n .tenantId(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\")\n .clientId(\"77ed9112-b7f5-4d1d-a60f-198375e7f265\")\n .clientSecret(\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:AzureRotatedServicePrincipal\n properties:\n name: Production\n tenantId: c77d1b3d-6350-4696-b59f-90dae3e0b41e\n clientId: 77ed9112-b7f5-4d1d-a60f-198375e7f265\n clientSecret: kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "clientSecret": { + "type": "string", + "description": "The client secret of the managing service principal\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "required": [ + "clientId", + "clientSecret", + "name", + "tenantId" + ], + "inputProperties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "clientSecret": { + "type": "string", + "description": "The client secret of the managing service principal\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "requiredInputs": [ + "clientId", + "clientSecret", + "name", + "tenantId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AzureRotatedServicePrincipal resources.\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "clientSecret": { + "type": "string", + "description": "The client secret of the managing service principal\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "type": "object" + } + }, + "doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc": { + "description": "Manage an Azure Rotated Service Principal Doppler integration using workload identity federation.\n\nThe managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azuread from \"@pulumi/azuread\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst dopplerManager = azuread.application({\n clientId: \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n});\nconst prod = new doppler.integration.AzureRotatedServicePrincipalOidc(\"prod\", {\n name: \"Production\",\n tenantId: \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n clientId: dopplerManager.clientId,\n});\nconst doppler2 = new azuread.index.ApplicationFederatedIdentityCredential(\"doppler\", {\n applicationId: dopplerManager.id,\n displayName: \"doppler-production\",\n issuer: prod.federationIssuer,\n subject: prod.federationSubject,\n audiences: [prod.federationAudience],\n});\n```\n```python\nimport pulumi\nimport pulumi_azuread as azuread\nimport pulumi_doppler as doppler\n\ndoppler_manager = azuread.application(client_id=\"77ed9112-b7f5-4d1d-a60f-198375e7f265\")\nprod = doppler.integration.AzureRotatedServicePrincipalOidc(\"prod\",\n name=\"Production\",\n tenant_id=\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n client_id=doppler_manager[\"clientId\"])\ndoppler_1 = azuread.ApplicationFederatedIdentityCredential(\"doppler\",\n application_id=doppler_manager.id,\n display_name=doppler-production,\n issuer=prod.federation_issuer,\n subject=prod.federation_subject,\n audiences=[prod.federation_audience])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azuread = Pulumi.Azuread;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerManager = Azuread.Application.Invoke(new()\n {\n ClientId = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n });\n\n var prod = new Doppler.Integration.AzureRotatedServicePrincipalOidc(\"prod\", new()\n {\n Name = \"Production\",\n TenantId = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n ClientId = dopplerManager.ClientId,\n });\n\n var doppler = new Azuread.ApplicationFederatedIdentityCredential(\"doppler\", new()\n {\n ApplicationId = dopplerManager.Id,\n DisplayName = \"doppler-production\",\n Issuer = prod.FederationIssuer,\n Subject = prod.FederationSubject,\n Audiences = new[]\n {\n prod.FederationAudience,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi-azuread/sdk/go/azuread\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdopplerManager, err := azuread.Application(ctx, map[string]string{\n\t\t\t\"clientId\": \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewAzureRotatedServicePrincipalOidc(ctx, \"prod\", \u0026integration.AzureRotatedServicePrincipalOidcArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tTenantId: pulumi.String(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"),\n\t\t\tClientId: pulumi.Any(dopplerManager.ClientId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = azuread.NewApplicationFederatedIdentityCredential(ctx, \"doppler\", \u0026azuread.ApplicationFederatedIdentityCredentialArgs{\n\t\t\tApplicationId: dopplerManager.Id,\n\t\t\tDisplayName: \"doppler-production\",\n\t\t\tIssuer: prod.FederationIssuer,\n\t\t\tSubject: prod.FederationSubject,\n\t\t\tAudiences: pulumi.StringArray{\n\t\t\t\tprod.FederationAudience,\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"azuread_application\" \"dopplerManager\" {\n client_id = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"\n}\n\nresource \"doppler_integration_azure_rotated_service_principal_oidc\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n tenant_id = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"\n client_id = data.azuread_application.dopplerManager.client_id\n}\nresource \"azuread_application_federated_identity_credential\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n application_id = data.azuread_application.dopplerManager.id\n display_name = \"doppler-production\"\n issuer = doppler_integration_azure_rotated_service_principal_oidc.prod.federation_issuer\n subject = doppler_integration_azure_rotated_service_principal_oidc.prod.federation_subject\n audiences = [doppler_integration_azure_rotated_service_principal_oidc.prod.federation_audience]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azuread.AzureadFunctions;\nimport com.pulumi.doppler.integration.AzureRotatedServicePrincipalOidc;\nimport com.pulumi.doppler.integration.AzureRotatedServicePrincipalOidcArgs;\nimport com.pulumi.azuread.ApplicationFederatedIdentityCredential;\nimport com.pulumi.azuread.ApplicationFederatedIdentityCredentialArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var dopplerManager = AzureadFunctions.Application(Map.of(\"clientId\", \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"));\n\n var prod = new AzureRotatedServicePrincipalOidc(\"prod\", AzureRotatedServicePrincipalOidcArgs.builder()\n .name(\"Production\")\n .tenantId(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\")\n .clientId(dopplerManager.get(\"clientId\"))\n .build());\n\n var doppler = new ApplicationFederatedIdentityCredential(\"doppler\", ApplicationFederatedIdentityCredentialArgs.builder()\n .applicationId(dopplerManager.get(\"id\"))\n .displayName(\"doppler-production\")\n .issuer(prod.federationIssuer())\n .subject(prod.federationSubject())\n .audiences(Arrays.asList(prod.federationAudience()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:AzureRotatedServicePrincipalOidc\n properties:\n name: Production\n tenantId: c77d1b3d-6350-4696-b59f-90dae3e0b41e\n clientId: ${dopplerManager.clientId}\n doppler:\n type: azuread:ApplicationFederatedIdentityCredential\n properties:\n applicationId: ${dopplerManager.id}\n displayName: doppler-production\n issuer: ${prod.federationIssuer}\n subject: ${prod.federationSubject}\n audiences:\n - ${prod.federationAudience}\nvariables:\n dopplerManager:\n fn::invoke:\n function: azuread:Application\n arguments:\n clientId: 77ed9112-b7f5-4d1d-a60f-198375e7f265\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "federationAudience": { + "type": "string", + "description": "The audience to configure on the federated identity credential\n" + }, + "federationIssuer": { + "type": "string", + "description": "The issuer of the OIDC tokens Doppler issues for this integration\n" + }, + "federationSubject": { + "type": "string", + "description": "The subject of the OIDC tokens Doppler issues for this integration\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "required": [ + "clientId", + "federationAudience", + "federationIssuer", + "federationSubject", + "name", + "tenantId" + ], + "inputProperties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "requiredInputs": [ + "clientId", + "name", + "tenantId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AzureRotatedServicePrincipalOidc resources.\n", + "properties": { + "clientId": { + "type": "string", + "description": "The application (client) ID of the managing service principal\n" + }, + "federationAudience": { + "type": "string", + "description": "The audience to configure on the federated identity credential\n" + }, + "federationIssuer": { + "type": "string", + "description": "The issuer of the OIDC tokens Doppler issues for this integration\n" + }, + "federationSubject": { + "type": "string", + "description": "The subject of the OIDC tokens Doppler issues for this integration\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Azure directory (tenant) ID\n" + } + }, + "type": "object" + } + }, + "doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal": { + "description": "Manage an Azure Vault (Service Principal) Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.AzureVaultServicePrincipal(\"prod\", {\n name: \"prod\",\n clientId: \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n clientSecret: \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n tenantId: \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.AzureVaultServicePrincipal(\"prod\",\n name=\"prod\",\n client_id=\"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n client_secret=\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n tenant_id=\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.AzureVaultServicePrincipal(\"prod\", new()\n {\n Name = \"prod\",\n ClientId = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\",\n ClientSecret = \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\",\n TenantId = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := integration.NewAzureVaultServicePrincipal(ctx, \"prod\", \u0026integration.AzureVaultServicePrincipalArgs{\n\t\t\tName: pulumi.String(\"prod\"),\n\t\t\tClientId: pulumi.String(\"77ed9112-b7f5-4d1d-a60f-198375e7f265\"),\n\t\t\tClientSecret: pulumi.String(\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\"),\n\t\t\tTenantId: pulumi.String(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_azure_vault_service_principal\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"prod\"\n client_id = \"77ed9112-b7f5-4d1d-a60f-198375e7f265\"\n client_secret = \"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\"\n tenant_id = \"c77d1b3d-6350-4696-b59f-90dae3e0b41e\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.AzureVaultServicePrincipal;\nimport com.pulumi.doppler.integration.AzureVaultServicePrincipalArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new AzureVaultServicePrincipal(\"prod\", AzureVaultServicePrincipalArgs.builder()\n .name(\"prod\")\n .clientId(\"77ed9112-b7f5-4d1d-a60f-198375e7f265\")\n .clientSecret(\"kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\")\n .tenantId(\"c77d1b3d-6350-4696-b59f-90dae3e0b41e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:AzureVaultServicePrincipal\n properties:\n name: prod\n clientId: 77ed9112-b7f5-4d1d-a60f-198375e7f265\n clientSecret: kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo\n tenantId: c77d1b3d-6350-4696-b59f-90dae3e0b41e\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "clientId": { + "type": "string", + "description": "The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n" + }, + "clientSecret": { + "type": "string", + "description": "The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n" + } + }, + "required": [ + "clientId", + "clientSecret", + "name", + "tenantId" + ], + "inputProperties": { + "clientId": { + "type": "string", + "description": "The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n" + }, + "clientSecret": { + "type": "string", + "description": "The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n" + } + }, + "requiredInputs": [ + "clientId", + "clientSecret", + "name", + "tenantId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AzureVaultServicePrincipal resources.\n", + "properties": { + "clientId": { + "type": "string", + "description": "The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n" + }, + "clientSecret": { + "type": "string", + "description": "The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "tenantId": { + "type": "string", + "description": "The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details.\n" + } + }, + "type": "object" + } + }, + "doppler:integration/circleci:Circleci": { + "description": "Manage a CircleCI Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.Circleci(\"prod\", {\n name: \"Production\",\n apiToken: \"my_api_token\",\n});\nconst backendProd = new doppler.secretssync.Circleci(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n resourceType: \"project\",\n resourceId: \"github/myorg/myproject\",\n organizationSlug: \"myorg\",\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.Circleci(\"prod\",\n name=\"Production\",\n api_token=\"my_api_token\")\nbackend_prod = doppler.secretssync.Circleci(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n resource_type=\"project\",\n resource_id=\"github/myorg/myproject\",\n organization_slug=\"myorg\",\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Circleci(\"prod\", new()\n {\n Name = \"Production\",\n ApiToken = \"my_api_token\",\n });\n\n var backendProd = new Doppler.SecretsSync.Circleci(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n ResourceType = \"project\",\n ResourceId = \"github/myorg/myproject\",\n OrganizationSlug = \"myorg\",\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewCircleci(ctx, \"prod\", \u0026integration.CircleciArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tApiToken: pulumi.String(\"my_api_token\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretssync.NewCircleci(ctx, \"backend_prod\", \u0026secretssync.CircleciArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tResourceType: pulumi.String(\"project\"),\n\t\t\tResourceId: pulumi.String(\"github/myorg/myproject\"),\n\t\t\tOrganizationSlug: pulumi.String(\"myorg\"),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_circleci\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n api_token = \"my_api_token\"\n}\nresource \"doppler_secrets_sync_circleci\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_circleci.prod.id\n project = \"backend\"\n config = \"prd\"\n resource_type = \"project\"\n resource_id = \"github/myorg/myproject\"\n organization_slug = \"myorg\"\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new com.pulumi.doppler.integration.Circleci(\"prod\", com.pulumi.doppler.integration.CircleciArgs.builder()\n .name(\"Production\")\n .apiToken(\"my_api_token\")\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.Circleci(\"backendProd\", com.pulumi.doppler.secretsSync.CircleciArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .resourceType(\"project\")\n .resourceId(\"github/myorg/myproject\")\n .organizationSlug(\"myorg\")\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Circleci\n properties:\n name: Production\n apiToken: my_api_token\n backendProd:\n type: doppler:secretsSync:Circleci\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n resourceType: project\n resourceId: github/myorg/myproject\n organizationSlug: myorg\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "apiToken": { + "type": "string", + "description": "A CircleCI API token. See https://docs.doppler.com/docs/circleci for details.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "apiToken", + "name" + ], + "inputProperties": { + "apiToken": { + "type": "string", + "description": "A CircleCI API token. See https://docs.doppler.com/docs/circleci for details.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "apiToken", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Circleci resources.\n", + "properties": { + "apiToken": { + "type": "string", + "description": "A CircleCI API token. See https://docs.doppler.com/docs/circleci for details.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/cloudflareTokens:CloudflareTokens": { + "description": "Manage a Cloudflare Tokens Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst key1 = config.get(\"key1\") || \"\";\nconst key2 = config.get(\"key2\") || \"\";\nconst iCf = new doppler.integration.CloudflareTokens(\"i_cf\", {\n name: \"TF Cloudflare\",\n apiToken: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n});\nconst rsCf = new doppler.rotatedsecret.CloudflareTokens(\"rs_cf\", {\n credentials: [\n {\n value: key1,\n },\n {\n value: key2,\n },\n ],\n integration: iCf.id,\n project: \"backend\",\n config: \"dev\",\n name: \"CLOUDFLARE\",\n rotationPeriodSec: 2592000,\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\nkey1 = config.get(\"key1\")\nif key1 is None:\n key1 = \"\"\nkey2 = config.get(\"key2\")\nif key2 is None:\n key2 = \"\"\ni_cf = doppler.integration.CloudflareTokens(\"i_cf\",\n name=\"TF Cloudflare\",\n api_token=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\nrs_cf = doppler.rotatedsecret.CloudflareTokens(\"rs_cf\",\n credentials=[\n {\n \"value\": key1,\n },\n {\n \"value\": key2,\n },\n ],\n integration=i_cf.id,\n project=\"backend\",\n config=\"dev\",\n name=\"CLOUDFLARE\",\n rotation_period_sec=2592000,\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var key1 = config.Get(\"key1\") ?? \"\";\n var key2 = config.Get(\"key2\") ?? \"\";\n var iCf = new Doppler.Integration.CloudflareTokens(\"i_cf\", new()\n {\n Name = \"TF Cloudflare\",\n ApiToken = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n });\n\n var rsCf = new Doppler.RotatedSecret.CloudflareTokens(\"rs_cf\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.CloudflareTokensCredentialArgs\n {\n Value = key1,\n },\n new Doppler.RotatedSecret.Inputs.CloudflareTokensCredentialArgs\n {\n Value = key2,\n },\n },\n Integration = iCf.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"CLOUDFLARE\",\n RotationPeriodSec = 2592000,\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tkey1 := \"\"\n\t\tif param := cfg.Get(\"key1\"); param != \"\" {\n\t\t\tkey1 = param\n\t\t}\n\t\tkey2 := \"\"\n\t\tif param := cfg.Get(\"key2\"); param != \"\" {\n\t\t\tkey2 = param\n\t\t}\n\t\tiCf, err := integration.NewCloudflareTokens(ctx, \"i_cf\", \u0026integration.CloudflareTokensArgs{\n\t\t\tName: pulumi.String(\"TF Cloudflare\"),\n\t\t\tApiToken: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewCloudflareTokens(ctx, \"rs_cf\", \u0026rotatedsecret.CloudflareTokensArgs{\n\t\t\tCredentials: rotatedsecret.CloudflareTokensCredentialArray{\n\t\t\t\t\u0026rotatedsecret.CloudflareTokensCredentialArgs{\n\t\t\t\t\tValue: pulumi.String(key1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.CloudflareTokensCredentialArgs{\n\t\t\t\t\tValue: pulumi.String(key2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iCf.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"CLOUDFLARE\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_cloudflare_tokens\" \"i_cf\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF Cloudflare\"\n api_token = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n}\nresource \"doppler_rotated_secret_cloudflare_tokens\" \"rs_cf\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n value = var.key1\n }\n credentials {\n value = var.key2\n }\n integration = doppler_integration_cloudflare_tokens.i_cf.id\n project = \"backend\"\n config = \"dev\"\n name = \"CLOUDFLARE\"\n rotation_period_sec = 2592000\n}\n# The initial key for the first user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"key1\" {\n type = string\n default = \"\"\n}\nvariable \"key2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.rotatedSecret.inputs.CloudflareTokensCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var key1 = config.get(\"key1\").orElse(\"\");\n final var key2 = config.get(\"key2\").orElse(\"\");\n var iCf = new com.pulumi.doppler.integration.CloudflareTokens(\"iCf\", com.pulumi.doppler.integration.CloudflareTokensArgs.builder()\n .name(\"TF Cloudflare\")\n .apiToken(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .build());\n\n var rsCf = new com.pulumi.doppler.rotatedSecret.CloudflareTokens(\"rsCf\", com.pulumi.doppler.rotatedSecret.CloudflareTokensArgs.builder()\n .credentials( \n CloudflareTokensCredentialArgs.builder()\n .value(key1)\n .build(),\n CloudflareTokensCredentialArgs.builder()\n .value(key2)\n .build())\n .integration(iCf.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"CLOUDFLARE\")\n .rotationPeriodSec(2592000)\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The initial key for the first user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n key1:\n type: string\n default: \"\"\n key2:\n type: string\n default: \"\"\nresources:\n iCf:\n type: doppler:integration:CloudflareTokens\n name: i_cf\n properties:\n name: TF Cloudflare\n apiToken: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n rsCf:\n type: doppler:rotatedSecret:CloudflareTokens\n name: rs_cf\n properties:\n credentials:\n - value: ${key1}\n - value: ${key2}\n integration: ${iCf.id}\n project: backend\n config: dev\n name: CLOUDFLARE\n rotationPeriodSec: 2.592e+06\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "apiToken": { + "type": "string", + "description": "The API Token\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "apiToken", + "name" + ], + "inputProperties": { + "apiToken": { + "type": "string", + "description": "The API Token\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "apiToken", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering CloudflareTokens resources.\n", + "properties": { + "apiToken": { + "type": "string", + "description": "The API Token\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/externalId:ExternalId": { + "properties": { + "integrationType": { + "type": "string", + "description": "The integration type for the external id\n" + } + }, + "required": [ + "integrationType" + ], + "inputProperties": { + "integrationType": { + "type": "string", + "description": "The integration type for the external id\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "integrationType" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ExternalId resources.\n", + "properties": { + "integrationType": { + "type": "string", + "description": "The integration type for the external id\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:integration/flyio:Flyio": { + "description": "Manage a Fly.io Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.Flyio(\"prod\", {\n name: \"TF Fly.io\",\n apiKey: \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst backendProd = new doppler.secretssync.Flyio(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n appId: \"my-app\",\n restartMachines: true,\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.Flyio(\"prod\",\n name=\"TF Fly.io\",\n api_key=\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nbackend_prod = doppler.secretssync.Flyio(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n app_id=\"my-app\",\n restart_machines=True,\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Flyio(\"prod\", new()\n {\n Name = \"TF Fly.io\",\n ApiKey = \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var backendProd = new Doppler.SecretsSync.Flyio(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n AppId = \"my-app\",\n RestartMachines = true,\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewFlyio(ctx, \"prod\", \u0026integration.FlyioArgs{\n\t\t\tName: pulumi.String(\"TF Fly.io\"),\n\t\t\tApiKey: pulumi.String(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretssync.NewFlyio(ctx, \"backend_prod\", \u0026secretssync.FlyioArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tAppId: pulumi.String(\"my-app\"),\n\t\t\tRestartMachines: pulumi.Bool(true),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_flyio\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF Fly.io\"\n api_key = \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_secrets_sync_flyio\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_flyio.prod.id\n project = \"backend\"\n config = \"prd\"\n app_id = \"my-app\"\n restart_machines = true\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new com.pulumi.doppler.integration.Flyio(\"prod\", com.pulumi.doppler.integration.FlyioArgs.builder()\n .name(\"TF Fly.io\")\n .apiKey(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.Flyio(\"backendProd\", com.pulumi.doppler.secretsSync.FlyioArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .appId(\"my-app\")\n .restartMachines(true)\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Flyio\n properties:\n name: TF Fly.io\n apiKey: fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n backendProd:\n type: doppler:secretsSync:Flyio\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n appId: my-app\n restartMachines: true\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "apiKey": { + "type": "string", + "description": "A Fly.io API key.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "apiKey", + "name" + ], + "inputProperties": { + "apiKey": { + "type": "string", + "description": "A Fly.io API key.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "apiKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Flyio resources.\n", + "properties": { + "apiKey": { + "type": "string", + "description": "A Fly.io API key.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql": { + "description": "Manage a GCP CloudSQL MySQL Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst gcpKey = config.get(\"gcpKey\") || `{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n`;\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iGcpMysql = new doppler.integration.GcpCloudsqlMysql(\"i_gcp_mysql\", {\n name: \"TF GCP MySQL\",\n gcpKey: gcpKey,\n});\nconst rsGcpMysql = new doppler.rotatedsecret.GcpCloudsql(\"rs_gcp_mysql\", {\n credentials: [\n {\n username: \"xxxxxxxxxxxx\",\n userHostName: \"%\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxxxxx\",\n userHostName: \"%\",\n password: dbPassword2,\n },\n ],\n integration: iGcpMysql.id,\n project: \"backend\",\n config: \"dev\",\n name: \"DB\",\n rotationPeriodSec: 2592000,\n databaseInstance: \"xxxxxxxxxxxx\",\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ngcp_key = config.get(\"gcpKey\")\nif gcp_key is None:\n gcp_key = \"\"\"{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n\"\"\"\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_gcp_mysql = doppler.integration.GcpCloudsqlMysql(\"i_gcp_mysql\",\n name=\"TF GCP MySQL\",\n gcp_key=gcp_key)\nrs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql(\"rs_gcp_mysql\",\n credentials=[\n {\n \"username\": \"xxxxxxxxxxxx\",\n \"user_host_name\": \"%\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxxxxx\",\n \"user_host_name\": \"%\",\n \"password\": db_password2,\n },\n ],\n integration=i_gcp_mysql.id,\n project=\"backend\",\n config=\"dev\",\n name=\"DB\",\n rotation_period_sec=2592000,\n database_instance=\"xxxxxxxxxxxx\",\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var gcpKey = config.Get(\"gcpKey\") ?? @\"{\n \"\"type\"\": \"\"service_account\"\",\n \"\"project_id\"\": \"\"xxxxxxxxxxxxxxxxx\"\",\n \"\"private_key_id\"\": \"\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\",\n \"\"private_key\"\": \"\"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\"\",\n \"\"client_email\"\": \"\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\",\n \"\"client_id\"\": \"\"xxxxxxxxxxxxxxxxxxxxx\"\"\n}\n\";\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iGcpMysql = new Doppler.Integration.GcpCloudsqlMysql(\"i_gcp_mysql\", new()\n {\n Name = \"TF GCP MySQL\",\n GcpKey = gcpKey,\n });\n\n var rsGcpMysql = new Doppler.RotatedSecret.GcpCloudsql(\"rs_gcp_mysql\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs\n {\n Username = \"xxxxxxxxxxxx\",\n UserHostName = \"%\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs\n {\n Username = \"xxxxxxxxxxxx\",\n UserHostName = \"%\",\n Password = dbPassword2,\n },\n },\n Integration = iGcpMysql.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB\",\n RotationPeriodSec = 2592000,\n DatabaseInstance = \"xxxxxxxxxxxx\",\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tgcpKey := `{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n`\n\t\tif param := cfg.Get(\"gcpKey\"); param != \"\" {\n\t\t\tgcpKey = param\n\t\t}\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiGcpMysql, err := integration.NewGcpCloudsqlMysql(ctx, \"i_gcp_mysql\", \u0026integration.GcpCloudsqlMysqlArgs{\n\t\t\tName: pulumi.String(\"TF GCP MySQL\"),\n\t\t\tGcpKey: pulumi.String(gcpKey),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewGcpCloudsql(ctx, \"rs_gcp_mysql\", \u0026rotatedsecret.GcpCloudsqlArgs{\n\t\t\tCredentials: rotatedsecret.GcpCloudsqlCredentialArray{\n\t\t\t\t\u0026rotatedsecret.GcpCloudsqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t\t\t\tUserHostName: pulumi.String(\"%\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.GcpCloudsqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t\t\t\tUserHostName: pulumi.String(\"%\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iGcpMysql.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tDatabaseInstance: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_cloudsql_mysql\" \"i_gcp_mysql\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF GCP MySQL\"\n gcp_key = var.gcpKey\n}\nresource \"doppler_rotated_secret_gcp_cloudsql\" \"rs_gcp_mysql\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxxxxx\"\n user_host_name = \"%\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxxxxx\"\n user_host_name = \"%\"\n password = var.dbPassword2\n }\n integration = doppler_integration_gcp_cloudsql_mysql.i_gcp_mysql.id\n project = \"backend\"\n config = \"dev\"\n name = \"DB\"\n rotation_period_sec = 2592000\n database_instance = \"xxxxxxxxxxxx\"\n}\n# The GCP key that grants access to our CloudSQL instance. For the purposes of this example, this is provided directly.\nvariable \"gcpKey\" {\n type = string\n default = \"{\\n \\\"type\\\": \\\"service_account\\\",\\n \\\"project_id\\\": \\\"xxxxxxxxxxxxxxxxx\\\",\\n \\\"private_key_id\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\\\",\\n \\\"client_email\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n \\\"client_id\\\": \\\"xxxxxxxxxxxxxxxxxxxxx\\\"\\n}\\n\"\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysql;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysqlArgs;\nimport com.pulumi.doppler.rotatedSecret.GcpCloudsql;\nimport com.pulumi.doppler.rotatedSecret.GcpCloudsqlArgs;\nimport com.pulumi.doppler.rotatedSecret.inputs.GcpCloudsqlCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var gcpKey = config.get(\"gcpKey\").orElse(\"\"\"\n{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n \"\"\");\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iGcpMysql = new GcpCloudsqlMysql(\"iGcpMysql\", GcpCloudsqlMysqlArgs.builder()\n .name(\"TF GCP MySQL\")\n .gcpKey(gcpKey)\n .build());\n\n var rsGcpMysql = new GcpCloudsql(\"rsGcpMysql\", GcpCloudsqlArgs.builder()\n .credentials( \n GcpCloudsqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxxx\")\n .userHostName(\"%\")\n .password(dbPassword1)\n .build(),\n GcpCloudsqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxxx\")\n .userHostName(\"%\")\n .password(dbPassword2)\n .build())\n .integration(iGcpMysql.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB\")\n .rotationPeriodSec(2592000)\n .databaseInstance(\"xxxxxxxxxxxx\")\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The GCP key that grants access to our CloudSQL instance. For the purposes of this example, this is provided directly.\n gcpKey:\n type: string\n default: |\n {\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n }\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iGcpMysql:\n type: doppler:integration:GcpCloudsqlMysql\n name: i_gcp_mysql\n properties:\n name: TF GCP MySQL\n gcpKey: ${gcpKey}\n rsGcpMysql:\n type: doppler:rotatedSecret:GcpCloudsql\n name: rs_gcp_mysql\n properties:\n credentials:\n - username: xxxxxxxxxxxx\n userHostName: '%'\n password: ${dbPassword1}\n - username: xxxxxxxxxxxx\n userHostName: '%'\n password: ${dbPassword2}\n integration: ${iGcpMysql.id}\n project: backend\n config: dev\n name: DB\n rotationPeriodSec: 2.592e+06\n databaseInstance: xxxxxxxxxxxx\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "gcpKey", + "name" + ], + "inputProperties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsqlMysql resources.\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc": { + "description": "Manage a GCP CloudSQL MySQL Doppler integration using workload identity federation.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as google from \"@pulumi/google\";\n\nconst prod = new doppler.integration.GcpCloudsqlMysqlOidc(\"prod\", {\n name: \"Production\",\n gcpWorkloadIdentityProvider: \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n gcpProjectId: \"your-gcp-project-id\",\n});\nconst doppler2 = new google.index.ProjectIamMember(\"doppler\", {\n project: \"your-gcp-project-id\",\n role: \"roles/cloudsql.admin\",\n member: prod.federationPrincipal,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_google as google\n\nprod = doppler.integration.GcpCloudsqlMysqlOidc(\"prod\",\n name=\"Production\",\n gcp_workload_identity_provider=\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n gcp_project_id=\"your-gcp-project-id\")\ndoppler_1 = google.ProjectIamMember(\"doppler\",\n project=your-gcp-project-id,\n role=roles/cloudsql.admin,\n member=prod.federation_principal)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Google = Pulumi.Google;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.GcpCloudsqlMysqlOidc(\"prod\", new()\n {\n Name = \"Production\",\n GcpWorkloadIdentityProvider = \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n GcpProjectId = \"your-gcp-project-id\",\n });\n\n var doppler = new Google.ProjectIamMember(\"doppler\", new()\n {\n Project = \"your-gcp-project-id\",\n Role = \"roles/cloudsql.admin\",\n Member = prod.FederationPrincipal,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi-google/sdk/go/google\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewGcpCloudsqlMysqlOidc(ctx, \"prod\", \u0026integration.GcpCloudsqlMysqlOidcArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tGcpWorkloadIdentityProvider: pulumi.String(\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\"),\n\t\t\tGcpProjectId: pulumi.String(\"your-gcp-project-id\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = google.NewProjectIamMember(ctx, \"doppler\", \u0026google.ProjectIamMemberArgs{\n\t\t\tProject: \"your-gcp-project-id\",\n\t\t\tRole: \"roles/cloudsql.admin\",\n\t\t\tMember: prod.FederationPrincipal,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_cloudsql_mysql_oidc\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n gcp_workload_identity_provider = \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\"\n gcp_project_id = \"your-gcp-project-id\"\n}\nresource \"google_project_iam_member\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"your-gcp-project-id\"\n role = \"roles/cloudsql.admin\"\n member = doppler_integration_gcp_cloudsql_mysql_oidc.prod.federation_principal\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysqlOidc;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysqlOidcArgs;\nimport com.pulumi.google.ProjectIamMember;\nimport com.pulumi.google.ProjectIamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new GcpCloudsqlMysqlOidc(\"prod\", GcpCloudsqlMysqlOidcArgs.builder()\n .name(\"Production\")\n .gcpWorkloadIdentityProvider(\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\")\n .gcpProjectId(\"your-gcp-project-id\")\n .build());\n\n var doppler = new ProjectIamMember(\"doppler\", ProjectIamMemberArgs.builder()\n .project(\"your-gcp-project-id\")\n .role(\"roles/cloudsql.admin\")\n .member(prod.federationPrincipal())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:GcpCloudsqlMysqlOidc\n properties:\n name: Production\n gcpWorkloadIdentityProvider: //iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\n gcpProjectId: your-gcp-project-id\n doppler:\n type: google:ProjectIamMember\n properties:\n project: your-gcp-project-id\n role: roles/cloudsql.admin\n member: ${prod.federationPrincipal}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "federationPrincipal", + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "inputProperties": { + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsqlMysqlOidc resources.\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres": { + "description": "Manage a GCP CloudSQL Postgres Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst gcpKey = config.get(\"gcpKey\") || `{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n`;\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iGcpMysql = new doppler.integration.GcpCloudsqlMysql(\"i_gcp_mysql\", {\n name: \"TF GCP MySQL\",\n gcpKey: gcpKey,\n});\nconst rsGcpMysql = new doppler.rotatedsecret.GcpCloudsql(\"rs_gcp_mysql\", {\n credentials: [\n {\n username: \"xxxxxxxxxxxx\",\n userHostName: \"%\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxxxxx\",\n userHostName: \"%\",\n password: dbPassword2,\n },\n ],\n integration: iGcpMysql.id,\n project: \"backend\",\n config: \"dev\",\n name: \"DB\",\n rotationPeriodSec: 2592000,\n databaseInstance: \"xxxxxxxxxxxx\",\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ngcp_key = config.get(\"gcpKey\")\nif gcp_key is None:\n gcp_key = \"\"\"{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n\"\"\"\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_gcp_mysql = doppler.integration.GcpCloudsqlMysql(\"i_gcp_mysql\",\n name=\"TF GCP MySQL\",\n gcp_key=gcp_key)\nrs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql(\"rs_gcp_mysql\",\n credentials=[\n {\n \"username\": \"xxxxxxxxxxxx\",\n \"user_host_name\": \"%\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxxxxx\",\n \"user_host_name\": \"%\",\n \"password\": db_password2,\n },\n ],\n integration=i_gcp_mysql.id,\n project=\"backend\",\n config=\"dev\",\n name=\"DB\",\n rotation_period_sec=2592000,\n database_instance=\"xxxxxxxxxxxx\",\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var gcpKey = config.Get(\"gcpKey\") ?? @\"{\n \"\"type\"\": \"\"service_account\"\",\n \"\"project_id\"\": \"\"xxxxxxxxxxxxxxxxx\"\",\n \"\"private_key_id\"\": \"\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\",\n \"\"private_key\"\": \"\"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\"\",\n \"\"client_email\"\": \"\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\",\n \"\"client_id\"\": \"\"xxxxxxxxxxxxxxxxxxxxx\"\"\n}\n\";\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iGcpMysql = new Doppler.Integration.GcpCloudsqlMysql(\"i_gcp_mysql\", new()\n {\n Name = \"TF GCP MySQL\",\n GcpKey = gcpKey,\n });\n\n var rsGcpMysql = new Doppler.RotatedSecret.GcpCloudsql(\"rs_gcp_mysql\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs\n {\n Username = \"xxxxxxxxxxxx\",\n UserHostName = \"%\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs\n {\n Username = \"xxxxxxxxxxxx\",\n UserHostName = \"%\",\n Password = dbPassword2,\n },\n },\n Integration = iGcpMysql.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB\",\n RotationPeriodSec = 2592000,\n DatabaseInstance = \"xxxxxxxxxxxx\",\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tgcpKey := `{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n`\n\t\tif param := cfg.Get(\"gcpKey\"); param != \"\" {\n\t\t\tgcpKey = param\n\t\t}\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiGcpMysql, err := integration.NewGcpCloudsqlMysql(ctx, \"i_gcp_mysql\", \u0026integration.GcpCloudsqlMysqlArgs{\n\t\t\tName: pulumi.String(\"TF GCP MySQL\"),\n\t\t\tGcpKey: pulumi.String(gcpKey),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewGcpCloudsql(ctx, \"rs_gcp_mysql\", \u0026rotatedsecret.GcpCloudsqlArgs{\n\t\t\tCredentials: rotatedsecret.GcpCloudsqlCredentialArray{\n\t\t\t\t\u0026rotatedsecret.GcpCloudsqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t\t\t\tUserHostName: pulumi.String(\"%\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.GcpCloudsqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t\t\t\tUserHostName: pulumi.String(\"%\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iGcpMysql.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tDatabaseInstance: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_cloudsql_mysql\" \"i_gcp_mysql\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF GCP MySQL\"\n gcp_key = var.gcpKey\n}\nresource \"doppler_rotated_secret_gcp_cloudsql\" \"rs_gcp_mysql\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxxxxx\"\n user_host_name = \"%\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxxxxx\"\n user_host_name = \"%\"\n password = var.dbPassword2\n }\n integration = doppler_integration_gcp_cloudsql_mysql.i_gcp_mysql.id\n project = \"backend\"\n config = \"dev\"\n name = \"DB\"\n rotation_period_sec = 2592000\n database_instance = \"xxxxxxxxxxxx\"\n}\n# The GCP key that grants access to our CloudSQL instance. For the purposes of this example, this is provided directly.\nvariable \"gcpKey\" {\n type = string\n default = \"{\\n \\\"type\\\": \\\"service_account\\\",\\n \\\"project_id\\\": \\\"xxxxxxxxxxxxxxxxx\\\",\\n \\\"private_key_id\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\\\",\\n \\\"client_email\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n \\\"client_id\\\": \\\"xxxxxxxxxxxxxxxxxxxxx\\\"\\n}\\n\"\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysql;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysqlArgs;\nimport com.pulumi.doppler.rotatedSecret.GcpCloudsql;\nimport com.pulumi.doppler.rotatedSecret.GcpCloudsqlArgs;\nimport com.pulumi.doppler.rotatedSecret.inputs.GcpCloudsqlCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var gcpKey = config.get(\"gcpKey\").orElse(\"\"\"\n{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n \"\"\");\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iGcpMysql = new GcpCloudsqlMysql(\"iGcpMysql\", GcpCloudsqlMysqlArgs.builder()\n .name(\"TF GCP MySQL\")\n .gcpKey(gcpKey)\n .build());\n\n var rsGcpMysql = new GcpCloudsql(\"rsGcpMysql\", GcpCloudsqlArgs.builder()\n .credentials( \n GcpCloudsqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxxx\")\n .userHostName(\"%\")\n .password(dbPassword1)\n .build(),\n GcpCloudsqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxxx\")\n .userHostName(\"%\")\n .password(dbPassword2)\n .build())\n .integration(iGcpMysql.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB\")\n .rotationPeriodSec(2592000)\n .databaseInstance(\"xxxxxxxxxxxx\")\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The GCP key that grants access to our CloudSQL instance. For the purposes of this example, this is provided directly.\n gcpKey:\n type: string\n default: |\n {\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n }\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iGcpMysql:\n type: doppler:integration:GcpCloudsqlMysql\n name: i_gcp_mysql\n properties:\n name: TF GCP MySQL\n gcpKey: ${gcpKey}\n rsGcpMysql:\n type: doppler:rotatedSecret:GcpCloudsql\n name: rs_gcp_mysql\n properties:\n credentials:\n - username: xxxxxxxxxxxx\n userHostName: '%'\n password: ${dbPassword1}\n - username: xxxxxxxxxxxx\n userHostName: '%'\n password: ${dbPassword2}\n integration: ${iGcpMysql.id}\n project: backend\n config: dev\n name: DB\n rotationPeriodSec: 2.592e+06\n databaseInstance: xxxxxxxxxxxx\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "gcpKey", + "name" + ], + "inputProperties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsqlPostgres resources.\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc": { + "description": "Manage a GCP CloudSQL Postgres Doppler integration using workload identity federation.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as google from \"@pulumi/google\";\n\nconst prod = new doppler.integration.GcpCloudsqlPostgresOidc(\"prod\", {\n name: \"Production\",\n gcpWorkloadIdentityProvider: \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n gcpProjectId: \"your-gcp-project-id\",\n});\nconst doppler2 = new google.index.ProjectIamMember(\"doppler\", {\n project: \"your-gcp-project-id\",\n role: \"roles/cloudsql.admin\",\n member: prod.federationPrincipal,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_google as google\n\nprod = doppler.integration.GcpCloudsqlPostgresOidc(\"prod\",\n name=\"Production\",\n gcp_workload_identity_provider=\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n gcp_project_id=\"your-gcp-project-id\")\ndoppler_1 = google.ProjectIamMember(\"doppler\",\n project=your-gcp-project-id,\n role=roles/cloudsql.admin,\n member=prod.federation_principal)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Google = Pulumi.Google;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.GcpCloudsqlPostgresOidc(\"prod\", new()\n {\n Name = \"Production\",\n GcpWorkloadIdentityProvider = \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n GcpProjectId = \"your-gcp-project-id\",\n });\n\n var doppler = new Google.ProjectIamMember(\"doppler\", new()\n {\n Project = \"your-gcp-project-id\",\n Role = \"roles/cloudsql.admin\",\n Member = prod.FederationPrincipal,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi-google/sdk/go/google\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewGcpCloudsqlPostgresOidc(ctx, \"prod\", \u0026integration.GcpCloudsqlPostgresOidcArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tGcpWorkloadIdentityProvider: pulumi.String(\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\"),\n\t\t\tGcpProjectId: pulumi.String(\"your-gcp-project-id\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = google.NewProjectIamMember(ctx, \"doppler\", \u0026google.ProjectIamMemberArgs{\n\t\t\tProject: \"your-gcp-project-id\",\n\t\t\tRole: \"roles/cloudsql.admin\",\n\t\t\tMember: prod.FederationPrincipal,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_cloudsql_postgres_oidc\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n gcp_workload_identity_provider = \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\"\n gcp_project_id = \"your-gcp-project-id\"\n}\nresource \"google_project_iam_member\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"your-gcp-project-id\"\n role = \"roles/cloudsql.admin\"\n member = doppler_integration_gcp_cloudsql_postgres_oidc.prod.federation_principal\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpCloudsqlPostgresOidc;\nimport com.pulumi.doppler.integration.GcpCloudsqlPostgresOidcArgs;\nimport com.pulumi.google.ProjectIamMember;\nimport com.pulumi.google.ProjectIamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new GcpCloudsqlPostgresOidc(\"prod\", GcpCloudsqlPostgresOidcArgs.builder()\n .name(\"Production\")\n .gcpWorkloadIdentityProvider(\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\")\n .gcpProjectId(\"your-gcp-project-id\")\n .build());\n\n var doppler = new ProjectIamMember(\"doppler\", ProjectIamMemberArgs.builder()\n .project(\"your-gcp-project-id\")\n .role(\"roles/cloudsql.admin\")\n .member(prod.federationPrincipal())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:GcpCloudsqlPostgresOidc\n properties:\n name: Production\n gcpWorkloadIdentityProvider: //iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\n gcpProjectId: your-gcp-project-id\n doppler:\n type: google:ProjectIamMember\n properties:\n project: your-gcp-project-id\n role: roles/cloudsql.admin\n member: ${prod.federationPrincipal}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "federationPrincipal", + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "inputProperties": { + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsqlPostgresOidc resources.\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver": { + "description": "Manage a GCP CloudSQL SQL Server Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst gcpKey = config.get(\"gcpKey\") || `{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n`;\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iGcpMysql = new doppler.integration.GcpCloudsqlMysql(\"i_gcp_mysql\", {\n name: \"TF GCP MySQL\",\n gcpKey: gcpKey,\n});\nconst rsGcpMysql = new doppler.rotatedsecret.GcpCloudsql(\"rs_gcp_mysql\", {\n credentials: [\n {\n username: \"xxxxxxxxxxxx\",\n userHostName: \"%\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxxxxx\",\n userHostName: \"%\",\n password: dbPassword2,\n },\n ],\n integration: iGcpMysql.id,\n project: \"backend\",\n config: \"dev\",\n name: \"DB\",\n rotationPeriodSec: 2592000,\n databaseInstance: \"xxxxxxxxxxxx\",\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ngcp_key = config.get(\"gcpKey\")\nif gcp_key is None:\n gcp_key = \"\"\"{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n\"\"\"\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_gcp_mysql = doppler.integration.GcpCloudsqlMysql(\"i_gcp_mysql\",\n name=\"TF GCP MySQL\",\n gcp_key=gcp_key)\nrs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql(\"rs_gcp_mysql\",\n credentials=[\n {\n \"username\": \"xxxxxxxxxxxx\",\n \"user_host_name\": \"%\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxxxxx\",\n \"user_host_name\": \"%\",\n \"password\": db_password2,\n },\n ],\n integration=i_gcp_mysql.id,\n project=\"backend\",\n config=\"dev\",\n name=\"DB\",\n rotation_period_sec=2592000,\n database_instance=\"xxxxxxxxxxxx\",\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var gcpKey = config.Get(\"gcpKey\") ?? @\"{\n \"\"type\"\": \"\"service_account\"\",\n \"\"project_id\"\": \"\"xxxxxxxxxxxxxxxxx\"\",\n \"\"private_key_id\"\": \"\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\",\n \"\"private_key\"\": \"\"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\"\",\n \"\"client_email\"\": \"\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\",\n \"\"client_id\"\": \"\"xxxxxxxxxxxxxxxxxxxxx\"\"\n}\n\";\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iGcpMysql = new Doppler.Integration.GcpCloudsqlMysql(\"i_gcp_mysql\", new()\n {\n Name = \"TF GCP MySQL\",\n GcpKey = gcpKey,\n });\n\n var rsGcpMysql = new Doppler.RotatedSecret.GcpCloudsql(\"rs_gcp_mysql\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs\n {\n Username = \"xxxxxxxxxxxx\",\n UserHostName = \"%\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs\n {\n Username = \"xxxxxxxxxxxx\",\n UserHostName = \"%\",\n Password = dbPassword2,\n },\n },\n Integration = iGcpMysql.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"DB\",\n RotationPeriodSec = 2592000,\n DatabaseInstance = \"xxxxxxxxxxxx\",\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tgcpKey := `{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n`\n\t\tif param := cfg.Get(\"gcpKey\"); param != \"\" {\n\t\t\tgcpKey = param\n\t\t}\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiGcpMysql, err := integration.NewGcpCloudsqlMysql(ctx, \"i_gcp_mysql\", \u0026integration.GcpCloudsqlMysqlArgs{\n\t\t\tName: pulumi.String(\"TF GCP MySQL\"),\n\t\t\tGcpKey: pulumi.String(gcpKey),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewGcpCloudsql(ctx, \"rs_gcp_mysql\", \u0026rotatedsecret.GcpCloudsqlArgs{\n\t\t\tCredentials: rotatedsecret.GcpCloudsqlCredentialArray{\n\t\t\t\t\u0026rotatedsecret.GcpCloudsqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t\t\t\tUserHostName: pulumi.String(\"%\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.GcpCloudsqlCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t\t\t\tUserHostName: pulumi.String(\"%\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iGcpMysql.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"DB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tDatabaseInstance: pulumi.String(\"xxxxxxxxxxxx\"),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_cloudsql_mysql\" \"i_gcp_mysql\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF GCP MySQL\"\n gcp_key = var.gcpKey\n}\nresource \"doppler_rotated_secret_gcp_cloudsql\" \"rs_gcp_mysql\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxxxxx\"\n user_host_name = \"%\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxxxxx\"\n user_host_name = \"%\"\n password = var.dbPassword2\n }\n integration = doppler_integration_gcp_cloudsql_mysql.i_gcp_mysql.id\n project = \"backend\"\n config = \"dev\"\n name = \"DB\"\n rotation_period_sec = 2592000\n database_instance = \"xxxxxxxxxxxx\"\n}\n# The GCP key that grants access to our CloudSQL instance. For the purposes of this example, this is provided directly.\nvariable \"gcpKey\" {\n type = string\n default = \"{\\n \\\"type\\\": \\\"service_account\\\",\\n \\\"project_id\\\": \\\"xxxxxxxxxxxxxxxxx\\\",\\n \\\"private_key_id\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\\\",\\n \\\"client_email\\\": \\\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\\",\\n \\\"client_id\\\": \\\"xxxxxxxxxxxxxxxxxxxxx\\\"\\n}\\n\"\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysql;\nimport com.pulumi.doppler.integration.GcpCloudsqlMysqlArgs;\nimport com.pulumi.doppler.rotatedSecret.GcpCloudsql;\nimport com.pulumi.doppler.rotatedSecret.GcpCloudsqlArgs;\nimport com.pulumi.doppler.rotatedSecret.inputs.GcpCloudsqlCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var gcpKey = config.get(\"gcpKey\").orElse(\"\"\"\n{\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n}\n \"\"\");\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iGcpMysql = new GcpCloudsqlMysql(\"iGcpMysql\", GcpCloudsqlMysqlArgs.builder()\n .name(\"TF GCP MySQL\")\n .gcpKey(gcpKey)\n .build());\n\n var rsGcpMysql = new GcpCloudsql(\"rsGcpMysql\", GcpCloudsqlArgs.builder()\n .credentials( \n GcpCloudsqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxxx\")\n .userHostName(\"%\")\n .password(dbPassword1)\n .build(),\n GcpCloudsqlCredentialArgs.builder()\n .username(\"xxxxxxxxxxxx\")\n .userHostName(\"%\")\n .password(dbPassword2)\n .build())\n .integration(iGcpMysql.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"DB\")\n .rotationPeriodSec(2592000)\n .databaseInstance(\"xxxxxxxxxxxx\")\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The GCP key that grants access to our CloudSQL instance. For the purposes of this example, this is provided directly.\n gcpKey:\n type: string\n default: |\n {\n \"type\": \"service_account\",\n \"project_id\": \"xxxxxxxxxxxxxxxxx\",\n \"private_key_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----\",\n \"client_email\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n \"client_id\": \"xxxxxxxxxxxxxxxxxxxxx\"\n }\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iGcpMysql:\n type: doppler:integration:GcpCloudsqlMysql\n name: i_gcp_mysql\n properties:\n name: TF GCP MySQL\n gcpKey: ${gcpKey}\n rsGcpMysql:\n type: doppler:rotatedSecret:GcpCloudsql\n name: rs_gcp_mysql\n properties:\n credentials:\n - username: xxxxxxxxxxxx\n userHostName: '%'\n password: ${dbPassword1}\n - username: xxxxxxxxxxxx\n userHostName: '%'\n password: ${dbPassword2}\n integration: ${iGcpMysql.id}\n project: backend\n config: dev\n name: DB\n rotationPeriodSec: 2.592e+06\n databaseInstance: xxxxxxxxxxxx\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "gcpKey", + "name" + ], + "inputProperties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsqlSqlserver resources.\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The GCP service account key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc": { + "description": "Manage a GCP CloudSQL SQL Server Doppler integration using workload identity federation.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as google from \"@pulumi/google\";\n\nconst prod = new doppler.integration.GcpCloudsqlSqlserverOidc(\"prod\", {\n name: \"Production\",\n gcpWorkloadIdentityProvider: \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n gcpProjectId: \"your-gcp-project-id\",\n});\nconst doppler2 = new google.index.ProjectIamMember(\"doppler\", {\n project: \"your-gcp-project-id\",\n role: \"roles/cloudsql.admin\",\n member: prod.federationPrincipal,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_google as google\n\nprod = doppler.integration.GcpCloudsqlSqlserverOidc(\"prod\",\n name=\"Production\",\n gcp_workload_identity_provider=\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n gcp_project_id=\"your-gcp-project-id\")\ndoppler_1 = google.ProjectIamMember(\"doppler\",\n project=your-gcp-project-id,\n role=roles/cloudsql.admin,\n member=prod.federation_principal)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Google = Pulumi.Google;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.GcpCloudsqlSqlserverOidc(\"prod\", new()\n {\n Name = \"Production\",\n GcpWorkloadIdentityProvider = \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\",\n GcpProjectId = \"your-gcp-project-id\",\n });\n\n var doppler = new Google.ProjectIamMember(\"doppler\", new()\n {\n Project = \"your-gcp-project-id\",\n Role = \"roles/cloudsql.admin\",\n Member = prod.FederationPrincipal,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi-google/sdk/go/google\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewGcpCloudsqlSqlserverOidc(ctx, \"prod\", \u0026integration.GcpCloudsqlSqlserverOidcArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tGcpWorkloadIdentityProvider: pulumi.String(\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\"),\n\t\t\tGcpProjectId: pulumi.String(\"your-gcp-project-id\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = google.NewProjectIamMember(ctx, \"doppler\", \u0026google.ProjectIamMemberArgs{\n\t\t\tProject: \"your-gcp-project-id\",\n\t\t\tRole: \"roles/cloudsql.admin\",\n\t\t\tMember: prod.FederationPrincipal,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_cloudsql_sqlserver_oidc\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n gcp_workload_identity_provider = \"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\"\n gcp_project_id = \"your-gcp-project-id\"\n}\nresource \"google_project_iam_member\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"your-gcp-project-id\"\n role = \"roles/cloudsql.admin\"\n member = doppler_integration_gcp_cloudsql_sqlserver_oidc.prod.federation_principal\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpCloudsqlSqlserverOidc;\nimport com.pulumi.doppler.integration.GcpCloudsqlSqlserverOidcArgs;\nimport com.pulumi.google.ProjectIamMember;\nimport com.pulumi.google.ProjectIamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new GcpCloudsqlSqlserverOidc(\"prod\", GcpCloudsqlSqlserverOidcArgs.builder()\n .name(\"Production\")\n .gcpWorkloadIdentityProvider(\"//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\")\n .gcpProjectId(\"your-gcp-project-id\")\n .build());\n\n var doppler = new ProjectIamMember(\"doppler\", ProjectIamMemberArgs.builder()\n .project(\"your-gcp-project-id\")\n .role(\"roles/cloudsql.admin\")\n .member(prod.federationPrincipal())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:GcpCloudsqlSqlserverOidc\n properties:\n name: Production\n gcpWorkloadIdentityProvider: //iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler\n gcpProjectId: your-gcp-project-id\n doppler:\n type: google:ProjectIamMember\n properties:\n project: your-gcp-project-id\n role: roles/cloudsql.admin\n member: ${prod.federationPrincipal}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "federationPrincipal", + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "inputProperties": { + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsqlSqlserverOidc resources.\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpSecretManager:GcpSecretManager": { + "description": "Manage a GCP Secret Manager Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst gcpKey = config.get(\"gcpKey\") || `{\n \"type\": \"service_account\",\n \"project_id\": \"your-gcp-project-id\",\n \"private_key_id\": \"...\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\\\n ... \\\\n-----END PRIVATE KEY-----\\\\n\",\n \"client_email\": \"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\",\n \"client_id\": \"12345678901234567890\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\",\n \"universe_domain\": \"googleapis.com\"\n}\n`;\nconst prod = new doppler.integration.GcpSecretManager(\"prod\", {\n name: \"prod\",\n gcpKey: gcpKey,\n gcpSecretPrefix: \"doppler-\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ngcp_key = config.get(\"gcpKey\")\nif gcp_key is None:\n gcp_key = \"\"\"{\n \"type\": \"service_account\",\n \"project_id\": \"your-gcp-project-id\",\n \"private_key_id\": \"...\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\",\n \"client_id\": \"12345678901234567890\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\",\n \"universe_domain\": \"googleapis.com\"\n}\n\"\"\"\nprod = doppler.integration.GcpSecretManager(\"prod\",\n name=\"prod\",\n gcp_key=gcp_key,\n gcp_secret_prefix=\"doppler-\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var gcpKey = config.Get(\"gcpKey\") ?? @\"{\n \"\"type\"\": \"\"service_account\"\",\n \"\"project_id\"\": \"\"your-gcp-project-id\"\",\n \"\"private_key_id\"\": \"\"...\"\",\n \"\"private_key\"\": \"\"-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n\"\",\n \"\"client_email\"\": \"\"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\"\",\n \"\"client_id\"\": \"\"12345678901234567890\"\",\n \"\"auth_uri\"\": \"\"https://accounts.google.com/o/oauth2/auth\"\",\n \"\"token_uri\"\": \"\"https://oauth2.googleapis.com/token\"\",\n \"\"auth_provider_x509_cert_url\"\": \"\"https://www.googleapis.com/oauth2/v1/certs\"\",\n \"\"client_x509_cert_url\"\": \"\"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\"\",\n \"\"universe_domain\"\": \"\"googleapis.com\"\"\n}\n\";\n var prod = new Doppler.Integration.GcpSecretManager(\"prod\", new()\n {\n Name = \"prod\",\n GcpKey = gcpKey,\n GcpSecretPrefix = \"doppler-\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tgcpKey := `{\n \"type\": \"service_account\",\n \"project_id\": \"your-gcp-project-id\",\n \"private_key_id\": \"...\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\",\n \"client_id\": \"12345678901234567890\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\",\n \"universe_domain\": \"googleapis.com\"\n}\n`\n\t\tif param := cfg.Get(\"gcpKey\"); param != \"\" {\n\t\t\tgcpKey = param\n\t\t}\n\t\t_, err := integration.NewGcpSecretManager(ctx, \"prod\", \u0026integration.GcpSecretManagerArgs{\n\t\t\tName: pulumi.String(\"prod\"),\n\t\t\tGcpKey: pulumi.String(gcpKey),\n\t\t\tGcpSecretPrefix: pulumi.String(\"doppler-\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_gcp_secret_manager\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"prod\"\n gcp_key = var.gcpKey\n gcp_secret_prefix = \"doppler-\"\n}\n# The default is specified here specifically to indicate what kind of value is\n# expected. In production use, don't hard-code the key! Instead pass that\n# in using `TF_VAR_gcp_key`.\nvariable \"gcpKey\" {\n type = string\n default = \"{\\n \\\"type\\\": \\\"service_account\\\",\\n \\\"project_id\\\": \\\"your-gcp-project-id\\\",\\n \\\"private_key_id\\\": \\\"...\\\",\\n \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----\\\\n ... \\\\n-----END PRIVATE KEY-----\\\\n\\\",\\n \\\"client_email\\\": \\\"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\\\",\\n \\\"client_id\\\": \\\"12345678901234567890\\\",\\n \\\"auth_uri\\\": \\\"https://accounts.google.com/o/oauth2/auth\\\",\\n \\\"token_uri\\\": \\\"https://oauth2.googleapis.com/token\\\",\\n \\\"auth_provider_x509_cert_url\\\": \\\"https://www.googleapis.com/oauth2/v1/certs\\\",\\n \\\"client_x509_cert_url\\\": \\\"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\\\",\\n \\\"universe_domain\\\": \\\"googleapis.com\\\"\\n}\\n\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.GcpSecretManager;\nimport com.pulumi.doppler.integration.GcpSecretManagerArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var gcpKey = config.get(\"gcpKey\").orElse(\"\"\"\n{\n \"type\": \"service_account\",\n \"project_id\": \"your-gcp-project-id\",\n \"private_key_id\": \"...\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\",\n \"client_id\": \"12345678901234567890\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\",\n \"universe_domain\": \"googleapis.com\"\n}\n \"\"\");\n var prod = new GcpSecretManager(\"prod\", GcpSecretManagerArgs.builder()\n .name(\"prod\")\n .gcpKey(gcpKey)\n .gcpSecretPrefix(\"doppler-\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The default is specified here specifically to indicate what kind of value is\n # expected. In production use, don't hard-code the key! Instead pass that\n # in using `TF_VAR_gcp_key`.\n gcpKey:\n type: string\n default: |\n {\n \"type\": \"service_account\",\n \"project_id\": \"your-gcp-project-id\",\n \"private_key_id\": \"...\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com\",\n \"client_id\": \"12345678901234567890\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com\",\n \"universe_domain\": \"googleapis.com\"\n }\nresources:\n prod:\n type: doppler:integration:GcpSecretManager\n properties:\n name: prod\n gcpKey: ${gcpKey}\n gcpSecretPrefix: doppler-\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details.\n", + "secret": true + }, + "gcpSecretPrefix": { + "type": "string", + "description": "The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "gcpKey", + "gcpSecretPrefix", + "name" + ], + "inputProperties": { + "gcpKey": { + "type": "string", + "description": "The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details.\n", + "secret": true + }, + "gcpSecretPrefix": { + "type": "string", + "description": "The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpKey", + "gcpSecretPrefix", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpSecretManager resources.\n", + "properties": { + "gcpKey": { + "type": "string", + "description": "The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details.\n", + "secret": true + }, + "gcpSecretPrefix": { + "type": "string", + "description": "The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc": { + "description": "Manage a GCP Secret Manager Doppler integration using workload identity federation.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as google from \"@pulumi/google\";\n\nconst doppler2 = new google.index.IamWorkloadIdentityPool(\"doppler\", {workloadIdentityPoolId: \"doppler-pool\"});\nconst dopplerIamWorkloadIdentityPoolProvider = new google.index.IamWorkloadIdentityPoolProvider(\"doppler\", {\n oidc: [{\n issuerUri: \"https://api.doppler.com\",\n }],\n workloadIdentityPoolId: doppler2.workloadIdentityPoolId,\n workloadIdentityPoolProviderId: \"doppler\",\n attributeMapping: {\n \"google.subject\": \"assertion.sub\",\n },\n attributeCondition: \"assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e'\",\n});\nconst prod = new doppler.integration.GcpSecretManagerOidc(\"prod\", {\n name: \"Production\",\n gcpWorkloadIdentityProvider: `//iam.googleapis.com/${dopplerIamWorkloadIdentityPoolProvider.name}`,\n gcpProjectId: \"your-gcp-project-id\",\n gcpSecretPrefix: \"doppler-\",\n});\nconst dopplerProjectIamMember = new google.index.ProjectIamMember(\"doppler\", {\n condition: [{\n title: \"doppler-prefix-only\",\n expression: \"resource.name.startsWith(\\\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\\\")\",\n }],\n project: \"your-gcp-project-id\",\n role: \"roles/secretmanager.admin\",\n member: prod.federationPrincipal,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_google as google\n\ndoppler_1 = google.IamWorkloadIdentityPool(\"doppler\", workload_identity_pool_id=doppler-pool)\ndoppler_iam_workload_identity_pool_provider = google.IamWorkloadIdentityPoolProvider(\"doppler\",\n oidc=[{\n issuerUri: https://api.doppler.com,\n }],\n workload_identity_pool_id=doppler_1.workload_identity_pool_id,\n workload_identity_pool_provider_id=doppler,\n attribute_mapping={\n google.subject: assertion.sub,\n },\n attribute_condition=assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e')\nprod = doppler.integration.GcpSecretManagerOidc(\"prod\",\n name=\"Production\",\n gcp_workload_identity_provider=f\"//iam.googleapis.com/{doppler_iam_workload_identity_pool_provider['name']}\",\n gcp_project_id=\"your-gcp-project-id\",\n gcp_secret_prefix=\"doppler-\")\ndoppler_project_iam_member = google.ProjectIamMember(\"doppler\",\n condition=[{\n title: doppler-prefix-only,\n expression: resource.name.startsWith(\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\"),\n }],\n project=your-gcp-project-id,\n role=roles/secretmanager.admin,\n member=prod.federation_principal)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Google = Pulumi.Google;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var doppler = new Google.IamWorkloadIdentityPool(\"doppler\", new()\n {\n WorkloadIdentityPoolId = \"doppler-pool\",\n });\n\n var dopplerIamWorkloadIdentityPoolProvider = new Google.IamWorkloadIdentityPoolProvider(\"doppler\", new()\n {\n Oidc = new[]\n {\n \n {\n { \"issuerUri\", \"https://api.doppler.com\" },\n },\n },\n WorkloadIdentityPoolId = doppler.WorkloadIdentityPoolId,\n WorkloadIdentityPoolProviderId = \"doppler\",\n AttributeMapping = \n {\n { \"google.subject\", \"assertion.sub\" },\n },\n AttributeCondition = \"assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e'\",\n });\n\n var prod = new Doppler.Integration.GcpSecretManagerOidc(\"prod\", new()\n {\n Name = \"Production\",\n GcpWorkloadIdentityProvider = $\"//iam.googleapis.com/{dopplerIamWorkloadIdentityPoolProvider.Name}\",\n GcpProjectId = \"your-gcp-project-id\",\n GcpSecretPrefix = \"doppler-\",\n });\n\n var dopplerProjectIamMember = new Google.ProjectIamMember(\"doppler\", new()\n {\n Condition = new[]\n {\n \n {\n { \"title\", \"doppler-prefix-only\" },\n { \"expression\", \"resource.name.startsWith(\\\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\\\")\" },\n },\n },\n Project = \"your-gcp-project-id\",\n Role = \"roles/secretmanager.admin\",\n Member = prod.FederationPrincipal,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi-google/sdk/go/google\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdoppler, err := google.NewIamWorkloadIdentityPool(ctx, \"doppler\", \u0026google.IamWorkloadIdentityPoolArgs{\n\t\t\tWorkloadIdentityPoolId: \"doppler-pool\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdopplerIamWorkloadIdentityPoolProvider, err := google.NewIamWorkloadIdentityPoolProvider(ctx, \"doppler\", \u0026google.IamWorkloadIdentityPoolProviderArgs{\n\t\t\tOidc: []map[string]string{\n\t\t\t\t{\n\t\t\t\t\t\"issuerUri\": \"https://api.doppler.com\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tWorkloadIdentityPoolId: doppler.WorkloadIdentityPoolId,\n\t\t\tWorkloadIdentityPoolProviderId: \"doppler\",\n\t\t\tAttributeMapping: map[string]string{\n\t\t\t\t\"google.subject\": \"assertion.sub\",\n\t\t\t},\n\t\t\tAttributeCondition: \"assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e'\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewGcpSecretManagerOidc(ctx, \"prod\", \u0026integration.GcpSecretManagerOidcArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tGcpWorkloadIdentityProvider: pulumi.Sprintf(\"//iam.googleapis.com/%v\", dopplerIamWorkloadIdentityPoolProvider.Name),\n\t\t\tGcpProjectId: pulumi.String(\"your-gcp-project-id\"),\n\t\t\tGcpSecretPrefix: pulumi.String(\"doppler-\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = google.NewProjectIamMember(ctx, \"doppler\", \u0026google.ProjectIamMemberArgs{\n\t\t\tCondition: []map[string]string{\n\t\t\t\t{\n\t\t\t\t\t\"title\": \"doppler-prefix-only\",\n\t\t\t\t\t\"expression\": \"resource.name.startsWith(\\\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\\\")\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tProject: \"your-gcp-project-id\",\n\t\t\tRole: \"roles/secretmanager.admin\",\n\t\t\tMember: prod.FederationPrincipal,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"google_iam_workload_identity_pool\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n workload_identity_pool_id = \"doppler-pool\"\n}\nresource \"google_iam_workload_identity_pool_provider\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n oidc = [{\n \"issuerUri\" = \"https://api.doppler.com\"\n }]\n workload_identity_pool_id = google_iam_workload_identity_pool.doppler.workloadIdentityPoolId\n workload_identity_pool_provider_id = \"doppler\"\n attribute_mapping = {\n \"google.subject\" = \"assertion.sub\"\n }\n attribute_condition = \"assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e'\"\n}\nresource \"doppler_integration_gcp_secret_manager_oidc\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n gcp_workload_identity_provider =\"//iam.googleapis.com/${google_iam_workload_identity_pool_provider.doppler.name}\"\n gcp_project_id = \"your-gcp-project-id\"\n gcp_secret_prefix = \"doppler-\"\n}\nresource \"google_project_iam_member\" \"doppler\" {\n lifecycle {\n create_before_destroy = true\n }\n condition = [{\n \"title\" = \"doppler-prefix-only\"\n \"expression\" = \"resource.name.startsWith(\\\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\\\")\"\n }]\n project = \"your-gcp-project-id\"\n role = \"roles/secretmanager.admin\"\n member = doppler_integration_gcp_secret_manager_oidc.prod.federation_principal\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.google.IamWorkloadIdentityPool;\nimport com.pulumi.google.IamWorkloadIdentityPoolArgs;\nimport com.pulumi.google.IamWorkloadIdentityPoolProvider;\nimport com.pulumi.google.IamWorkloadIdentityPoolProviderArgs;\nimport com.pulumi.doppler.integration.GcpSecretManagerOidc;\nimport com.pulumi.doppler.integration.GcpSecretManagerOidcArgs;\nimport com.pulumi.google.ProjectIamMember;\nimport com.pulumi.google.ProjectIamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var doppler = new IamWorkloadIdentityPool(\"doppler\", IamWorkloadIdentityPoolArgs.builder()\n .workloadIdentityPoolId(\"doppler-pool\")\n .build());\n\n var dopplerIamWorkloadIdentityPoolProvider = new IamWorkloadIdentityPoolProvider(\"dopplerIamWorkloadIdentityPoolProvider\", IamWorkloadIdentityPoolProviderArgs.builder()\n .oidc(Arrays.asList(Map.of(\"issuerUri\", \"https://api.doppler.com\")))\n .workloadIdentityPoolId(doppler.get(\"workloadIdentityPoolId\"))\n .workloadIdentityPoolProviderId(\"doppler\")\n .attributeMapping(Map.of(\"google.subject\", \"assertion.sub\"))\n .attributeCondition(\"assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e'\")\n .build());\n\n var prod = new GcpSecretManagerOidc(\"prod\", GcpSecretManagerOidcArgs.builder()\n .name(\"Production\")\n .gcpWorkloadIdentityProvider(String.format(\"//iam.googleapis.com/%s\", dopplerIamWorkloadIdentityPoolProvider.get(\"name\")))\n .gcpProjectId(\"your-gcp-project-id\")\n .gcpSecretPrefix(\"doppler-\")\n .build());\n\n var dopplerProjectIamMember = new ProjectIamMember(\"dopplerProjectIamMember\", ProjectIamMemberArgs.builder()\n .condition(Arrays.asList(Map.ofEntries(\n Map.entry(\"title\", \"doppler-prefix-only\"),\n Map.entry(\"expression\", \"resource.name.startsWith(\\\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\\\")\")\n )))\n .project(\"your-gcp-project-id\")\n .role(\"roles/secretmanager.admin\")\n .member(prod.federationPrincipal())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n doppler:\n type: google:IamWorkloadIdentityPool\n properties:\n workloadIdentityPoolId: doppler-pool\n dopplerIamWorkloadIdentityPoolProvider:\n type: google:IamWorkloadIdentityPoolProvider\n name: doppler\n properties:\n oidc:\n - issuerUri: https://api.doppler.com\n workloadIdentityPoolId: ${doppler.workloadIdentityPoolId}\n workloadIdentityPoolProviderId: doppler\n attributeMapping:\n google.subject: assertion.sub\n attributeCondition: assertion.workplace == '\u003cYOUR_WORKPLACE_SLUG\u003e'\n prod:\n type: doppler:integration:GcpSecretManagerOidc\n properties:\n name: Production\n gcpWorkloadIdentityProvider: //iam.googleapis.com/${dopplerIamWorkloadIdentityPoolProvider.name}\n gcpProjectId: your-gcp-project-id\n gcpSecretPrefix: doppler-\n dopplerProjectIamMember:\n type: google:ProjectIamMember\n name: doppler\n properties:\n condition:\n - title: doppler-prefix-only\n expression: resource.name.startsWith(\"projects/\u003cYOUR_PROJECT_NUMBER\u003e/secrets/doppler-\")\n project: your-gcp-project-id\n role: roles/secretmanager.admin\n member: ${prod.federationPrincipal}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpSecretPrefix": { + "type": "string", + "description": "The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created.\n" + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "federationPrincipal", + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "inputProperties": { + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpSecretPrefix": { + "type": "string", + "description": "The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created.\n", + "willReplaceOnChanges": true + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "gcpProjectId", + "gcpWorkloadIdentityProvider", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpSecretManagerOidc resources.\n", + "properties": { + "federationPrincipal": { + "type": "string", + "description": "The IAM principal identifier to grant roles to in GCP for this integration\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The ID of the GCP project the integration operates on\n" + }, + "gcpSecretPrefix": { + "type": "string", + "description": "The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created.\n", + "willReplaceOnChanges": true + }, + "gcpWorkloadIdentityProvider": { + "type": "string", + "description": "The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID.\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys": { + "description": "Manage a GCP Service Account Keys Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as google from \"@pulumi/google\";\nimport * as std from \"@pulumi/std\";\n\nconst iGcpSakExtid = new doppler.integration.ExternalId(\"i_gcp_sak_extid\", {integrationType: \"gcp_service_account_keys\"});\nconst gcpsaDopplerImpersonate = new google.index.ServiceAccount(\"gcpsa_doppler_impersonate\", {\n accountId: \"xxxxxxxxxxx\",\n description: std.format({\n input: \"doppler_impersonate:%s\",\n args: [iGcpSakExtid.id],\n }).result,\n displayName: \"xxxxxxxxxx\",\n});\nconst dopplerRotationImpersonatePolicy = google.iamPolicy({\n binding: [\n {\n role: \"roles/iam.serviceAccountViewer\",\n members: [\n gcpsaDopplerImpersonate.member,\n \"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\",\n ],\n },\n {\n role: \"roles/iam.serviceAccountTokenCreator\",\n members: [\"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\"],\n },\n ],\n});\nconst gcpPolicyImpersonate = new google.index.ServiceAccountIamPolicy(\"gcp_policy_impersonate\", {\n serviceAccountId: gcpsaDopplerImpersonate.name,\n policyData: dopplerRotationImpersonatePolicy.policyData,\n});\nconst gcpsaRotated = new google.index.ServiceAccount(\"gcpsa_rotated\", {\n accountId: \"xxxxxxxxxxxxxxxxxx\",\n displayName: \"xxxxxxxxxxxxxxxxxx\",\n});\nconst dopplerRotatedUserPolicy = google.iamPolicy({\n binding: [{\n role: \"roles/iam.serviceAccountKeyAdmin\",\n members: [gcpsaDopplerImpersonate.member],\n }],\n});\nconst gcpPolicyRotated = new google.index.ServiceAccountIamPolicy(\"gcp_policy_rotated\", {\n serviceAccountId: gcpsaRotated.name,\n policyData: dopplerRotatedUserPolicy.policyData,\n});\nconst iGcpSak = new doppler.integration.GcpServiceAccountKeys(\"i_gcp_sak\", {\n name: \"TF GCP Service Account Keys\",\n impersonatedServiceAccount: gcpsaDopplerImpersonate.email,\n externalId: iGcpSakExtid.id,\n});\nconst rsGcpsak = new doppler.rotatedsecret.GcpServiceAccountKeys(\"rs_gcpsak\", {\n integration: iGcpSak.id,\n project: \"backend\",\n config: \"dev\",\n name: \"GCP_SERVICE_ACCOUNT\",\n rotationPeriodSec: 2592000,\n serviceAccount: gcpsaRotated.email,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_google as google\nimport pulumi_std as std\n\ni_gcp_sak_extid = doppler.integration.ExternalId(\"i_gcp_sak_extid\", integration_type=\"gcp_service_account_keys\")\ngcpsa_doppler_impersonate = google.ServiceAccount(\"gcpsa_doppler_impersonate\",\n account_id=xxxxxxxxxxx,\n description=std.format(input=doppler_impersonate:%s,\n args=[i_gcp_sak_extid.id]).result,\n display_name=xxxxxxxxxx)\ndoppler_rotation_impersonate_policy = google.iam_policy(binding=[\n {\n \"role\": \"roles/iam.serviceAccountViewer\",\n \"members\": [\n gcpsa_doppler_impersonate[\"member\"],\n \"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\",\n ],\n },\n {\n \"role\": \"roles/iam.serviceAccountTokenCreator\",\n \"members\": [\"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\"],\n },\n])\ngcp_policy_impersonate = google.ServiceAccountIamPolicy(\"gcp_policy_impersonate\",\n service_account_id=gcpsa_doppler_impersonate.name,\n policy_data=doppler_rotation_impersonate_policy.policy_data)\ngcpsa_rotated = google.ServiceAccount(\"gcpsa_rotated\",\n account_id=xxxxxxxxxxxxxxxxxx,\n display_name=xxxxxxxxxxxxxxxxxx)\ndoppler_rotated_user_policy = google.iam_policy(binding=[{\n \"role\": \"roles/iam.serviceAccountKeyAdmin\",\n \"members\": [gcpsa_doppler_impersonate[\"member\"]],\n}])\ngcp_policy_rotated = google.ServiceAccountIamPolicy(\"gcp_policy_rotated\",\n service_account_id=gcpsa_rotated.name,\n policy_data=doppler_rotated_user_policy.policy_data)\ni_gcp_sak = doppler.integration.GcpServiceAccountKeys(\"i_gcp_sak\",\n name=\"TF GCP Service Account Keys\",\n impersonated_service_account=gcpsa_doppler_impersonate[\"email\"],\n external_id=i_gcp_sak_extid.id)\nrs_gcpsak = doppler.rotatedsecret.GcpServiceAccountKeys(\"rs_gcpsak\",\n integration=i_gcp_sak.id,\n project=\"backend\",\n config=\"dev\",\n name=\"GCP_SERVICE_ACCOUNT\",\n rotation_period_sec=2592000,\n service_account=gcpsa_rotated[\"email\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Google = Pulumi.Google;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var iGcpSakExtid = new Doppler.Integration.ExternalId(\"i_gcp_sak_extid\", new()\n {\n IntegrationType = \"gcp_service_account_keys\",\n });\n\n var gcpsaDopplerImpersonate = new Google.ServiceAccount(\"gcpsa_doppler_impersonate\", new()\n {\n AccountId = \"xxxxxxxxxxx\",\n Description = Std.Format.Invoke(new()\n {\n Input = \"doppler_impersonate:%s\",\n Args = new[]\n {\n iGcpSakExtid.Id,\n },\n }).Result,\n DisplayName = \"xxxxxxxxxx\",\n });\n\n var dopplerRotationImpersonatePolicy = Google.IamPolicy.Invoke(new()\n {\n Binding = new[]\n {\n \n {\n { \"role\", \"roles/iam.serviceAccountViewer\" },\n { \"members\", new[]\n {\n gcpsaDopplerImpersonate.Member,\n \"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\",\n } },\n },\n \n {\n { \"role\", \"roles/iam.serviceAccountTokenCreator\" },\n { \"members\", new[]\n {\n \"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\",\n } },\n },\n },\n });\n\n var gcpPolicyImpersonate = new Google.ServiceAccountIamPolicy(\"gcp_policy_impersonate\", new()\n {\n ServiceAccountId = gcpsaDopplerImpersonate.Name,\n PolicyData = dopplerRotationImpersonatePolicy.PolicyData,\n });\n\n var gcpsaRotated = new Google.ServiceAccount(\"gcpsa_rotated\", new()\n {\n AccountId = \"xxxxxxxxxxxxxxxxxx\",\n DisplayName = \"xxxxxxxxxxxxxxxxxx\",\n });\n\n var dopplerRotatedUserPolicy = Google.IamPolicy.Invoke(new()\n {\n Binding = new[]\n {\n \n {\n { \"role\", \"roles/iam.serviceAccountKeyAdmin\" },\n { \"members\", new[]\n {\n gcpsaDopplerImpersonate.Member,\n } },\n },\n },\n });\n\n var gcpPolicyRotated = new Google.ServiceAccountIamPolicy(\"gcp_policy_rotated\", new()\n {\n ServiceAccountId = gcpsaRotated.Name,\n PolicyData = dopplerRotatedUserPolicy.PolicyData,\n });\n\n var iGcpSak = new Doppler.Integration.GcpServiceAccountKeys(\"i_gcp_sak\", new()\n {\n Name = \"TF GCP Service Account Keys\",\n ImpersonatedServiceAccount = gcpsaDopplerImpersonate.Email,\n ExternalId = iGcpSakExtid.Id,\n });\n\n var rsGcpsak = new Doppler.RotatedSecret.GcpServiceAccountKeys(\"rs_gcpsak\", new()\n {\n Integration = iGcpSak.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"GCP_SERVICE_ACCOUNT\",\n RotationPeriodSec = 2592000,\n ServiceAccount = gcpsaRotated.Email,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi-google/sdk/go/google\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tiGcpSakExtid, err := integration.NewExternalId(ctx, \"i_gcp_sak_extid\", \u0026integration.ExternalIdArgs{\n\t\t\tIntegrationType: pulumi.String(\"gcp_service_account_keys\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgcpsaDopplerImpersonate, err := google.NewServiceAccount(ctx, \"gcpsa_doppler_impersonate\", \u0026google.ServiceAccountArgs{\n\t\t\tAccountId: \"xxxxxxxxxxx\",\n\t\t\tDescription: std.Format(ctx, map[string]interface{}{\n\t\t\t\t\"input\": \"doppler_impersonate:%s\",\n\t\t\t\t\"args\": pulumi.IDArray{\n\t\t\t\t\tiGcpSakExtid.ID(),\n\t\t\t\t},\n\t\t\t}, nil).Result,\n\t\t\tDisplayName: \"xxxxxxxxxx\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdopplerRotationImpersonatePolicy, err := google.IamPolicy(ctx, map[string][]interface{}{\n\t\t\t\"binding\": []interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"role\": \"roles/iam.serviceAccountViewer\",\n\t\t\t\t\t\"members\": []interface{}{\n\t\t\t\t\t\tgcpsaDopplerImpersonate.Member,\n\t\t\t\t\t\t\"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"role\": \"roles/iam.serviceAccountTokenCreator\",\n\t\t\t\t\t\"members\": []string{\n\t\t\t\t\t\t\"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = google.NewServiceAccountIamPolicy(ctx, \"gcp_policy_impersonate\", \u0026google.ServiceAccountIamPolicyArgs{\n\t\t\tServiceAccountId: gcpsaDopplerImpersonate.Name,\n\t\t\tPolicyData: dopplerRotationImpersonatePolicy.PolicyData,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgcpsaRotated, err := google.NewServiceAccount(ctx, \"gcpsa_rotated\", \u0026google.ServiceAccountArgs{\n\t\t\tAccountId: \"xxxxxxxxxxxxxxxxxx\",\n\t\t\tDisplayName: \"xxxxxxxxxxxxxxxxxx\",\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdopplerRotatedUserPolicy, err := google.IamPolicy(ctx, map[string][]map[string]interface{}{\n\t\t\t\"binding\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"role\": \"roles/iam.serviceAccountKeyAdmin\",\n\t\t\t\t\t\"members\": []interface{}{\n\t\t\t\t\t\tgcpsaDopplerImpersonate.Member,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = google.NewServiceAccountIamPolicy(ctx, \"gcp_policy_rotated\", \u0026google.ServiceAccountIamPolicyArgs{\n\t\t\tServiceAccountId: gcpsaRotated.Name,\n\t\t\tPolicyData: dopplerRotatedUserPolicy.PolicyData,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tiGcpSak, err := integration.NewGcpServiceAccountKeys(ctx, \"i_gcp_sak\", \u0026integration.GcpServiceAccountKeysArgs{\n\t\t\tName: pulumi.String(\"TF GCP Service Account Keys\"),\n\t\t\tImpersonatedServiceAccount: gcpsaDopplerImpersonate.Email,\n\t\t\tExternalId: iGcpSakExtid.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewGcpServiceAccountKeys(ctx, \"rs_gcpsak\", \u0026rotatedsecret.GcpServiceAccountKeysArgs{\n\t\t\tIntegration: iGcpSak.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"GCP_SERVICE_ACCOUNT\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tServiceAccount: gcpsaRotated.Email,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"std_format\" \"invoke_0\" {\n input = \"doppler_impersonate:%s\"\n args = [doppler_integration_external_id.i_gcp_sak_extid.id]\n}\ndata \"google_iam_policy\" \"dopplerRotationImpersonatePolicy\" {\n binding = [{\n \"role\" = \"roles/iam.serviceAccountViewer\"\n \"members\" = [google_service_account.gcpsa_doppler_impersonate.member, \"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\"]\n }, {\n \"role\" = \"roles/iam.serviceAccountTokenCreator\"\n \"members\" = [\"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\"]\n }]\n}\ndata \"google_iam_policy\" \"dopplerRotatedUserPolicy\" {\n binding = [{\n \"role\" = \"roles/iam.serviceAccountKeyAdmin\"\n \"members\" = [google_service_account.gcpsa_doppler_impersonate.member]\n }]\n}\n\nresource \"doppler_integration_external_id\" \"i_gcp_sak_extid\" {\n lifecycle {\n create_before_destroy = true\n }\n integration_type = \"gcp_service_account_keys\"\n}\nresource \"google_service_account\" \"gcpsa_doppler_impersonate\" {\n lifecycle {\n create_before_destroy = true\n }\n account_id = \"xxxxxxxxxxx\"\n description = data.std_format.invoke_0.result\n display_name = \"xxxxxxxxxx\"\n}\nresource \"google_service_account_iam_policy\" \"gcp_policy_impersonate\" {\n lifecycle {\n create_before_destroy = true\n }\n service_account_id = google_service_account.gcpsa_doppler_impersonate.name\n policy_data = data.google_iam_policy.dopplerRotationImpersonatePolicy.policy_data\n}\nresource \"google_service_account\" \"gcpsa_rotated\" {\n lifecycle {\n create_before_destroy = true\n }\n account_id = \"xxxxxxxxxxxxxxxxxx\"\n display_name = \"xxxxxxxxxxxxxxxxxx\"\n}\nresource \"google_service_account_iam_policy\" \"gcp_policy_rotated\" {\n lifecycle {\n create_before_destroy = true\n }\n service_account_id = google_service_account.gcpsa_rotated.name\n policy_data = data.google_iam_policy.dopplerRotatedUserPolicy.policy_data\n}\nresource \"doppler_integration_gcp_service_account_keys\" \"i_gcp_sak\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF GCP Service Account Keys\"\n impersonated_service_account = google_service_account.gcpsa_doppler_impersonate.email\n external_id = doppler_integration_external_id.i_gcp_sak_extid.id\n}\nresource \"doppler_rotated_secret_gcp_service_account_keys\" \"rs_gcpsak\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_gcp_service_account_keys.i_gcp_sak.id\n project = \"backend\"\n config = \"dev\"\n name = \"GCP_SERVICE_ACCOUNT\"\n rotation_period_sec = 2592000\n service_account = google_service_account.gcpsa_rotated.email\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.ExternalId;\nimport com.pulumi.doppler.integration.ExternalIdArgs;\nimport com.pulumi.google.ServiceAccount;\nimport com.pulumi.google.ServiceAccountArgs;\nimport com.pulumi.std.StdFunctions;\nimport com.pulumi.google.GoogleFunctions;\nimport com.pulumi.google.ServiceAccountIamPolicy;\nimport com.pulumi.google.ServiceAccountIamPolicyArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var iGcpSakExtid = new ExternalId(\"iGcpSakExtid\", ExternalIdArgs.builder()\n .integrationType(\"gcp_service_account_keys\")\n .build());\n\n var gcpsaDopplerImpersonate = new ServiceAccount(\"gcpsaDopplerImpersonate\", ServiceAccountArgs.builder()\n .accountId(\"xxxxxxxxxxx\")\n .description(StdFunctions.format(Map.ofEntries(\n Map.entry(\"input\", \"doppler_impersonate:%s\"),\n Map.entry(\"args\", Arrays.asList(iGcpSakExtid.id()))\n )).get(\"result\"))\n .displayName(\"xxxxxxxxxx\")\n .build());\n\n final var dopplerRotationImpersonatePolicy = GoogleFunctions.IamPolicy(Map.of(\"binding\", Arrays.asList( \n Map.ofEntries(\n Map.entry(\"role\", \"roles/iam.serviceAccountViewer\"),\n Map.entry(\"members\", Arrays.asList( \n gcpsaDopplerImpersonate.get(\"member\"),\n \"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\"))\n ),\n Map.ofEntries(\n Map.entry(\"role\", \"roles/iam.serviceAccountTokenCreator\"),\n Map.entry(\"members\", Arrays.asList(\"serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\"))\n ))));\n\n var gcpPolicyImpersonate = new ServiceAccountIamPolicy(\"gcpPolicyImpersonate\", ServiceAccountIamPolicyArgs.builder()\n .serviceAccountId(gcpsaDopplerImpersonate.get(\"name\"))\n .policyData(dopplerRotationImpersonatePolicy.get(\"policyData\"))\n .build());\n\n var gcpsaRotated = new ServiceAccount(\"gcpsaRotated\", ServiceAccountArgs.builder()\n .accountId(\"xxxxxxxxxxxxxxxxxx\")\n .displayName(\"xxxxxxxxxxxxxxxxxx\")\n .build());\n\n final var dopplerRotatedUserPolicy = GoogleFunctions.IamPolicy(Map.of(\"binding\", Arrays.asList(Map.ofEntries(\n Map.entry(\"role\", \"roles/iam.serviceAccountKeyAdmin\"),\n Map.entry(\"members\", Arrays.asList(gcpsaDopplerImpersonate.get(\"member\")))\n ))));\n\n var gcpPolicyRotated = new ServiceAccountIamPolicy(\"gcpPolicyRotated\", ServiceAccountIamPolicyArgs.builder()\n .serviceAccountId(gcpsaRotated.get(\"name\"))\n .policyData(dopplerRotatedUserPolicy.get(\"policyData\"))\n .build());\n\n var iGcpSak = new com.pulumi.doppler.integration.GcpServiceAccountKeys(\"iGcpSak\", com.pulumi.doppler.integration.GcpServiceAccountKeysArgs.builder()\n .name(\"TF GCP Service Account Keys\")\n .impersonatedServiceAccount(gcpsaDopplerImpersonate.get(\"email\"))\n .externalId(iGcpSakExtid.id())\n .build());\n\n var rsGcpsak = new com.pulumi.doppler.rotatedSecret.GcpServiceAccountKeys(\"rsGcpsak\", com.pulumi.doppler.rotatedSecret.GcpServiceAccountKeysArgs.builder()\n .integration(iGcpSak.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"GCP_SERVICE_ACCOUNT\")\n .rotationPeriodSec(2592000)\n .serviceAccount(gcpsaRotated.get(\"email\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n iGcpSakExtid:\n type: doppler:integration:ExternalId\n name: i_gcp_sak_extid\n properties:\n integrationType: gcp_service_account_keys\n gcpsaDopplerImpersonate:\n type: google:ServiceAccount\n name: gcpsa_doppler_impersonate\n properties:\n accountId: xxxxxxxxxxx\n description:\n fn::invoke:\n function: std:format\n arguments:\n input: doppler_impersonate:%s\n args:\n - ${iGcpSakExtid.id}\n return: result\n displayName: xxxxxxxxxx\n gcpPolicyImpersonate:\n type: google:ServiceAccountIamPolicy\n name: gcp_policy_impersonate\n properties:\n serviceAccountId: ${gcpsaDopplerImpersonate.name}\n policyData: ${dopplerRotationImpersonatePolicy.policyData}\n gcpsaRotated:\n type: google:ServiceAccount\n name: gcpsa_rotated\n properties:\n accountId: xxxxxxxxxxxxxxxxxx\n displayName: xxxxxxxxxxxxxxxxxx\n gcpPolicyRotated:\n type: google:ServiceAccountIamPolicy\n name: gcp_policy_rotated\n properties:\n serviceAccountId: ${gcpsaRotated.name}\n policyData: ${dopplerRotatedUserPolicy.policyData}\n iGcpSak:\n type: doppler:integration:GcpServiceAccountKeys\n name: i_gcp_sak\n properties:\n name: TF GCP Service Account Keys\n impersonatedServiceAccount: ${gcpsaDopplerImpersonate.email}\n externalId: ${iGcpSakExtid.id}\n rsGcpsak:\n type: doppler:rotatedSecret:GcpServiceAccountKeys\n name: rs_gcpsak\n properties:\n integration: ${iGcpSak.id}\n project: backend\n config: dev\n name: GCP_SERVICE_ACCOUNT\n rotationPeriodSec: 2.592e+06\n serviceAccount: ${gcpsaRotated.email}\nvariables:\n dopplerRotationImpersonatePolicy:\n fn::invoke:\n function: google:IamPolicy\n arguments:\n binding:\n - role: roles/iam.serviceAccountViewer\n members:\n - ${gcpsaDopplerImpersonate.member}\n - serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\n - role: roles/iam.serviceAccountTokenCreator\n members:\n - serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com\n dopplerRotatedUserPolicy:\n fn::invoke:\n function: google:IamPolicy\n arguments:\n binding:\n - role: roles/iam.serviceAccountKeyAdmin\n members:\n - ${gcpsaDopplerImpersonate.member}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "externalId": { + "type": "string", + "description": "The Doppler-generated external id (placed in the service account description field)\n" + }, + "impersonatedServiceAccount": { + "type": "string", + "description": "The service account email of the account to be impersonated\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "externalId", + "impersonatedServiceAccount", + "name" + ], + "inputProperties": { + "externalId": { + "type": "string", + "description": "The Doppler-generated external id (placed in the service account description field)\n" + }, + "impersonatedServiceAccount": { + "type": "string", + "description": "The service account email of the account to be impersonated\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "externalId", + "impersonatedServiceAccount", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpServiceAccountKeys resources.\n", + "properties": { + "externalId": { + "type": "string", + "description": "The Doppler-generated external id (placed in the service account description field)\n" + }, + "impersonatedServiceAccount": { + "type": "string", + "description": "The service account email of the account to be impersonated\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/memberGroup:MemberGroup": { + "description": "Manage a Doppler integration group member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst awsEngineering = new doppler.integration.MemberGroup(\"aws_engineering\", {\n integration: prod.slug,\n groupSlug: engineering.slug,\n role: \"consumer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\naws_engineering = doppler.integration.MemberGroup(\"aws_engineering\",\n integration=prod[\"slug\"],\n group_slug=engineering[\"slug\"],\n role=\"consumer\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var awsEngineering = new Doppler.Integration.MemberGroup(\"aws_engineering\", new()\n {\n Integration = prod.Slug,\n GroupSlug = engineering.Slug,\n Role = \"consumer\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := integration.NewMemberGroup(ctx, \"aws_engineering\", \u0026integration.MemberGroupArgs{\n\t\t\tIntegration: pulumi.Any(prod.Slug),\n\t\t\tGroupSlug: pulumi.Any(engineering.Slug),\n\t\t\tRole: pulumi.String(\"consumer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_member_group\" \"aws_engineering\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = prod.slug\n group_slug = engineering.slug\n role = \"consumer\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.MemberGroup;\nimport com.pulumi.doppler.integration.MemberGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var awsEngineering = new MemberGroup(\"awsEngineering\", MemberGroupArgs.builder()\n .integration(prod.get(\"slug\"))\n .groupSlug(engineering.get(\"slug\"))\n .role(\"consumer\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n awsEngineering:\n type: doppler:integration:MemberGroup\n name: aws_engineering\n properties:\n integration: ${prod.slug}\n groupSlug: ${engineering.slug}\n role: consumer\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "groupSlug": { + "type": "string", + "description": "The slug of the Doppler group\n" + }, + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n" + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + } + }, + "required": [ + "groupSlug", + "integration", + "role" + ], + "inputProperties": { + "groupSlug": { + "type": "string", + "description": "The slug of the Doppler group\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + } + }, + "requiredInputs": [ + "groupSlug", + "integration", + "role" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering MemberGroup resources.\n", + "properties": { + "groupSlug": { + "type": "string", + "description": "The slug of the Doppler group\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + } + }, + "type": "object" + } + }, + "doppler:integration/memberServiceAccount:MemberServiceAccount": { + "description": "Manage a Doppler integration service account member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst awsCi = new doppler.integration.MemberServiceAccount(\"aws_ci\", {\n integration: prod.slug,\n serviceAccountSlug: ci.slug,\n role: \"consumer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\naws_ci = doppler.integration.MemberServiceAccount(\"aws_ci\",\n integration=prod[\"slug\"],\n service_account_slug=ci[\"slug\"],\n role=\"consumer\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var awsCi = new Doppler.Integration.MemberServiceAccount(\"aws_ci\", new()\n {\n Integration = prod.Slug,\n ServiceAccountSlug = ci.Slug,\n Role = \"consumer\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := integration.NewMemberServiceAccount(ctx, \"aws_ci\", \u0026integration.MemberServiceAccountArgs{\n\t\t\tIntegration: pulumi.Any(prod.Slug),\n\t\t\tServiceAccountSlug: pulumi.Any(ci.Slug),\n\t\t\tRole: pulumi.String(\"consumer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_member_service_account\" \"aws_ci\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = prod.slug\n service_account_slug = ci.slug\n role = \"consumer\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.MemberServiceAccount;\nimport com.pulumi.doppler.integration.MemberServiceAccountArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var awsCi = new MemberServiceAccount(\"awsCi\", MemberServiceAccountArgs.builder()\n .integration(prod.get(\"slug\"))\n .serviceAccountSlug(ci.get(\"slug\"))\n .role(\"consumer\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n awsCi:\n type: doppler:integration:MemberServiceAccount\n name: aws_ci\n properties:\n integration: ${prod.slug}\n serviceAccountSlug: ${ci.slug}\n role: consumer\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n" + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "The slug of the Doppler service account\n" + } + }, + "required": [ + "integration", + "role", + "serviceAccountSlug" + ], + "inputProperties": { + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "The slug of the Doppler service account\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "integration", + "role", + "serviceAccountSlug" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering MemberServiceAccount resources.\n", + "properties": { + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "The slug of the Doppler service account\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:integration/memberUser:MemberUser": { + "description": "Manage a Doppler integration user member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst brian = doppler.getUser({\n email: \"brian@doppler.com\",\n});\nconst awsBrian = new doppler.integration.MemberUser(\"aws_brian\", {\n integration: prod.slug,\n userSlug: brian.then(brian =\u003e brian.slug),\n role: \"consumer\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbrian = doppler.get_user(email=\"brian@doppler.com\")\naws_brian = doppler.integration.MemberUser(\"aws_brian\",\n integration=prod[\"slug\"],\n user_slug=brian.slug,\n role=\"consumer\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var brian = Doppler.GetUser.Invoke(new()\n {\n Email = \"brian@doppler.com\",\n });\n\n var awsBrian = new Doppler.Integration.MemberUser(\"aws_brian\", new()\n {\n Integration = prod.Slug,\n UserSlug = brian.Apply(getUserResult =\u003e getUserResult.Slug),\n Role = \"consumer\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbrian, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"brian@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = integration.NewMemberUser(ctx, \"aws_brian\", \u0026integration.MemberUserArgs{\n\t\t\tIntegration: pulumi.Any(prod.Slug),\n\t\t\tUserSlug: pulumi.String(brian.Slug),\n\t\t\tRole: pulumi.String(\"consumer\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_user\" \"brian\" {\n email = \"brian@doppler.com\"\n}\n\nresource \"doppler_integration_member_user\" \"aws_brian\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = prod.slug\n user_slug = data.doppler_user.brian.slug\n role = \"consumer\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.DopplerFunctions;\nimport com.pulumi.doppler.inputs.GetUserArgs;\nimport com.pulumi.doppler.integration.MemberUser;\nimport com.pulumi.doppler.integration.MemberUserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var brian = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"brian@doppler.com\")\n .build());\n\n var awsBrian = new MemberUser(\"awsBrian\", MemberUserArgs.builder()\n .integration(prod.get(\"slug\"))\n .userSlug(brian.slug())\n .role(\"consumer\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n awsBrian:\n type: doppler:integration:MemberUser\n name: aws_brian\n properties:\n integration: ${prod.slug}\n userSlug: ${brian.slug}\n role: consumer\nvariables:\n brian:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: brian@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n" + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + }, + "userSlug": { + "type": "string", + "description": "The slug of the Doppler workplace user\n" + } + }, + "required": [ + "integration", + "role", + "userSlug" + ], + "inputProperties": { + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + }, + "userSlug": { + "type": "string", + "description": "The slug of the Doppler workplace user\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "integration", + "role", + "userSlug" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering MemberUser resources.\n", + "properties": { + "integration": { + "type": "string", + "description": "The slug of the Doppler integration where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The integration role identifier for the access. Must use either one of the built-in integration role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`consumer`\" pulumi-lang-dotnet=\"`Consumer`\" pulumi-lang-go=\"`consumer`\" pulumi-lang-python=\"`consumer`\" pulumi-lang-yaml=\"`consumer`\" pulumi-lang-java=\"`consumer`\" pulumi-lang-hcl=\"`consumer`\"\u003e`consumer`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`viewer`\" pulumi-lang-dotnet=\"`Viewer`\" pulumi-lang-go=\"`viewer`\" pulumi-lang-python=\"`viewer`\" pulumi-lang-yaml=\"`viewer`\" pulumi-lang-java=\"`viewer`\" pulumi-lang-hcl=\"`viewer`\"\u003e`viewer`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom integration role.\n" + }, + "userSlug": { + "type": "string", + "description": "The slug of the Doppler workplace user\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:integration/mongodbAtlas:MongodbAtlas": { + "description": "Manage a MongoDB Atlas Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst config = new pulumi.Config();\nconst dbPassword1 = config.get(\"dbPassword1\") || \"\";\nconst dbPassword2 = config.get(\"dbPassword2\") || \"\";\nconst iMongodbAtlas = new doppler.integration.MongodbAtlas(\"i_mongodb_atlas\", {\n name: \"TF MongoDB Atlas\",\n publicKey: \"xxxxxxxx\",\n privateKey: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsMongodbAtlas = new doppler.rotatedsecret.MongodbAtlas(\"rs_mongodb_atlas\", {\n credentials: [\n {\n username: \"xxxxxxxxx\",\n password: dbPassword1,\n },\n {\n username: \"xxxxxxxxx\",\n password: dbPassword2,\n },\n ],\n integration: iMongodbAtlas.id,\n project: \"backend\",\n config: \"dev\",\n name: \"MONGODB\",\n rotationPeriodSec: 2592000,\n projectId: \"xxxxxxxxxxxxxxxxx\",\n}, {\n ignoreChanges: [\"credentials\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nconfig = pulumi.Config()\ndb_password1 = config.get(\"dbPassword1\")\nif db_password1 is None:\n db_password1 = \"\"\ndb_password2 = config.get(\"dbPassword2\")\nif db_password2 is None:\n db_password2 = \"\"\ni_mongodb_atlas = doppler.integration.MongodbAtlas(\"i_mongodb_atlas\",\n name=\"TF MongoDB Atlas\",\n public_key=\"xxxxxxxx\",\n private_key=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nrs_mongodb_atlas = doppler.rotatedsecret.MongodbAtlas(\"rs_mongodb_atlas\",\n credentials=[\n {\n \"username\": \"xxxxxxxxx\",\n \"password\": db_password1,\n },\n {\n \"username\": \"xxxxxxxxx\",\n \"password\": db_password2,\n },\n ],\n integration=i_mongodb_atlas.id,\n project=\"backend\",\n config=\"dev\",\n name=\"MONGODB\",\n rotation_period_sec=2592000,\n project_id=\"xxxxxxxxxxxxxxxxx\",\n opts = pulumi.ResourceOptions(ignore_changes=[\"credentials\"]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var config = new Config();\n var dbPassword1 = config.Get(\"dbPassword1\") ?? \"\";\n var dbPassword2 = config.Get(\"dbPassword2\") ?? \"\";\n var iMongodbAtlas = new Doppler.Integration.MongodbAtlas(\"i_mongodb_atlas\", new()\n {\n Name = \"TF MongoDB Atlas\",\n PublicKey = \"xxxxxxxx\",\n PrivateKey = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsMongodbAtlas = new Doppler.RotatedSecret.MongodbAtlas(\"rs_mongodb_atlas\", new()\n {\n Credentials = new[]\n {\n new Doppler.RotatedSecret.Inputs.MongodbAtlasCredentialArgs\n {\n Username = \"xxxxxxxxx\",\n Password = dbPassword1,\n },\n new Doppler.RotatedSecret.Inputs.MongodbAtlasCredentialArgs\n {\n Username = \"xxxxxxxxx\",\n Password = dbPassword2,\n },\n },\n Integration = iMongodbAtlas.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"MONGODB\",\n RotationPeriodSec = 2592000,\n ProjectId = \"xxxxxxxxxxxxxxxxx\",\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"credentials\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\tdbPassword1 := \"\"\n\t\tif param := cfg.Get(\"dbPassword1\"); param != \"\" {\n\t\t\tdbPassword1 = param\n\t\t}\n\t\tdbPassword2 := \"\"\n\t\tif param := cfg.Get(\"dbPassword2\"); param != \"\" {\n\t\t\tdbPassword2 = param\n\t\t}\n\t\tiMongodbAtlas, err := integration.NewMongodbAtlas(ctx, \"i_mongodb_atlas\", \u0026integration.MongodbAtlasArgs{\n\t\t\tName: pulumi.String(\"TF MongoDB Atlas\"),\n\t\t\tPublicKey: pulumi.String(\"xxxxxxxx\"),\n\t\t\tPrivateKey: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewMongodbAtlas(ctx, \"rs_mongodb_atlas\", \u0026rotatedsecret.MongodbAtlasArgs{\n\t\t\tCredentials: rotatedsecret.MongodbAtlasCredentialArray{\n\t\t\t\t\u0026rotatedsecret.MongodbAtlasCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword1),\n\t\t\t\t},\n\t\t\t\t\u0026rotatedsecret.MongodbAtlasCredentialArgs{\n\t\t\t\t\tUsername: pulumi.String(\"xxxxxxxxx\"),\n\t\t\t\t\tPassword: pulumi.String(dbPassword2),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegration: iMongodbAtlas.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"MONGODB\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tProjectId: pulumi.String(\"xxxxxxxxxxxxxxxxx\"),\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"credentials\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_mongodb_atlas\" \"i_mongodb_atlas\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF MongoDB Atlas\"\n public_key = \"xxxxxxxx\"\n private_key = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_mongodb_atlas\" \"rs_mongodb_atlas\" {\n lifecycle {\n ignore_changes = [credentials]\n create_before_destroy = true\n }\n credentials {\n username = \"xxxxxxxxx\"\n password = var.dbPassword1\n }\n credentials {\n username = \"xxxxxxxxx\"\n password = var.dbPassword2\n }\n integration = doppler_integration_mongodb_atlas.i_mongodb_atlas.id\n project = \"backend\"\n config = \"dev\"\n name = \"MONGODB\"\n rotation_period_sec = 2592000\n project_id = \"xxxxxxxxxxxxxxxxx\"\n}\n# The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n# Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files \nvariable \"dbPassword1\" {\n type = string\n default = \"\"\n}\nvariable \"dbPassword2\" {\n type = string\n default = \"\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.rotatedSecret.inputs.MongodbAtlasCredentialArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var config = ctx.config();\n final var dbPassword1 = config.get(\"dbPassword1\").orElse(\"\");\n final var dbPassword2 = config.get(\"dbPassword2\").orElse(\"\");\n var iMongodbAtlas = new com.pulumi.doppler.integration.MongodbAtlas(\"iMongodbAtlas\", com.pulumi.doppler.integration.MongodbAtlasArgs.builder()\n .name(\"TF MongoDB Atlas\")\n .publicKey(\"xxxxxxxx\")\n .privateKey(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsMongodbAtlas = new com.pulumi.doppler.rotatedSecret.MongodbAtlas(\"rsMongodbAtlas\", com.pulumi.doppler.rotatedSecret.MongodbAtlasArgs.builder()\n .credentials( \n MongodbAtlasCredentialArgs.builder()\n .username(\"xxxxxxxxx\")\n .password(dbPassword1)\n .build(),\n MongodbAtlasCredentialArgs.builder()\n .username(\"xxxxxxxxx\")\n .password(dbPassword2)\n .build())\n .integration(iMongodbAtlas.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"MONGODB\")\n .rotationPeriodSec(2592000)\n .projectId(\"xxxxxxxxxxxxxxxxx\")\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"credentials\")\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n # The initial password for the first db user. This will be rotated, so we provide a default and ignore changes below.\n # Provide this with -var-file: https://developer.pulumi.com/pulumi/language/values/variables#variable-definitions-tfvars-files\n dbPassword1:\n type: string\n default: \"\"\n dbPassword2:\n type: string\n default: \"\"\nresources:\n iMongodbAtlas:\n type: doppler:integration:MongodbAtlas\n name: i_mongodb_atlas\n properties:\n name: TF MongoDB Atlas\n publicKey: xxxxxxxx\n privateKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n rsMongodbAtlas:\n type: doppler:rotatedSecret:MongodbAtlas\n name: rs_mongodb_atlas\n properties:\n credentials:\n - username: xxxxxxxxx\n password: ${dbPassword1}\n - username: xxxxxxxxx\n password: ${dbPassword2}\n integration: ${iMongodbAtlas.id}\n project: backend\n config: dev\n name: MONGODB\n rotationPeriodSec: 2.592e+06\n projectId: xxxxxxxxxxxxxxxxx\n options:\n ignoreChanges:\n - credentials\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "privateKey": { + "type": "string", + "description": "The Private Key\n", + "secret": true + }, + "publicKey": { + "type": "string", + "description": "The Public Key\n" + } + }, + "required": [ + "name", + "privateKey", + "publicKey" + ], + "inputProperties": { + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "privateKey": { + "type": "string", + "description": "The Private Key\n", + "secret": true + }, + "publicKey": { + "type": "string", + "description": "The Public Key\n" + } + }, + "requiredInputs": [ + "name", + "privateKey", + "publicKey" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering MongodbAtlas resources.\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the integration\n" + }, + "privateKey": { + "type": "string", + "description": "The Private Key\n", + "secret": true + }, + "publicKey": { + "type": "string", + "description": "The Public Key\n" + } + }, + "type": "object" + } + }, + "doppler:integration/openai:Openai": { + "description": "Manage an OpenAI Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst iOpenai = new doppler.integration.Openai(\"i_openai\", {\n name: \"TF OpenAI\",\n adminKey: \"sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsOpenai = new doppler.rotatedsecret.Openai(\"rs_openai\", {\n integration: iOpenai.id,\n project: \"backend\",\n config: \"dev\",\n name: \"OPENAI\",\n rotationPeriodSec: 2592000,\n projectId: \"proj_xxxxxxxxxxxxxxxxxxxxxxxx\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\ni_openai = doppler.integration.Openai(\"i_openai\",\n name=\"TF OpenAI\",\n admin_key=\"sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nrs_openai = doppler.rotatedsecret.Openai(\"rs_openai\",\n integration=i_openai.id,\n project=\"backend\",\n config=\"dev\",\n name=\"OPENAI\",\n rotation_period_sec=2592000,\n project_id=\"proj_xxxxxxxxxxxxxxxxxxxxxxxx\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var iOpenai = new Doppler.Integration.Openai(\"i_openai\", new()\n {\n Name = \"TF OpenAI\",\n AdminKey = \"sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsOpenai = new Doppler.RotatedSecret.Openai(\"rs_openai\", new()\n {\n Integration = iOpenai.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"OPENAI\",\n RotationPeriodSec = 2592000,\n ProjectId = \"proj_xxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tiOpenai, err := integration.NewOpenai(ctx, \"i_openai\", \u0026integration.OpenaiArgs{\n\t\t\tName: pulumi.String(\"TF OpenAI\"),\n\t\t\tAdminKey: pulumi.String(\"sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewOpenai(ctx, \"rs_openai\", \u0026rotatedsecret.OpenaiArgs{\n\t\t\tIntegration: iOpenai.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"OPENAI\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tProjectId: pulumi.String(\"proj_xxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_openai\" \"i_openai\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF OpenAI\"\n admin_key = \"sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_openai\" \"rs_openai\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_openai.i_openai.id\n project = \"backend\"\n config = \"dev\"\n name = \"OPENAI\"\n rotation_period_sec = 2592000\n project_id = \"proj_xxxxxxxxxxxxxxxxxxxxxxxx\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var iOpenai = new com.pulumi.doppler.integration.Openai(\"iOpenai\", com.pulumi.doppler.integration.OpenaiArgs.builder()\n .name(\"TF OpenAI\")\n .adminKey(\"sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsOpenai = new com.pulumi.doppler.rotatedSecret.Openai(\"rsOpenai\", com.pulumi.doppler.rotatedSecret.OpenaiArgs.builder()\n .integration(iOpenai.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"OPENAI\")\n .rotationPeriodSec(2592000)\n .projectId(\"proj_xxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n iOpenai:\n type: doppler:integration:Openai\n name: i_openai\n properties:\n name: TF OpenAI\n adminKey: sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n rsOpenai:\n type: doppler:rotatedSecret:Openai\n name: rs_openai\n properties:\n integration: ${iOpenai.id}\n project: backend\n config: dev\n name: OPENAI\n rotationPeriodSec: 2.592e+06\n projectId: proj_xxxxxxxxxxxxxxxxxxxxxxxx\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "adminKey": { + "type": "string", + "description": "The OpenAI admin key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "adminKey", + "name" + ], + "inputProperties": { + "adminKey": { + "type": "string", + "description": "The OpenAI admin key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "adminKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Openai resources.\n", + "properties": { + "adminKey": { + "type": "string", + "description": "The OpenAI admin key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/sendgrid:Sendgrid": { + "description": "Manage a SendGrid Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst iSendgrid = new doppler.integration.Sendgrid(\"i_sendgrid\", {\n name: \"TF SendGrid\",\n apiKey: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsSendgrid = new doppler.rotatedsecret.Sendgrid(\"rs_sendgrid\", {\n integration: iSendgrid.id,\n project: \"backend\",\n config: \"dev\",\n name: \"SENDGRID\",\n rotationPeriodSec: 2592000,\n scopes: [\n \"alerts.create\",\n \"alerts.read\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\ni_sendgrid = doppler.integration.Sendgrid(\"i_sendgrid\",\n name=\"TF SendGrid\",\n api_key=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nrs_sendgrid = doppler.rotatedsecret.Sendgrid(\"rs_sendgrid\",\n integration=i_sendgrid.id,\n project=\"backend\",\n config=\"dev\",\n name=\"SENDGRID\",\n rotation_period_sec=2592000,\n scopes=[\n \"alerts.create\",\n \"alerts.read\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var iSendgrid = new Doppler.Integration.Sendgrid(\"i_sendgrid\", new()\n {\n Name = \"TF SendGrid\",\n ApiKey = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsSendgrid = new Doppler.RotatedSecret.Sendgrid(\"rs_sendgrid\", new()\n {\n Integration = iSendgrid.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"SENDGRID\",\n RotationPeriodSec = 2592000,\n Scopes = new[]\n {\n \"alerts.create\",\n \"alerts.read\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tiSendgrid, err := integration.NewSendgrid(ctx, \"i_sendgrid\", \u0026integration.SendgridArgs{\n\t\t\tName: pulumi.String(\"TF SendGrid\"),\n\t\t\tApiKey: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewSendgrid(ctx, \"rs_sendgrid\", \u0026rotatedsecret.SendgridArgs{\n\t\t\tIntegration: iSendgrid.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"SENDGRID\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t\tScopes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"alerts.create\"),\n\t\t\t\tpulumi.String(\"alerts.read\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_sendgrid\" \"i_sendgrid\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF SendGrid\"\n api_key = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_sendgrid\" \"rs_sendgrid\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_sendgrid.i_sendgrid.id\n project = \"backend\"\n config = \"dev\"\n name = \"SENDGRID\"\n rotation_period_sec = 2592000\n scopes = [\"alerts.create\", \"alerts.read\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var iSendgrid = new com.pulumi.doppler.integration.Sendgrid(\"iSendgrid\", com.pulumi.doppler.integration.SendgridArgs.builder()\n .name(\"TF SendGrid\")\n .apiKey(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsSendgrid = new com.pulumi.doppler.rotatedSecret.Sendgrid(\"rsSendgrid\", com.pulumi.doppler.rotatedSecret.SendgridArgs.builder()\n .integration(iSendgrid.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"SENDGRID\")\n .rotationPeriodSec(2592000)\n .scopes( \n \"alerts.create\",\n \"alerts.read\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n iSendgrid:\n type: doppler:integration:Sendgrid\n name: i_sendgrid\n properties:\n name: TF SendGrid\n apiKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n rsSendgrid:\n type: doppler:rotatedSecret:Sendgrid\n name: rs_sendgrid\n properties:\n integration: ${iSendgrid.id}\n project: backend\n config: dev\n name: SENDGRID\n rotationPeriodSec: 2.592e+06\n scopes:\n - alerts.create\n - alerts.read\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "apiKey": { + "type": "string", + "description": "The API Key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "apiKey", + "name" + ], + "inputProperties": { + "apiKey": { + "type": "string", + "description": "The API Key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "apiKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Sendgrid resources.\n", + "properties": { + "apiKey": { + "type": "string", + "description": "The API Key\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/terraformCloud:TerraformCloud": { + "description": "Manage a Terraform Cloud Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as tfe from \"@pulumi/tfe\";\n\nconst prod = tfe.workspace({\n name: \"my-workspace-name\",\n organization: \"my-org-name\",\n});\nconst prodTerraformCloud = new doppler.integration.TerraformCloud(\"prod\", {\n name: \"Production\",\n apiKey: \"my_api_key\",\n});\nconst backendProd = new doppler.secretssync.TerraformCloud(\"backend_prod\", {\n integration: prodTerraformCloud.id,\n project: \"backend\",\n config: \"prd\",\n syncTarget: \"workspace\",\n workspaceId: prod.id,\n variableSyncType: \"terraform\",\n nameTransform: \"lowercase\",\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_tfe as tfe\n\nprod = tfe.workspace(name=\"my-workspace-name\",\n organization=\"my-org-name\")\nprod_terraform_cloud = doppler.integration.TerraformCloud(\"prod\",\n name=\"Production\",\n api_key=\"my_api_key\")\nbackend_prod = doppler.secretssync.TerraformCloud(\"backend_prod\",\n integration=prod_terraform_cloud.id,\n project=\"backend\",\n config=\"prd\",\n sync_target=\"workspace\",\n workspace_id=prod[\"id\"],\n variable_sync_type=\"terraform\",\n name_transform=\"lowercase\",\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Tfe = Pulumi.Tfe;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = Tfe.Workspace.Invoke(new()\n {\n Name = \"my-workspace-name\",\n Organization = \"my-org-name\",\n });\n\n var prodTerraformCloud = new Doppler.Integration.TerraformCloud(\"prod\", new()\n {\n Name = \"Production\",\n ApiKey = \"my_api_key\",\n });\n\n var backendProd = new Doppler.SecretsSync.TerraformCloud(\"backend_prod\", new()\n {\n Integration = prodTerraformCloud.Id,\n Project = \"backend\",\n Config = \"prd\",\n SyncTarget = \"workspace\",\n WorkspaceId = prod.Id,\n VariableSyncType = \"terraform\",\n NameTransform = \"lowercase\",\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi-tfe/sdk/go/tfe\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := tfe.Workspace(ctx, map[string]string{\n\t\t\t\"name\": \"my-workspace-name\",\n\t\t\t\"organization\": \"my-org-name\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprodTerraformCloud, err := integration.NewTerraformCloud(ctx, \"prod\", \u0026integration.TerraformCloudArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tApiKey: pulumi.String(\"my_api_key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretssync.NewTerraformCloud(ctx, \"backend_prod\", \u0026secretssync.TerraformCloudArgs{\n\t\t\tIntegration: prodTerraformCloud.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tSyncTarget: pulumi.String(\"workspace\"),\n\t\t\tWorkspaceId: pulumi.Any(prod.Id),\n\t\t\tVariableSyncType: pulumi.String(\"terraform\"),\n\t\t\tNameTransform: pulumi.String(\"lowercase\"),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"tfe_workspace\" \"prod\" {\n name = \"my-workspace-name\"\n organization = \"my-org-name\"\n}\n\nresource \"doppler_integration_terraform_cloud\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n api_key = \"my_api_key\"\n}\nresource \"doppler_secrets_sync_terraform_cloud\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_terraform_cloud.prod.id\n project = \"backend\"\n config = \"prd\"\n sync_target = \"workspace\"\n workspace_id = data.tfe_workspace.prod.id\n variable_sync_type = \"terraform\"\n name_transform = \"lowercase\"\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tfe.TfeFunctions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var prod = TfeFunctions.Workspace(Map.ofEntries(\n Map.entry(\"name\", \"my-workspace-name\"),\n Map.entry(\"organization\", \"my-org-name\")\n ));\n\n var prodTerraformCloud = new com.pulumi.doppler.integration.TerraformCloud(\"prodTerraformCloud\", com.pulumi.doppler.integration.TerraformCloudArgs.builder()\n .name(\"Production\")\n .apiKey(\"my_api_key\")\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.TerraformCloud(\"backendProd\", com.pulumi.doppler.secretsSync.TerraformCloudArgs.builder()\n .integration(prodTerraformCloud.id())\n .project(\"backend\")\n .config(\"prd\")\n .syncTarget(\"workspace\")\n .workspaceId(prod.get(\"id\"))\n .variableSyncType(\"terraform\")\n .nameTransform(\"lowercase\")\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prodTerraformCloud:\n type: doppler:integration:TerraformCloud\n name: prod\n properties:\n name: Production\n apiKey: my_api_key\n backendProd:\n type: doppler:secretsSync:TerraformCloud\n name: backend_prod\n properties:\n integration: ${prodTerraformCloud.id}\n project: backend\n config: prd\n syncTarget: workspace\n workspaceId: ${prod.id}\n variableSyncType: terraform\n nameTransform: lowercase\n deleteBehavior: leave_in_target\nvariables:\n prod:\n fn::invoke:\n function: tfe:Workspace\n arguments:\n name: my-workspace-name\n organization: my-org-name\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "apiKey": { + "type": "string", + "description": "A Terraform Cloud API key.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "apiKey", + "name" + ], + "inputProperties": { + "apiKey": { + "type": "string", + "description": "A Terraform Cloud API key.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "apiKey", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering TerraformCloud resources.\n", + "properties": { + "apiKey": { + "type": "string", + "description": "A Terraform Cloud API key.\n", + "secret": true + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:integration/twilio:Twilio": { + "description": "Manage a Twilio Doppler integration.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst iTwilio = new doppler.integration.Twilio(\"i_twilio\", {\n name: \"TF Twilio\",\n accountSid: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n keySid: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n keySecret: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst rsTwilio = new doppler.rotatedsecret.Twilio(\"rs_twilio\", {\n integration: iTwilio.id,\n project: \"backend\",\n config: \"dev\",\n name: \"TWILIO\",\n rotationPeriodSec: 2592000,\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\ni_twilio = doppler.integration.Twilio(\"i_twilio\",\n name=\"TF Twilio\",\n account_sid=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n key_sid=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n key_secret=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nrs_twilio = doppler.rotatedsecret.Twilio(\"rs_twilio\",\n integration=i_twilio.id,\n project=\"backend\",\n config=\"dev\",\n name=\"TWILIO\",\n rotation_period_sec=2592000)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var iTwilio = new Doppler.Integration.Twilio(\"i_twilio\", new()\n {\n Name = \"TF Twilio\",\n AccountSid = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n KeySid = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n KeySecret = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var rsTwilio = new Doppler.RotatedSecret.Twilio(\"rs_twilio\", new()\n {\n Integration = iTwilio.Id,\n Project = \"backend\",\n Config = \"dev\",\n Name = \"TWILIO\",\n RotationPeriodSec = 2592000,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tiTwilio, err := integration.NewTwilio(ctx, \"i_twilio\", \u0026integration.TwilioArgs{\n\t\t\tName: pulumi.String(\"TF Twilio\"),\n\t\t\tAccountSid: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t\tKeySid: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t\tKeySecret: pulumi.String(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rotatedsecret.NewTwilio(ctx, \"rs_twilio\", \u0026rotatedsecret.TwilioArgs{\n\t\t\tIntegration: iTwilio.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"dev\"),\n\t\t\tName: pulumi.String(\"TWILIO\"),\n\t\t\tRotationPeriodSec: pulumi.Int(2592000),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_twilio\" \"i_twilio\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF Twilio\"\n account_sid = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n key_sid = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n key_secret = \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_rotated_secret_twilio\" \"rs_twilio\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_twilio.i_twilio.id\n project = \"backend\"\n config = \"dev\"\n name = \"TWILIO\"\n rotation_period_sec = 2592000\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var iTwilio = new com.pulumi.doppler.integration.Twilio(\"iTwilio\", com.pulumi.doppler.integration.TwilioArgs.builder()\n .name(\"TF Twilio\")\n .accountSid(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .keySid(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .keySecret(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var rsTwilio = new com.pulumi.doppler.rotatedSecret.Twilio(\"rsTwilio\", com.pulumi.doppler.rotatedSecret.TwilioArgs.builder()\n .integration(iTwilio.id())\n .project(\"backend\")\n .config(\"dev\")\n .name(\"TWILIO\")\n .rotationPeriodSec(2592000)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n iTwilio:\n type: doppler:integration:Twilio\n name: i_twilio\n properties:\n name: TF Twilio\n accountSid: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n keySid: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n keySecret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n rsTwilio:\n type: doppler:rotatedSecret:Twilio\n name: rs_twilio\n properties:\n integration: ${iTwilio.id}\n project: backend\n config: dev\n name: TWILIO\n rotationPeriodSec: 2.592e+06\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "accountSid": { + "type": "string", + "description": "The Account SID\n" + }, + "keySecret": { + "type": "string", + "description": "The Key Secret\n", + "secret": true + }, + "keySid": { + "type": "string", + "description": "The Key SID (cannot equal accountSID)\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "required": [ + "accountSid", + "keySecret", + "keySid", + "name" + ], + "inputProperties": { + "accountSid": { + "type": "string", + "description": "The Account SID\n" + }, + "keySecret": { + "type": "string", + "description": "The Key Secret\n", + "secret": true + }, + "keySid": { + "type": "string", + "description": "The Key SID (cannot equal accountSID)\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "requiredInputs": [ + "accountSid", + "keySecret", + "keySid", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Twilio resources.\n", + "properties": { + "accountSid": { + "type": "string", + "description": "The Account SID\n" + }, + "keySecret": { + "type": "string", + "description": "The Key Secret\n", + "secret": true + }, + "keySid": { + "type": "string", + "description": "The Key SID (cannot equal accountSID)\n" + }, + "name": { + "type": "string", + "description": "The name of the integration\n" + } + }, + "type": "object" + } + }, + "doppler:projectMember/group:Group": { + "description": "Manage a Doppler project group member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backendEngineering = new doppler.projectmember.Group(\"backend_engineering\", {\n project: \"backend\",\n groupSlug: engineering.slug,\n role: \"collaborator\",\n environments: [\n \"dev\",\n \"stg\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend_engineering = doppler.projectmember.Group(\"backend_engineering\",\n project=\"backend\",\n group_slug=engineering[\"slug\"],\n role=\"collaborator\",\n environments=[\n \"dev\",\n \"stg\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendEngineering = new Doppler.ProjectMember.Group(\"backend_engineering\", new()\n {\n Project = \"backend\",\n GroupSlug = engineering.Slug,\n Role = \"collaborator\",\n Environments = new[]\n {\n \"dev\",\n \"stg\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := projectmember.NewGroup(ctx, \"backend_engineering\", \u0026projectmember.GroupArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tGroupSlug: pulumi.Any(engineering.Slug),\n\t\t\tRole: pulumi.String(\"collaborator\"),\n\t\t\tEnvironments: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"dev\"),\n\t\t\t\tpulumi.String(\"stg\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_project_member_group\" \"backend_engineering\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n group_slug = engineering.slug\n role = \"collaborator\"\n environments = [\"dev\", \"stg\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.projectMember.Group;\nimport com.pulumi.doppler.projectMember.GroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendEngineering = new Group(\"backendEngineering\", GroupArgs.builder()\n .project(\"backend\")\n .groupSlug(engineering.get(\"slug\"))\n .role(\"collaborator\")\n .environments( \n \"dev\",\n \"stg\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendEngineering:\n type: doppler:projectMember:Group\n name: backend_engineering\n properties:\n project: backend\n groupSlug: ${engineering.slug}\n role: collaborator\n environments:\n - dev\n - stg\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "groupSlug": { + "type": "string", + "description": "The slug of the Doppler group\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n" + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + } + }, + "required": [ + "groupSlug", + "project", + "role" + ], + "inputProperties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "groupSlug": { + "type": "string", + "description": "The slug of the Doppler group\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + } + }, + "requiredInputs": [ + "groupSlug", + "project", + "role" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Group resources.\n", + "properties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "groupSlug": { + "type": "string", + "description": "The slug of the Doppler group\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + } + }, + "type": "object" + } + }, + "doppler:projectMember/serviceAccount:ServiceAccount": { + "description": "Manage a Doppler project service account member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst backendCi = new doppler.projectmember.ServiceAccount(\"backend_ci\", {\n project: \"backend\",\n serviceAccountSlug: ci.slug,\n role: \"viewer\",\n environments: [\n \"dev\",\n \"stg\",\n \"prd\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbackend_ci = doppler.projectmember.ServiceAccount(\"backend_ci\",\n project=\"backend\",\n service_account_slug=ci[\"slug\"],\n role=\"viewer\",\n environments=[\n \"dev\",\n \"stg\",\n \"prd\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCi = new Doppler.ProjectMember.ServiceAccount(\"backend_ci\", new()\n {\n Project = \"backend\",\n ServiceAccountSlug = ci.Slug,\n Role = \"viewer\",\n Environments = new[]\n {\n \"dev\",\n \"stg\",\n \"prd\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := projectmember.NewServiceAccount(ctx, \"backend_ci\", \u0026projectmember.ServiceAccountArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tServiceAccountSlug: pulumi.Any(ci.Slug),\n\t\t\tRole: pulumi.String(\"viewer\"),\n\t\t\tEnvironments: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"dev\"),\n\t\t\t\tpulumi.String(\"stg\"),\n\t\t\t\tpulumi.String(\"prd\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_project_member_service_account\" \"backend_ci\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n service_account_slug = ci.slug\n role = \"viewer\"\n environments = [\"dev\", \"stg\", \"prd\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.projectMember.ServiceAccount;\nimport com.pulumi.doppler.projectMember.ServiceAccountArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCi = new ServiceAccount(\"backendCi\", ServiceAccountArgs.builder()\n .project(\"backend\")\n .serviceAccountSlug(ci.get(\"slug\"))\n .role(\"viewer\")\n .environments( \n \"dev\",\n \"stg\",\n \"prd\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCi:\n type: doppler:projectMember:ServiceAccount\n name: backend_ci\n properties:\n project: backend\n serviceAccountSlug: ${ci.slug}\n role: viewer\n environments:\n - dev\n - stg\n - prd\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n" + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "The slug of the Doppler service account\n" + } + }, + "required": [ + "project", + "role", + "serviceAccountSlug" + ], + "inputProperties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "The slug of the Doppler service account\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "project", + "role", + "serviceAccountSlug" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ServiceAccount resources.\n", + "properties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + }, + "serviceAccountSlug": { + "type": "string", + "description": "The slug of the Doppler service account\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:projectMember/user:User": { + "description": "Manage a Doppler project user member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst brian = doppler.getUser({\n email: \"brian@doppler.com\",\n});\nconst backendBrian = new doppler.projectmember.User(\"backend_brian\", {\n project: \"backend\",\n userSlug: brian.then(brian =\u003e brian.slug),\n role: \"collaborator\",\n environments: [\n \"dev\",\n \"stg\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nbrian = doppler.get_user(email=\"brian@doppler.com\")\nbackend_brian = doppler.projectmember.User(\"backend_brian\",\n project=\"backend\",\n user_slug=brian.slug,\n role=\"collaborator\",\n environments=[\n \"dev\",\n \"stg\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var brian = Doppler.GetUser.Invoke(new()\n {\n Email = \"brian@doppler.com\",\n });\n\n var backendBrian = new Doppler.ProjectMember.User(\"backend_brian\", new()\n {\n Project = \"backend\",\n UserSlug = brian.Apply(getUserResult =\u003e getUserResult.Slug),\n Role = \"collaborator\",\n Environments = new[]\n {\n \"dev\",\n \"stg\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbrian, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"brian@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = projectmember.NewUser(ctx, \"backend_brian\", \u0026projectmember.UserArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tUserSlug: pulumi.String(brian.Slug),\n\t\t\tRole: pulumi.String(\"collaborator\"),\n\t\t\tEnvironments: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"dev\"),\n\t\t\t\tpulumi.String(\"stg\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_user\" \"brian\" {\n email = \"brian@doppler.com\"\n}\n\nresource \"doppler_project_member_user\" \"backend_brian\" {\n lifecycle {\n create_before_destroy = true\n }\n project = \"backend\"\n user_slug = data.doppler_user.brian.slug\n role = \"collaborator\"\n environments = [\"dev\", \"stg\"]\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.DopplerFunctions;\nimport com.pulumi.doppler.inputs.GetUserArgs;\nimport com.pulumi.doppler.projectMember.User;\nimport com.pulumi.doppler.projectMember.UserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var brian = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"brian@doppler.com\")\n .build());\n\n var backendBrian = new User(\"backendBrian\", UserArgs.builder()\n .project(\"backend\")\n .userSlug(brian.slug())\n .role(\"collaborator\")\n .environments( \n \"dev\",\n \"stg\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendBrian:\n type: doppler:projectMember:User\n name: backend_brian\n properties:\n project: backend\n userSlug: ${brian.slug}\n role: collaborator\n environments:\n - dev\n - stg\nvariables:\n brian:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: brian@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n" + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + }, + "userSlug": { + "type": "string", + "description": "The slug of the Doppler workplace user\n" + } + }, + "required": [ + "project", + "role", + "userSlug" + ], + "inputProperties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + }, + "userSlug": { + "type": "string", + "description": "The slug of the Doppler workplace user\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "project", + "role", + "userSlug" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering User resources.\n", + "properties": { + "environments": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project where the access is applied\n", + "willReplaceOnChanges": true + }, + "role": { + "type": "string", + "description": "The project role identifier for the access. Must use either one of the built-in project role slugs (\u003cspan pulumi-lang-nodejs=\"`admin`\" pulumi-lang-dotnet=\"`Admin`\" pulumi-lang-go=\"`admin`\" pulumi-lang-python=\"`admin`\" pulumi-lang-yaml=\"`admin`\" pulumi-lang-java=\"`admin`\" pulumi-lang-hcl=\"`admin`\"\u003e`admin`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`owner`\" pulumi-lang-dotnet=\"`Owner`\" pulumi-lang-go=\"`owner`\" pulumi-lang-python=\"`owner`\" pulumi-lang-yaml=\"`owner`\" pulumi-lang-java=\"`owner`\" pulumi-lang-hcl=\"`owner`\"\u003e`owner`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`collaborator`\" pulumi-lang-dotnet=\"`Collaborator`\" pulumi-lang-go=\"`collaborator`\" pulumi-lang-python=\"`collaborator`\" pulumi-lang-yaml=\"`collaborator`\" pulumi-lang-java=\"`collaborator`\" pulumi-lang-hcl=\"`collaborator`\"\u003e`collaborator`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`noAccess`\" pulumi-lang-dotnet=\"`NoAccess`\" pulumi-lang-go=\"`noAccess`\" pulumi-lang-python=\"`no_access`\" pulumi-lang-yaml=\"`noAccess`\" pulumi-lang-java=\"`noAccess`\" pulumi-lang-hcl=\"`no_access`\"\u003e`noAccess`\u003c/span\u003e), or the slug for a custom project role.\n" + }, + "userSlug": { + "type": "string", + "description": "The slug of the Doppler workplace user\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "username": { + "type": "string", + "description": "The IAM username (excluding ARN and scope prefix)\n" + } + }, + "required": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec", + "username" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "username": { + "type": "string", + "description": "The IAM username (excluding ARN and scope prefix)\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec", + "username" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsIamUserKeys resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "username": { + "type": "string", + "description": "The IAM username (excluding ARN and scope prefix)\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/awsMssql:AwsMssql": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsMssqlCredential:AwsMssqlCredential" + }, + "description": "Rotated secret credentials\n" + }, + "database": { + "type": "string", + "description": "The DB database\n" + }, + "host": { + "type": "string", + "description": "The DB Host\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "credentials", + "database", + "host", + "integration", + "name", + "port", + "project", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsMssqlCredential:AwsMssqlCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "database": { + "type": "string", + "description": "The DB database\n", + "willReplaceOnChanges": true + }, + "host": { + "type": "string", + "description": "The DB Host\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "credentials", + "database", + "host", + "integration", + "name", + "port", + "project", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsMssql resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsMssqlCredential:AwsMssqlCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "database": { + "type": "string", + "description": "The DB database\n", + "willReplaceOnChanges": true + }, + "host": { + "type": "string", + "description": "The DB Host\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/awsMysql:AwsMysql": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsMysqlCredential:AwsMysqlCredential" + }, + "description": "Rotated secret credentials\n" + }, + "database": { + "type": "string", + "description": "The DB database\n" + }, + "host": { + "type": "string", + "description": "The DB Host\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "managingUserPassword": { + "type": "string", + "description": "The managing user password\n", + "secret": true + }, + "managingUserUsername": { + "type": "string", + "description": "The managing user username\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "credentials", + "host", + "integration", + "managingUserPassword", + "managingUserUsername", + "name", + "port", + "project", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsMysqlCredential:AwsMysqlCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "database": { + "type": "string", + "description": "The DB database\n", + "willReplaceOnChanges": true + }, + "host": { + "type": "string", + "description": "The DB Host\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "managingUserPassword": { + "type": "string", + "description": "The managing user password\n", + "secret": true, + "willReplaceOnChanges": true + }, + "managingUserUsername": { + "type": "string", + "description": "The managing user username\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "credentials", + "host", + "integration", + "managingUserPassword", + "managingUserUsername", + "name", + "port", + "project", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsMysql resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsMysqlCredential:AwsMysqlCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "database": { + "type": "string", + "description": "The DB database\n", + "willReplaceOnChanges": true + }, + "host": { + "type": "string", + "description": "The DB Host\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "managingUserPassword": { + "type": "string", + "description": "The managing user password\n", + "secret": true, + "willReplaceOnChanges": true + }, + "managingUserUsername": { + "type": "string", + "description": "The managing user username\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/awsPostgres:AwsPostgres": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsPostgresCredential:AwsPostgresCredential" + }, + "description": "Rotated secret credentials\n" + }, + "database": { + "type": "string", + "description": "The DB database\n" + }, + "host": { + "type": "string", + "description": "The DB Host\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "managingUserPassword": { + "type": "string", + "description": "The managing user password\n", + "secret": true + }, + "managingUserUsername": { + "type": "string", + "description": "The managing user username\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "sslCa": { + "type": "string", + "description": "An optional SSL CA for the AWS region the DB is in\n" + } + }, + "required": [ + "config", + "credentials", + "database", + "host", + "integration", + "managingUserPassword", + "managingUserUsername", + "name", + "port", + "project", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsPostgresCredential:AwsPostgresCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "database": { + "type": "string", + "description": "The DB database\n", + "willReplaceOnChanges": true + }, + "host": { + "type": "string", + "description": "The DB Host\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "managingUserPassword": { + "type": "string", + "description": "The managing user password\n", + "secret": true, + "willReplaceOnChanges": true + }, + "managingUserUsername": { + "type": "string", + "description": "The managing user username\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "sslCa": { + "type": "string", + "description": "An optional SSL CA for the AWS region the DB is in\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "config", + "credentials", + "database", + "host", + "integration", + "managingUserPassword", + "managingUserUsername", + "name", + "port", + "project", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsPostgres resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/AwsPostgresCredential:AwsPostgresCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "database": { + "type": "string", + "description": "The DB database\n", + "willReplaceOnChanges": true + }, + "host": { + "type": "string", + "description": "The DB Host\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "managingUserPassword": { + "type": "string", + "description": "The managing user password\n", + "secret": true, + "willReplaceOnChanges": true + }, + "managingUserUsername": { + "type": "string", + "description": "The managing user username\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "port": { + "type": "integer", + "description": "The DB Port\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "sslCa": { + "type": "string", + "description": "An optional SSL CA for the AWS region the DB is in\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/cloudflareTokens:CloudflareTokens": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/CloudflareTokensCredential:CloudflareTokensCredential" + }, + "description": "Rotated secret credentials\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "credentials", + "integration", + "name", + "project", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/CloudflareTokensCredential:CloudflareTokensCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "credentials", + "integration", + "name", + "project", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering CloudflareTokens resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/CloudflareTokensCredential:CloudflareTokensCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/gcpCloudsql:GcpCloudsql": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/GcpCloudsqlCredential:GcpCloudsqlCredential" + }, + "description": "Rotated secret credentials\n" + }, + "databaseInstance": { + "type": "string", + "description": "Cloud SQL database instance name\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "credentials", + "databaseInstance", + "integration", + "name", + "project", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/GcpCloudsqlCredential:GcpCloudsqlCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "databaseInstance": { + "type": "string", + "description": "Cloud SQL database instance name\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "credentials", + "databaseInstance", + "integration", + "name", + "project", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpCloudsql resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/GcpCloudsqlCredential:GcpCloudsqlCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "databaseInstance": { + "type": "string", + "description": "Cloud SQL database instance name\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "serviceAccount": { + "type": "string", + "description": "The Service Account Email whose keys should be rotated\n" + } + }, + "required": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec", + "serviceAccount" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "serviceAccount": { + "type": "string", + "description": "The Service Account Email whose keys should be rotated\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec", + "serviceAccount" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering GcpServiceAccountKeys resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "serviceAccount": { + "type": "string", + "description": "The Service Account Email whose keys should be rotated\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/mongodbAtlas:MongodbAtlas": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/MongodbAtlasCredential:MongodbAtlasCredential" + }, + "description": "Rotated secret credentials\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "projectId": { + "type": "string", + "description": "The Mongo DB Atlas Project ID\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "credentials", + "integration", + "name", + "project", + "projectId", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/MongodbAtlasCredential:MongodbAtlasCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "projectId": { + "type": "string", + "description": "The Mongo DB Atlas Project ID\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "credentials", + "integration", + "name", + "project", + "projectId", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering MongodbAtlas resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "credentials": { + "type": "array", + "items": { + "$ref": "#/types/doppler:rotatedSecret/MongodbAtlasCredential:MongodbAtlasCredential" + }, + "description": "Rotated secret credentials\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "projectId": { + "type": "string", + "description": "The Mongo DB Atlas Project ID\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/openai:Openai": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "projectId": { + "type": "string", + "description": "The OpenAI project ID to create service accounts in\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "integration", + "name", + "project", + "projectId", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "projectId": { + "type": "string", + "description": "The OpenAI project ID to create service accounts in\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "integration", + "name", + "project", + "projectId", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Openai resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "projectId": { + "type": "string", + "description": "The OpenAI project ID to create service accounts in\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/sendgrid:Sendgrid": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "SendGrid scopes\n" + } + }, + "required": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec", + "scopes" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "SendGrid scopes\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec", + "scopes" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Sendgrid resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "SendGrid scopes\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:rotatedSecret/twilio:Twilio": { + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n" + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "required": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "requiredInputs": [ + "config", + "integration", + "name", + "project", + "rotationPeriodSec" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering Twilio resources.\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this rotated secret\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the rotated secret\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "rotationPeriodSec": { + "type": "integer", + "description": "How frequently to rotate the secret\n" + } + }, + "type": "object" + } + }, + "doppler:secretsSync/awsParameterStore:AwsParameterStore": { + "description": "Manage an AWS Parameter Store Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst dopplerParameterStore = new aws.index.IamRole(\"doppler_parameter_store\", {\n inlinePolicy: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n name: \"doppler_parameter_store\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n});\nconst prod = new doppler.integration.AwsParameterStore(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerParameterStore.arn,\n});\nconst backendProd = new doppler.secretssync.AwsParameterStore(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n secureString: true,\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumi_doppler as doppler\n\ndoppler_parameter_store = aws.IamRole(\"doppler_parameter_store\",\n inline_policy=[{\n name: doppler_secret_manager,\n policy: json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Action: [\n ssm:PutParameter,\n ssm:LabelParameterVersion,\n ssm:DeleteParameter,\n ssm:RemoveTagsFromResource,\n ssm:GetParameterHistory,\n ssm:AddTagsToResource,\n ssm:GetParametersByPath,\n ssm:GetParameters,\n ssm:GetParameter,\n ssm:DeleteParameters,\n ],\n Effect: Allow,\n Resource: *,\n }],\n }),\n }],\n name=doppler_parameter_store,\n assume_role_policy=json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Effect: Allow,\n Action: sts:AssumeRole,\n Principal: {\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator,\n },\n Condition: {\n StringEquals: {\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e,\n },\n },\n }],\n }))\nprod = doppler.integration.AwsParameterStore(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_parameter_store[\"arn\"])\nbackend_prod = doppler.secretssync.AwsParameterStore(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n secure_string=True,\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerParameterStore = new Aws.IamRole(\"doppler_parameter_store\", new()\n {\n InlinePolicy = new[]\n {\n \n {\n { \"name\", \"doppler_secret_manager\" },\n { \"policy\", JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }) },\n },\n },\n Name = \"doppler_parameter_store\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n });\n\n var prod = new Doppler.Integration.AwsParameterStore(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerParameterStore.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsParameterStore(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n SecureString = true,\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v7/go/aws\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\nfunc main() {\npulumi.Run(func(ctx *pulumi.Context) error {\ndopplerParameterStore, err := aws.NewIamRole(ctx, \"doppler_parameter_store\", \u0026aws.IamRoleArgs{\nInlinePolicy: []map[string]string{\n{\n\"name\": \"doppler_secret_manager\",\n\"policy\": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n},\n},\nName: \"doppler_parameter_store\",\nAssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n})\nif err != nil {\nreturn err\n}\nprod, err := integration.NewAwsParameterStore(ctx, \"prod\", \u0026integration.AwsParameterStoreArgs{\nName: pulumi.String(\"Production\"),\nAssumeRoleArn: dopplerParameterStore.Arn,\n})\nif err != nil {\nreturn err\n}\n_, err = secretssync.NewAwsParameterStore(ctx, \"backend_prod\", \u0026secretssync.AwsParameterStoreArgs{\nIntegration: prod.ID(),\nProject: pulumi.String(\"backend\"),\nConfig: pulumi.String(\"prd\"),\nRegion: pulumi.String(\"us-east-1\"),\nPath: pulumi.String(\"/backend/\"),\nSecureString: pulumi.Bool(true),\nTags: pulumi.StringMap{\n\"myTag\": pulumi.String(\"enabled\"),\n},\nDeleteBehavior: pulumi.String(\"leave_in_target\"),\n})\nif err != nil {\nreturn err\n}\nreturn nil\n})\n}\n```\n```hcl\nterraform {\n required_providers {\n aws = {\n source = \"pulumi/aws\"\n }\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"aws_iam_role\" \"doppler_parameter_store\" {\n lifecycle {\n create_before_destroy = true\n }\n inline_policy = [{\n \"name\" = \"doppler_secret_manager\"\n \"policy\" = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Action\" = [\"ssm:PutParameter\", \"ssm:LabelParameterVersion\", \"ssm:DeleteParameter\", \"ssm:RemoveTagsFromResource\", \"ssm:GetParameterHistory\", \"ssm:AddTagsToResource\", \"ssm:GetParametersByPath\", \"ssm:GetParameters\", \"ssm:GetParameter\", \"ssm:DeleteParameters\"]\n \"Effect\" = \"Allow\"\n \"Resource\" = \"*\"\n }]\n })\n }]\n name = \"doppler_parameter_store\"\n assume_role_policy = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Effect\" = \"Allow\"\n \"Action\" = \"sts:AssumeRole\"\n \"Principal\" = {\n \"AWS\" = \"arn:aws:iam::299900769157:user/doppler-integration-operator\"\n }\n \"Condition\" = {\n \"StringEquals\" = {\n \"sts:ExternalId\" = \"\u003cYOUR_WORKPLACE_SLUG\u003e\"\n }\n }\n }]\n })\n}\nresource \"doppler_integration_aws_parameter_store\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n assume_role_arn = aws_iam_role.doppler_parameter_store.arn\n}\nresource \"doppler_secrets_sync_aws_parameter_store\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_aws_parameter_store.prod.id\n project = \"backend\"\n config = \"prd\"\n region = \"us-east-1\"\n path = \"/backend/\"\n secure_string = true\n tags = {\n \"myTag\" = \"enabled\"\n }\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.IamRole;\nimport com.pulumi.aws.IamRoleArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerParameterStore = new IamRole(\"dopplerParameterStore\", IamRoleArgs.builder()\n .inlinePolicy(Arrays.asList(Map.ofEntries(\n Map.entry(\"name\", \"doppler_secret_manager\"),\n Map.entry(\"policy\", serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"ssm:PutParameter\", \n \"ssm:LabelParameterVersion\", \n \"ssm:DeleteParameter\", \n \"ssm:RemoveTagsFromResource\", \n \"ssm:GetParameterHistory\", \n \"ssm:AddTagsToResource\", \n \"ssm:GetParametersByPath\", \n \"ssm:GetParameters\", \n \"ssm:GetParameter\", \n \"ssm:DeleteParameters\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n )))\n .name(\"doppler_parameter_store\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .build());\n\n var prod = new com.pulumi.doppler.integration.AwsParameterStore(\"prod\", com.pulumi.doppler.integration.AwsParameterStoreArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerParameterStore.get(\"arn\"))\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.AwsParameterStore(\"backendProd\", com.pulumi.doppler.secretsSync.AwsParameterStoreArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .secureString(true)\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerParameterStore:\n type: aws:IamRole\n name: doppler_parameter_store\n properties:\n inlinePolicy:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - ssm:PutParameter\n - ssm:LabelParameterVersion\n - ssm:DeleteParameter\n - ssm:RemoveTagsFromResource\n - ssm:GetParameterHistory\n - ssm:AddTagsToResource\n - ssm:GetParametersByPath\n - ssm:GetParameters\n - ssm:GetParameter\n - ssm:DeleteParameters\n Effect: Allow\n Resource: '*'\n name: doppler_parameter_store\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n prod:\n type: doppler:integration:AwsParameterStore\n properties:\n name: Production\n assumeRoleArn: ${dopplerParameterStore.arn}\n backendProd:\n type: doppler:secretsSync:AwsParameterStore\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n secureString: true\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "advancedParameter": { + "type": "boolean", + "description": "Whether or not the parameters are explicitly stored as an advanced parameter\n" + }, + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n" + }, + "kmsKeyId": { + "type": "string", + "description": "The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN)\n" + }, + "nameTransform": { + "type": "string", + "description": "An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab\n" + }, + "path": { + "type": "string", + "description": "The path to the parameters in AWS\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "region": { + "type": "string", + "description": "The AWS region\n" + }, + "secureString": { + "type": "boolean", + "description": "Whether or not the parameters are stored as a secure string\n" + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "AWS tags to attach to the parameters\n" + }, + "updateResourceTags": { + "type": "string", + "description": "Behavior for AWS resource tags on updates (\u003cspan pulumi-lang-nodejs=\"`never`\" pulumi-lang-dotnet=\"`Never`\" pulumi-lang-go=\"`never`\" pulumi-lang-python=\"`never`\" pulumi-lang-yaml=\"`never`\" pulumi-lang-java=\"`never`\" pulumi-lang-hcl=\"`never`\"\u003e`never`\u003c/span\u003e update, \u003cspan pulumi-lang-nodejs=\"`upsert`\" pulumi-lang-dotnet=\"`Upsert`\" pulumi-lang-go=\"`upsert`\" pulumi-lang-python=\"`upsert`\" pulumi-lang-yaml=\"`upsert`\" pulumi-lang-java=\"`upsert`\" pulumi-lang-hcl=\"`upsert`\"\u003e`upsert`\u003c/span\u003e tags (leaving non-Doppler tags alone), \u003cspan pulumi-lang-nodejs=\"`replace`\" pulumi-lang-dotnet=\"`Replace`\" pulumi-lang-go=\"`replace`\" pulumi-lang-python=\"`replace`\" pulumi-lang-yaml=\"`replace`\" pulumi-lang-java=\"`replace`\" pulumi-lang-hcl=\"`replace`\"\u003e`replace`\u003c/span\u003e tags (remove non-Doppler tags))\n" + } + }, + "required": [ + "config", + "integration", + "path", + "project", + "region" + ], + "inputProperties": { + "advancedParameter": { + "type": "boolean", + "description": "Whether or not the parameters are explicitly stored as an advanced parameter\n", + "willReplaceOnChanges": true + }, + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "kmsKeyId": { + "type": "string", + "description": "The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN)\n", + "willReplaceOnChanges": true + }, + "nameTransform": { + "type": "string", + "description": "An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab\n", + "willReplaceOnChanges": true + }, + "path": { + "type": "string", + "description": "The path to the parameters in AWS\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "region": { + "type": "string", + "description": "The AWS region\n", + "willReplaceOnChanges": true + }, + "secureString": { + "type": "boolean", + "description": "Whether or not the parameters are stored as a secure string\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "AWS tags to attach to the parameters\n", + "willReplaceOnChanges": true + }, + "updateResourceTags": { + "type": "string", + "description": "Behavior for AWS resource tags on updates (\u003cspan pulumi-lang-nodejs=\"`never`\" pulumi-lang-dotnet=\"`Never`\" pulumi-lang-go=\"`never`\" pulumi-lang-python=\"`never`\" pulumi-lang-yaml=\"`never`\" pulumi-lang-java=\"`never`\" pulumi-lang-hcl=\"`never`\"\u003e`never`\u003c/span\u003e update, \u003cspan pulumi-lang-nodejs=\"`upsert`\" pulumi-lang-dotnet=\"`Upsert`\" pulumi-lang-go=\"`upsert`\" pulumi-lang-python=\"`upsert`\" pulumi-lang-yaml=\"`upsert`\" pulumi-lang-java=\"`upsert`\" pulumi-lang-hcl=\"`upsert`\"\u003e`upsert`\u003c/span\u003e tags (leaving non-Doppler tags alone), \u003cspan pulumi-lang-nodejs=\"`replace`\" pulumi-lang-dotnet=\"`Replace`\" pulumi-lang-go=\"`replace`\" pulumi-lang-python=\"`replace`\" pulumi-lang-yaml=\"`replace`\" pulumi-lang-java=\"`replace`\" pulumi-lang-hcl=\"`replace`\"\u003e`replace`\u003c/span\u003e tags (remove non-Doppler tags))\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "config", + "integration", + "path", + "project", + "region" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AwsParameterStore resources.\n", + "properties": { + "advancedParameter": { + "type": "boolean", + "description": "Whether or not the parameters are explicitly stored as an advanced parameter\n", + "willReplaceOnChanges": true + }, + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "kmsKeyId": { + "type": "string", + "description": "The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN)\n", + "willReplaceOnChanges": true + }, + "nameTransform": { + "type": "string", + "description": "An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab\n", + "willReplaceOnChanges": true + }, + "path": { + "type": "string", + "description": "The path to the parameters in AWS\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "region": { + "type": "string", + "description": "The AWS region\n", + "willReplaceOnChanges": true + }, + "secureString": { + "type": "boolean", + "description": "Whether or not the parameters are stored as a secure string\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "AWS tags to attach to the parameters\n", + "willReplaceOnChanges": true + }, + "updateResourceTags": { + "type": "string", + "description": "Behavior for AWS resource tags on updates (\u003cspan pulumi-lang-nodejs=\"`never`\" pulumi-lang-dotnet=\"`Never`\" pulumi-lang-go=\"`never`\" pulumi-lang-python=\"`never`\" pulumi-lang-yaml=\"`never`\" pulumi-lang-java=\"`never`\" pulumi-lang-hcl=\"`never`\"\u003e`never`\u003c/span\u003e update, \u003cspan pulumi-lang-nodejs=\"`upsert`\" pulumi-lang-dotnet=\"`Upsert`\" pulumi-lang-go=\"`upsert`\" pulumi-lang-python=\"`upsert`\" pulumi-lang-yaml=\"`upsert`\" pulumi-lang-java=\"`upsert`\" pulumi-lang-hcl=\"`upsert`\"\u003e`upsert`\u003c/span\u003e tags (leaving non-Doppler tags alone), \u003cspan pulumi-lang-nodejs=\"`replace`\" pulumi-lang-dotnet=\"`Replace`\" pulumi-lang-go=\"`replace`\" pulumi-lang-python=\"`replace`\" pulumi-lang-yaml=\"`replace`\" pulumi-lang-java=\"`replace`\" pulumi-lang-hcl=\"`replace`\"\u003e`replace`\u003c/span\u003e tags (remove non-Doppler tags))\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "doppler:secretsSync/awsSecretsManager:AwsSecretsManager": { + "description": "Manage an AWS Secrets Manager Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst dopplerSecretsManager = new aws.index.IamRole(\"doppler_secrets_manager\", {\n inlinePolicy: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n name: \"doppler_secrets_manager\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n});\nconst prod = new doppler.integration.AwsSecretsManager(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerSecretsManager.arn,\n});\nconst backendProd = new doppler.secretssync.AwsSecretsManager(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumi_doppler as doppler\n\ndoppler_secrets_manager = aws.IamRole(\"doppler_secrets_manager\",\n inline_policy=[{\n name: doppler_secret_manager,\n policy: json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Action: [\n secretsmanager:GetSecretValue,\n secretsmanager:DescribeSecret,\n secretsmanager:PutSecretValue,\n secretsmanager:CreateSecret,\n secretsmanager:DeleteSecret,\n secretsmanager:TagResource,\n secretsmanager:UpdateSecret,\n ],\n Effect: Allow,\n Resource: *,\n }],\n }),\n }],\n name=doppler_secrets_manager,\n assume_role_policy=json.dumps({\n Version: 2012-10-17,\n Statement: [{\n Effect: Allow,\n Action: sts:AssumeRole,\n Principal: {\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator,\n },\n Condition: {\n StringEquals: {\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e,\n },\n },\n }],\n }))\nprod = doppler.integration.AwsSecretsManager(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_secrets_manager[\"arn\"])\nbackend_prod = doppler.secretssync.AwsSecretsManager(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerSecretsManager = new Aws.IamRole(\"doppler_secrets_manager\", new()\n {\n InlinePolicy = new[]\n {\n \n {\n { \"name\", \"doppler_secret_manager\" },\n { \"policy\", JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }) },\n },\n },\n Name = \"doppler_secrets_manager\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n });\n\n var prod = new Doppler.Integration.AwsSecretsManager(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerSecretsManager.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsSecretsManager(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v7/go/aws\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\nfunc main() {\npulumi.Run(func(ctx *pulumi.Context) error {\ndopplerSecretsManager, err := aws.NewIamRole(ctx, \"doppler_secrets_manager\", \u0026aws.IamRoleArgs{\nInlinePolicy: []map[string]string{\n{\n\"name\": \"doppler_secret_manager\",\n\"policy\": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n},\n},\nName: \"doppler_secrets_manager\",\nAssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),\n})\nif err != nil {\nreturn err\n}\nprod, err := integration.NewAwsSecretsManager(ctx, \"prod\", \u0026integration.AwsSecretsManagerArgs{\nName: pulumi.String(\"Production\"),\nAssumeRoleArn: dopplerSecretsManager.Arn,\n})\nif err != nil {\nreturn err\n}\n_, err = secretssync.NewAwsSecretsManager(ctx, \"backend_prod\", \u0026secretssync.AwsSecretsManagerArgs{\nIntegration: prod.ID(),\nProject: pulumi.String(\"backend\"),\nConfig: pulumi.String(\"prd\"),\nRegion: pulumi.String(\"us-east-1\"),\nPath: pulumi.String(\"/backend/\"),\nTags: pulumi.StringMap{\n\"myTag\": pulumi.String(\"enabled\"),\n},\nDeleteBehavior: pulumi.String(\"leave_in_target\"),\n})\nif err != nil {\nreturn err\n}\nreturn nil\n})\n}\n```\n```hcl\nterraform {\n required_providers {\n aws = {\n source = \"pulumi/aws\"\n }\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"aws_iam_role\" \"doppler_secrets_manager\" {\n lifecycle {\n create_before_destroy = true\n }\n inline_policy = [{\n \"name\" = \"doppler_secret_manager\"\n \"policy\" = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Action\" = [\"secretsmanager:GetSecretValue\", \"secretsmanager:DescribeSecret\", \"secretsmanager:PutSecretValue\", \"secretsmanager:CreateSecret\", \"secretsmanager:DeleteSecret\", \"secretsmanager:TagResource\", \"secretsmanager:UpdateSecret\"]\n \"Effect\" = \"Allow\"\n \"Resource\" = \"*\"\n }]\n })\n }]\n name = \"doppler_secrets_manager\"\n assume_role_policy = jsonencode({\n \"Version\" = \"2012-10-17\"\n \"Statement\" = [{\n \"Effect\" = \"Allow\"\n \"Action\" = \"sts:AssumeRole\"\n \"Principal\" = {\n \"AWS\" = \"arn:aws:iam::299900769157:user/doppler-integration-operator\"\n }\n \"Condition\" = {\n \"StringEquals\" = {\n \"sts:ExternalId\" = \"\u003cYOUR_WORKPLACE_SLUG\u003e\"\n }\n }\n }]\n })\n}\nresource \"doppler_integration_aws_secrets_manager\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n assume_role_arn = aws_iam_role.doppler_secrets_manager.arn\n}\nresource \"doppler_secrets_sync_aws_secrets_manager\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_aws_secrets_manager.prod.id\n project = \"backend\"\n config = \"prd\"\n region = \"us-east-1\"\n path = \"/backend/\"\n tags = {\n \"myTag\" = \"enabled\"\n }\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.IamRole;\nimport com.pulumi.aws.IamRoleArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerSecretsManager = new IamRole(\"dopplerSecretsManager\", IamRoleArgs.builder()\n .inlinePolicy(Arrays.asList(Map.ofEntries(\n Map.entry(\"name\", \"doppler_secret_manager\"),\n Map.entry(\"policy\", serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"secretsmanager:GetSecretValue\", \n \"secretsmanager:DescribeSecret\", \n \"secretsmanager:PutSecretValue\", \n \"secretsmanager:CreateSecret\", \n \"secretsmanager:DeleteSecret\", \n \"secretsmanager:TagResource\", \n \"secretsmanager:UpdateSecret\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n )))\n .name(\"doppler_secrets_manager\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .build());\n\n var prod = new com.pulumi.doppler.integration.AwsSecretsManager(\"prod\", com.pulumi.doppler.integration.AwsSecretsManagerArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerSecretsManager.get(\"arn\"))\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.AwsSecretsManager(\"backendProd\", com.pulumi.doppler.secretsSync.AwsSecretsManagerArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerSecretsManager:\n type: aws:IamRole\n name: doppler_secrets_manager\n properties:\n inlinePolicy:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - secretsmanager:GetSecretValue\n - secretsmanager:DescribeSecret\n - secretsmanager:PutSecretValue\n - secretsmanager:CreateSecret\n - secretsmanager:DeleteSecret\n - secretsmanager:TagResource\n - secretsmanager:UpdateSecret\n Effect: Allow\n Resource: '*'\n name: doppler_secrets_manager\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n prod:\n type: doppler:integration:AwsSecretsManager\n properties:\n name: Production\n assumeRoleArn: ${dopplerSecretsManager.arn}\n backendProd:\n type: doppler:secretsSync:AwsSecretsManager\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "properties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n" + }, + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n" + }, + "kmsKeyId": { + "type": "string", + "description": "The AWS KMS key used to encrypt the secret (ID, Alias, or ARN)\n" + }, + "nameTransform": { + "type": "string", + "description": "An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab\n" + }, + "path": { + "type": "string", + "description": "The path to the secret in AWS\n" + }, + "pathBehavior": { + "type": "string", + "description": "The behavior to modify the provided path. Either \u003cspan pulumi-lang-nodejs=\"`addDopplerSuffix`\" pulumi-lang-dotnet=\"`AddDopplerSuffix`\" pulumi-lang-go=\"`addDopplerSuffix`\" pulumi-lang-python=\"`add_doppler_suffix`\" pulumi-lang-yaml=\"`addDopplerSuffix`\" pulumi-lang-java=\"`addDopplerSuffix`\" pulumi-lang-hcl=\"`add_doppler_suffix`\"\u003e`addDopplerSuffix`\u003c/span\u003e (default) which appends \u003cspan pulumi-lang-nodejs=\"`doppler`\" pulumi-lang-dotnet=\"`Doppler`\" pulumi-lang-go=\"`doppler`\" pulumi-lang-python=\"`doppler`\" pulumi-lang-yaml=\"`doppler`\" pulumi-lang-java=\"`doppler`\" pulumi-lang-hcl=\"`doppler`\"\u003e`doppler`\u003c/span\u003e to the provided path or \u003cspan pulumi-lang-nodejs=\"`none`\" pulumi-lang-dotnet=\"`None`\" pulumi-lang-go=\"`none`\" pulumi-lang-python=\"`none`\" pulumi-lang-yaml=\"`none`\" pulumi-lang-java=\"`none`\" pulumi-lang-hcl=\"`none`\"\u003e`none`\u003c/span\u003e which leaves the path unchanged.\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "region": { + "type": "string", + "description": "The AWS region\n" + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "AWS tags to attach to the secrets\n" + }, + "updateMetadata": { + "type": "boolean", + "description": "If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets.\n" + }, + "updateResourceTags": { + "type": "string", + "description": "Behavior for AWS resource tags on updates (\u003cspan pulumi-lang-nodejs=\"`never`\" pulumi-lang-dotnet=\"`Never`\" pulumi-lang-go=\"`never`\" pulumi-lang-python=\"`never`\" pulumi-lang-yaml=\"`never`\" pulumi-lang-java=\"`never`\" pulumi-lang-hcl=\"`never`\"\u003e`never`\u003c/span\u003e update, \u003cspan pulumi-lang-nodejs=\"`upsert`\" pulumi-lang-dotnet=\"`Upsert`\" pulumi-lang-go=\"`upsert`\" pulumi-lang-python=\"`upsert`\" pulumi-lang-yaml=\"`upsert`\" pulumi-lang-java=\"`upsert`\" pulumi-lang-hcl=\"`upsert`\"\u003e`upsert`\u003c/span\u003e tags (leaving non-Doppler tags alone), \u003cspan pulumi-lang-nodejs=\"`replace`\" pulumi-lang-dotnet=\"`Replace`\" pulumi-lang-go=\"`replace`\" pulumi-lang-python=\"`replace`\" pulumi-lang-yaml=\"`replace`\" pulumi-lang-java=\"`replace`\" pulumi-lang-hcl=\"`replace`\"\u003e`replace`\u003c/span\u003e tags (remove non-Doppler tags))\n" + } + }, + "required": [ + "config", + "integration", + "path", + "project", + "region" + ], + "inputProperties": { + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true + }, + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "kmsKeyId": { + "type": "string", + "description": "The AWS KMS key used to encrypt the secret (ID, Alias, or ARN)\n", + "willReplaceOnChanges": true + }, + "nameTransform": { + "type": "string", + "description": "An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab\n", + "willReplaceOnChanges": true + }, + "path": { + "type": "string", + "description": "The path to the secret in AWS\n", + "willReplaceOnChanges": true + }, + "pathBehavior": { + "type": "string", + "description": "The behavior to modify the provided path. Either \u003cspan pulumi-lang-nodejs=\"`addDopplerSuffix`\" pulumi-lang-dotnet=\"`AddDopplerSuffix`\" pulumi-lang-go=\"`addDopplerSuffix`\" pulumi-lang-python=\"`add_doppler_suffix`\" pulumi-lang-yaml=\"`addDopplerSuffix`\" pulumi-lang-java=\"`addDopplerSuffix`\" pulumi-lang-hcl=\"`add_doppler_suffix`\"\u003e`addDopplerSuffix`\u003c/span\u003e (default) which appends \u003cspan pulumi-lang-nodejs=\"`doppler`\" pulumi-lang-dotnet=\"`Doppler`\" pulumi-lang-go=\"`doppler`\" pulumi-lang-python=\"`doppler`\" pulumi-lang-yaml=\"`doppler`\" pulumi-lang-java=\"`doppler`\" pulumi-lang-hcl=\"`doppler`\"\u003e`doppler`\u003c/span\u003e to the provided path or \u003cspan pulumi-lang-nodejs=\"`none`\" pulumi-lang-dotnet=\"`None`\" pulumi-lang-go=\"`none`\" pulumi-lang-python=\"`none`\" pulumi-lang-yaml=\"`none`\" pulumi-lang-java=\"`none`\" pulumi-lang-hcl=\"`none`\"\u003e`none`\u003c/span\u003e which leaves the path unchanged.\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "region": { + "type": "string", + "description": "The AWS region\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "AWS tags to attach to the secrets\n", + "willReplaceOnChanges": true + }, + "updateMetadata": { + "type": "boolean", + "description": "If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets.\n", + "willReplaceOnChanges": true + }, + "updateResourceTags": { + "type": "string", + "description": "Behavior for AWS resource tags on updates (\u003cspan pulumi-lang-nodejs=\"`never`\" pulumi-lang-dotnet=\"`Never`\" pulumi-lang-go=\"`never`\" pulumi-lang-python=\"`never`\" pulumi-lang-yaml=\"`never`\" pulumi-lang-java=\"`never`\" pulumi-lang-hcl=\"`never`\"\u003e`never`\u003c/span\u003e update, \u003cspan pulumi-lang-nodejs=\"`upsert`\" pulumi-lang-dotnet=\"`Upsert`\" pulumi-lang-go=\"`upsert`\" pulumi-lang-python=\"`upsert`\" pulumi-lang-yaml=\"`upsert`\" pulumi-lang-java=\"`upsert`\" pulumi-lang-hcl=\"`upsert`\"\u003e`upsert`\u003c/span\u003e tags (leaving non-Doppler tags alone), \u003cspan pulumi-lang-nodejs=\"`replace`\" pulumi-lang-dotnet=\"`Replace`\" pulumi-lang-go=\"`replace`\" pulumi-lang-python=\"`replace`\" pulumi-lang-yaml=\"`replace`\" pulumi-lang-java=\"`replace`\" pulumi-lang-hcl=\"`replace`\"\u003e`replace`\u003c/span\u003e tags (remove non-Doppler tags))\n", "willReplaceOnChanges": true } }, "requiredInputs": [ - "apiKey", - "name" + "config", + "integration", + "path", + "project", + "region" ], "stateInputs": { - "description": "Input properties used for looking up and filtering Flyio resources.\n", + "description": "Input properties used for looking up and filtering AwsSecretsManager resources.\n", "properties": { - "apiKey": { + "config": { "type": "string", - "description": "A Fly.io API key.\n", - "secret": true + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true }, - "name": { + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "kmsKeyId": { + "type": "string", + "description": "The AWS KMS key used to encrypt the secret (ID, Alias, or ARN)\n", + "willReplaceOnChanges": true + }, + "nameTransform": { + "type": "string", + "description": "An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab\n", + "willReplaceOnChanges": true + }, + "path": { + "type": "string", + "description": "The path to the secret in AWS\n", + "willReplaceOnChanges": true + }, + "pathBehavior": { + "type": "string", + "description": "The behavior to modify the provided path. Either \u003cspan pulumi-lang-nodejs=\"`addDopplerSuffix`\" pulumi-lang-dotnet=\"`AddDopplerSuffix`\" pulumi-lang-go=\"`addDopplerSuffix`\" pulumi-lang-python=\"`add_doppler_suffix`\" pulumi-lang-yaml=\"`addDopplerSuffix`\" pulumi-lang-java=\"`addDopplerSuffix`\" pulumi-lang-hcl=\"`add_doppler_suffix`\"\u003e`addDopplerSuffix`\u003c/span\u003e (default) which appends \u003cspan pulumi-lang-nodejs=\"`doppler`\" pulumi-lang-dotnet=\"`Doppler`\" pulumi-lang-go=\"`doppler`\" pulumi-lang-python=\"`doppler`\" pulumi-lang-yaml=\"`doppler`\" pulumi-lang-java=\"`doppler`\" pulumi-lang-hcl=\"`doppler`\"\u003e`doppler`\u003c/span\u003e to the provided path or \u003cspan pulumi-lang-nodejs=\"`none`\" pulumi-lang-dotnet=\"`None`\" pulumi-lang-go=\"`none`\" pulumi-lang-python=\"`none`\" pulumi-lang-yaml=\"`none`\" pulumi-lang-java=\"`none`\" pulumi-lang-hcl=\"`none`\"\u003e`none`\u003c/span\u003e which leaves the path unchanged.\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "region": { + "type": "string", + "description": "The AWS region\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "AWS tags to attach to the secrets\n", + "willReplaceOnChanges": true + }, + "updateMetadata": { + "type": "boolean", + "description": "If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets.\n", + "willReplaceOnChanges": true + }, + "updateResourceTags": { "type": "string", - "description": "The name of the integration\n", + "description": "Behavior for AWS resource tags on updates (\u003cspan pulumi-lang-nodejs=\"`never`\" pulumi-lang-dotnet=\"`Never`\" pulumi-lang-go=\"`never`\" pulumi-lang-python=\"`never`\" pulumi-lang-yaml=\"`never`\" pulumi-lang-java=\"`never`\" pulumi-lang-hcl=\"`never`\"\u003e`never`\u003c/span\u003e update, \u003cspan pulumi-lang-nodejs=\"`upsert`\" pulumi-lang-dotnet=\"`Upsert`\" pulumi-lang-go=\"`upsert`\" pulumi-lang-python=\"`upsert`\" pulumi-lang-yaml=\"`upsert`\" pulumi-lang-java=\"`upsert`\" pulumi-lang-hcl=\"`upsert`\"\u003e`upsert`\u003c/span\u003e tags (leaving non-Doppler tags alone), \u003cspan pulumi-lang-nodejs=\"`replace`\" pulumi-lang-dotnet=\"`Replace`\" pulumi-lang-go=\"`replace`\" pulumi-lang-python=\"`replace`\" pulumi-lang-yaml=\"`replace`\" pulumi-lang-java=\"`replace`\" pulumi-lang-hcl=\"`replace`\"\u003e`replace`\u003c/span\u003e tags (remove non-Doppler tags))\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:integration/terraformCloud:TerraformCloud": { - "description": "## Example Usage\n\n", + "doppler:secretsSync/azureVault:AzureVault": { + "description": "Manage an Azure Vault Doppler sync.\n\n", "properties": { - "apiKey": { + "config": { "type": "string", - "secret": true + "description": "The name of the Doppler config\n" }, - "name": { + "deleteBehavior": { "type": "string", - "description": "The name of the integration\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "singleSecretName": { + "type": "string", + "description": "The name of the secret being synced to when using the \"single-secret\" sync strategy. Required when using \"single-secret\" sync strategy.\n" + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`).\n" + }, + "vaultUri": { + "type": "string", + "description": "The Azure Vault URI for the vault secrets will be synced to.\n" } }, "required": [ - "apiKey", - "name" + "config", + "integration", + "project", + "syncStrategy", + "vaultUri" ], "inputProperties": { - "apiKey": { + "config": { "type": "string", - "secret": true + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true }, - "name": { + "deleteBehavior": { "type": "string", - "description": "The name of the integration\n", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "singleSecretName": { + "type": "string", + "description": "The name of the secret being synced to when using the \"single-secret\" sync strategy. Required when using \"single-secret\" sync strategy.\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`).\n", + "willReplaceOnChanges": true + }, + "vaultUri": { + "type": "string", + "description": "The Azure Vault URI for the vault secrets will be synced to.\n", "willReplaceOnChanges": true } }, "requiredInputs": [ - "apiKey", - "name" + "config", + "integration", + "project", + "syncStrategy", + "vaultUri" ], "stateInputs": { - "description": "Input properties used for looking up and filtering TerraformCloud resources.\n", + "description": "Input properties used for looking up and filtering AzureVault resources.\n", "properties": { - "apiKey": { + "config": { "type": "string", - "secret": true + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true }, - "name": { + "deleteBehavior": { + "type": "string", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "singleSecretName": { + "type": "string", + "description": "The name of the secret being synced to when using the \"single-secret\" sync strategy. Required when using \"single-secret\" sync strategy.\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`).\n", + "willReplaceOnChanges": true + }, + "vaultUri": { "type": "string", - "description": "The name of the integration\n", + "description": "The Azure Vault URI for the vault secrets will be synced to.\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:projectMember/group:Group": { - "description": "Manage a Doppler project group member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst backendEngineering = new doppler.projectmember.Group(\"backend_engineering\", {\n project: \"backend\",\n groupSlug: engineering.slug,\n role: \"collaborator\",\n environments: [\n \"dev\",\n \"stg\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nbackend_engineering = doppler.project_member.Group(\"backend_engineering\",\n project=\"backend\",\n group_slug=engineering[\"slug\"],\n role=\"collaborator\",\n environments=[\n \"dev\",\n \"stg\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendEngineering = new Doppler.ProjectMember.Group(\"backend_engineering\", new()\n {\n Project = \"backend\",\n GroupSlug = engineering.Slug,\n Role = \"collaborator\",\n Environments = new[]\n {\n \"dev\",\n \"stg\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/projectMember\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := projectMember.NewGroup(ctx, \"backend_engineering\", \u0026projectMember.GroupArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tGroupSlug: pulumi.Any(engineering.Slug),\n\t\t\tRole: pulumi.String(\"collaborator\"),\n\t\t\tEnvironments: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"dev\"),\n\t\t\t\tpulumi.String(\"stg\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.projectMember.Group;\nimport com.pulumi.doppler.projectMember.GroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendEngineering = new Group(\"backendEngineering\", GroupArgs.builder()\n .project(\"backend\")\n .groupSlug(engineering.slug())\n .role(\"collaborator\")\n .environments( \n \"dev\",\n \"stg\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendEngineering:\n type: doppler:projectMember:Group\n name: backend_engineering\n properties:\n project: backend\n groupSlug: ${engineering.slug}\n role: collaborator\n environments:\n - dev\n - stg\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:secretsSync/circleci:Circleci": { + "description": "Manage a CircleCI Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.Circleci(\"prod\", {\n name: \"Production\",\n apiToken: \"my_api_token\",\n});\nconst backendProd = new doppler.secretssync.Circleci(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n resourceType: \"project\",\n resourceId: \"github/myorg/myproject\",\n organizationSlug: \"myorg\",\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.Circleci(\"prod\",\n name=\"Production\",\n api_token=\"my_api_token\")\nbackend_prod = doppler.secretssync.Circleci(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n resource_type=\"project\",\n resource_id=\"github/myorg/myproject\",\n organization_slug=\"myorg\",\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Circleci(\"prod\", new()\n {\n Name = \"Production\",\n ApiToken = \"my_api_token\",\n });\n\n var backendProd = new Doppler.SecretsSync.Circleci(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n ResourceType = \"project\",\n ResourceId = \"github/myorg/myproject\",\n OrganizationSlug = \"myorg\",\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewCircleci(ctx, \"prod\", \u0026integration.CircleciArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tApiToken: pulumi.String(\"my_api_token\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretssync.NewCircleci(ctx, \"backend_prod\", \u0026secretssync.CircleciArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tResourceType: pulumi.String(\"project\"),\n\t\t\tResourceId: pulumi.String(\"github/myorg/myproject\"),\n\t\t\tOrganizationSlug: pulumi.String(\"myorg\"),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_circleci\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n api_token = \"my_api_token\"\n}\nresource \"doppler_secrets_sync_circleci\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_circleci.prod.id\n project = \"backend\"\n config = \"prd\"\n resource_type = \"project\"\n resource_id = \"github/myorg/myproject\"\n organization_slug = \"myorg\"\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new com.pulumi.doppler.integration.Circleci(\"prod\", com.pulumi.doppler.integration.CircleciArgs.builder()\n .name(\"Production\")\n .apiToken(\"my_api_token\")\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.Circleci(\"backendProd\", com.pulumi.doppler.secretsSync.CircleciArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .resourceType(\"project\")\n .resourceId(\"github/myorg/myproject\")\n .organizationSlug(\"myorg\")\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Circleci\n properties:\n name: Production\n apiToken: my_api_token\n backendProd:\n type: doppler:secretsSync:Circleci\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n resourceType: project\n resourceId: github/myorg/myproject\n organizationSlug: myorg\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { - "environments": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + "config": { + "type": "string", + "description": "The name of the Doppler config\n" }, - "groupSlug": { + "deleteBehavior": { "type": "string", - "description": "The slug of the Doppler group\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n" + }, + "organizationSlug": { + "type": "string", + "description": "The organization slug where the resource is located\n" }, "project": { "type": "string", - "description": "The name of the Doppler project where the access is applied\n" + "description": "The name of the Doppler project\n" }, - "role": { + "resourceId": { + "type": "string", + "description": "The resource ID (either project or context) to sync to\n" + }, + "resourceType": { "type": "string", - "description": "The project role identifier for the access\n" + "description": "Either \"project\" or \"context\", based on the resource type to sync to\n" } }, "required": [ - "groupSlug", + "config", + "integration", + "organizationSlug", "project", - "role" + "resourceId", + "resourceType" ], "inputProperties": { - "environments": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true }, - "groupSlug": { + "deleteBehavior": { "type": "string", - "description": "The slug of the Doppler group\n", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "organizationSlug": { + "type": "string", + "description": "The organization slug where the resource is located\n", "willReplaceOnChanges": true }, "project": { "type": "string", - "description": "The name of the Doppler project where the access is applied\n", + "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "role": { + "resourceId": { + "type": "string", + "description": "The resource ID (either project or context) to sync to\n", + "willReplaceOnChanges": true + }, + "resourceType": { "type": "string", - "description": "The project role identifier for the access\n" + "description": "Either \"project\" or \"context\", based on the resource type to sync to\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ - "groupSlug", + "config", + "integration", + "organizationSlug", "project", - "role" + "resourceId", + "resourceType" ], "stateInputs": { - "description": "Input properties used for looking up and filtering Group resources.\n", + "description": "Input properties used for looking up and filtering Circleci resources.\n", "properties": { - "environments": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + "config": { + "type": "string", + "description": "The name of the Doppler config\n", + "willReplaceOnChanges": true }, - "groupSlug": { + "deleteBehavior": { "type": "string", - "description": "The slug of the Doppler group\n", + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" + }, + "integration": { + "type": "string", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "organizationSlug": { + "type": "string", + "description": "The organization slug where the resource is located\n", "willReplaceOnChanges": true }, "project": { "type": "string", - "description": "The name of the Doppler project where the access is applied\n", + "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "role": { + "resourceId": { + "type": "string", + "description": "The resource ID (either project or context) to sync to\n", + "willReplaceOnChanges": true + }, + "resourceType": { "type": "string", - "description": "The project role identifier for the access\n" + "description": "Either \"project\" or \"context\", based on the resource type to sync to\n", + "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:projectMember/serviceAccount:ServiceAccount": { - "description": "Manage a Doppler project service account member.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst backendCi = new doppler.projectmember.ServiceAccount(\"backend_ci\", {\n project: \"backend\",\n serviceAccountSlug: ci.slug,\n role: \"viewer\",\n environments: [\n \"dev\",\n \"stg\",\n \"prd\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nbackend_ci = doppler.project_member.ServiceAccount(\"backend_ci\",\n project=\"backend\",\n service_account_slug=ci[\"slug\"],\n role=\"viewer\",\n environments=[\n \"dev\",\n \"stg\",\n \"prd\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backendCi = new Doppler.ProjectMember.ServiceAccount(\"backend_ci\", new()\n {\n Project = \"backend\",\n ServiceAccountSlug = ci.Slug,\n Role = \"viewer\",\n Environments = new[]\n {\n \"dev\",\n \"stg\",\n \"prd\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/projectMember\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := projectMember.NewServiceAccount(ctx, \"backend_ci\", \u0026projectMember.ServiceAccountArgs{\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tServiceAccountSlug: pulumi.Any(ci.Slug),\n\t\t\tRole: pulumi.String(\"viewer\"),\n\t\t\tEnvironments: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"dev\"),\n\t\t\t\tpulumi.String(\"stg\"),\n\t\t\t\tpulumi.String(\"prd\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.projectMember.ServiceAccount;\nimport com.pulumi.doppler.projectMember.ServiceAccountArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backendCi = new ServiceAccount(\"backendCi\", ServiceAccountArgs.builder()\n .project(\"backend\")\n .serviceAccountSlug(ci.slug())\n .role(\"viewer\")\n .environments( \n \"dev\",\n \"stg\",\n \"prd\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backendCi:\n type: doppler:projectMember:ServiceAccount\n name: backend_ci\n properties:\n project: backend\n serviceAccountSlug: ${ci.slug}\n role: viewer\n environments:\n - dev\n - stg\n - prd\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:secretsSync/flyio:Flyio": { + "description": "Manage a Fly.io Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst prod = new doppler.integration.Flyio(\"prod\", {\n name: \"TF Fly.io\",\n apiKey: \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst backendProd = new doppler.secretssync.Flyio(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n appId: \"my-app\",\n restartMachines: true,\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nprod = doppler.integration.Flyio(\"prod\",\n name=\"TF Fly.io\",\n api_key=\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nbackend_prod = doppler.secretssync.Flyio(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n app_id=\"my-app\",\n restart_machines=True,\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Flyio(\"prod\", new()\n {\n Name = \"TF Fly.io\",\n ApiKey = \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var backendProd = new Doppler.SecretsSync.Flyio(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n AppId = \"my-app\",\n RestartMachines = true,\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewFlyio(ctx, \"prod\", \u0026integration.FlyioArgs{\n\t\t\tName: pulumi.String(\"TF Fly.io\"),\n\t\t\tApiKey: pulumi.String(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretssync.NewFlyio(ctx, \"backend_prod\", \u0026secretssync.FlyioArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tAppId: pulumi.String(\"my-app\"),\n\t\t\tRestartMachines: pulumi.Bool(true),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\nresource \"doppler_integration_flyio\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"TF Fly.io\"\n api_key = \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\nresource \"doppler_secrets_sync_flyio\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_flyio.prod.id\n project = \"backend\"\n config = \"prd\"\n app_id = \"my-app\"\n restart_machines = true\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new com.pulumi.doppler.integration.Flyio(\"prod\", com.pulumi.doppler.integration.FlyioArgs.builder()\n .name(\"TF Fly.io\")\n .apiKey(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.Flyio(\"backendProd\", com.pulumi.doppler.secretsSync.FlyioArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .appId(\"my-app\")\n .restartMachines(true)\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Flyio\n properties:\n name: TF Fly.io\n apiKey: fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n backendProd:\n type: doppler:secretsSync:Flyio\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n appId: my-app\n restartMachines: true\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { - "environments": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + "appId": { + "type": "string", + "description": "The app ID\n" }, - "project": { + "config": { "type": "string", - "description": "The name of the Doppler project where the access is applied\n" + "description": "The name of the Doppler config\n" }, - "role": { + "deleteBehavior": { "type": "string", - "description": "The project role identifier for the access\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "serviceAccountSlug": { + "integration": { "type": "string", - "description": "The slug of the Doppler service account\n" + "description": "The slug of the integration to use for this sync\n" + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n" + }, + "restartMachines": { + "type": "boolean", + "description": "Whether or not to restart the Fly.io machines when secrets are updated\n" } }, "required": [ + "appId", + "config", + "integration", "project", - "role", - "serviceAccountSlug" + "restartMachines" ], "inputProperties": { - "environments": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + "appId": { + "type": "string", + "description": "The app ID\n", + "willReplaceOnChanges": true }, - "project": { + "config": { "type": "string", - "description": "The name of the Doppler project where the access is applied\n", + "description": "The name of the Doppler config\n", "willReplaceOnChanges": true }, - "role": { + "deleteBehavior": { "type": "string", - "description": "The project role identifier for the access\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "serviceAccountSlug": { + "integration": { "type": "string", - "description": "The slug of the Doppler service account\n", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "restartMachines": { + "type": "boolean", + "description": "Whether or not to restart the Fly.io machines when secrets are updated\n", "willReplaceOnChanges": true } }, "requiredInputs": [ + "appId", + "config", + "integration", "project", - "role", - "serviceAccountSlug" + "restartMachines" ], "stateInputs": { - "description": "Input properties used for looking up and filtering ServiceAccount resources.\n", + "description": "Input properties used for looking up and filtering Flyio resources.\n", "properties": { - "environments": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The environments in the project where this access will apply (null or omitted for roles with access to all environments)\n" + "appId": { + "type": "string", + "description": "The app ID\n", + "willReplaceOnChanges": true }, - "project": { + "config": { "type": "string", - "description": "The name of the Doppler project where the access is applied\n", + "description": "The name of the Doppler config\n", "willReplaceOnChanges": true }, - "role": { + "deleteBehavior": { "type": "string", - "description": "The project role identifier for the access\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "serviceAccountSlug": { + "integration": { "type": "string", - "description": "The slug of the Doppler service account\n", + "description": "The slug of the integration to use for this sync\n", + "willReplaceOnChanges": true + }, + "project": { + "type": "string", + "description": "The name of the Doppler project\n", + "willReplaceOnChanges": true + }, + "restartMachines": { + "type": "boolean", + "description": "Whether or not to restart the Fly.io machines when secrets are updated\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:secretsSync/awsParameterStore:AwsParameterStore": { - "description": "Manage an AWS Parameter Store Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst dopplerParameterStore = new aws.iam.Role(\"doppler_parameter_store\", {\n name: \"doppler_parameter_store\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inlinePolicies: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n});\nconst prod = new doppler.integration.AwsParameterStore(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerParameterStore.arn,\n});\nconst backendProd = new doppler.secretssync.AwsParameterStore(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n secureString: true,\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumiverse_doppler as doppler\n\ndoppler_parameter_store = aws.iam.Role(\"doppler_parameter_store\",\n name=\"doppler_parameter_store\",\n assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n \"Condition\": {\n \"StringEquals\": {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inline_policies=[{\n \"name\": \"doppler_secret_manager\",\n \"policy\": json.dumps({\n \"version\": \"2012-10-17\",\n \"statement\": [{\n \"action\": [\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n ],\n \"effect\": \"Allow\",\n \"resource\": \"*\",\n }],\n }),\n }])\nprod = doppler.integration.AwsParameterStore(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_parameter_store.arn)\nbackend_prod = doppler.secrets_sync.AwsParameterStore(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n secure_string=True,\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerParameterStore = new Aws.Iam.Role(\"doppler_parameter_store\", new()\n {\n Name = \"doppler_parameter_store\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n InlinePolicies = new[]\n {\n new Aws.Iam.Inputs.RoleInlinePolicyArgs\n {\n Name = \"doppler_secret_manager\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"ssm:PutParameter\",\n \"ssm:LabelParameterVersion\",\n \"ssm:DeleteParameter\",\n \"ssm:RemoveTagsFromResource\",\n \"ssm:GetParameterHistory\",\n \"ssm:AddTagsToResource\",\n \"ssm:GetParametersByPath\",\n \"ssm:GetParameters\",\n \"ssm:GetParameter\",\n \"ssm:DeleteParameters\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }),\n },\n },\n });\n\n var prod = new Doppler.Integration.AwsParameterStore(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerParameterStore.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsParameterStore(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n SecureString = true,\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Condition\": map[string]interface{}{\n\t\t\t\t\t\t\"StringEquals\": map[string]interface{}{\n\t\t\t\t\t\t\t\"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\ttmpJSON1, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"ssm:PutParameter\",\n\t\t\t\t\t\t\"ssm:LabelParameterVersion\",\n\t\t\t\t\t\t\"ssm:DeleteParameter\",\n\t\t\t\t\t\t\"ssm:RemoveTagsFromResource\",\n\t\t\t\t\t\t\"ssm:GetParameterHistory\",\n\t\t\t\t\t\t\"ssm:AddTagsToResource\",\n\t\t\t\t\t\t\"ssm:GetParametersByPath\",\n\t\t\t\t\t\t\"ssm:GetParameters\",\n\t\t\t\t\t\t\"ssm:GetParameter\",\n\t\t\t\t\t\t\"ssm:DeleteParameters\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson1 := string(tmpJSON1)\n\t\tdopplerParameterStore, err := iam.NewRole(ctx, \"doppler_parameter_store\", \u0026iam.RoleArgs{\n\t\t\tName: pulumi.String(\"doppler_parameter_store\"),\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t\tInlinePolicies: iam.RoleInlinePolicyArray{\n\t\t\t\t\u0026iam.RoleInlinePolicyArgs{\n\t\t\t\t\tName: pulumi.String(\"doppler_secret_manager\"),\n\t\t\t\t\tPolicy: pulumi.String(json1),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewAwsParameterStore(ctx, \"prod\", \u0026integration.AwsParameterStoreArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tAssumeRoleArn: dopplerParameterStore.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewAwsParameterStore(ctx, \"backend_prod\", \u0026secretsSync.AwsParameterStoreArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tPath: pulumi.String(\"/backend/\"),\n\t\t\tSecureString: pulumi.Bool(true),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"myTag\": pulumi.String(\"enabled\"),\n\t\t\t},\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;\nimport com.pulumi.doppler.integration.AwsParameterStore;\nimport com.pulumi.doppler.integration.AwsParameterStoreArgs;\nimport com.pulumi.doppler.secretsSync.AwsParameterStore;\nimport com.pulumi.doppler.secretsSync.AwsParameterStoreArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerParameterStore = new Role(\"dopplerParameterStore\", RoleArgs.builder()\n .name(\"doppler_parameter_store\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .inlinePolicies(RoleInlinePolicyArgs.builder()\n .name(\"doppler_secret_manager\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"ssm:PutParameter\", \n \"ssm:LabelParameterVersion\", \n \"ssm:DeleteParameter\", \n \"ssm:RemoveTagsFromResource\", \n \"ssm:GetParameterHistory\", \n \"ssm:AddTagsToResource\", \n \"ssm:GetParametersByPath\", \n \"ssm:GetParameters\", \n \"ssm:GetParameter\", \n \"ssm:DeleteParameters\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n .build())\n .build());\n\n var prod = new AwsParameterStore(\"prod\", AwsParameterStoreArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerParameterStore.arn())\n .build());\n\n var backendProd = new AwsParameterStore(\"backendProd\", AwsParameterStoreArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .secureString(true)\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerParameterStore:\n type: aws:iam:Role\n name: doppler_parameter_store\n properties:\n name: doppler_parameter_store\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n inlinePolicies:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - ssm:PutParameter\n - ssm:LabelParameterVersion\n - ssm:DeleteParameter\n - ssm:RemoveTagsFromResource\n - ssm:GetParameterHistory\n - ssm:AddTagsToResource\n - ssm:GetParametersByPath\n - ssm:GetParameters\n - ssm:GetParameter\n - ssm:DeleteParameters\n Effect: Allow\n Resource: '*'\n prod:\n type: doppler:integration:AwsParameterStore\n properties:\n name: Production\n assumeRoleArn: ${dopplerParameterStore.arn}\n backendProd:\n type: doppler:secretsSync:AwsParameterStore\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n secureString: true\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:secretsSync/gcpSecretManager:GcpSecretManager": { + "description": "Manage a GCP Secret Manager Doppler sync.\n\n", "properties": { "config": { "type": "string", @@ -1453,46 +6360,42 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "integration": { + "format": { "type": "string", - "description": "The slug of the integration to use for this sync\n" + "description": "Specifies the format secrets will be stored in. Either \u003cspan pulumi-lang-nodejs=\"`env`\" pulumi-lang-dotnet=\"`Env`\" pulumi-lang-go=\"`env`\" pulumi-lang-python=\"`env`\" pulumi-lang-yaml=\"`env`\" pulumi-lang-java=\"`env`\" pulumi-lang-hcl=\"`env`\"\u003e`env`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`json`\" pulumi-lang-dotnet=\"`Json`\" pulumi-lang-go=\"`json`\" pulumi-lang-python=\"`json`\" pulumi-lang-yaml=\"`json`\" pulumi-lang-java=\"`json`\" pulumi-lang-hcl=\"`json`\"\u003e`json`\u003c/span\u003e. Defaults to \u003cspan pulumi-lang-nodejs=\"`json`\" pulumi-lang-dotnet=\"`Json`\" pulumi-lang-go=\"`json`\" pulumi-lang-python=\"`json`\" pulumi-lang-yaml=\"`json`\" pulumi-lang-java=\"`json`\" pulumi-lang-hcl=\"`json`\"\u003e`json`\u003c/span\u003e.\n" }, - "kmsKeyId": { + "integration": { "type": "string", - "description": "The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN)\n" + "description": "The slug of the integration to use for this sync\n" }, - "path": { + "name": { "type": "string", - "description": "The path to the parameters in AWS\n" + "description": "The name used to store the secret when\u003cspan pulumi-lang-nodejs=\" syncStrategy \" pulumi-lang-dotnet=\" SyncStrategy \" pulumi-lang-go=\" syncStrategy \" pulumi-lang-python=\" sync_strategy \" pulumi-lang-yaml=\" syncStrategy \" pulumi-lang-java=\" syncStrategy \" pulumi-lang-hcl=\" sync_strategy \"\u003e syncStrategy \u003c/span\u003eis set to `single-secret` (note that the integration's \u003cspan pulumi-lang-nodejs=\"`gcpSecretPrefix`\" pulumi-lang-dotnet=\"`GcpSecretPrefix`\" pulumi-lang-go=\"`gcpSecretPrefix`\" pulumi-lang-python=\"`gcp_secret_prefix`\" pulumi-lang-yaml=\"`gcpSecretPrefix`\" pulumi-lang-java=\"`gcpSecretPrefix`\" pulumi-lang-hcl=\"`gcp_secret_prefix`\"\u003e`gcpSecretPrefix`\u003c/span\u003e will be prepended to this).\n" }, "project": { "type": "string", "description": "The name of the Doppler project\n" }, - "region": { - "type": "string", - "description": "The AWS region\n" - }, - "secureString": { - "type": "boolean", - "description": "Whether or not the parameters are stored as a secure string\n" - }, - "tags": { - "type": "object", - "additionalProperties": { + "regions": { + "type": "array", + "items": { "type": "string" }, - "description": "AWS tags to attach to the parameters\n" + "description": "The GCP regions used for replication. Can include any supported GCP region or `[\"automatic\"]`.\n" + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`).\n" } }, "required": [ "config", "integration", - "path", "project", - "region" + "regions", + "syncStrategy" ], "inputProperties": { "config": { @@ -1502,21 +6405,21 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "integration": { + "format": { "type": "string", - "description": "The slug of the integration to use for this sync\n", + "description": "Specifies the format secrets will be stored in. Either \u003cspan pulumi-lang-nodejs=\"`env`\" pulumi-lang-dotnet=\"`Env`\" pulumi-lang-go=\"`env`\" pulumi-lang-python=\"`env`\" pulumi-lang-yaml=\"`env`\" pulumi-lang-java=\"`env`\" pulumi-lang-hcl=\"`env`\"\u003e`env`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`json`\" pulumi-lang-dotnet=\"`Json`\" pulumi-lang-go=\"`json`\" pulumi-lang-python=\"`json`\" pulumi-lang-yaml=\"`json`\" pulumi-lang-java=\"`json`\" pulumi-lang-hcl=\"`json`\"\u003e`json`\u003c/span\u003e. Defaults to \u003cspan pulumi-lang-nodejs=\"`json`\" pulumi-lang-dotnet=\"`Json`\" pulumi-lang-go=\"`json`\" pulumi-lang-python=\"`json`\" pulumi-lang-yaml=\"`json`\" pulumi-lang-java=\"`json`\" pulumi-lang-hcl=\"`json`\"\u003e`json`\u003c/span\u003e.\n", "willReplaceOnChanges": true }, - "kmsKeyId": { + "integration": { "type": "string", - "description": "The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN)\n", + "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, - "path": { + "name": { "type": "string", - "description": "The path to the parameters in AWS\n", + "description": "The name used to store the secret when\u003cspan pulumi-lang-nodejs=\" syncStrategy \" pulumi-lang-dotnet=\" SyncStrategy \" pulumi-lang-go=\" syncStrategy \" pulumi-lang-python=\" sync_strategy \" pulumi-lang-yaml=\" syncStrategy \" pulumi-lang-java=\" syncStrategy \" pulumi-lang-hcl=\" sync_strategy \"\u003e syncStrategy \u003c/span\u003eis set to `single-secret` (note that the integration's \u003cspan pulumi-lang-nodejs=\"`gcpSecretPrefix`\" pulumi-lang-dotnet=\"`GcpSecretPrefix`\" pulumi-lang-go=\"`gcpSecretPrefix`\" pulumi-lang-python=\"`gcp_secret_prefix`\" pulumi-lang-yaml=\"`gcpSecretPrefix`\" pulumi-lang-java=\"`gcpSecretPrefix`\" pulumi-lang-hcl=\"`gcp_secret_prefix`\"\u003e`gcpSecretPrefix`\u003c/span\u003e will be prepended to this).\n", "willReplaceOnChanges": true }, "project": { @@ -1524,34 +6427,29 @@ "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "region": { - "type": "string", - "description": "The AWS region\n", - "willReplaceOnChanges": true - }, - "secureString": { - "type": "boolean", - "description": "Whether or not the parameters are stored as a secure string\n", - "willReplaceOnChanges": true - }, - "tags": { - "type": "object", - "additionalProperties": { + "regions": { + "type": "array", + "items": { "type": "string" }, - "description": "AWS tags to attach to the parameters\n", + "description": "The GCP regions used for replication. Can include any supported GCP region or `[\"automatic\"]`.\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`).\n", "willReplaceOnChanges": true } }, "requiredInputs": [ "config", "integration", - "path", "project", - "region" + "regions", + "syncStrategy" ], "stateInputs": { - "description": "Input properties used for looking up and filtering AwsParameterStore resources.\n", + "description": "Input properties used for looking up and filtering GcpSecretManager resources.\n", "properties": { "config": { "type": "string", @@ -1560,21 +6458,21 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "integration": { + "format": { "type": "string", - "description": "The slug of the integration to use for this sync\n", + "description": "Specifies the format secrets will be stored in. Either \u003cspan pulumi-lang-nodejs=\"`env`\" pulumi-lang-dotnet=\"`Env`\" pulumi-lang-go=\"`env`\" pulumi-lang-python=\"`env`\" pulumi-lang-yaml=\"`env`\" pulumi-lang-java=\"`env`\" pulumi-lang-hcl=\"`env`\"\u003e`env`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`json`\" pulumi-lang-dotnet=\"`Json`\" pulumi-lang-go=\"`json`\" pulumi-lang-python=\"`json`\" pulumi-lang-yaml=\"`json`\" pulumi-lang-java=\"`json`\" pulumi-lang-hcl=\"`json`\"\u003e`json`\u003c/span\u003e. Defaults to \u003cspan pulumi-lang-nodejs=\"`json`\" pulumi-lang-dotnet=\"`Json`\" pulumi-lang-go=\"`json`\" pulumi-lang-python=\"`json`\" pulumi-lang-yaml=\"`json`\" pulumi-lang-java=\"`json`\" pulumi-lang-hcl=\"`json`\"\u003e`json`\u003c/span\u003e.\n", "willReplaceOnChanges": true }, - "kmsKeyId": { + "integration": { "type": "string", - "description": "The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN)\n", + "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, - "path": { + "name": { "type": "string", - "description": "The path to the parameters in AWS\n", + "description": "The name used to store the secret when\u003cspan pulumi-lang-nodejs=\" syncStrategy \" pulumi-lang-dotnet=\" SyncStrategy \" pulumi-lang-go=\" syncStrategy \" pulumi-lang-python=\" sync_strategy \" pulumi-lang-yaml=\" syncStrategy \" pulumi-lang-java=\" syncStrategy \" pulumi-lang-hcl=\" sync_strategy \"\u003e syncStrategy \u003c/span\u003eis set to `single-secret` (note that the integration's \u003cspan pulumi-lang-nodejs=\"`gcpSecretPrefix`\" pulumi-lang-dotnet=\"`GcpSecretPrefix`\" pulumi-lang-go=\"`gcpSecretPrefix`\" pulumi-lang-python=\"`gcp_secret_prefix`\" pulumi-lang-yaml=\"`gcpSecretPrefix`\" pulumi-lang-java=\"`gcpSecretPrefix`\" pulumi-lang-hcl=\"`gcp_secret_prefix`\"\u003e`gcpSecretPrefix`\u003c/span\u003e will be prepended to this).\n", "willReplaceOnChanges": true }, "project": { @@ -1582,30 +6480,25 @@ "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "region": { - "type": "string", - "description": "The AWS region\n", - "willReplaceOnChanges": true - }, - "secureString": { - "type": "boolean", - "description": "Whether or not the parameters are stored as a secure string\n", - "willReplaceOnChanges": true - }, - "tags": { - "type": "object", - "additionalProperties": { + "regions": { + "type": "array", + "items": { "type": "string" }, - "description": "AWS tags to attach to the parameters\n", + "description": "The GCP regions used for replication. Can include any supported GCP region or `[\"automatic\"]`.\n", + "willReplaceOnChanges": true + }, + "syncStrategy": { + "type": "string", + "description": "Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`).\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:secretsSync/awsSecretsManager:AwsSecretsManager": { - "description": "Manage an AWS Secrets Manager Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst dopplerSecretsManager = new aws.iam.Role(\"doppler_secrets_manager\", {\n name: \"doppler_secrets_manager\",\n assumeRolePolicy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Effect: \"Allow\",\n Action: \"sts:AssumeRole\",\n Principal: {\n AWS: \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n Condition: {\n StringEquals: {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inlinePolicies: [{\n name: \"doppler_secret_manager\",\n policy: JSON.stringify({\n Version: \"2012-10-17\",\n Statement: [{\n Action: [\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n ],\n Effect: \"Allow\",\n Resource: \"*\",\n }],\n }),\n }],\n});\nconst prod = new doppler.integration.AwsSecretsManager(\"prod\", {\n name: \"Production\",\n assumeRoleArn: dopplerSecretsManager.arn,\n});\nconst backendProd = new doppler.secretssync.AwsSecretsManager(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n region: \"us-east-1\",\n path: \"/backend/\",\n tags: {\n myTag: \"enabled\",\n },\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport json\nimport pulumi_aws as aws\nimport pulumiverse_doppler as doppler\n\ndoppler_secrets_manager = aws.iam.Role(\"doppler_secrets_manager\",\n name=\"doppler_secrets_manager\",\n assume_role_policy=json.dumps({\n \"Version\": \"2012-10-17\",\n \"Statement\": [{\n \"Effect\": \"Allow\",\n \"Action\": \"sts:AssumeRole\",\n \"Principal\": {\n \"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n \"Condition\": {\n \"StringEquals\": {\n \"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n }],\n }),\n inline_policies=[{\n \"name\": \"doppler_secret_manager\",\n \"policy\": json.dumps({\n \"version\": \"2012-10-17\",\n \"statement\": [{\n \"action\": [\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n ],\n \"effect\": \"Allow\",\n \"resource\": \"*\",\n }],\n }),\n }])\nprod = doppler.integration.AwsSecretsManager(\"prod\",\n name=\"Production\",\n assume_role_arn=doppler_secrets_manager.arn)\nbackend_prod = doppler.secrets_sync.AwsSecretsManager(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n region=\"us-east-1\",\n path=\"/backend/\",\n tags={\n \"myTag\": \"enabled\",\n },\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dopplerSecretsManager = new Aws.Iam.Role(\"doppler_secrets_manager\", new()\n {\n Name = \"doppler_secrets_manager\",\n AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Effect\"] = \"Allow\",\n [\"Action\"] = \"sts:AssumeRole\",\n [\"Principal\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"AWS\"] = \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n },\n [\"Condition\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"StringEquals\"] = new Dictionary\u003cstring, object?\u003e\n {\n [\"sts:ExternalId\"] = \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n },\n },\n },\n },\n }),\n InlinePolicies = new[]\n {\n new Aws.Iam.Inputs.RoleInlinePolicyArgs\n {\n Name = \"doppler_secret_manager\",\n Policy = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"Version\"] = \"2012-10-17\",\n [\"Statement\"] = new[]\n {\n new Dictionary\u003cstring, object?\u003e\n {\n [\"Action\"] = new[]\n {\n \"secretsmanager:GetSecretValue\",\n \"secretsmanager:DescribeSecret\",\n \"secretsmanager:PutSecretValue\",\n \"secretsmanager:CreateSecret\",\n \"secretsmanager:DeleteSecret\",\n \"secretsmanager:TagResource\",\n \"secretsmanager:UpdateSecret\",\n },\n [\"Effect\"] = \"Allow\",\n [\"Resource\"] = \"*\",\n },\n },\n }),\n },\n },\n });\n\n var prod = new Doppler.Integration.AwsSecretsManager(\"prod\", new()\n {\n Name = \"Production\",\n AssumeRoleArn = dopplerSecretsManager.Arn,\n });\n\n var backendProd = new Doppler.SecretsSync.AwsSecretsManager(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n Region = \"us-east-1\",\n Path = \"/backend/\",\n Tags = \n {\n { \"myTag\", \"enabled\" },\n },\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Action\": \"sts:AssumeRole\",\n\t\t\t\t\t\"Principal\": map[string]interface{}{\n\t\t\t\t\t\t\"AWS\": \"arn:aws:iam::299900769157:user/doppler-integration-operator\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Condition\": map[string]interface{}{\n\t\t\t\t\t\t\"StringEquals\": map[string]interface{}{\n\t\t\t\t\t\t\t\"sts:ExternalId\": \"\u003cYOUR_WORKPLACE_SLUG\u003e\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\ttmpJSON1, err := json.Marshal(map[string]interface{}{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": []map[string]interface{}{\n\t\t\t\tmap[string]interface{}{\n\t\t\t\t\t\"Action\": []string{\n\t\t\t\t\t\t\"secretsmanager:GetSecretValue\",\n\t\t\t\t\t\t\"secretsmanager:DescribeSecret\",\n\t\t\t\t\t\t\"secretsmanager:PutSecretValue\",\n\t\t\t\t\t\t\"secretsmanager:CreateSecret\",\n\t\t\t\t\t\t\"secretsmanager:DeleteSecret\",\n\t\t\t\t\t\t\"secretsmanager:TagResource\",\n\t\t\t\t\t\t\"secretsmanager:UpdateSecret\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Effect\": \"Allow\",\n\t\t\t\t\t\"Resource\": \"*\",\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson1 := string(tmpJSON1)\n\t\tdopplerSecretsManager, err := iam.NewRole(ctx, \"doppler_secrets_manager\", \u0026iam.RoleArgs{\n\t\t\tName: pulumi.String(\"doppler_secrets_manager\"),\n\t\t\tAssumeRolePolicy: pulumi.String(json0),\n\t\t\tInlinePolicies: iam.RoleInlinePolicyArray{\n\t\t\t\t\u0026iam.RoleInlinePolicyArgs{\n\t\t\t\t\tName: pulumi.String(\"doppler_secret_manager\"),\n\t\t\t\t\tPolicy: pulumi.String(json1),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprod, err := integration.NewAwsSecretsManager(ctx, \"prod\", \u0026integration.AwsSecretsManagerArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tAssumeRoleArn: dopplerSecretsManager.Arn,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewAwsSecretsManager(ctx, \"backend_prod\", \u0026secretsSync.AwsSecretsManagerArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tPath: pulumi.String(\"/backend/\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"myTag\": pulumi.String(\"enabled\"),\n\t\t\t},\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.aws.iam.Role;\nimport com.pulumi.aws.iam.RoleArgs;\nimport com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs;\nimport com.pulumi.doppler.integration.AwsSecretsManager;\nimport com.pulumi.doppler.integration.AwsSecretsManagerArgs;\nimport com.pulumi.doppler.secretsSync.AwsSecretsManager;\nimport com.pulumi.doppler.secretsSync.AwsSecretsManagerArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dopplerSecretsManager = new Role(\"dopplerSecretsManager\", RoleArgs.builder()\n .name(\"doppler_secrets_manager\")\n .assumeRolePolicy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Action\", \"sts:AssumeRole\"),\n jsonProperty(\"Principal\", jsonObject(\n jsonProperty(\"AWS\", \"arn:aws:iam::299900769157:user/doppler-integration-operator\")\n )),\n jsonProperty(\"Condition\", jsonObject(\n jsonProperty(\"StringEquals\", jsonObject(\n jsonProperty(\"sts:ExternalId\", \"\u003cYOUR_WORKPLACE_SLUG\u003e\")\n ))\n ))\n )))\n )))\n .inlinePolicies(RoleInlinePolicyArgs.builder()\n .name(\"doppler_secret_manager\")\n .policy(serializeJson(\n jsonObject(\n jsonProperty(\"Version\", \"2012-10-17\"),\n jsonProperty(\"Statement\", jsonArray(jsonObject(\n jsonProperty(\"Action\", jsonArray(\n \"secretsmanager:GetSecretValue\", \n \"secretsmanager:DescribeSecret\", \n \"secretsmanager:PutSecretValue\", \n \"secretsmanager:CreateSecret\", \n \"secretsmanager:DeleteSecret\", \n \"secretsmanager:TagResource\", \n \"secretsmanager:UpdateSecret\"\n )),\n jsonProperty(\"Effect\", \"Allow\"),\n jsonProperty(\"Resource\", \"*\")\n )))\n )))\n .build())\n .build());\n\n var prod = new AwsSecretsManager(\"prod\", AwsSecretsManagerArgs.builder()\n .name(\"Production\")\n .assumeRoleArn(dopplerSecretsManager.arn())\n .build());\n\n var backendProd = new AwsSecretsManager(\"backendProd\", AwsSecretsManagerArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .region(\"us-east-1\")\n .path(\"/backend/\")\n .tags(Map.of(\"myTag\", \"enabled\"))\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dopplerSecretsManager:\n type: aws:iam:Role\n name: doppler_secrets_manager\n properties:\n name: doppler_secrets_manager\n assumeRolePolicy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Effect: Allow\n Action: sts:AssumeRole\n Principal:\n AWS: arn:aws:iam::299900769157:user/doppler-integration-operator\n Condition:\n StringEquals:\n sts:ExternalId: \u003cYOUR_WORKPLACE_SLUG\u003e\n inlinePolicies:\n - name: doppler_secret_manager\n policy:\n fn::toJSON:\n Version: 2012-10-17\n Statement:\n - Action:\n - secretsmanager:GetSecretValue\n - secretsmanager:DescribeSecret\n - secretsmanager:PutSecretValue\n - secretsmanager:CreateSecret\n - secretsmanager:DeleteSecret\n - secretsmanager:TagResource\n - secretsmanager:UpdateSecret\n Effect: Allow\n Resource: '*'\n prod:\n type: doppler:integration:AwsSecretsManager\n properties:\n name: Production\n assumeRoleArn: ${dopplerSecretsManager.arn}\n backendProd:\n type: doppler:secretsSync:AwsSecretsManager\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n region: us-east-1\n path: /backend/\n tags:\n myTag: enabled\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:secretsSync/githubActions:GithubActions": { + "description": "Manage a GitHub Actions Doppler sync.\n\n", "properties": { "config": { "type": "string", @@ -1613,46 +6506,42 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "integration": { + "environmentName": { "type": "string", - "description": "The slug of the integration to use for this sync\n" + "description": "The GitHub repo environment name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n" }, - "kmsKeyId": { + "integration": { "type": "string", - "description": "The AWS KMS key used to encrypt the secret (ID, Alias, or ARN)\n" + "description": "The slug of the integration to use for this sync\n" }, - "path": { + "orgScope": { "type": "string", - "description": "The path to the secret in AWS\n" + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n" }, "project": { "type": "string", "description": "The name of the Doppler project\n" }, - "region": { + "repoName": { "type": "string", - "description": "The AWS region\n" + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n" }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "AWS tags to attach to the secrets\n" + "syncTarget": { + "type": "string", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n" }, - "updateMetadata": { + "syncUnmaskedAsVariables": { "type": "boolean", - "description": "If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets.\n" + "description": "When enabled, causes secrets with the \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e visibility type to get synced as GitHub Action Variables. Defaults to \u003cspan pulumi-lang-nodejs=\"`false`\" pulumi-lang-dotnet=\"`False`\" pulumi-lang-go=\"`false`\" pulumi-lang-python=\"`false`\" pulumi-lang-yaml=\"`false`\" pulumi-lang-java=\"`false`\" pulumi-lang-hcl=\"`false`\"\u003e`false`\u003c/span\u003e.\n" } }, "required": [ "config", "integration", - "path", "project", - "region" + "syncTarget" ], "inputProperties": { "config": { @@ -1662,21 +6551,21 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "integration": { + "environmentName": { "type": "string", - "description": "The slug of the integration to use for this sync\n", + "description": "The GitHub repo environment name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, - "kmsKeyId": { + "integration": { "type": "string", - "description": "The AWS KMS key used to encrypt the secret (ID, Alias, or ARN)\n", + "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, - "path": { + "orgScope": { "type": "string", - "description": "The path to the secret in AWS\n", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", "willReplaceOnChanges": true }, "project": { @@ -1684,34 +6573,30 @@ "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "region": { + "repoName": { "type": "string", - "description": "The AWS region\n", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "AWS tags to attach to the secrets\n", + "syncTarget": { + "type": "string", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n", "willReplaceOnChanges": true }, - "updateMetadata": { + "syncUnmaskedAsVariables": { "type": "boolean", - "description": "If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets.\n", + "description": "When enabled, causes secrets with the \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e visibility type to get synced as GitHub Action Variables. Defaults to \u003cspan pulumi-lang-nodejs=\"`false`\" pulumi-lang-dotnet=\"`False`\" pulumi-lang-go=\"`false`\" pulumi-lang-python=\"`false`\" pulumi-lang-yaml=\"`false`\" pulumi-lang-java=\"`false`\" pulumi-lang-hcl=\"`false`\"\u003e`false`\u003c/span\u003e.\n", "willReplaceOnChanges": true } }, "requiredInputs": [ "config", "integration", - "path", "project", - "region" + "syncTarget" ], "stateInputs": { - "description": "Input properties used for looking up and filtering AwsSecretsManager resources.\n", + "description": "Input properties used for looking up and filtering GithubActions resources.\n", "properties": { "config": { "type": "string", @@ -1720,21 +6605,21 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, - "integration": { + "environmentName": { "type": "string", - "description": "The slug of the integration to use for this sync\n", + "description": "The GitHub repo environment name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, - "kmsKeyId": { + "integration": { "type": "string", - "description": "The AWS KMS key used to encrypt the secret (ID, Alias, or ARN)\n", + "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, - "path": { + "orgScope": { "type": "string", - "description": "The path to the secret in AWS\n", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", "willReplaceOnChanges": true }, "project": { @@ -1742,30 +6627,27 @@ "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "region": { + "repoName": { "type": "string", - "description": "The AWS region\n", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "AWS tags to attach to the secrets\n", + "syncTarget": { + "type": "string", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n", "willReplaceOnChanges": true }, - "updateMetadata": { + "syncUnmaskedAsVariables": { "type": "boolean", - "description": "If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets.\n", + "description": "When enabled, causes secrets with the \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e visibility type to get synced as GitHub Action Variables. Defaults to \u003cspan pulumi-lang-nodejs=\"`false`\" pulumi-lang-dotnet=\"`False`\" pulumi-lang-go=\"`false`\" pulumi-lang-python=\"`false`\" pulumi-lang-yaml=\"`false`\" pulumi-lang-java=\"`false`\" pulumi-lang-hcl=\"`false`\"\u003e`false`\u003c/span\u003e.\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:secretsSync/circleci:Circleci": { - "description": "Manage a CircleCI Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst prod = new doppler.integration.Circleci(\"prod\", {\n name: \"Production\",\n apiToken: \"my_api_token\",\n});\nconst backendProd = new doppler.secretssync.Circleci(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n resourceType: \"project\",\n resourceId: \"github/myorg/myproject\",\n organizationSlug: \"myorg\",\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nprod = doppler.integration.Circleci(\"prod\",\n name=\"Production\",\n api_token=\"my_api_token\")\nbackend_prod = doppler.secrets_sync.Circleci(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n resource_type=\"project\",\n resource_id=\"github/myorg/myproject\",\n organization_slug=\"myorg\",\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Circleci(\"prod\", new()\n {\n Name = \"Production\",\n ApiToken = \"my_api_token\",\n });\n\n var backendProd = new Doppler.SecretsSync.Circleci(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n ResourceType = \"project\",\n ResourceId = \"github/myorg/myproject\",\n OrganizationSlug = \"myorg\",\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewCircleci(ctx, \"prod\", \u0026integration.CircleciArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tApiToken: pulumi.String(\"my_api_token\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewCircleci(ctx, \"backend_prod\", \u0026secretsSync.CircleciArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tResourceType: pulumi.String(\"project\"),\n\t\t\tResourceId: pulumi.String(\"github/myorg/myproject\"),\n\t\t\tOrganizationSlug: pulumi.String(\"myorg\"),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.Circleci;\nimport com.pulumi.doppler.integration.CircleciArgs;\nimport com.pulumi.doppler.secretsSync.Circleci;\nimport com.pulumi.doppler.secretsSync.CircleciArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new Circleci(\"prod\", CircleciArgs.builder()\n .name(\"Production\")\n .apiToken(\"my_api_token\")\n .build());\n\n var backendProd = new Circleci(\"backendProd\", CircleciArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .resourceType(\"project\")\n .resourceId(\"github/myorg/myproject\")\n .organizationSlug(\"myorg\")\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Circleci\n properties:\n name: Production\n apiToken: my_api_token\n backendProd:\n type: doppler:secretsSync:Circleci\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n resourceType: project\n resourceId: github/myorg/myproject\n organizationSlug: myorg\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:secretsSync/githubAgents:GithubAgents": { + "description": "Manage a GitHub Copilot Agents Doppler sync.\n\n", "properties": { "config": { "type": "string", @@ -1773,36 +6655,38 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", "description": "The slug of the integration to use for this sync\n" }, - "organizationSlug": { + "orgScope": { "type": "string", - "description": "The organization slug where the resource is located\n" + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n" }, "project": { "type": "string", "description": "The name of the Doppler project\n" }, - "resourceId": { + "repoName": { "type": "string", - "description": "The resource ID (either project or context) to sync to\n" + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n" }, - "resourceType": { + "syncTarget": { "type": "string", - "description": "Either \"project\" or \"context\", based on the resource type to sync to\n" + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n" + }, + "syncUnmaskedAsVariables": { + "type": "boolean", + "description": "When enabled, causes secrets with the \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e visibility type to get synced as GitHub Copilot Agents Variables. Defaults to \u003cspan pulumi-lang-nodejs=\"`false`\" pulumi-lang-dotnet=\"`False`\" pulumi-lang-go=\"`false`\" pulumi-lang-python=\"`false`\" pulumi-lang-yaml=\"`false`\" pulumi-lang-java=\"`false`\" pulumi-lang-hcl=\"`false`\"\u003e`false`\u003c/span\u003e.\n" } }, "required": [ "config", "integration", - "organizationSlug", "project", - "resourceId", - "resourceType" + "syncTarget" ], "inputProperties": { "config": { @@ -1812,16 +6696,16 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, - "organizationSlug": { + "orgScope": { "type": "string", - "description": "The organization slug where the resource is located\n", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", "willReplaceOnChanges": true }, "project": { @@ -1829,27 +6713,30 @@ "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "resourceId": { + "repoName": { "type": "string", - "description": "The resource ID (either project or context) to sync to\n", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, - "resourceType": { + "syncTarget": { "type": "string", - "description": "Either \"project\" or \"context\", based on the resource type to sync to\n", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n", + "willReplaceOnChanges": true + }, + "syncUnmaskedAsVariables": { + "type": "boolean", + "description": "When enabled, causes secrets with the \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e visibility type to get synced as GitHub Copilot Agents Variables. Defaults to \u003cspan pulumi-lang-nodejs=\"`false`\" pulumi-lang-dotnet=\"`False`\" pulumi-lang-go=\"`false`\" pulumi-lang-python=\"`false`\" pulumi-lang-yaml=\"`false`\" pulumi-lang-java=\"`false`\" pulumi-lang-hcl=\"`false`\"\u003e`false`\u003c/span\u003e.\n", "willReplaceOnChanges": true } }, "requiredInputs": [ "config", "integration", - "organizationSlug", "project", - "resourceId", - "resourceType" + "syncTarget" ], "stateInputs": { - "description": "Input properties used for looking up and filtering Circleci resources.\n", + "description": "Input properties used for looking up and filtering GithubAgents resources.\n", "properties": { "config": { "type": "string", @@ -1858,16 +6745,16 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, - "organizationSlug": { + "orgScope": { "type": "string", - "description": "The organization slug where the resource is located\n", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", "willReplaceOnChanges": true }, "project": { @@ -1875,61 +6762,64 @@ "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "resourceId": { + "repoName": { "type": "string", - "description": "The resource ID (either project or context) to sync to\n", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, - "resourceType": { + "syncTarget": { "type": "string", - "description": "Either \"project\" or \"context\", based on the resource type to sync to\n", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n", + "willReplaceOnChanges": true + }, + "syncUnmaskedAsVariables": { + "type": "boolean", + "description": "When enabled, causes secrets with the \u003cspan pulumi-lang-nodejs=\"`unmasked`\" pulumi-lang-dotnet=\"`Unmasked`\" pulumi-lang-go=\"`unmasked`\" pulumi-lang-python=\"`unmasked`\" pulumi-lang-yaml=\"`unmasked`\" pulumi-lang-java=\"`unmasked`\" pulumi-lang-hcl=\"`unmasked`\"\u003e`unmasked`\u003c/span\u003e visibility type to get synced as GitHub Copilot Agents Variables. Defaults to \u003cspan pulumi-lang-nodejs=\"`false`\" pulumi-lang-dotnet=\"`False`\" pulumi-lang-go=\"`false`\" pulumi-lang-python=\"`false`\" pulumi-lang-yaml=\"`false`\" pulumi-lang-java=\"`false`\" pulumi-lang-hcl=\"`false`\"\u003e`false`\u003c/span\u003e.\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:secretsSync/flyio:Flyio": { - "description": "Manage a Fly.io Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumiverse/doppler\";\n\nconst prod = new doppler.integration.Flyio(\"prod\", {\n name: \"TF Fly.io\",\n apiKey: \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n});\nconst backendProd = new doppler.secretssync.Flyio(\"backend_prod\", {\n integration: prod.id,\n project: \"backend\",\n config: \"prd\",\n appId: \"my-app\",\n restartMachines: true,\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumiverse_doppler as doppler\n\nprod = doppler.integration.Flyio(\"prod\",\n name=\"TF Fly.io\",\n api_key=\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\nbackend_prod = doppler.secrets_sync.Flyio(\"backend_prod\",\n integration=prod.id,\n project=\"backend\",\n config=\"prd\",\n app_id=\"my-app\",\n restart_machines=True,\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumiverse.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = new Doppler.Integration.Flyio(\"prod\", new()\n {\n Name = \"TF Fly.io\",\n ApiKey = \"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n });\n\n var backendProd = new Doppler.SecretsSync.Flyio(\"backend_prod\", new()\n {\n Integration = prod.Id,\n Project = \"backend\",\n Config = \"prd\",\n AppId = \"my-app\",\n RestartMachines = true,\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := integration.NewFlyio(ctx, \"prod\", \u0026integration.FlyioArgs{\n\t\t\tName: pulumi.String(\"TF Fly.io\"),\n\t\t\tApiKey: pulumi.String(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretsSync.NewFlyio(ctx, \"backend_prod\", \u0026secretsSync.FlyioArgs{\n\t\t\tIntegration: prod.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tAppId: pulumi.String(\"my-app\"),\n\t\t\tRestartMachines: pulumi.Bool(true),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.integration.Flyio;\nimport com.pulumi.doppler.integration.FlyioArgs;\nimport com.pulumi.doppler.secretsSync.Flyio;\nimport com.pulumi.doppler.secretsSync.FlyioArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var prod = new Flyio(\"prod\", FlyioArgs.builder()\n .name(\"TF Fly.io\")\n .apiKey(\"fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\")\n .build());\n\n var backendProd = new Flyio(\"backendProd\", FlyioArgs.builder()\n .integration(prod.id())\n .project(\"backend\")\n .config(\"prd\")\n .appId(\"my-app\")\n .restartMachines(true)\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod:\n type: doppler:integration:Flyio\n properties:\n name: TF Fly.io\n apiKey: fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n backendProd:\n type: doppler:secretsSync:Flyio\n name: backend_prod\n properties:\n integration: ${prod.id}\n project: backend\n config: prd\n appId: my-app\n restartMachines: true\n deleteBehavior: leave_in_target\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "doppler:secretsSync/githubCodespaces:GithubCodespaces": { + "description": "Manage a GitHub Codespaces Doppler sync.\n\n", "properties": { - "appId": { - "type": "string", - "description": "The app ID\n" - }, "config": { "type": "string", "description": "The name of the Doppler config\n" }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", "description": "The slug of the integration to use for this sync\n" }, + "orgScope": { + "type": "string", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n" + }, "project": { "type": "string", "description": "The name of the Doppler project\n" }, - "restartMachines": { - "type": "boolean", - "description": "Whether or not to restart the Fly.io machines when secrets are updated\n" + "repoName": { + "type": "string", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n" + }, + "syncTarget": { + "type": "string", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n" } }, "required": [ - "appId", "config", "integration", "project", - "restartMachines" + "syncTarget" ], "inputProperties": { - "appId": { - "type": "string", - "description": "The app ID\n", - "willReplaceOnChanges": true - }, "config": { "type": "string", "description": "The name of the Doppler config\n", @@ -1937,39 +6827,43 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, + "orgScope": { + "type": "string", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", + "willReplaceOnChanges": true + }, "project": { "type": "string", "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "restartMachines": { - "type": "boolean", - "description": "Whether or not to restart the Fly.io machines when secrets are updated\n", + "repoName": { + "type": "string", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", + "willReplaceOnChanges": true + }, + "syncTarget": { + "type": "string", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n", "willReplaceOnChanges": true } }, "requiredInputs": [ - "appId", "config", "integration", "project", - "restartMachines" + "syncTarget" ], "stateInputs": { - "description": "Input properties used for looking up and filtering Flyio resources.\n", + "description": "Input properties used for looking up and filtering GithubCodespaces resources.\n", "properties": { - "appId": { - "type": "string", - "description": "The app ID\n", - "willReplaceOnChanges": true - }, "config": { "type": "string", "description": "The name of the Doppler config\n", @@ -1977,29 +6871,39 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", "description": "The slug of the integration to use for this sync\n", "willReplaceOnChanges": true }, + "orgScope": { + "type": "string", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", + "willReplaceOnChanges": true + }, "project": { "type": "string", "description": "The name of the Doppler project\n", "willReplaceOnChanges": true }, - "restartMachines": { - "type": "boolean", - "description": "Whether or not to restart the Fly.io machines when secrets are updated\n", + "repoName": { + "type": "string", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", + "willReplaceOnChanges": true + }, + "syncTarget": { + "type": "string", + "description": "Either \"repo\" or \"org\", based on the resource type to sync to\n", "willReplaceOnChanges": true } }, "type": "object" } }, - "doppler:secretsSync/githubActions:GithubActions": { - "description": "Manage a GitHub Actions Doppler sync.\n\n", + "doppler:secretsSync/githubDependabot:GithubDependabot": { + "description": "Manage a GitHub Dependabot Doppler sync.\n\n", "properties": { "config": { "type": "string", @@ -2007,11 +6911,7 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" - }, - "environmentName": { - "type": "string", - "description": "The GitHub repo environment name to sync to (only used when `sync_target` is set to \"repo\")\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", @@ -2019,7 +6919,7 @@ }, "orgScope": { "type": "string", - "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when `sync_target` is set to \"org\")\n" + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n" }, "project": { "type": "string", @@ -2027,7 +6927,7 @@ }, "repoName": { "type": "string", - "description": "The GitHub repo name to sync to (only used when `sync_target` is set to \"repo\")\n" + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n" }, "syncTarget": { "type": "string", @@ -2048,12 +6948,7 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" - }, - "environmentName": { - "type": "string", - "description": "The GitHub repo environment name to sync to (only used when `sync_target` is set to \"repo\")\n", - "willReplaceOnChanges": true + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", @@ -2062,7 +6957,7 @@ }, "orgScope": { "type": "string", - "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when `sync_target` is set to \"org\")\n", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", "willReplaceOnChanges": true }, "project": { @@ -2072,7 +6967,7 @@ }, "repoName": { "type": "string", - "description": "The GitHub repo name to sync to (only used when `sync_target` is set to \"repo\")\n", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, "syncTarget": { @@ -2088,7 +6983,7 @@ "syncTarget" ], "stateInputs": { - "description": "Input properties used for looking up and filtering GithubActions resources.\n", + "description": "Input properties used for looking up and filtering GithubDependabot resources.\n", "properties": { "config": { "type": "string", @@ -2097,12 +6992,7 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" - }, - "environmentName": { - "type": "string", - "description": "The GitHub repo environment name to sync to (only used when `sync_target` is set to \"repo\")\n", - "willReplaceOnChanges": true + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", @@ -2111,7 +7001,7 @@ }, "orgScope": { "type": "string", - "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when `sync_target` is set to \"org\")\n", + "description": "Either \"all\" or \"private\", based on the which repos you want to have access (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"org\")\n", "willReplaceOnChanges": true }, "project": { @@ -2121,7 +7011,7 @@ }, "repoName": { "type": "string", - "description": "The GitHub repo name to sync to (only used when `sync_target` is set to \"repo\")\n", + "description": "The GitHub repo name to sync to (only used when \u003cspan pulumi-lang-nodejs=\"`syncTarget`\" pulumi-lang-dotnet=\"`SyncTarget`\" pulumi-lang-go=\"`syncTarget`\" pulumi-lang-python=\"`sync_target`\" pulumi-lang-yaml=\"`syncTarget`\" pulumi-lang-java=\"`syncTarget`\" pulumi-lang-hcl=\"`sync_target`\"\u003e`syncTarget`\u003c/span\u003e is set to \"repo\")\n", "willReplaceOnChanges": true }, "syncTarget": { @@ -2134,7 +7024,7 @@ } }, "doppler:secretsSync/terraformCloud:TerraformCloud": { - "description": "## Example Usage\n\n", + "description": "Manage a Terraform Cloud Doppler sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\nimport * as tfe from \"@pulumi/tfe\";\n\nconst prod = tfe.workspace({\n name: \"my-workspace-name\",\n organization: \"my-org-name\",\n});\nconst prodTerraformCloud = new doppler.integration.TerraformCloud(\"prod\", {\n name: \"Production\",\n apiKey: \"my_api_key\",\n});\nconst backendProd = new doppler.secretssync.TerraformCloud(\"backend_prod\", {\n integration: prodTerraformCloud.id,\n project: \"backend\",\n config: \"prd\",\n syncTarget: \"workspace\",\n workspaceId: prod.id,\n variableSyncType: \"terraform\",\n nameTransform: \"lowercase\",\n deleteBehavior: \"leave_in_target\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\nimport pulumi_tfe as tfe\n\nprod = tfe.workspace(name=\"my-workspace-name\",\n organization=\"my-org-name\")\nprod_terraform_cloud = doppler.integration.TerraformCloud(\"prod\",\n name=\"Production\",\n api_key=\"my_api_key\")\nbackend_prod = doppler.secretssync.TerraformCloud(\"backend_prod\",\n integration=prod_terraform_cloud.id,\n project=\"backend\",\n config=\"prd\",\n sync_target=\"workspace\",\n workspace_id=prod[\"id\"],\n variable_sync_type=\"terraform\",\n name_transform=\"lowercase\",\n delete_behavior=\"leave_in_target\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\nusing Tfe = Pulumi.Tfe;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod = Tfe.Workspace.Invoke(new()\n {\n Name = \"my-workspace-name\",\n Organization = \"my-org-name\",\n });\n\n var prodTerraformCloud = new Doppler.Integration.TerraformCloud(\"prod\", new()\n {\n Name = \"Production\",\n ApiKey = \"my_api_key\",\n });\n\n var backendProd = new Doppler.SecretsSync.TerraformCloud(\"backend_prod\", new()\n {\n Integration = prodTerraformCloud.Id,\n Project = \"backend\",\n Config = \"prd\",\n SyncTarget = \"workspace\",\n WorkspaceId = prod.Id,\n VariableSyncType = \"terraform\",\n NameTransform = \"lowercase\",\n DeleteBehavior = \"leave_in_target\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration\"\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync\"\n\t\"github.com/pulumi/pulumi-tfe/sdk/go/tfe\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tprod, err := tfe.Workspace(ctx, map[string]string{\n\t\t\t\"name\": \"my-workspace-name\",\n\t\t\t\"organization\": \"my-org-name\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tprodTerraformCloud, err := integration.NewTerraformCloud(ctx, \"prod\", \u0026integration.TerraformCloudArgs{\n\t\t\tName: pulumi.String(\"Production\"),\n\t\t\tApiKey: pulumi.String(\"my_api_key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = secretssync.NewTerraformCloud(ctx, \"backend_prod\", \u0026secretssync.TerraformCloudArgs{\n\t\t\tIntegration: prodTerraformCloud.ID(),\n\t\t\tProject: pulumi.String(\"backend\"),\n\t\t\tConfig: pulumi.String(\"prd\"),\n\t\t\tSyncTarget: pulumi.String(\"workspace\"),\n\t\t\tWorkspaceId: pulumi.Any(prod.Id),\n\t\t\tVariableSyncType: pulumi.String(\"terraform\"),\n\t\t\tNameTransform: pulumi.String(\"lowercase\"),\n\t\t\tDeleteBehavior: pulumi.String(\"leave_in_target\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"tfe_workspace\" \"prod\" {\n name = \"my-workspace-name\"\n organization = \"my-org-name\"\n}\n\nresource \"doppler_integration_terraform_cloud\" \"prod\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production\"\n api_key = \"my_api_key\"\n}\nresource \"doppler_secrets_sync_terraform_cloud\" \"backend_prod\" {\n lifecycle {\n create_before_destroy = true\n }\n integration = doppler_integration_terraform_cloud.prod.id\n project = \"backend\"\n config = \"prd\"\n sync_target = \"workspace\"\n workspace_id = data.tfe_workspace.prod.id\n variable_sync_type = \"terraform\"\n name_transform = \"lowercase\"\n delete_behavior = \"leave_in_target\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.tfe.TfeFunctions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var prod = TfeFunctions.Workspace(Map.ofEntries(\n Map.entry(\"name\", \"my-workspace-name\"),\n Map.entry(\"organization\", \"my-org-name\")\n ));\n\n var prodTerraformCloud = new com.pulumi.doppler.integration.TerraformCloud(\"prodTerraformCloud\", com.pulumi.doppler.integration.TerraformCloudArgs.builder()\n .name(\"Production\")\n .apiKey(\"my_api_key\")\n .build());\n\n var backendProd = new com.pulumi.doppler.secretsSync.TerraformCloud(\"backendProd\", com.pulumi.doppler.secretsSync.TerraformCloudArgs.builder()\n .integration(prodTerraformCloud.id())\n .project(\"backend\")\n .config(\"prd\")\n .syncTarget(\"workspace\")\n .workspaceId(prod.get(\"id\"))\n .variableSyncType(\"terraform\")\n .nameTransform(\"lowercase\")\n .deleteBehavior(\"leave_in_target\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prodTerraformCloud:\n type: doppler:integration:TerraformCloud\n name: prod\n properties:\n name: Production\n apiKey: my_api_key\n backendProd:\n type: doppler:secretsSync:TerraformCloud\n name: backend_prod\n properties:\n integration: ${prodTerraformCloud.id}\n project: backend\n config: prd\n syncTarget: workspace\n workspaceId: ${prod.id}\n variableSyncType: terraform\n nameTransform: lowercase\n deleteBehavior: leave_in_target\nvariables:\n prod:\n fn::invoke:\n function: tfe:Workspace\n arguments:\n name: my-workspace-name\n organization: my-org-name\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "config": { "type": "string", @@ -2142,7 +7032,7 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", @@ -2161,13 +7051,16 @@ "description": "Either \"workspace\" or \"variableSet\", based on the resource type to sync to\n" }, "variableSetId": { - "type": "string" + "type": "string", + "description": "The Terraform Cloud variable set ID to sync to\n" }, "variableSyncType": { - "type": "string" + "type": "string", + "description": "Either \"terraform\" to sync secrets as Terraform variables or \"env\" to sync as environment variables\n" }, "workspaceId": { - "type": "string" + "type": "string", + "description": "The Terraform Cloud workspace ID to sync to\n" } }, "required": [ @@ -2186,7 +7079,7 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", @@ -2210,14 +7103,17 @@ }, "variableSetId": { "type": "string", + "description": "The Terraform Cloud variable set ID to sync to\n", "willReplaceOnChanges": true }, "variableSyncType": { "type": "string", + "description": "Either \"terraform\" to sync secrets as Terraform variables or \"env\" to sync as environment variables\n", "willReplaceOnChanges": true }, "workspaceId": { "type": "string", + "description": "The Terraform Cloud workspace ID to sync to\n", "willReplaceOnChanges": true } }, @@ -2239,7 +7135,7 @@ }, "deleteBehavior": { "type": "string", - "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`.\n" + "description": "The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either \u003cspan pulumi-lang-nodejs=\"`leaveInTarget`\" pulumi-lang-dotnet=\"`LeaveInTarget`\" pulumi-lang-go=\"`leaveInTarget`\" pulumi-lang-python=\"`leave_in_target`\" pulumi-lang-yaml=\"`leaveInTarget`\" pulumi-lang-java=\"`leaveInTarget`\" pulumi-lang-hcl=\"`leave_in_target`\"\u003e`leaveInTarget`\u003c/span\u003e (default) or \u003cspan pulumi-lang-nodejs=\"`deleteFromTarget`\" pulumi-lang-dotnet=\"`DeleteFromTarget`\" pulumi-lang-go=\"`deleteFromTarget`\" pulumi-lang-python=\"`delete_from_target`\" pulumi-lang-yaml=\"`deleteFromTarget`\" pulumi-lang-java=\"`deleteFromTarget`\" pulumi-lang-hcl=\"`delete_from_target`\"\u003e`deleteFromTarget`\u003c/span\u003e.\n" }, "integration": { "type": "string", @@ -2263,14 +7159,17 @@ }, "variableSetId": { "type": "string", + "description": "The Terraform Cloud variable set ID to sync to\n", "willReplaceOnChanges": true }, "variableSyncType": { "type": "string", + "description": "Either \"terraform\" to sync secrets as Terraform variables or \"env\" to sync as environment variables\n", "willReplaceOnChanges": true }, "workspaceId": { "type": "string", + "description": "The Terraform Cloud workspace ID to sync to\n", "willReplaceOnChanges": true } }, @@ -2279,6 +7178,86 @@ } }, "functions": { + "doppler:index/getEnvironments:getEnvironments": { + "description": "Retrieve all environments in the project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst all = doppler.getEnvironments({\n project: \"my-project\",\n});\nexport const environmentNames = all.then(all =\u003e .map(env =\u003e (env.name)));\nexport const environmentSlugs = all.then(all =\u003e .map(env =\u003e (env.slug)));\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nall = doppler.get_environments(project=\"my-project\")\npulumi.export(\"environmentNames\", [env.name for env in all.environments])\npulumi.export(\"environmentSlugs\", [env.slug for env in all.environments])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var all = Doppler.GetEnvironments.Invoke(new()\n {\n Project = \"my-project\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"environmentNames\"] = .Select(env =\u003e \n {\n return env.Name;\n }).ToList(),\n [\"environmentSlugs\"] = .Select(env =\u003e \n {\n return env.Slug;\n }).ToList(),\n };\n});\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_environments\" \"all\" {\n project = \"my-project\"\n}\n\noutput \"environmentNames\" {\n value = [for env in data.doppler_environments.all.environments : env.name]\n}\noutput \"environmentSlugs\" {\n value = [for env in data.doppler_environments.all.environments : env.slug]\n}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "inputs": { + "description": "A collection of arguments for invoking getEnvironments.\n", + "properties": { + "project": { + "type": "string", + "description": "The project to list environments for\n" + } + }, + "type": "object", + "required": [ + "project" + ] + }, + "outputs": { + "description": "A collection of values returned by getEnvironments.\n", + "properties": { + "environments": { + "description": "List of environments in the project\n", + "items": { + "$ref": "#/types/doppler:index/getEnvironmentsEnvironment:getEnvironmentsEnvironment" + }, + "type": "array" + }, + "id": { + "description": "The provider-assigned unique ID for this managed resource.", + "type": "string" + }, + "project": { + "description": "The project to list environments for\n", + "type": "string" + } + }, + "required": [ + "environments", + "project", + "id" + ], + "type": "object" + } + }, + "doppler:index/getGroup:getGroup": { + "description": "Retrieve an existing Doppler group.\n\n", + "inputs": { + "description": "A collection of arguments for invoking getGroup.\n", + "properties": { + "name": { + "type": "string", + "description": "The name of the Doppler group\n" + }, + "slug": { + "type": "string", + "description": "The slug of the Doppler group\n" + } + }, + "type": "object" + }, + "outputs": { + "description": "A collection of values returned by getGroup.\n", + "properties": { + "id": { + "description": "The provider-assigned unique ID for this managed resource.", + "type": "string" + }, + "name": { + "description": "The name of the Doppler group\n", + "type": "string" + }, + "slug": { + "description": "The slug of the Doppler group\n", + "type": "string" + } + }, + "required": [ + "id" + ], + "type": "object" + } + }, "doppler:index/getSecrets:getSecrets": { "description": "Retrieve all secrets in the config.\n\n", "inputs": { @@ -2303,7 +7282,7 @@ "type": "string" }, "id": { - "description": "The provider-assigned unique ID for this managed resource.\n", + "description": "The provider-assigned unique ID for this managed resource.", "type": "string" }, "map": { @@ -2327,7 +7306,7 @@ } }, "doppler:index/getUser:getUser": { - "description": "Retrieve an existing Doppler user.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@pulumi/doppler\";\n\nconst nic = doppler.getUser({\n email: \"nic@doppler.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nnic = doppler.get_user(email=\"nic@doppler.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = Pulumi.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var nic = Doppler.GetUser.Invoke(new()\n {\n Email = \"nic@doppler.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"nic@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.DopplerFunctions;\nimport com.pulumi.doppler.inputs.GetUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var nic = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"nic@doppler.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n nic:\n fn::invoke:\n Function: doppler:getUser\n Arguments:\n email: nic@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Retrieve an existing Doppler user.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as doppler from \"@dopplerhq/pulumi-doppler\";\n\nconst nic = doppler.getUser({\n email: \"nic@doppler.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_doppler as doppler\n\nnic = doppler.get_user(email=\"nic@doppler.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Doppler = DopplerHQ.Doppler;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var nic = Doppler.GetUser.Invoke(new()\n {\n Email = \"nic@doppler.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := doppler.GetUser(ctx, \u0026doppler.GetUserArgs{\n\t\t\tEmail: \"nic@doppler.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n doppler = {\n source = \"pulumi/doppler\"\n }\n }\n}\n\ndata \"doppler_user\" \"nic\" {\n email = \"nic@doppler.com\"\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.doppler.DopplerFunctions;\nimport com.pulumi.doppler.inputs.GetUserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var nic = DopplerFunctions.getUser(GetUserArgs.builder()\n .email(\"nic@doppler.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n nic:\n fn::invoke:\n function: doppler:getUser\n arguments:\n email: nic@doppler.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { @@ -2349,7 +7328,7 @@ "type": "string" }, "id": { - "description": "The provider-assigned unique ID for this managed resource.\n", + "description": "The provider-assigned unique ID for this managed resource.", "type": "string" }, "slug": { @@ -2364,6 +7343,35 @@ ], "type": "object" } + }, + "pulumi:providers:doppler/terraformConfig": { + "description": "This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.", + "inputs": { + "properties": { + "__self__": { + "type": "ref", + "$ref": "#/provider" + } + }, + "type": "pulumi:providers:doppler/terraformConfig", + "required": [ + "__self__" + ] + }, + "outputs": { + "properties": { + "result": { + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "type": "object" + } + }, + "required": [ + "result" + ], + "type": "object" + } } } } \ No newline at end of file diff --git a/provider/cmd/pulumi-tfgen-doppler/main.go b/provider/cmd/pulumi-tfgen-doppler/main.go index c2d0783..638f287 100644 --- a/provider/cmd/pulumi-tfgen-doppler/main.go +++ b/provider/cmd/pulumi-tfgen-doppler/main.go @@ -16,8 +16,9 @@ package main import ( "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen" - doppler "github.com/pulumiverse/pulumi-doppler/provider" - "github.com/pulumiverse/pulumi-doppler/provider/pkg/version" + + doppler "github.com/DopplerHQ/pulumi-doppler/provider" + "github.com/DopplerHQ/pulumi-doppler/provider/pkg/version" ) func main() { diff --git a/provider/go.mod b/provider/go.mod index b159507..a6a140e 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,145 +1,131 @@ -module github.com/pulumiverse/pulumi-doppler/provider +module github.com/DopplerHQ/pulumi-doppler/provider -go 1.22 - -toolchain go1.22.1 - -replace ( - github.com/hashicorp/go-getter v1.5.0 => github.com/hashicorp/go-getter v1.7.5 - github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10 -) +go 1.26.6 require ( - github.com/DopplerHQ/terraform-provider-doppler v1.10.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 - github.com/pulumi/pulumi/sdk/v3 v3.129.0 + github.com/DopplerHQ/terraform-provider-doppler v1.22.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.141.0 + github.com/pulumi/pulumi/sdk/v3 v3.270.0 ) require ( - cloud.google.com/go v0.112.1 // indirect - cloud.google.com/go/compute v1.25.0 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/iam v1.1.6 // indirect - cloud.google.com/go/kms v1.15.7 // indirect - cloud.google.com/go/logging v1.9.0 // indirect - cloud.google.com/go/longrunning v0.5.5 // indirect - cloud.google.com/go/storage v1.39.1 // indirect - dario.cat/mergo v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect - github.com/BurntSushi/toml v1.2.1 // indirect + cel.dev/expr v0.25.2 // indirect + cloud.google.com/go v0.123.0 // indirect + cloud.google.com/go/auth v0.22.0 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect + cloud.google.com/go/compute/metadata v0.9.0 // indirect + cloud.google.com/go/iam v1.12.0 // indirect + cloud.google.com/go/monitoring v1.30.0 // indirect + cloud.google.com/go/storage v1.64.0 // indirect + github.com/BurntSushi/toml v1.6.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.35.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.59.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.59.0 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.1.0-alpha.0 // indirect - github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect + github.com/ProtonMail/go-crypto v1.5.2 // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-cidr v1.1.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect - github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go v1.50.36 // indirect - github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect - github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect - github.com/aws/aws-sdk-go-v2/service/kms v1.30.1 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect - github.com/aws/smithy-go v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2 v1.43.0 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14 // indirect + github.com/aws/aws-sdk-go-v2/config v1.32.31 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.19.30 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.31 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.31 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.31 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.32 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.13 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.24 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.31 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.32 // indirect + github.com/aws/aws-sdk-go-v2/service/s3 v1.106.0 // indirect + github.com/aws/aws-sdk-go-v2/service/signin v1.5.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.33.0 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.38.0 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.45.0 // indirect + github.com/aws/smithy-go v1.27.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/blang/semver v3.5.1+incompatible // indirect - github.com/cenkalti/backoff/v3 v3.2.2 // indirect - github.com/charmbracelet/bubbles v0.16.1 // indirect - github.com/charmbracelet/bubbletea v0.25.0 // indirect - github.com/charmbracelet/lipgloss v0.7.1 // indirect - github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/deckarep/golang-set/v2 v2.5.0 // indirect - github.com/djherbis/times v1.5.0 // indirect + github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/charmbracelet/bubbles v1.0.0 // indirect + github.com/charmbracelet/bubbletea v1.3.10 // indirect + github.com/charmbracelet/colorprofile v0.4.3 // indirect + github.com/charmbracelet/lipgloss v1.1.0 // indirect + github.com/charmbracelet/x/ansi v0.11.9 // indirect + github.com/charmbracelet/x/cellbuf v0.0.15 // indirect + github.com/charmbracelet/x/term v0.2.2 // indirect + github.com/clipperhouse/displaywidth v0.11.0 // indirect + github.com/clipperhouse/uax29/v2 v2.7.0 // indirect + github.com/cloudflare/circl v1.6.5 // indirect + github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect + github.com/danieljoos/wincred v1.2.3 // indirect + github.com/deckarep/golang-set/v2 v2.9.0 // indirect + github.com/djherbis/times v1.6.0 // indirect + github.com/ebitengine/purego v0.10.2 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect - github.com/ettle/strcase v0.1.1 // indirect - github.com/fatih/color v1.16.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.12.0 // indirect - github.com/go-jose/go-jose/v3 v3.0.3 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect + github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect + github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect + github.com/fatih/color v1.18.0 // indirect + github.com/felixge/httpsnoop v1.1.0 // indirect + github.com/go-git/gcfg/v2 v2.0.2 // indirect + github.com/go-git/go-billy/v6 v6.0.0-beta.1 // indirect + github.com/go-git/go-git/v6 v6.0.0-beta.1 // indirect + github.com/go-jose/go-jose/v4 v4.1.4 // indirect + github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/gofrs/uuid v4.2.0+incompatible // indirect + github.com/godbus/dbus/v5 v5.2.2 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/golang/glog v1.2.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/glog v1.2.5 // indirect github.com/golang/protobuf v1.5.4 // indirect - github.com/google/go-cmp v0.6.0 // indirect - github.com/google/go-querystring v1.1.0 // indirect - github.com/google/s2a-go v0.1.7 // indirect + github.com/google/go-cmp v0.7.0 // indirect + github.com/google/go-tpm v0.9.8 // indirect + github.com/google/s2a-go v0.1.9 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/google/wire v0.6.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.2 // indirect - github.com/gorilla/mux v1.8.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.19 // indirect + github.com/googleapis/gax-go/v2 v2.23.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.32.0 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect + github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.72 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-getter v1.7.5 // indirect + github.com/hashicorp/go-cty v1.5.0 // indirect + github.com/hashicorp/go-getter v1.8.6 // indirect github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-retryablehttp v0.7.7 // indirect - github.com/hashicorp/go-rootcerts v1.0.2 // indirect - github.com/hashicorp/go-safetemp v1.0.0 // indirect - github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8 // indirect - github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect - github.com/hashicorp/go-sockaddr v1.0.6 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.19.1 // indirect + github.com/hashicorp/go-version v1.9.0 // indirect + github.com/hashicorp/hcl v1.0.1-vault-7 // indirect + github.com/hashicorp/hcl/v2 v2.24.0 // indirect github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect - github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect - github.com/hashicorp/terraform-plugin-sdk v1.9.1 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.31.0 // indirect + github.com/hashicorp/terraform-plugin-log v0.10.0 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.40.1 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect - github.com/hashicorp/vault/api v1.12.0 // indirect github.com/huandu/xstrings v1.3.3 // indirect - github.com/iancoleman/strcase v0.2.0 // indirect + github.com/iancoleman/strcase v0.3.0 // indirect github.com/imdario/mergo v0.3.15 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect - github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/klauspost/compress v1.15.11 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect + github.com/kevinburke/ssh_config v1.6.0 // indirect + github.com/klauspost/compress v1.18.7 // indirect + github.com/lucasb-eyer/go-colorful v1.4.1 // indirect + github.com/mattn/go-colorable v0.1.14 // indirect + github.com/mattn/go-isatty v0.0.24 // indirect github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.31 // indirect github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect @@ -150,91 +136,101 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/reflow v0.3.0 // indirect - github.com/muesli/termenv v0.15.2 // indirect + github.com/muesli/termenv v0.16.0 // indirect github.com/natefinch/atomic v1.0.1 // indirect + github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect + github.com/olekukonko/errors v1.1.0 // indirect + github.com/olekukonko/ll v0.1.4-0.20260115111900-9e59c2286df0 // indirect + github.com/olekukonko/tablewriter v1.1.3 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pgavlin/fx v0.1.6 // indirect github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect - github.com/pjbgf/sha1cd v0.3.0 // indirect - github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect + github.com/pjbgf/sha1cd v0.7.0 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.14.0 // indirect - github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.9.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.129.0 // indirect - github.com/pulumi/schema-tools v0.1.2 // indirect + github.com/pulumi/inflector v0.2.1 // indirect + github.com/pulumi/pulumi-cloud-sdk/go v1.20261012.0 // indirect + github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.114.2 // indirect + github.com/pulumi/pulumi-hcl v0.18.5 // indirect + github.com/pulumi/pulumi-java v1.37.4 // indirect + github.com/pulumi/pulumi-yaml v1.38.10 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.270.0 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/ryanuber/go-glob v1.0.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect - github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect + github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect github.com/segmentio/asm v1.1.3 // indirect - github.com/segmentio/encoding v0.3.5 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect + github.com/segmentio/encoding v0.3.6 // indirect + github.com/sergi/go-diff v1.4.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect - github.com/skeema/knownhosts v1.2.2 // indirect - github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/cobra v1.8.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.9.0 // indirect + github.com/spf13/cobra v1.10.2 // indirect + github.com/spf13/pflag v1.0.10 // indirect + github.com/spiffe/go-spiffe/v2 v2.8.1 // indirect + github.com/stretchr/objx v0.5.3 // indirect github.com/teekennedy/goldmark-markdown v0.3.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/ulikunitz/xz v0.5.10 // indirect + github.com/ulikunitz/xz v0.5.15 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect - github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect - github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/yuin/goldmark v1.7.4 // indirect - github.com/zclconf/go-cty v1.14.2 // indirect - go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect - go.opentelemetry.io/otel v1.24.0 // indirect - go.opentelemetry.io/otel/metric v1.24.0 // indirect - go.opentelemetry.io/otel/trace v1.24.0 // indirect - go.uber.org/atomic v1.9.0 // indirect - gocloud.dev v0.37.0 // indirect - gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.25.0 // indirect - golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/oauth2 v0.18.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/term v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.22.0 // indirect - golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect - google.golang.org/api v0.169.0 // indirect + github.com/xo/terminfo v1.2.0 // indirect + github.com/yuin/goldmark v1.7.17 // indirect + github.com/zalando/go-keyring v0.2.8 // indirect + github.com/zclconf/go-cty v1.18.1 // indirect + github.com/zclconf/go-cty-yaml v1.2.0 // indirect + go.mongodb.org/mongo-driver v1.17.10 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/collector/featuregate v1.69.0 // indirect + go.opentelemetry.io/collector/pdata v1.69.0 // indirect + go.opentelemetry.io/contrib/bridges/otelslog v0.21.0 // indirect + go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.72.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 // indirect + go.opentelemetry.io/otel v1.47.0 // indirect + go.opentelemetry.io/otel/bridge/opentracing v1.47.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.23.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.47.0 // indirect + go.opentelemetry.io/otel/log v1.47.0 // indirect + go.opentelemetry.io/otel/metric v1.47.0 // indirect + go.opentelemetry.io/otel/sdk v1.47.0 // indirect + go.opentelemetry.io/otel/sdk/log v1.47.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.47.0 // indirect + go.opentelemetry.io/otel/trace v1.47.0 // indirect + go.opentelemetry.io/proto/otlp v1.11.1 // indirect + go.uber.org/atomic v1.12.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.58.0 // indirect + golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e // indirect + golang.org/x/mod v0.42.0 // indirect + golang.org/x/net v0.61.0 // indirect + golang.org/x/oauth2 v0.36.0 // indirect + golang.org/x/sync v0.24.0 // indirect + golang.org/x/sys v0.49.0 // indirect + golang.org/x/term v0.47.0 // indirect + golang.org/x/text v0.43.0 // indirect + golang.org/x/time v0.15.0 // indirect + golang.org/x/tools v0.52.0 // indirect + google.golang.org/api v0.290.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.34.0 // indirect - gopkg.in/warnings.v0 v0.1.2 // indirect + google.golang.org/genproto v0.0.0-20260724162435-b2f20204f0df // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20261012220534-4341edf3f941 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941 // indirect + google.golang.org/grpc v1.84.0 // indirect + google.golang.org/protobuf v1.36.12 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/frand v1.4.2 // indirect + lukechampine.com/frand v1.5.1 // indirect ) diff --git a/provider/go.sum b/provider/go.sum index e55c0a9..cb2998f 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1,9 +1,10 @@ +cel.dev/expr v0.25.2 h1:K6j46C81hXtZQfuX60cVWQFBJahKSE2gfRbNuvr5bFs= +cel.dev/expr v0.25.2/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= 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= @@ -12,1167 +13,75 @@ cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6 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/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY= -cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= -cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= -cloud.google.com/go v0.110.6/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= -cloud.google.com/go v0.110.7/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= -cloud.google.com/go v0.110.8/go.mod h1:Iz8AkXJf1qmxC3Oxoep8R1T36w8B92yU29PcBhHO5fk= -cloud.google.com/go v0.110.9/go.mod h1:rpxevX/0Lqvlbc88b7Sc1SPNdyK1riNBTUU6JXhYNpM= -cloud.google.com/go v0.110.10/go.mod h1:v1OoFqYxiBkUrruItNM3eT4lLByNjxmJSV/xDKJNnic= -cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM= -cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= -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/accessapproval v1.7.1/go.mod h1:JYczztsHRMK7NTXb6Xw+dwbs/WnOJxbo/2mTI+Kgg68= -cloud.google.com/go/accessapproval v1.7.2/go.mod h1:/gShiq9/kK/h8T/eEn1BTzalDvk0mZxJlhfw0p+Xuc0= -cloud.google.com/go/accessapproval v1.7.3/go.mod h1:4l8+pwIxGTNqSf4T3ds8nLO94NQf0W/KnMNuQ9PbnP8= -cloud.google.com/go/accessapproval v1.7.4/go.mod h1:/aTEh45LzplQgFYdQdwPMR9YdX0UlhBmvB84uAmQKUc= -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/go.mod h1:CEGLewx8dwa33aDAZQujl7Dx+uYhS0eay198wB/VumQ= -cloud.google.com/go/accesscontextmanager v1.8.0/go.mod h1:uI+AI/r1oyWK99NN8cQ3UK76AMelMzgZCvJfsi2c+ps= -cloud.google.com/go/accesscontextmanager v1.8.1/go.mod h1:JFJHfvuaTC+++1iL1coPiG1eu5D24db2wXCDWDjIrxo= -cloud.google.com/go/accesscontextmanager v1.8.2/go.mod h1:E6/SCRM30elQJ2PKtFMs2YhfJpZSNcJyejhuzoId4Zk= -cloud.google.com/go/accesscontextmanager v1.8.3/go.mod h1:4i/JkF2JiFbhLnnpnfoTX5vRXfhf9ukhU1ANOTALTOQ= -cloud.google.com/go/accesscontextmanager v1.8.4/go.mod h1:ParU+WbMpD34s5JFEnGAnPBYAgUHozaTmDJU7aCU9+M= -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/aiplatform v1.45.0/go.mod h1:Iu2Q7sC7QGhXUeOhAj/oCK9a+ULz1O4AotZiqjQ8MYA= -cloud.google.com/go/aiplatform v1.48.0/go.mod h1:Iu2Q7sC7QGhXUeOhAj/oCK9a+ULz1O4AotZiqjQ8MYA= -cloud.google.com/go/aiplatform v1.50.0/go.mod h1:IRc2b8XAMTa9ZmfJV1BCCQbieWWvDnP1A8znyz5N7y4= -cloud.google.com/go/aiplatform v1.51.0/go.mod h1:IRc2b8XAMTa9ZmfJV1BCCQbieWWvDnP1A8znyz5N7y4= -cloud.google.com/go/aiplatform v1.51.1/go.mod h1:kY3nIMAVQOK2XDqDPHaOuD9e+FdMA6OOpfBjsvaFSOo= -cloud.google.com/go/aiplatform v1.51.2/go.mod h1:hCqVYB3mY45w99TmetEoe8eCQEwZEp9WHxeZdcv9phw= -cloud.google.com/go/aiplatform v1.52.0/go.mod h1:pwZMGvqe0JRkI1GWSZCtnAfrR4K1bv65IHILGA//VEU= -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/analytics v0.21.2/go.mod h1:U8dcUtmDmjrmUTnnnRnI4m6zKn/yaA5N9RlEkYFHpQo= -cloud.google.com/go/analytics v0.21.3/go.mod h1:U8dcUtmDmjrmUTnnnRnI4m6zKn/yaA5N9RlEkYFHpQo= -cloud.google.com/go/analytics v0.21.4/go.mod h1:zZgNCxLCy8b2rKKVfC1YkC2vTrpfZmeRCySM3aUbskA= -cloud.google.com/go/analytics v0.21.5/go.mod h1:BQtOBHWTlJ96axpPPnw5CvGJ6i3Ve/qX2fTxR8qWyr8= -cloud.google.com/go/analytics v0.21.6/go.mod h1:eiROFQKosh4hMaNhF85Oc9WO97Cpa7RggD40e/RBy8w= -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/apigateway v1.6.1/go.mod h1:ufAS3wpbRjqfZrzpvLC2oh0MFlpRJm2E/ts25yyqmXA= -cloud.google.com/go/apigateway v1.6.2/go.mod h1:CwMC90nnZElorCW63P2pAYm25AtQrHfuOkbRSHj0bT8= -cloud.google.com/go/apigateway v1.6.3/go.mod h1:k68PXWpEs6BVDTtnLQAyG606Q3mz8pshItwPXjgv44Y= -cloud.google.com/go/apigateway v1.6.4/go.mod h1:0EpJlVGH5HwAN4VF4Iec8TAzGN1aQgbxAWGJsnPCGGY= -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/apigeeconnect v1.6.1/go.mod h1:C4awq7x0JpLtrlQCr8AzVIzAaYgngRqWf9S5Uhg+wWs= -cloud.google.com/go/apigeeconnect v1.6.2/go.mod h1:s6O0CgXT9RgAxlq3DLXvG8riw8PYYbU/v25jqP3Dy18= -cloud.google.com/go/apigeeconnect v1.6.3/go.mod h1:peG0HFQ0si2bN15M6QSjEW/W7Gy3NYkWGz7pFz13cbo= -cloud.google.com/go/apigeeconnect v1.6.4/go.mod h1:CapQCWZ8TCjnU0d7PobxhpOdVz/OVJ2Hr/Zcuu1xFx0= -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/apigeeregistry v0.7.1/go.mod h1:1XgyjZye4Mqtw7T9TsY4NW10U7BojBvG4RMD+vRDrIw= -cloud.google.com/go/apigeeregistry v0.7.2/go.mod h1:9CA2B2+TGsPKtfi3F7/1ncCCsL62NXBRfM6iPoGSM+8= -cloud.google.com/go/apigeeregistry v0.8.1/go.mod h1:MW4ig1N4JZQsXmBSwH4rwpgDonocz7FPBSw6XPGHmYw= -cloud.google.com/go/apigeeregistry v0.8.2/go.mod h1:h4v11TDGdeXJDJvImtgK2AFVvMIgGWjSb0HRnBSjcX8= -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/appengine v1.8.1/go.mod h1:6NJXGLVhZCN9aQ/AEDvmfzKEfoYBlfB80/BHiKVputY= -cloud.google.com/go/appengine v1.8.2/go.mod h1:WMeJV9oZ51pvclqFN2PqHoGnys7rK0rz6s3Mp6yMvDo= -cloud.google.com/go/appengine v1.8.3/go.mod h1:2oUPZ1LVZ5EXi+AF1ihNAF+S8JrzQ3till5m9VQkrsk= -cloud.google.com/go/appengine v1.8.4/go.mod h1:TZ24v+wXBujtkK77CXCpjZbnuTvsFNT41MUaZ28D6vg= -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/area120 v0.8.1/go.mod h1:BVfZpGpB7KFVNxPiQBuHkX6Ed0rS51xIgmGyjrAfzsg= -cloud.google.com/go/area120 v0.8.2/go.mod h1:a5qfo+x77SRLXnCynFWPUZhnZGeSgvQ+Y0v1kSItkh4= -cloud.google.com/go/area120 v0.8.3/go.mod h1:5zj6pMzVTH+SVHljdSKC35sriR/CVvQZzG/Icdyriw0= -cloud.google.com/go/area120 v0.8.4/go.mod h1:jfawXjxf29wyBXr48+W+GyX/f8fflxp642D/bb9v68M= -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/artifactregistry v1.14.1/go.mod h1:nxVdG19jTaSTu7yA7+VbWL346r3rIdkZ142BSQqhn5E= -cloud.google.com/go/artifactregistry v1.14.2/go.mod h1:Xk+QbsKEb0ElmyeMfdHAey41B+qBq3q5R5f5xD4XT3U= -cloud.google.com/go/artifactregistry v1.14.3/go.mod h1:A2/E9GXnsyXl7GUvQ/2CjHA+mVRoWAXC0brg2os+kNI= -cloud.google.com/go/artifactregistry v1.14.4/go.mod h1:SJJcZTMv6ce0LDMUnihCN7WSrI+kBSFV0KIKo8S8aYU= -cloud.google.com/go/artifactregistry v1.14.6/go.mod h1:np9LSFotNWHcjnOgh8UVK0RFPCTUGbO0ve3384xyHfE= -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/go.mod h1:WQAMyYek/b7NBpYq/K4KJWcRqzoalEsxz/t/dTk4THw= -cloud.google.com/go/asset v1.14.1/go.mod h1:4bEJ3dnHCqWCDbWJ/6Vn7GVI9LerSi7Rfdi03hd+WTQ= -cloud.google.com/go/asset v1.15.0/go.mod h1:tpKafV6mEut3+vN9ScGvCHXHj7FALFVta+okxFECHcg= -cloud.google.com/go/asset v1.15.1/go.mod h1:yX/amTvFWRpp5rcFq6XbCxzKT8RJUam1UoboE179jU4= -cloud.google.com/go/asset v1.15.2/go.mod h1:B6H5tclkXvXz7PD22qCA2TDxSVQfasa3iDlM89O2NXs= -cloud.google.com/go/asset v1.15.3/go.mod h1:yYLfUD4wL4X589A9tYrv4rFrba0QlDeag0CMcM5ggXU= -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/assuredworkloads v1.11.1/go.mod h1:+F04I52Pgn5nmPG36CWFtxmav6+7Q+c5QyJoL18Lry0= -cloud.google.com/go/assuredworkloads v1.11.2/go.mod h1:O1dfr+oZJMlE6mw0Bp0P1KZSlj5SghMBvTpZqIcUAW4= -cloud.google.com/go/assuredworkloads v1.11.3/go.mod h1:vEjfTKYyRUaIeA0bsGJceFV2JKpVRgyG2op3jfa59Zs= -cloud.google.com/go/assuredworkloads v1.11.4/go.mod h1:4pwwGNwy1RP0m+y12ef3Q/8PaiWrIDQ6nD2E8kvWI9U= -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/automl v1.13.1/go.mod h1:1aowgAHWYZU27MybSCFiukPO7xnyawv7pt3zK4bheQE= -cloud.google.com/go/automl v1.13.2/go.mod h1:gNY/fUmDEN40sP8amAX3MaXkxcqPIn7F1UIIPZpy4Mg= -cloud.google.com/go/automl v1.13.3/go.mod h1:Y8KwvyAZFOsMAPqUCfNu1AyclbC6ivCUF/MTwORymyY= -cloud.google.com/go/automl v1.13.4/go.mod h1:ULqwX/OLZ4hBVfKQaMtxMSTlPx0GqGbWN8uA/1EqCP8= -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/baremetalsolution v1.1.1/go.mod h1:D1AV6xwOksJMV4OSlWHtWuFNZZYujJknMAP4Qa27QIA= -cloud.google.com/go/baremetalsolution v1.2.0/go.mod h1:68wi9AwPYkEWIUT4SvSGS9UJwKzNpshjHsH4lzk8iOw= -cloud.google.com/go/baremetalsolution v1.2.1/go.mod h1:3qKpKIw12RPXStwQXcbhfxVj1dqQGEvcmA+SX/mUR88= -cloud.google.com/go/baremetalsolution v1.2.2/go.mod h1:O5V6Uu1vzVelYahKfwEWRMaS3AbCkeYHy3145s1FkhM= -cloud.google.com/go/baremetalsolution v1.2.3/go.mod h1:/UAQ5xG3faDdy180rCUv47e0jvpp3BFxT+Cl0PFjw5g= -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/batch v1.3.1/go.mod h1:VguXeQKXIYaeeIYbuozUmBR13AfL4SJP7IltNPS+A4A= -cloud.google.com/go/batch v1.4.1/go.mod h1:KdBmDD61K0ovcxoRHGrN6GmOBWeAOyCgKD0Mugx4Fkk= -cloud.google.com/go/batch v1.5.0/go.mod h1:KdBmDD61K0ovcxoRHGrN6GmOBWeAOyCgKD0Mugx4Fkk= -cloud.google.com/go/batch v1.5.1/go.mod h1:RpBuIYLkQu8+CWDk3dFD/t/jOCGuUpkpX+Y0n1Xccs8= -cloud.google.com/go/batch v1.6.1/go.mod h1:urdpD13zPe6YOK+6iZs/8/x2VBRofvblLpx0t57vM98= -cloud.google.com/go/batch v1.6.3/go.mod h1:J64gD4vsNSA2O5TtDB5AAux3nJ9iV8U3ilg3JDBYejU= -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/beyondcorp v0.6.1/go.mod h1:YhxDWw946SCbmcWo3fAhw3V4XZMSpQ/VYfcKGAEU8/4= -cloud.google.com/go/beyondcorp v1.0.0/go.mod h1:YhxDWw946SCbmcWo3fAhw3V4XZMSpQ/VYfcKGAEU8/4= -cloud.google.com/go/beyondcorp v1.0.1/go.mod h1:zl/rWWAFVeV+kx+X2Javly7o1EIQThU4WlkynffL/lk= -cloud.google.com/go/beyondcorp v1.0.2/go.mod h1:m8cpG7caD+5su+1eZr+TSvF6r21NdLJk4f9u4SP2Ntc= -cloud.google.com/go/beyondcorp v1.0.3/go.mod h1:HcBvnEd7eYr+HGDd5ZbuVmBYX019C6CEXBonXbCVwJo= +cloud.google.com/go v0.61.0/go.mod h1:XukKJg4Y7QsUu0Hxg3qQKUWR4VuWivmyMK2+rUyxAqw= +cloud.google.com/go v0.123.0 h1:2NAUJwPR47q+E35uaJeYoNhuNEM9kM8SjgRgdeOJUSE= +cloud.google.com/go v0.123.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU= +cloud.google.com/go/auth v0.22.0 h1:Xp9wAKkLoeaYb5pYZZoQGz4E9sdPxIbzS3gywZE3ciQ= +cloud.google.com/go/auth v0.22.0/go.mod h1:M9o2Oz+YI2jAfxewJgb1vyI3vceHF+eohmxyzmrl+9s= +cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= +cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= 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/bigquery v1.52.0/go.mod h1:3b/iXjRQGU4nKa87cXeg6/gogLjO8C6PmuM8i5Bi/u4= -cloud.google.com/go/bigquery v1.53.0/go.mod h1:3b/iXjRQGU4nKa87cXeg6/gogLjO8C6PmuM8i5Bi/u4= -cloud.google.com/go/bigquery v1.55.0/go.mod h1:9Y5I3PN9kQWuid6183JFhOGOW3GcirA5LpsKCUn+2ec= -cloud.google.com/go/bigquery v1.56.0/go.mod h1:KDcsploXTEY7XT3fDQzMUZlpQLHzE4itubHrnmhUrZA= -cloud.google.com/go/bigquery v1.57.1/go.mod h1:iYzC0tGVWt1jqSzBHqCr3lrRn0u13E8e+AqowBsDgug= -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/billing v1.16.0/go.mod h1:y8vx09JSSJG02k5QxbycNRrN7FGZB6F3CAcgum7jvGA= -cloud.google.com/go/billing v1.17.0/go.mod h1:Z9+vZXEq+HwH7bhJkyI4OQcR6TSbeMrjlpEjO2vzY64= -cloud.google.com/go/billing v1.17.1/go.mod h1:Z9+vZXEq+HwH7bhJkyI4OQcR6TSbeMrjlpEjO2vzY64= -cloud.google.com/go/billing v1.17.2/go.mod h1:u/AdV/3wr3xoRBk5xvUzYMS1IawOAPwQMuHgHMdljDg= -cloud.google.com/go/billing v1.17.3/go.mod h1:z83AkoZ7mZwBGT3yTnt6rSGI1OOsHSIi6a5M3mJ8NaU= -cloud.google.com/go/billing v1.17.4/go.mod h1:5DOYQStCxquGprqfuid/7haD7th74kyMBHkjO/OvDtk= -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/binaryauthorization v1.6.1/go.mod h1:TKt4pa8xhowwffiBmbrbcxijJRZED4zrqnwZ1lKH51U= -cloud.google.com/go/binaryauthorization v1.7.0/go.mod h1:Zn+S6QqTMn6odcMU1zDZCJxPjU2tZPV1oDl45lWY154= -cloud.google.com/go/binaryauthorization v1.7.1/go.mod h1:GTAyfRWYgcbsP3NJogpV3yeunbUIjx2T9xVeYovtURE= -cloud.google.com/go/binaryauthorization v1.7.2/go.mod h1:kFK5fQtxEp97m92ziy+hbu+uKocka1qRRL8MVJIgjv0= -cloud.google.com/go/binaryauthorization v1.7.3/go.mod h1:VQ/nUGRKhrStlGr+8GMS8f6/vznYLkdK5vaKfdCIpvU= -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/certificatemanager v1.7.1/go.mod h1:iW8J3nG6SaRYImIa+wXQ0g8IgoofDFRp5UMzaNk1UqI= -cloud.google.com/go/certificatemanager v1.7.2/go.mod h1:15SYTDQMd00kdoW0+XY5d9e+JbOPjp24AvF48D8BbcQ= -cloud.google.com/go/certificatemanager v1.7.3/go.mod h1:T/sZYuC30PTag0TLo28VedIRIj1KPGcOQzjWAptHa00= -cloud.google.com/go/certificatemanager v1.7.4/go.mod h1:FHAylPe/6IIKuaRmHbjbdLhGhVQ+CWHSD5Jq0k4+cCE= -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/channel v1.16.0/go.mod h1:eN/q1PFSl5gyu0dYdmxNXscY/4Fi7ABmeHCJNf/oHmc= -cloud.google.com/go/channel v1.17.0/go.mod h1:RpbhJsGi/lXWAUM1eF4IbQGbsfVlg2o8Iiy2/YLfVT0= -cloud.google.com/go/channel v1.17.1/go.mod h1:xqfzcOZAcP4b/hUDH0GkGg1Sd5to6di1HOJn/pi5uBQ= -cloud.google.com/go/channel v1.17.2/go.mod h1:aT2LhnftnyfQceFql5I/mP8mIbiiJS4lWqgXA815zMk= -cloud.google.com/go/channel v1.17.3/go.mod h1:QcEBuZLGGrUMm7kNj9IbU1ZfmJq2apotsV83hbxX7eE= -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/cloudbuild v1.10.1/go.mod h1:lyJg7v97SUIPq4RC2sGsz/9tNczhyv2AjML/ci4ulzU= -cloud.google.com/go/cloudbuild v1.13.0/go.mod h1:lyJg7v97SUIPq4RC2sGsz/9tNczhyv2AjML/ci4ulzU= -cloud.google.com/go/cloudbuild v1.14.0/go.mod h1:lyJg7v97SUIPq4RC2sGsz/9tNczhyv2AjML/ci4ulzU= -cloud.google.com/go/cloudbuild v1.14.1/go.mod h1:K7wGc/3zfvmYWOWwYTgF/d/UVJhS4pu+HAy7PL7mCsU= -cloud.google.com/go/cloudbuild v1.14.2/go.mod h1:Bn6RO0mBYk8Vlrt+8NLrru7WXlQ9/RDWz2uo5KG1/sg= -cloud.google.com/go/cloudbuild v1.14.3/go.mod h1:eIXYWmRt3UtggLnFGx4JvXcMj4kShhVzGndL1LwleEM= -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/clouddms v1.6.1/go.mod h1:Ygo1vL52Ov4TBZQquhz5fiw2CQ58gvu+PlS6PVXCpZI= -cloud.google.com/go/clouddms v1.7.0/go.mod h1:MW1dC6SOtI/tPNCciTsXtsGNEM0i0OccykPvv3hiYeM= -cloud.google.com/go/clouddms v1.7.1/go.mod h1:o4SR8U95+P7gZ/TX+YbJxehOCsM+fe6/brlrFquiszk= -cloud.google.com/go/clouddms v1.7.2/go.mod h1:Rk32TmWmHo64XqDvW7jgkFQet1tUKNVzs7oajtJT3jU= -cloud.google.com/go/clouddms v1.7.3/go.mod h1:fkN2HQQNUYInAU3NQ3vRLkV2iWs8lIdmBKOx4nrL6Hc= -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/cloudtasks v1.11.1/go.mod h1:a9udmnou9KO2iulGscKR0qBYjreuX8oHwpmFsKspEvM= -cloud.google.com/go/cloudtasks v1.12.1/go.mod h1:a9udmnou9KO2iulGscKR0qBYjreuX8oHwpmFsKspEvM= -cloud.google.com/go/cloudtasks v1.12.2/go.mod h1:A7nYkjNlW2gUoROg1kvJrQGhJP/38UaWwsnuBDOBVUk= -cloud.google.com/go/cloudtasks v1.12.3/go.mod h1:GPVXhIOSGEaR+3xT4Fp72ScI+HjHffSS4B8+BaBB5Ys= -cloud.google.com/go/cloudtasks v1.12.4/go.mod h1:BEPu0Gtt2dU6FxZHNqqNdGqIG86qyWKBPGnsb7udGY0= -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 v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI= -cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= -cloud.google.com/go/compute v1.21.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= -cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= -cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= -cloud.google.com/go/compute v1.23.2/go.mod h1:JJ0atRC0J/oWYiiVBmsSsrRnh92DhZPG4hFDcR04Rns= -cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= -cloud.google.com/go/compute v1.25.0 h1:H1/4SqSUhjPFE7L5ddzHOfY2bCAvjwNRZPNl6Ni5oYU= -cloud.google.com/go/compute v1.25.0/go.mod h1:GR7F0ZPZH8EhChlMo9FkLd7eUTwEymjqQagxzilIxIE= -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 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -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/contactcenterinsights v1.9.1/go.mod h1:bsg/R7zGLYMVxFFzfh9ooLTruLRCG9fnzhH9KznHhbM= -cloud.google.com/go/contactcenterinsights v1.10.0/go.mod h1:bsg/R7zGLYMVxFFzfh9ooLTruLRCG9fnzhH9KznHhbM= -cloud.google.com/go/contactcenterinsights v1.11.0/go.mod h1:hutBdImE4XNZ1NV4vbPJKSFOnQruhC5Lj9bZqWMTKiU= -cloud.google.com/go/contactcenterinsights v1.11.1/go.mod h1:FeNP3Kg8iteKM80lMwSk3zZZKVxr+PGnAId6soKuXwE= -cloud.google.com/go/contactcenterinsights v1.11.2/go.mod h1:A9PIR5ov5cRcd28KlDbmmXE8Aay+Gccer2h4wzkYFso= -cloud.google.com/go/contactcenterinsights v1.11.3/go.mod h1:HHX5wrz5LHVAwfI2smIotQG9x8Qd6gYilaHcLLLmNis= -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/container v1.22.1/go.mod h1:lTNExE2R7f+DLbAN+rJiKTisauFCaoDq6NURZ83eVH4= -cloud.google.com/go/container v1.24.0/go.mod h1:lTNExE2R7f+DLbAN+rJiKTisauFCaoDq6NURZ83eVH4= -cloud.google.com/go/container v1.26.0/go.mod h1:YJCmRet6+6jnYYRS000T6k0D0xUXQgBSaJ7VwI8FBj4= -cloud.google.com/go/container v1.26.1/go.mod h1:5smONjPRUxeEpDG7bMKWfDL4sauswqEtnBK1/KKpR04= -cloud.google.com/go/container v1.26.2/go.mod h1:YlO84xCt5xupVbLaMY4s3XNE79MUJ+49VmkInr6HvF4= -cloud.google.com/go/container v1.27.1/go.mod h1:b1A1gJeTBXVLQ6GGw9/9M4FG94BEGsqJ5+t4d/3N7O4= -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/containeranalysis v0.10.1/go.mod h1:Ya2jiILITMY68ZLPaogjmOMNkwsDrWBSTyBubGXO7j0= -cloud.google.com/go/containeranalysis v0.11.0/go.mod h1:4n2e99ZwpGxpNcz+YsFT1dfOHPQFGcAC8FN2M2/ne/U= -cloud.google.com/go/containeranalysis v0.11.1/go.mod h1:rYlUOM7nem1OJMKwE1SadufX0JP3wnXj844EtZAwWLY= -cloud.google.com/go/containeranalysis v0.11.2/go.mod h1:xibioGBC1MD2j4reTyV1xY1/MvKaz+fyM9ENWhmIeP8= -cloud.google.com/go/containeranalysis v0.11.3/go.mod h1:kMeST7yWFQMGjiG9K7Eov+fPNQcGhb8mXj/UcTiWw9U= -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/datacatalog v1.14.0/go.mod h1:h0PrGtlihoutNMp/uvwhawLQ9+c63Kz65UFqh49Yo+E= -cloud.google.com/go/datacatalog v1.14.1/go.mod h1:d2CevwTG4yedZilwe+v3E3ZBDRMobQfSG/a6cCCN5R4= -cloud.google.com/go/datacatalog v1.16.0/go.mod h1:d2CevwTG4yedZilwe+v3E3ZBDRMobQfSG/a6cCCN5R4= -cloud.google.com/go/datacatalog v1.17.1/go.mod h1:nCSYFHgtxh2MiEktWIz71s/X+7ds/UT9kp0PC7waCzE= -cloud.google.com/go/datacatalog v1.18.0/go.mod h1:nCSYFHgtxh2MiEktWIz71s/X+7ds/UT9kp0PC7waCzE= -cloud.google.com/go/datacatalog v1.18.1/go.mod h1:TzAWaz+ON1tkNr4MOcak8EBHX7wIRX/gZKM+yTVsv+A= -cloud.google.com/go/datacatalog v1.18.2/go.mod h1:SPVgWW2WEMuWHA+fHodYjmxPiMqcOiWfhc9OD5msigk= -cloud.google.com/go/datacatalog v1.18.3/go.mod h1:5FR6ZIF8RZrtml0VUao22FxhdjkoG+a0866rEnObryM= -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/dataflow v0.9.1/go.mod h1:Wp7s32QjYuQDWqJPFFlnBKhkAtiFpMTdg00qGbnIHVw= -cloud.google.com/go/dataflow v0.9.2/go.mod h1:vBfdBZ/ejlTaYIGB3zB4T08UshH70vbtZeMD+urnUSo= -cloud.google.com/go/dataflow v0.9.3/go.mod h1:HI4kMVjcHGTs3jTHW/kv3501YW+eloiJSLxkJa/vqFE= -cloud.google.com/go/dataflow v0.9.4/go.mod h1:4G8vAkHYCSzU8b/kmsoR2lWyHJD85oMJPHMtan40K8w= -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/dataform v0.8.1/go.mod h1:3BhPSiw8xmppbgzeBbmDvmSWlwouuJkXsXsb8UBih9M= -cloud.google.com/go/dataform v0.8.2/go.mod h1:X9RIqDs6NbGPLR80tnYoPNiO1w0wenKTb8PxxlhTMKM= -cloud.google.com/go/dataform v0.8.3/go.mod h1:8nI/tvv5Fso0drO3pEjtowz58lodx8MVkdV2q0aPlqg= -cloud.google.com/go/dataform v0.9.1/go.mod h1:pWTg+zGQ7i16pyn0bS1ruqIE91SdL2FDMvEYu/8oQxs= -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/datafusion v1.7.1/go.mod h1:KpoTBbFmoToDExJUso/fcCiguGDk7MEzOWXUsJo0wsI= -cloud.google.com/go/datafusion v1.7.2/go.mod h1:62K2NEC6DRlpNmI43WHMWf9Vg/YvN6QVi8EVwifElI0= -cloud.google.com/go/datafusion v1.7.3/go.mod h1:eoLt1uFXKGBq48jy9LZ+Is8EAVLnmn50lNncLzwYokE= -cloud.google.com/go/datafusion v1.7.4/go.mod h1:BBs78WTOLYkT4GVZIXQCZT3GFpkpDN4aBY4NDX/jVlM= -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/datalabeling v0.8.1/go.mod h1:XS62LBSVPbYR54GfYQsPXZjTW8UxCK2fkDciSrpRFdY= -cloud.google.com/go/datalabeling v0.8.2/go.mod h1:cyDvGHuJWu9U/cLDA7d8sb9a0tWLEletStu2sTmg3BE= -cloud.google.com/go/datalabeling v0.8.3/go.mod h1:tvPhpGyS/V7lqjmb3V0TaDdGvhzgR1JoW7G2bpi2UTI= -cloud.google.com/go/datalabeling v0.8.4/go.mod h1:Z1z3E6LHtffBGrNUkKwbwbDxTiXEApLzIgmymj8A3S8= -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/dataplex v1.8.1/go.mod h1:7TyrDT6BCdI8/38Uvp0/ZxBslOslP2X2MPDucliyvSE= -cloud.google.com/go/dataplex v1.9.0/go.mod h1:7TyrDT6BCdI8/38Uvp0/ZxBslOslP2X2MPDucliyvSE= -cloud.google.com/go/dataplex v1.9.1/go.mod h1:7TyrDT6BCdI8/38Uvp0/ZxBslOslP2X2MPDucliyvSE= -cloud.google.com/go/dataplex v1.10.1/go.mod h1:1MzmBv8FvjYfc7vDdxhnLFNskikkB+3vl475/XdCDhs= -cloud.google.com/go/dataplex v1.10.2/go.mod h1:xdC8URdTrCrZMW6keY779ZT1cTOfV8KEPNsw+LTRT1Y= -cloud.google.com/go/dataplex v1.11.1/go.mod h1:mHJYQQ2VEJHsyoC0OdNyy988DvEbPhqFs5OOLffLX0c= -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/dataproc/v2 v2.0.1/go.mod h1:7Ez3KRHdFGcfY7GcevBbvozX+zyWGcwLJvvAMwCaoZ4= -cloud.google.com/go/dataproc/v2 v2.2.0/go.mod h1:lZR7AQtwZPvmINx5J87DSOOpTfof9LVZju6/Qo4lmcY= -cloud.google.com/go/dataproc/v2 v2.2.1/go.mod h1:QdAJLaBjh+l4PVlVZcmrmhGccosY/omC1qwfQ61Zv/o= -cloud.google.com/go/dataproc/v2 v2.2.2/go.mod h1:aocQywVmQVF4i8CL740rNI/ZRpsaaC1Wh2++BJ7HEJ4= -cloud.google.com/go/dataproc/v2 v2.2.3/go.mod h1:G5R6GBc9r36SXv/RtZIVfB8SipI+xVn0bX5SxUzVYbY= -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/dataqna v0.8.1/go.mod h1:zxZM0Bl6liMePWsHA8RMGAfmTG34vJMapbHAxQ5+WA8= -cloud.google.com/go/dataqna v0.8.2/go.mod h1:KNEqgx8TTmUipnQsScOoDpq/VlXVptUqVMZnt30WAPs= -cloud.google.com/go/dataqna v0.8.3/go.mod h1:wXNBW2uvc9e7Gl5k8adyAMnLush1KVV6lZUhB+rqNu4= -cloud.google.com/go/dataqna v0.8.4/go.mod h1:mySRKjKg5Lz784P6sCov3p1QD+RZQONRMRjzGNcFd0c= +cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= +cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= 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/datastore v1.12.0/go.mod h1:KjdB88W897MRITkvWWJrg2OUtrR5XVj1EoLgSp6/N70= -cloud.google.com/go/datastore v1.12.1/go.mod h1:KjdB88W897MRITkvWWJrg2OUtrR5XVj1EoLgSp6/N70= -cloud.google.com/go/datastore v1.13.0/go.mod h1:KjdB88W897MRITkvWWJrg2OUtrR5XVj1EoLgSp6/N70= -cloud.google.com/go/datastore v1.14.0/go.mod h1:GAeStMBIt9bPS7jMJA85kgkpsMkvseWWXiaHya9Jes8= -cloud.google.com/go/datastore v1.15.0/go.mod h1:GAeStMBIt9bPS7jMJA85kgkpsMkvseWWXiaHya9Jes8= -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/datastream v1.9.1/go.mod h1:hqnmr8kdUBmrnk65k5wNRoHSCYksvpdZIcZIEl8h43Q= -cloud.google.com/go/datastream v1.10.0/go.mod h1:hqnmr8kdUBmrnk65k5wNRoHSCYksvpdZIcZIEl8h43Q= -cloud.google.com/go/datastream v1.10.1/go.mod h1:7ngSYwnw95YFyTd5tOGBxHlOZiL+OtpjheqU7t2/s/c= -cloud.google.com/go/datastream v1.10.2/go.mod h1:W42TFgKAs/om6x/CdXX5E4oiAsKlH+e8MTGy81zdYt0= -cloud.google.com/go/datastream v1.10.3/go.mod h1:YR0USzgjhqA/Id0Ycu1VvZe8hEWwrkjuXrGbzeDOSEA= -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/deploy v1.11.0/go.mod h1:tKuSUV5pXbn67KiubiUNUejqLs4f5cxxiCNCeyl0F2g= -cloud.google.com/go/deploy v1.13.0/go.mod h1:tKuSUV5pXbn67KiubiUNUejqLs4f5cxxiCNCeyl0F2g= -cloud.google.com/go/deploy v1.13.1/go.mod h1:8jeadyLkH9qu9xgO3hVWw8jVr29N1mnW42gRJT8GY6g= -cloud.google.com/go/deploy v1.14.1/go.mod h1:N8S0b+aIHSEeSr5ORVoC0+/mOPUysVt8ae4QkZYolAw= -cloud.google.com/go/deploy v1.14.2/go.mod h1:e5XOUI5D+YGldyLNZ21wbp9S8otJbBE4i88PtO9x/2g= -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/dialogflow v1.38.0/go.mod h1:L7jnH+JL2mtmdChzAIcXQHXMvQkE3U4hTaNltEuxXn4= -cloud.google.com/go/dialogflow v1.40.0/go.mod h1:L7jnH+JL2mtmdChzAIcXQHXMvQkE3U4hTaNltEuxXn4= -cloud.google.com/go/dialogflow v1.43.0/go.mod h1:pDUJdi4elL0MFmt1REMvFkdsUTYSHq+rTCS8wg0S3+M= -cloud.google.com/go/dialogflow v1.44.0/go.mod h1:pDUJdi4elL0MFmt1REMvFkdsUTYSHq+rTCS8wg0S3+M= -cloud.google.com/go/dialogflow v1.44.1/go.mod h1:n/h+/N2ouKOO+rbe/ZnI186xImpqvCVj2DdsWS/0EAk= -cloud.google.com/go/dialogflow v1.44.2/go.mod h1:QzFYndeJhpVPElnFkUXxdlptx0wPnBWLCBT9BvtC3/c= -cloud.google.com/go/dialogflow v1.44.3/go.mod h1:mHly4vU7cPXVweuB5R0zsYKPMzy240aQdAu06SqBbAQ= -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/dlp v1.10.1/go.mod h1:IM8BWz1iJd8njcNcG0+Kyd9OPnqnRNkDV8j42VT5KOI= -cloud.google.com/go/dlp v1.10.2/go.mod h1:ZbdKIhcnyhILgccwVDzkwqybthh7+MplGC3kZVZsIOQ= -cloud.google.com/go/dlp v1.10.3/go.mod h1:iUaTc/ln8I+QT6Ai5vmuwfw8fqTk2kaz0FvCwhLCom0= -cloud.google.com/go/dlp v1.11.1/go.mod h1:/PA2EnioBeXTL/0hInwgj0rfsQb3lpE3R8XUJxqUNKI= -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/documentai v1.20.0/go.mod h1:yJkInoMcK0qNAEdRnqY/D5asy73tnPe88I1YTZT+a8E= -cloud.google.com/go/documentai v1.22.0/go.mod h1:yJkInoMcK0qNAEdRnqY/D5asy73tnPe88I1YTZT+a8E= -cloud.google.com/go/documentai v1.22.1/go.mod h1:LKs22aDHbJv7ufXuPypzRO7rG3ALLJxzdCXDPutw4Qc= -cloud.google.com/go/documentai v1.23.0/go.mod h1:LKs22aDHbJv7ufXuPypzRO7rG3ALLJxzdCXDPutw4Qc= -cloud.google.com/go/documentai v1.23.2/go.mod h1:Q/wcRT+qnuXOpjAkvOV4A+IeQl04q2/ReT7SSbytLSo= -cloud.google.com/go/documentai v1.23.4/go.mod h1:4MYAaEMnADPN1LPN5xboDR5QVB6AgsaxgFdJhitlE2Y= -cloud.google.com/go/documentai v1.23.5/go.mod h1:ghzBsyVTiVdkfKaUCum/9bGBEyBjDO4GfooEcYKhN+g= -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/domains v0.9.1/go.mod h1:aOp1c0MbejQQ2Pjf1iJvnVyT+z6R6s8pX66KaCSDYfE= -cloud.google.com/go/domains v0.9.2/go.mod h1:3YvXGYzZG1Temjbk7EyGCuGGiXHJwVNmwIf+E/cUp5I= -cloud.google.com/go/domains v0.9.3/go.mod h1:29k66YNDLDY9LCFKpGFeh6Nj9r62ZKm5EsUJxAl84KU= -cloud.google.com/go/domains v0.9.4/go.mod h1:27jmJGShuXYdUNjyDG0SodTfT5RwLi7xmH334Gvi3fY= -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/edgecontainer v1.1.1/go.mod h1:O5bYcS//7MELQZs3+7mabRqoWQhXCzenBu0R8bz2rwk= -cloud.google.com/go/edgecontainer v1.1.2/go.mod h1:wQRjIzqxEs9e9wrtle4hQPSR1Y51kqN75dgF7UllZZ4= -cloud.google.com/go/edgecontainer v1.1.3/go.mod h1:Ll2DtIABzEfaxaVSbwj3QHFaOOovlDFiWVDu349jSsA= -cloud.google.com/go/edgecontainer v1.1.4/go.mod h1:AvFdVuZuVGdgaE5YvlL1faAoa1ndRR/5XhXZvPBHbsE= -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/essentialcontacts v1.6.2/go.mod h1:T2tB6tX+TRak7i88Fb2N9Ok3PvY3UNbUsMag9/BARh4= -cloud.google.com/go/essentialcontacts v1.6.3/go.mod h1:yiPCD7f2TkP82oJEFXFTou8Jl8L6LBRPeBEkTaO0Ggo= -cloud.google.com/go/essentialcontacts v1.6.4/go.mod h1:iju5Vy3d9tJUg0PYMd1nHhjV7xoCXaOAVabrwLaPBEM= -cloud.google.com/go/essentialcontacts v1.6.5/go.mod h1:jjYbPzw0x+yglXC890l6ECJWdYeZ5dlYACTFL0U/VuM= -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/eventarc v1.12.1/go.mod h1:mAFCW6lukH5+IZjkvrEss+jmt2kOdYlN8aMx3sRJiAI= -cloud.google.com/go/eventarc v1.13.0/go.mod h1:mAFCW6lukH5+IZjkvrEss+jmt2kOdYlN8aMx3sRJiAI= -cloud.google.com/go/eventarc v1.13.1/go.mod h1:EqBxmGHFrruIara4FUQ3RHlgfCn7yo1HYsu2Hpt/C3Y= -cloud.google.com/go/eventarc v1.13.2/go.mod h1:X9A80ShVu19fb4e5sc/OLV7mpFUKZMwfJFeeWhcIObM= -cloud.google.com/go/eventarc v1.13.3/go.mod h1:RWH10IAZIRcj1s/vClXkBgMHwh59ts7hSWcqD3kaclg= -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/filestore v1.7.1/go.mod h1:y10jsorq40JJnjR/lQ8AfFbbcGlw3g+Dp8oN7i7FjV4= -cloud.google.com/go/filestore v1.7.2/go.mod h1:TYOlyJs25f/omgj+vY7/tIG/E7BX369triSPzE4LdgE= -cloud.google.com/go/filestore v1.7.3/go.mod h1:Qp8WaEERR3cSkxToxFPHh/b8AACkSut+4qlCjAmKTV0= -cloud.google.com/go/filestore v1.7.4/go.mod h1:S5JCxIbFjeBhWMTfIYH2Jx24J6BqjwpkkPl+nBA5DlI= -cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= -cloud.google.com/go/firestore v1.11.0/go.mod h1:b38dKhgzlmNNGTNZZwe7ZRFEuRab1Hay3/DBsIGKKy4= -cloud.google.com/go/firestore v1.12.0/go.mod h1:b38dKhgzlmNNGTNZZwe7ZRFEuRab1Hay3/DBsIGKKy4= -cloud.google.com/go/firestore v1.13.0/go.mod h1:QojqqOh8IntInDUSTAh0c8ZsPYAr68Ma8c5DWOy8xb8= -cloud.google.com/go/firestore v1.14.0/go.mod h1:96MVaHLsEhbvkBEdZgfN+AS/GIkco1LRpH9Xp9YZfzQ= -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/functions v1.15.1/go.mod h1:P5yNWUTkyU+LvW/S9O6V+V423VZooALQlqoXdoPz5AE= -cloud.google.com/go/functions v1.15.2/go.mod h1:CHAjtcR6OU4XF2HuiVeriEdELNcnvRZSk1Q8RMqy4lE= -cloud.google.com/go/functions v1.15.3/go.mod h1:r/AMHwBheapkkySEhiZYLDBwVJCdlRwsm4ieJu35/Ug= -cloud.google.com/go/functions v1.15.4/go.mod h1:CAsTc3VlRMVvx+XqXxKqVevguqJpnVip4DdonFsX28I= -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/gaming v1.10.1/go.mod h1:XQQvtfP8Rb9Rxnxm5wFVpAp9zCQkJi2bLIb7iHGwB3s= -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/gkebackup v1.3.0/go.mod h1:vUDOu++N0U5qs4IhG1pcOnD1Mac79xWy6GoBFlWCWBU= -cloud.google.com/go/gkebackup v1.3.1/go.mod h1:vUDOu++N0U5qs4IhG1pcOnD1Mac79xWy6GoBFlWCWBU= -cloud.google.com/go/gkebackup v1.3.2/go.mod h1:OMZbXzEJloyXMC7gqdSB+EOEQ1AKcpGYvO3s1ec5ixk= -cloud.google.com/go/gkebackup v1.3.3/go.mod h1:eMk7/wVV5P22KBakhQnJxWSVftL1p4VBFLpv0kIft7I= -cloud.google.com/go/gkebackup v1.3.4/go.mod h1:gLVlbM8h/nHIs09ns1qx3q3eaXcGSELgNu1DWXYz1HI= -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/gkeconnect v0.8.1/go.mod h1:KWiK1g9sDLZqhxB2xEuPV8V9NYzrqTUmQR9shJHpOZw= -cloud.google.com/go/gkeconnect v0.8.2/go.mod h1:6nAVhwchBJYgQCXD2pHBFQNiJNyAd/wyxljpaa6ZPrY= -cloud.google.com/go/gkeconnect v0.8.3/go.mod h1:i9GDTrfzBSUZGCe98qSu1B8YB8qfapT57PenIb820Jo= -cloud.google.com/go/gkeconnect v0.8.4/go.mod h1:84hZz4UMlDCKl8ifVW8layK4WHlMAFeq8vbzjU0yJkw= -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/gkehub v0.14.1/go.mod h1:VEXKIJZ2avzrbd7u+zeMtW00Y8ddk/4V9511C9CQGTY= -cloud.google.com/go/gkehub v0.14.2/go.mod h1:iyjYH23XzAxSdhrbmfoQdePnlMj2EWcvnR+tHdBQsCY= -cloud.google.com/go/gkehub v0.14.3/go.mod h1:jAl6WafkHHW18qgq7kqcrXYzN08hXeK/Va3utN8VKg8= -cloud.google.com/go/gkehub v0.14.4/go.mod h1:Xispfu2MqnnFt8rV/2/3o73SK1snL8s9dYJ9G2oQMfc= -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/gkemulticloud v0.6.1/go.mod h1:kbZ3HKyTsiwqKX7Yw56+wUGwwNZViRnxWK2DVknXWfw= -cloud.google.com/go/gkemulticloud v1.0.0/go.mod h1:kbZ3HKyTsiwqKX7Yw56+wUGwwNZViRnxWK2DVknXWfw= -cloud.google.com/go/gkemulticloud v1.0.1/go.mod h1:AcrGoin6VLKT/fwZEYuqvVominLriQBCKmbjtnbMjG8= -cloud.google.com/go/gkemulticloud v1.0.2/go.mod h1:+ee5VXxKb3H1l4LZAcgWB/rvI16VTNTrInWxDjAGsGo= -cloud.google.com/go/gkemulticloud v1.0.3/go.mod h1:7NpJBN94U6DY1xHIbsDqB2+TFZUfjLUKLjUX8NGLor0= -cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= -cloud.google.com/go/grafeas v0.3.0/go.mod h1:P7hgN24EyONOTMyeJH6DxG4zD7fwiYa5Q6GUgyFSOU8= -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/gsuiteaddons v1.6.1/go.mod h1:CodrdOqRZcLp5WOwejHWYBjZvfY0kOphkAKpF/3qdZY= -cloud.google.com/go/gsuiteaddons v1.6.2/go.mod h1:K65m9XSgs8hTF3X9nNTPi8IQueljSdYo9F+Mi+s4MyU= -cloud.google.com/go/gsuiteaddons v1.6.3/go.mod h1:sCFJkZoMrLZT3JTb8uJqgKPNshH2tfXeCwTFRebTq48= -cloud.google.com/go/gsuiteaddons v1.6.4/go.mod h1:rxtstw7Fx22uLOXBpsvb9DUbC+fiXs7rF4U29KHM/pE= -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/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= -cloud.google.com/go/iam v1.0.1/go.mod h1:yR3tmSL8BcZB4bxByRv2jkSIahVmCtfKZwLYGBalRE8= -cloud.google.com/go/iam v1.1.0/go.mod h1:nxdHjaKfCr7fNYx/HJMM8LgiMugmveWlkatear5gVyk= -cloud.google.com/go/iam v1.1.1/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= -cloud.google.com/go/iam v1.1.2/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= -cloud.google.com/go/iam v1.1.3/go.mod h1:3khUlaBXfPKKe7huYgEpDn6FtgRyMEqbkvBxrQyY5SE= -cloud.google.com/go/iam v1.1.4/go.mod h1:l/rg8l1AaA+VFMho/HYx2Vv6xinPSLMF8qfhRPIZ0L8= -cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8= -cloud.google.com/go/iam v1.1.6 h1:bEa06k05IO4f4uJonbB5iAgKTPpABy1ayxaIZV/GHVc= -cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= -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/iap v1.8.1/go.mod h1:sJCbeqg3mvWLqjZNsI6dfAtbbV1DL2Rl7e1mTyXYREQ= -cloud.google.com/go/iap v1.9.0/go.mod h1:01OFxd1R+NFrg78S+hoPV5PxEzv22HXaNqUUlmNHFuY= -cloud.google.com/go/iap v1.9.1/go.mod h1:SIAkY7cGMLohLSdBR25BuIxO+I4fXJiL06IBL7cy/5Q= -cloud.google.com/go/iap v1.9.2/go.mod h1:GwDTOs047PPSnwRD0Us5FKf4WDRcVvHg1q9WVkKBhdI= -cloud.google.com/go/iap v1.9.3/go.mod h1:DTdutSZBqkkOm2HEOTBzhZxh2mwwxshfD/h3yofAiCw= -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/ids v1.4.1/go.mod h1:np41ed8YMU8zOgv53MMMoCntLTn2lF+SUzlM+O3u/jw= -cloud.google.com/go/ids v1.4.2/go.mod h1:3vw8DX6YddRu9BncxuzMyWn0g8+ooUjI2gslJ7FH3vk= -cloud.google.com/go/ids v1.4.3/go.mod h1:9CXPqI3GedjmkjbMWCUhMZ2P2N7TUMzAkVXYEH2orYU= -cloud.google.com/go/ids v1.4.4/go.mod h1:z+WUc2eEl6S/1aZWzwtVNWoSZslgzPxAboS0lZX0HjI= -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/iot v1.7.1/go.mod h1:46Mgw7ev1k9KqK1ao0ayW9h0lI+3hxeanz+L1zmbbbk= -cloud.google.com/go/iot v1.7.2/go.mod h1:q+0P5zr1wRFpw7/MOgDXrG/HVA+l+cSwdObffkrpnSg= -cloud.google.com/go/iot v1.7.3/go.mod h1:t8itFchkol4VgNbHnIq9lXoOOtHNR3uAACQMYbN9N4I= -cloud.google.com/go/iot v1.7.4/go.mod h1:3TWqDVvsddYBG++nHSZmluoCAVGr1hAcabbWZNKEZLk= -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/kms v1.11.0/go.mod h1:hwdiYC0xjnWsKQQCQQmIQnS9asjYVSK6jtXm+zFqXLM= -cloud.google.com/go/kms v1.12.1/go.mod h1:c9J991h5DTl+kg7gi3MYomh12YEENGrf48ee/N/2CDM= -cloud.google.com/go/kms v1.15.0/go.mod h1:c9J991h5DTl+kg7gi3MYomh12YEENGrf48ee/N/2CDM= -cloud.google.com/go/kms v1.15.2/go.mod h1:3hopT4+7ooWRCjc2DxgnpESFxhIraaI2IpAVUEhbT/w= -cloud.google.com/go/kms v1.15.3/go.mod h1:AJdXqHxS2GlPyduM99s9iGqi2nwbviBbhV/hdmt4iOQ= -cloud.google.com/go/kms v1.15.4/go.mod h1:L3Sdj6QTHK8dfwK5D1JLsAyELsNMnd3tAIwGS4ltKpc= -cloud.google.com/go/kms v1.15.5/go.mod h1:cU2H5jnp6G2TDpUGZyqTCoy1n16fbubHZjmVXSMtwDI= -cloud.google.com/go/kms v1.15.7 h1:7caV9K3yIxvlQPAcaFffhlT7d1qpxjB1wHBtjWa13SM= -cloud.google.com/go/kms v1.15.7/go.mod h1:ub54lbsa6tDkUwnu4W7Yt1aAIFLnspgh0kPGToDukeI= -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/language v1.10.1/go.mod h1:CPp94nsdVNiQEt1CNjF5WkTcisLiHPyIbMhvR8H2AW0= -cloud.google.com/go/language v1.11.0/go.mod h1:uDx+pFDdAKTY8ehpWbiXyQdz8tDSYLJbQcXsCkjYyvQ= -cloud.google.com/go/language v1.11.1/go.mod h1:Xyid9MG9WOX3utvDbpX7j3tXDmmDooMyMDqgUVpH17U= -cloud.google.com/go/language v1.12.1/go.mod h1:zQhalE2QlQIxbKIZt54IASBzmZpN/aDASea5zl1l+J4= -cloud.google.com/go/language v1.12.2/go.mod h1:9idWapzr/JKXBBQ4lWqVX/hcadxB194ry20m/bTrhWc= -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/lifesciences v0.9.1/go.mod h1:hACAOd1fFbCGLr/+weUKRAJas82Y4vrL3O5326N//Wc= -cloud.google.com/go/lifesciences v0.9.2/go.mod h1:QHEOO4tDzcSAzeJg7s2qwnLM2ji8IRpQl4p6m5Z9yTA= -cloud.google.com/go/lifesciences v0.9.3/go.mod h1:gNGBOJV80IWZdkd+xz4GQj4mbqaz737SCLHn2aRhQKM= -cloud.google.com/go/lifesciences v0.9.4/go.mod h1:bhm64duKhMi7s9jR9WYJYvjAFJwRqNj+Nia7hF0Z7JA= -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/logging v1.8.1/go.mod h1:TJjR+SimHwuC8MZ9cjByQulAMgni+RkXeI3wwctHJEI= -cloud.google.com/go/logging v1.9.0 h1:iEIOXFO9EmSiTjDmfpbRjOxECO7R8C7b8IXUGOj7xZw= -cloud.google.com/go/logging v1.9.0/go.mod h1:1Io0vnZv4onoUnsVUQY3HZ3Igb1nBchky0A0y7BBBhE= -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/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= -cloud.google.com/go/longrunning v0.4.2/go.mod h1:OHrnaYyLUV6oqwh0xiS7e5sLQhP1m0QU9R+WhGDMgIQ= -cloud.google.com/go/longrunning v0.5.0/go.mod h1:0JNuqRShmscVAhIACGtskSAWtqtOoPkwP0YF1oVEchc= -cloud.google.com/go/longrunning v0.5.1/go.mod h1:spvimkwdz6SPWKEt/XBij79E9fiTkHSQl/fRUUQJYJc= -cloud.google.com/go/longrunning v0.5.2/go.mod h1:nqo6DQbNV2pXhGDbDMoN2bWz68MjZUzqv2YttZiveCs= -cloud.google.com/go/longrunning v0.5.3/go.mod h1:y/0ga59EYu58J6SHmmQOvekvND2qODbu8ywBBW7EK7Y= -cloud.google.com/go/longrunning v0.5.4/go.mod h1:zqNVncI0BOP8ST6XQD1+VcvuShMmq7+xFSzOL++V0dI= -cloud.google.com/go/longrunning v0.5.5 h1:GOE6pZFdSrTb4KAiKnXsJBtlE6mEyaW44oKyMILWnOg= -cloud.google.com/go/longrunning v0.5.5/go.mod h1:WV2LAxD8/rg5Z1cNW6FJ/ZpX4E4VnDnoTk0yawPBB7s= -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/managedidentities v1.6.1/go.mod h1:h/irGhTN2SkZ64F43tfGPMbHnypMbu4RB3yl8YcuEak= -cloud.google.com/go/managedidentities v1.6.2/go.mod h1:5c2VG66eCa0WIq6IylRk3TBW83l161zkFvCj28X7jn8= -cloud.google.com/go/managedidentities v1.6.3/go.mod h1:tewiat9WLyFN0Fi7q1fDD5+0N4VUoL0SCX0OTCthZq4= -cloud.google.com/go/managedidentities v1.6.4/go.mod h1:WgyaECfHmF00t/1Uk8Oun3CQ2PGUtjc3e9Alh79wyiM= -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/maps v1.3.0/go.mod h1:6mWTUv+WhnOwAgjVsSW2QPPECmW+s3PcRyOa9vgG/5s= -cloud.google.com/go/maps v1.4.0/go.mod h1:6mWTUv+WhnOwAgjVsSW2QPPECmW+s3PcRyOa9vgG/5s= -cloud.google.com/go/maps v1.4.1/go.mod h1:BxSa0BnW1g2U2gNdbq5zikLlHUuHW0GFWh7sgML2kIY= -cloud.google.com/go/maps v1.5.1/go.mod h1:NPMZw1LJwQZYCfz4y+EIw+SI+24A4bpdFJqdKVr0lt4= -cloud.google.com/go/maps v1.6.1/go.mod h1:4+buOHhYXFBp58Zj/K+Lc1rCmJssxxF4pJ5CJnhdz18= -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/mediatranslation v0.8.1/go.mod h1:L/7hBdEYbYHQJhX2sldtTO5SZZ1C1vkapubj0T2aGig= -cloud.google.com/go/mediatranslation v0.8.2/go.mod h1:c9pUaDRLkgHRx3irYE5ZC8tfXGrMYwNZdmDqKMSfFp8= -cloud.google.com/go/mediatranslation v0.8.3/go.mod h1:F9OnXTy336rteOEywtY7FOqCk+J43o2RF638hkOQl4Y= -cloud.google.com/go/mediatranslation v0.8.4/go.mod h1:9WstgtNVAdN53m6TQa5GjIjLqKQPXe74hwSCxUP6nj4= -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/memcache v1.10.1/go.mod h1:47YRQIarv4I3QS5+hoETgKO40InqzLP6kpNLvyXuyaA= -cloud.google.com/go/memcache v1.10.2/go.mod h1:f9ZzJHLBrmd4BkguIAa/l/Vle6uTHzHokdnzSWOdQ6A= -cloud.google.com/go/memcache v1.10.3/go.mod h1:6z89A41MT2DVAW0P4iIRdu5cmRTsbsFn4cyiIx8gbwo= -cloud.google.com/go/memcache v1.10.4/go.mod h1:v/d8PuC8d1gD6Yn5+I3INzLR01IDn0N4Ym56RgikSI0= -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/metastore v1.11.1/go.mod h1:uZuSo80U3Wd4zi6C22ZZliOUJ3XeM/MlYi/z5OAOWRA= -cloud.google.com/go/metastore v1.12.0/go.mod h1:uZuSo80U3Wd4zi6C22ZZliOUJ3XeM/MlYi/z5OAOWRA= -cloud.google.com/go/metastore v1.13.0/go.mod h1:URDhpG6XLeh5K+Glq0NOt74OfrPKTwS62gEPZzb5SOk= -cloud.google.com/go/metastore v1.13.1/go.mod h1:IbF62JLxuZmhItCppcIfzBBfUFq0DIB9HPDoLgWrVOU= -cloud.google.com/go/metastore v1.13.2/go.mod h1:KS59dD+unBji/kFebVp8XU/quNSyo8b6N6tPGspKszA= -cloud.google.com/go/metastore v1.13.3/go.mod h1:K+wdjXdtkdk7AQg4+sXS8bRrQa9gcOr+foOMF2tqINE= -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/monitoring v1.15.1/go.mod h1:lADlSAlFdbqQuwwpaImhsJXu1QSdd3ojypXrFSMr2rM= -cloud.google.com/go/monitoring v1.16.0/go.mod h1:Ptp15HgAyM1fNICAojDMoNc/wUmn67mLHQfyqbw+poY= -cloud.google.com/go/monitoring v1.16.1/go.mod h1:6HsxddR+3y9j+o/cMJH6q/KJ/CBTvM/38L/1m7bTRJ4= -cloud.google.com/go/monitoring v1.16.2/go.mod h1:B44KGwi4ZCF8Rk/5n+FWeispDXoKSk9oss2QNlXJBgc= -cloud.google.com/go/monitoring v1.16.3/go.mod h1:KwSsX5+8PnXv5NJnICZzW2R8pWTis8ypC4zmdRD63Tw= -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/networkconnectivity v1.12.1/go.mod h1:PelxSWYM7Sh9/guf8CFhi6vIqf19Ir/sbfZRUwXh92E= -cloud.google.com/go/networkconnectivity v1.13.0/go.mod h1:SAnGPes88pl7QRLUen2HmcBSE9AowVAcdug8c0RSBFk= -cloud.google.com/go/networkconnectivity v1.14.0/go.mod h1:SAnGPes88pl7QRLUen2HmcBSE9AowVAcdug8c0RSBFk= -cloud.google.com/go/networkconnectivity v1.14.1/go.mod h1:LyGPXR742uQcDxZ/wv4EI0Vu5N6NKJ77ZYVnDe69Zug= -cloud.google.com/go/networkconnectivity v1.14.2/go.mod h1:5UFlwIisZylSkGG1AdwK/WZUaoz12PKu6wODwIbFzJo= -cloud.google.com/go/networkconnectivity v1.14.3/go.mod h1:4aoeFdrJpYEXNvrnfyD5kIzs8YtHg945Og4koAjHQek= -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/networkmanagement v1.8.0/go.mod h1:Ho/BUGmtyEqrttTgWEe7m+8vDdK74ibQc+Be0q7Fof0= -cloud.google.com/go/networkmanagement v1.9.0/go.mod h1:UTUaEU9YwbCAhhz3jEOHr+2/K/MrBk2XxOLS89LQzFw= -cloud.google.com/go/networkmanagement v1.9.1/go.mod h1:CCSYgrQQvW73EJawO2QamemYcOb57LvrDdDU51F0mcI= -cloud.google.com/go/networkmanagement v1.9.2/go.mod h1:iDGvGzAoYRghhp4j2Cji7sF899GnfGQcQRQwgVOWnDw= -cloud.google.com/go/networkmanagement v1.9.3/go.mod h1:y7WMO1bRLaP5h3Obm4tey+NquUvB93Co1oh4wpL+XcU= -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/networksecurity v0.9.1/go.mod h1:MCMdxOKQ30wsBI1eI659f9kEp4wuuAueoC9AJKSPWZQ= -cloud.google.com/go/networksecurity v0.9.2/go.mod h1:jG0SeAttWzPMUILEHDUvFYdQTl8L/E/KC8iZDj85lEI= -cloud.google.com/go/networksecurity v0.9.3/go.mod h1:l+C0ynM6P+KV9YjOnx+kk5IZqMSLccdBqW6GUoF4p/0= -cloud.google.com/go/networksecurity v0.9.4/go.mod h1:E9CeMZ2zDsNBkr8axKSYm8XyTqNhiCHf1JO/Vb8mD1w= -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/notebooks v1.9.1/go.mod h1:zqG9/gk05JrzgBt4ghLzEepPHNwE5jgPcHZRKhlC1A8= -cloud.google.com/go/notebooks v1.10.0/go.mod h1:SOPYMZnttHxqot0SGSFSkRrwE29eqnKPBJFqgWmiK2k= -cloud.google.com/go/notebooks v1.10.1/go.mod h1:5PdJc2SgAybE76kFQCWrTfJolCOUQXF97e+gteUUA6A= -cloud.google.com/go/notebooks v1.11.1/go.mod h1:V2Zkv8wX9kDCGRJqYoI+bQAaoVeE5kSiz4yYHd2yJwQ= -cloud.google.com/go/notebooks v1.11.2/go.mod h1:z0tlHI/lREXC8BS2mIsUeR3agM1AkgLiS+Isov3SS70= -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/optimization v1.4.1/go.mod h1:j64vZQP7h9bO49m2rVaTVoNM0vEBEN5eKPUPbZyXOrk= -cloud.google.com/go/optimization v1.5.0/go.mod h1:evo1OvTxeBRBu6ydPlrIRizKY/LJKo/drDMMRKqGEUU= -cloud.google.com/go/optimization v1.5.1/go.mod h1:NC0gnUD5MWVAF7XLdoYVPmYYVth93Q6BUzqAq3ZwtV8= -cloud.google.com/go/optimization v1.6.1/go.mod h1:hH2RYPTTM9e9zOiTaYPTiGPcGdNZVnBSBxjIAJzUkqo= -cloud.google.com/go/optimization v1.6.2/go.mod h1:mWNZ7B9/EyMCcwNl1frUGEuY6CPijSkz88Fz2vwKPOY= -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/orchestration v1.8.1/go.mod h1:4sluRF3wgbYVRqz7zJ1/EUNc90TTprliq9477fGobD8= -cloud.google.com/go/orchestration v1.8.2/go.mod h1:T1cP+6WyTmh6LSZzeUhvGf0uZVmJyTx7t8z7Vg87+A0= -cloud.google.com/go/orchestration v1.8.3/go.mod h1:xhgWAYqlbYjlz2ftbFghdyqENYW+JXuhBx9KsjMoGHs= -cloud.google.com/go/orchestration v1.8.4/go.mod h1:d0lywZSVYtIoSZXb0iFjv9SaL13PGyVOKDxqGxEf/qI= -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/go.mod h1:w1fo8b7rRqlXlIJbVhOMPrwVljyuW5mqssvBtU18ONc= -cloud.google.com/go/orgpolicy v1.11.0/go.mod h1:2RK748+FtVvnfuynxBzdnyu7sygtoZa1za/0ZfpOs1M= -cloud.google.com/go/orgpolicy v1.11.1/go.mod h1:8+E3jQcpZJQliP+zaFfayC2Pg5bmhuLK755wKhIIUCE= -cloud.google.com/go/orgpolicy v1.11.2/go.mod h1:biRDpNwfyytYnmCRWZWxrKF22Nkz9eNVj9zyaBdpm1o= -cloud.google.com/go/orgpolicy v1.11.3/go.mod h1:oKAtJ/gkMjum5icv2aujkP4CxROxPXsBbYGCDbPO8MM= -cloud.google.com/go/orgpolicy v1.11.4/go.mod h1:0+aNV/nrfoTQ4Mytv+Aw+stBDBjNf4d8fYRA9herfJI= -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/go.mod h1:aDICxrur2ogRd9zY5ytBLV89KEgT2MKB2L/n6x1ooPw= -cloud.google.com/go/osconfig v1.12.0/go.mod h1:8f/PaYzoS3JMVfdfTubkowZYGmAhUCjjwnjqWI7NVBc= -cloud.google.com/go/osconfig v1.12.1/go.mod h1:4CjBxND0gswz2gfYRCUoUzCm9zCABp91EeTtWXyz0tE= -cloud.google.com/go/osconfig v1.12.2/go.mod h1:eh9GPaMZpI6mEJEuhEjUJmaxvQ3gav+fFEJon1Y8Iw0= -cloud.google.com/go/osconfig v1.12.3/go.mod h1:L/fPS8LL6bEYUi1au832WtMnPeQNT94Zo3FwwV1/xGM= -cloud.google.com/go/osconfig v1.12.4/go.mod h1:B1qEwJ/jzqSRslvdOCI8Kdnp0gSng0xW4LOnIebQomA= -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/oslogin v1.10.1/go.mod h1:x692z7yAue5nE7CsSnoG0aaMbNoRJRXO4sn73R+ZqAs= -cloud.google.com/go/oslogin v1.11.0/go.mod h1:8GMTJs4X2nOAUVJiPGqIWVcDaF0eniEto3xlOxaboXE= -cloud.google.com/go/oslogin v1.11.1/go.mod h1:OhD2icArCVNUxKqtK0mcSmKL7lgr0LVlQz+v9s1ujTg= -cloud.google.com/go/oslogin v1.12.1/go.mod h1:VfwTeFJGbnakxAY236eN8fsnglLiVXndlbcNomY4iZU= -cloud.google.com/go/oslogin v1.12.2/go.mod h1:CQ3V8Jvw4Qo4WRhNPF0o+HAM4DiLuE27Ul9CX9g2QdY= -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/phishingprotection v0.8.1/go.mod h1:AxonW7GovcA8qdEk13NfHq9hNx5KPtfxXNeUxTDxB6I= -cloud.google.com/go/phishingprotection v0.8.2/go.mod h1:LhJ91uyVHEYKSKcMGhOa14zMMWfbEdxG032oT6ECbC8= -cloud.google.com/go/phishingprotection v0.8.3/go.mod h1:3B01yO7T2Ra/TMojifn8EoGd4G9jts/6cIO0DgDY9J8= -cloud.google.com/go/phishingprotection v0.8.4/go.mod h1:6b3kNPAc2AQ6jZfFHioZKg9MQNybDg4ixFd4RPZZ2nE= -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/policytroubleshooter v1.7.1/go.mod h1:0NaT5v3Ag1M7U5r0GfDCpUFkWd9YqpubBWsQlhanRv0= -cloud.google.com/go/policytroubleshooter v1.8.0/go.mod h1:tmn5Ir5EToWe384EuboTcVQT7nTag2+DuH3uHmKd1HU= -cloud.google.com/go/policytroubleshooter v1.9.0/go.mod h1:+E2Lga7TycpeSTj2FsH4oXxTnrbHJGRlKhVZBLGgU64= -cloud.google.com/go/policytroubleshooter v1.9.1/go.mod h1:MYI8i0bCrL8cW+VHN1PoiBTyNZTstCg2WUw2eVC4c4U= -cloud.google.com/go/policytroubleshooter v1.10.1/go.mod h1:5C0rhT3TDZVxAu8813bwmTvd57Phbl8mr9F4ipOsxEs= -cloud.google.com/go/policytroubleshooter v1.10.2/go.mod h1:m4uF3f6LseVEnMV6nknlN2vYGRb+75ylQwJdnOXfnv0= -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/privatecatalog v0.9.1/go.mod h1:0XlDXW2unJXdf9zFz968Hp35gl/bhF4twwpXZAW50JA= -cloud.google.com/go/privatecatalog v0.9.2/go.mod h1:RMA4ATa8IXfzvjrhhK8J6H4wwcztab+oZph3c6WmtFc= -cloud.google.com/go/privatecatalog v0.9.3/go.mod h1:K5pn2GrVmOPjXz3T26mzwXLcKivfIJ9R5N79AFCF9UE= -cloud.google.com/go/privatecatalog v0.9.4/go.mod h1:SOjm93f+5hp/U3PqMZAHTtBtluqLygrDrVO8X8tYtG0= +cloud.google.com/go/iam v1.12.0 h1:Aki3bX9aHUDKPHfnRJfDcTdVedvy6quGBQcTqx3DRXk= +cloud.google.com/go/iam v1.12.0/go.mod h1:FEZ4lXpADAC2AIpQY7LANNjjwyQ2jK439CI2VaD+sLY= +cloud.google.com/go/kms v1.33.0 h1:pG0X78m212b2pv9N4fdMoUO69LuZGQ9kSvn8sHBOFAo= +cloud.google.com/go/kms v1.33.0/go.mod h1:CSGvW6GnMQbY+1nOHcIzhMtHSbExXlOmCKjWtYVjcpA= +cloud.google.com/go/logging v1.19.0 h1:NCqhdVUg3wQ8Cobdf16FDSuTGi3+6+hdSBHrY5TsR6Q= +cloud.google.com/go/logging v1.19.0/go.mod h1:i40NZCHC9Gqvod4yE+yQfDWwlgwW/SrshkkGibCHxcA= +cloud.google.com/go/longrunning v1.2.0 h1:WjYH3YHBGCxGJP9M4dWGHBfXr/cFIjMkNgWcJj7/iMM= +cloud.google.com/go/longrunning v1.2.0/go.mod h1:5KMQALFGOCtFoi2xSOA1u3H7WKlhmckgiyFw7+LGQp0= +cloud.google.com/go/monitoring v1.30.0 h1:r/d+JUbyKmJ8b07iznuKfzVzrIXTWxHQ3lBRm3x2LlY= +cloud.google.com/go/monitoring v1.30.0/go.mod h1:htlUR0QWVMrjFzZmN4LGnMAve9xB/eduwjmINxVZ8RM= 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/pubsub v1.32.0/go.mod h1:f+w71I33OMyxf9VpMVcZbnG5KSUkCOUHYpFd5U1GdRc= -cloud.google.com/go/pubsub v1.33.0/go.mod h1:f+w71I33OMyxf9VpMVcZbnG5KSUkCOUHYpFd5U1GdRc= -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/pubsublite v1.8.1/go.mod h1:fOLdU4f5xldK4RGJrBMm+J7zMWNj/k4PxwEZXy39QS0= -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/recaptchaenterprise/v2 v2.7.2/go.mod h1:kR0KjsJS7Jt1YSyWFkseQ756D45kaYNTlDPPaRAvDBU= -cloud.google.com/go/recaptchaenterprise/v2 v2.8.0/go.mod h1:QuE8EdU9dEnesG8/kG3XuJyNsjEqMlMzg3v3scCJ46c= -cloud.google.com/go/recaptchaenterprise/v2 v2.8.1/go.mod h1:JZYZJOeZjgSSTGP4uz7NlQ4/d1w5hGmksVgM0lbEij0= -cloud.google.com/go/recaptchaenterprise/v2 v2.8.2/go.mod h1:kpaDBOpkwD4G0GVMzG1W6Doy1tFFC97XAV3xy+Rd/pw= -cloud.google.com/go/recaptchaenterprise/v2 v2.8.3/go.mod h1:Dak54rw6lC2gBY8FBznpOCAR58wKf+R+ZSJRoeJok4w= -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/recommendationengine v0.8.1/go.mod h1:MrZihWwtFYWDzE6Hz5nKcNz3gLizXVIDI/o3G1DLcrE= -cloud.google.com/go/recommendationengine v0.8.2/go.mod h1:QIybYHPK58qir9CV2ix/re/M//Ty10OxjnnhWdaKS1Y= -cloud.google.com/go/recommendationengine v0.8.3/go.mod h1:m3b0RZV02BnODE9FeSvGv1qibFo8g0OnmB/RMwYy4V8= -cloud.google.com/go/recommendationengine v0.8.4/go.mod h1:GEteCf1PATl5v5ZsQ60sTClUE0phbWmo3rQ1Js8louU= -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/recommender v1.10.1/go.mod h1:XFvrE4Suqn5Cq0Lf+mCP6oBHD/yRMA8XxP5sb7Q7gpA= -cloud.google.com/go/recommender v1.11.0/go.mod h1:kPiRQhPyTJ9kyXPCG6u/dlPLbYfFlkwHNRwdzPVAoII= -cloud.google.com/go/recommender v1.11.1/go.mod h1:sGwFFAyI57v2Hc5LbIj+lTwXipGu9NW015rkaEM5B18= -cloud.google.com/go/recommender v1.11.2/go.mod h1:AeoJuzOvFR/emIcXdVFkspVXVTYpliRCmKNYDnyBv6Y= -cloud.google.com/go/recommender v1.11.3/go.mod h1:+FJosKKJSId1MBFeJ/TTyoGQZiEelQQIZMKYYD8ruK4= -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/redis v1.13.1/go.mod h1:VP7DGLpE91M6bcsDdMuyCm2hIpB6Vp2hI090Mfd1tcg= -cloud.google.com/go/redis v1.13.2/go.mod h1:0Hg7pCMXS9uz02q+LoEVl5dNHUkIQv+C/3L76fandSA= -cloud.google.com/go/redis v1.13.3/go.mod h1:vbUpCKUAZSYzFcWKmICnYgRAhTFg9r+djWqFxDYXi4U= -cloud.google.com/go/redis v1.14.1/go.mod h1:MbmBxN8bEnQI4doZPC1BzADU4HGocHBk2de3SbgOkqs= -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/resourcemanager v1.9.1/go.mod h1:dVCuosgrh1tINZ/RwBufr8lULmWGOkPS8gL5gqyjdT8= -cloud.google.com/go/resourcemanager v1.9.2/go.mod h1:OujkBg1UZg5lX2yIyMo5Vz9O5hf7XQOSV7WxqxxMtQE= -cloud.google.com/go/resourcemanager v1.9.3/go.mod h1:IqrY+g0ZgLsihcfcmqSe+RKp1hzjXwG904B92AwBz6U= -cloud.google.com/go/resourcemanager v1.9.4/go.mod h1:N1dhP9RFvo3lUfwtfLWVxfUWq8+KUQ+XLlHLH3BoFJ0= -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/resourcesettings v1.6.1/go.mod h1:M7mk9PIZrC5Fgsu1kZJci6mpgN8o0IUzVx3eJU3y4Jw= -cloud.google.com/go/resourcesettings v1.6.2/go.mod h1:mJIEDd9MobzunWMeniaMp6tzg4I2GvD3TTmPkc8vBXk= -cloud.google.com/go/resourcesettings v1.6.3/go.mod h1:pno5D+7oDYkMWZ5BpPsb4SO0ewg3IXcmmrUZaMJrFic= -cloud.google.com/go/resourcesettings v1.6.4/go.mod h1:pYTTkWdv2lmQcjsthbZLNBP4QW140cs7wqA3DuqErVI= -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/retail v1.14.1/go.mod h1:y3Wv3Vr2k54dLNIrCzenyKG8g8dhvhncT2NcNjb/6gE= -cloud.google.com/go/retail v1.14.2/go.mod h1:W7rrNRChAEChX336QF7bnMxbsjugcOCPU44i5kbLiL8= -cloud.google.com/go/retail v1.14.3/go.mod h1:Omz2akDHeSlfCq8ArPKiBxlnRpKEBjUH386JYFLUvXo= -cloud.google.com/go/retail v1.14.4/go.mod h1:l/N7cMtY78yRnJqp5JW8emy7MB1nz8E4t2yfOmklYfg= -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/run v1.2.0/go.mod h1:36V1IlDzQ0XxbQjUx6IYbw8H3TJnWvhii963WW3B/bo= -cloud.google.com/go/run v1.3.0/go.mod h1:S/osX/4jIPZGg+ssuqh6GNgg7syixKe3YnprwehzHKU= -cloud.google.com/go/run v1.3.1/go.mod h1:cymddtZOzdwLIAsmS6s+Asl4JoXIDm/K1cpZTxV4Q5s= -cloud.google.com/go/run v1.3.2/go.mod h1:SIhmqArbjdU/D9M6JoHaAqnAMKLFtXaVdNeq04NjnVE= -cloud.google.com/go/run v1.3.3/go.mod h1:WSM5pGyJ7cfYyYbONVQBN4buz42zFqwG67Q3ch07iK4= -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/scheduler v1.10.1/go.mod h1:R63Ldltd47Bs4gnhQkmNDse5w8gBRrhObZ54PxgR2Oo= -cloud.google.com/go/scheduler v1.10.2/go.mod h1:O3jX6HRH5eKCA3FutMw375XHZJudNIKVonSCHv7ropY= -cloud.google.com/go/scheduler v1.10.3/go.mod h1:8ANskEM33+sIbpJ+R4xRfw/jzOG+ZFE8WVLy7/yGvbc= -cloud.google.com/go/scheduler v1.10.4/go.mod h1:MTuXcrJC9tqOHhixdbHDFSIuh7xZF2IysiINDuiq6NI= -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/secretmanager v1.11.1/go.mod h1:znq9JlXgTNdBeQk9TBW/FnR/W4uChEKGeqQWAJ8SXFw= -cloud.google.com/go/secretmanager v1.11.2/go.mod h1:MQm4t3deoSub7+WNwiC4/tRYgDBHJgJPvswqQVB1Vss= -cloud.google.com/go/secretmanager v1.11.3/go.mod h1:0bA2o6FabmShrEy328i67aV+65XoUFFSmVeLBn/51jI= -cloud.google.com/go/secretmanager v1.11.4/go.mod h1:wreJlbS9Zdq21lMzWmJ0XhWW2ZxgPeahsqeV/vZoJ3w= -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/security v1.15.1/go.mod h1:MvTnnbsWnehoizHi09zoiZob0iCHVcL4AUBj76h9fXA= -cloud.google.com/go/security v1.15.2/go.mod h1:2GVE/v1oixIRHDaClVbHuPcZwAqFM28mXuAKCfMgYIg= -cloud.google.com/go/security v1.15.3/go.mod h1:gQ/7Q2JYUZZgOzqKtw9McShH+MjNvtDpL40J1cT+vBs= -cloud.google.com/go/security v1.15.4/go.mod h1:oN7C2uIZKhxCLiAAijKUCuHLZbIt/ghYEo8MqwD/Ty4= -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/securitycenter v1.23.0/go.mod h1:8pwQ4n+Y9WCWM278R8W3nF65QtY172h4S8aXyI9/hsQ= -cloud.google.com/go/securitycenter v1.23.1/go.mod h1:w2HV3Mv/yKhbXKwOCu2i8bCuLtNP1IMHuiYQn4HJq5s= -cloud.google.com/go/securitycenter v1.24.1/go.mod h1:3h9IdjjHhVMXdQnmqzVnM7b0wMn/1O/U20eWVpMpZjI= -cloud.google.com/go/securitycenter v1.24.2/go.mod h1:l1XejOngggzqwr4Fa2Cn+iWZGf+aBLTXtB/vXjy5vXM= -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/servicedirectory v1.10.1/go.mod h1:Xv0YVH8s4pVOwfM/1eMTl0XJ6bzIOSLDt8f8eLaGOxQ= -cloud.google.com/go/servicedirectory v1.11.0/go.mod h1:Xv0YVH8s4pVOwfM/1eMTl0XJ6bzIOSLDt8f8eLaGOxQ= -cloud.google.com/go/servicedirectory v1.11.1/go.mod h1:tJywXimEWzNzw9FvtNjsQxxJ3/41jseeILgwU/QLrGI= -cloud.google.com/go/servicedirectory v1.11.2/go.mod h1:KD9hCLhncWRV5jJphwIpugKwM5bn1x0GyVVD4NO8mGg= -cloud.google.com/go/servicedirectory v1.11.3/go.mod h1:LV+cHkomRLr67YoQy3Xq2tUXBGOs5z5bPofdq7qtiAw= -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/shell v1.7.1/go.mod h1:u1RaM+huXFaTojTbW4g9P5emOrrmLE69KrxqQahKn4g= -cloud.google.com/go/shell v1.7.2/go.mod h1:KqRPKwBV0UyLickMn0+BY1qIyE98kKyI216sH/TuHmc= -cloud.google.com/go/shell v1.7.3/go.mod h1:cTTEz/JdaBsQAeTQ3B6HHldZudFoYBOqjteev07FbIc= -cloud.google.com/go/shell v1.7.4/go.mod h1:yLeXB8eKLxw0dpEmXQ/FjriYrBijNsONpwnWsdPqlKM= -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/spanner v1.47.0/go.mod h1:IXsJwVW2j4UKs0eYDqodab6HgGuA1bViSqW4uH9lfUI= -cloud.google.com/go/spanner v1.49.0/go.mod h1:eGj9mQGK8+hkgSVbHNQ06pQ4oS+cyc4tXXd6Dif1KoM= -cloud.google.com/go/spanner v1.50.0/go.mod h1:eGj9mQGK8+hkgSVbHNQ06pQ4oS+cyc4tXXd6Dif1KoM= -cloud.google.com/go/spanner v1.51.0/go.mod h1:c5KNo5LQ1X5tJwma9rSQZsXNBDNvj4/n8BVc3LNahq0= -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/speech v1.17.1/go.mod h1:8rVNzU43tQvxDaGvqOhpDqgkJTFowBpDvCJ14kGlJYo= -cloud.google.com/go/speech v1.19.0/go.mod h1:8rVNzU43tQvxDaGvqOhpDqgkJTFowBpDvCJ14kGlJYo= -cloud.google.com/go/speech v1.19.1/go.mod h1:WcuaWz/3hOlzPFOVo9DUsblMIHwxP589y6ZMtaG+iAA= -cloud.google.com/go/speech v1.19.2/go.mod h1:2OYFfj+Ch5LWjsaSINuCZsre/789zlcCI3SY4oAi2oI= -cloud.google.com/go/speech v1.20.1/go.mod h1:wwolycgONvfz2EDU8rKuHRW3+wc9ILPsAWoikBEWavY= 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/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= -cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= -cloud.google.com/go/storage v1.39.1 h1:MvraqHKhogCOTXTlct/9C3K3+Uy2jBmFYb3/Sp6dVtY= -cloud.google.com/go/storage v1.39.1/go.mod h1:xK6xZmxZmo+fyP7+DEF6FhNc24/JAe95OLyOHCXFH1o= -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/storagetransfer v1.10.0/go.mod h1:DM4sTlSmGiNczmV6iZyceIh2dbs+7z2Ayg6YAiQlYfA= -cloud.google.com/go/storagetransfer v1.10.1/go.mod h1:rS7Sy0BtPviWYTTJVWCSV4QrbBitgPeuK4/FKa4IdLs= -cloud.google.com/go/storagetransfer v1.10.2/go.mod h1:meIhYQup5rg9juQJdyppnA/WLQCOguxtk1pr3/vBWzA= -cloud.google.com/go/storagetransfer v1.10.3/go.mod h1:Up8LY2p6X68SZ+WToswpQbQHnJpOty/ACcMafuey8gc= -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/talent v1.6.2/go.mod h1:CbGvmKCG61mkdjcqTcLOkb2ZN1SrQI8MDyma2l7VD24= -cloud.google.com/go/talent v1.6.3/go.mod h1:xoDO97Qd4AK43rGjJvyBHMskiEf3KulgYzcH6YWOVoo= -cloud.google.com/go/talent v1.6.4/go.mod h1:QsWvi5eKeh6gG2DlBkpMaFYZYrYUnIpo34f6/V5QykY= -cloud.google.com/go/talent v1.6.5/go.mod h1:Mf5cma696HmE+P2BWJ/ZwYqeJXEeU0UqjHFXVLadEDI= -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/texttospeech v1.7.1/go.mod h1:m7QfG5IXxeneGqTapXNxv2ItxP/FS0hCZBwXYqucgSk= -cloud.google.com/go/texttospeech v1.7.2/go.mod h1:VYPT6aTOEl3herQjFHYErTlSZJ4vB00Q2ZTmuVgluD4= -cloud.google.com/go/texttospeech v1.7.3/go.mod h1:Av/zpkcgWfXlDLRYob17lqMstGZ3GqlvJXqKMp2u8so= -cloud.google.com/go/texttospeech v1.7.4/go.mod h1:vgv0002WvR4liGuSd5BJbWy4nDn5Ozco0uJymY5+U74= -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/tpu v1.6.1/go.mod h1:sOdcHVIgDEEOKuqUoi6Fq53MKHJAtOwtz0GuKsWSH3E= -cloud.google.com/go/tpu v1.6.2/go.mod h1:NXh3NDwt71TsPZdtGWgAG5ThDfGd32X1mJ2cMaRlVgU= -cloud.google.com/go/tpu v1.6.3/go.mod h1:lxiueqfVMlSToZY1151IaZqp89ELPSrk+3HIQ5HRkbY= -cloud.google.com/go/tpu v1.6.4/go.mod h1:NAm9q3Rq2wIlGnOhpYICNI7+bpBebMJbh0yyp3aNw1Y= -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/trace v1.10.1/go.mod h1:gbtL94KE5AJLH3y+WVpfWILmqgc6dXcqgNXdOPAQTYk= -cloud.google.com/go/trace v1.10.2/go.mod h1:NPXemMi6MToRFcSxRl2uDnu/qAlAQ3oULUphcHGh1vA= -cloud.google.com/go/trace v1.10.3/go.mod h1:Ke1bgfc73RV3wUFml+uQp7EsDw4dGaETLxB7Iq/r4CY= -cloud.google.com/go/trace v1.10.4/go.mod h1:Nso99EDIK8Mj5/zmB+iGr9dosS/bzWCJ8wGmE6TXNWY= -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/translate v1.8.1/go.mod h1:d1ZH5aaOA0CNhWeXeC8ujd4tdCFw8XoNWRljklu5RHs= -cloud.google.com/go/translate v1.8.2/go.mod h1:d1ZH5aaOA0CNhWeXeC8ujd4tdCFw8XoNWRljklu5RHs= -cloud.google.com/go/translate v1.9.0/go.mod h1:d1ZH5aaOA0CNhWeXeC8ujd4tdCFw8XoNWRljklu5RHs= -cloud.google.com/go/translate v1.9.1/go.mod h1:TWIgDZknq2+JD4iRcojgeDtqGEp154HN/uL6hMvylS8= -cloud.google.com/go/translate v1.9.2/go.mod h1:E3Tc6rUTsQkVrXW6avbUhKJSr7ZE3j7zNmqzXKHqRrY= -cloud.google.com/go/translate v1.9.3/go.mod h1:Kbq9RggWsbqZ9W5YpM94Q1Xv4dshw/gr/SHfsl5yCZ0= -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/video v1.17.1/go.mod h1:9qmqPqw/Ib2tLqaeHgtakU+l5TcJxCJbhFXM7UJjVzU= -cloud.google.com/go/video v1.19.0/go.mod h1:9qmqPqw/Ib2tLqaeHgtakU+l5TcJxCJbhFXM7UJjVzU= -cloud.google.com/go/video v1.20.0/go.mod h1:U3G3FTnsvAGqglq9LxgqzOiBc/Nt8zis8S+850N2DUM= -cloud.google.com/go/video v1.20.1/go.mod h1:3gJS+iDprnj8SY6pe0SwLeC5BUW80NjhwX7INWEuWGU= -cloud.google.com/go/video v1.20.2/go.mod h1:lrixr5JeKNThsgfM9gqtwb6Okuqzfo4VrY2xynaViTA= -cloud.google.com/go/video v1.20.3/go.mod h1:TnH/mNZKVHeNtpamsSPygSR0iHtvrR/cW1/GDjN5+GU= -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/videointelligence v1.11.1/go.mod h1:76xn/8InyQHarjTWsBR058SmlPCwQjgcvoW0aZykOvo= -cloud.google.com/go/videointelligence v1.11.2/go.mod h1:ocfIGYtIVmIcWk1DsSGOoDiXca4vaZQII1C85qtoplc= -cloud.google.com/go/videointelligence v1.11.3/go.mod h1:tf0NUaGTjU1iS2KEkGWvO5hRHeCkFK3nPo0/cOZhZAo= -cloud.google.com/go/videointelligence v1.11.4/go.mod h1:kPBMAYsTPFiQxMLmmjpcZUMklJp3nC9+ipJJtprccD8= -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/vision/v2 v2.7.2/go.mod h1:jKa8oSYBWhYiXarHPvP4USxYANYUEdEsQrloLjrSwJU= -cloud.google.com/go/vision/v2 v2.7.3/go.mod h1:V0IcLCY7W+hpMKXK1JYE0LV5llEqVmj+UJChjvA1WsM= -cloud.google.com/go/vision/v2 v2.7.4/go.mod h1:ynDKnsDN/0RtqkKxQZ2iatv3Dm9O+HfRb5djl7l4Vvw= -cloud.google.com/go/vision/v2 v2.7.5/go.mod h1:GcviprJLFfK9OLf0z8Gm6lQb6ZFUulvpZws+mm6yPLM= -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/vmmigration v1.7.1/go.mod h1:WD+5z7a/IpZ5bKK//YmT9E047AD+rjycCAvyMxGJbro= -cloud.google.com/go/vmmigration v1.7.2/go.mod h1:iA2hVj22sm2LLYXGPT1pB63mXHhrH1m/ruux9TwWLd8= -cloud.google.com/go/vmmigration v1.7.3/go.mod h1:ZCQC7cENwmSWlwyTrZcWivchn78YnFniEQYRWQ65tBo= -cloud.google.com/go/vmmigration v1.7.4/go.mod h1:yBXCmiLaB99hEl/G9ZooNx2GyzgsjKnw5fWcINRgD70= -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/vmwareengine v0.4.1/go.mod h1:Px64x+BvjPZwWuc4HdmVhoygcXqEkGHXoa7uyfTgSI0= -cloud.google.com/go/vmwareengine v1.0.0/go.mod h1:Px64x+BvjPZwWuc4HdmVhoygcXqEkGHXoa7uyfTgSI0= -cloud.google.com/go/vmwareengine v1.0.1/go.mod h1:aT3Xsm5sNx0QShk1Jc1B8OddrxAScYLwzVoaiXfdzzk= -cloud.google.com/go/vmwareengine v1.0.2/go.mod h1:xMSNjIk8/itYrz1JA8nV3Ajg4L4n3N+ugP8JKzk3OaA= -cloud.google.com/go/vmwareengine v1.0.3/go.mod h1:QSpdZ1stlbfKtyt6Iu19M6XRxjmXO+vb5a/R6Fvy2y4= -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/vpcaccess v1.7.1/go.mod h1:FogoD46/ZU+JUBX9D606X21EnxiszYi2tArQwLY4SXs= -cloud.google.com/go/vpcaccess v1.7.2/go.mod h1:mmg/MnRHv+3e8FJUjeSibVFvQF1cCy2MsFaFqxeY1HU= -cloud.google.com/go/vpcaccess v1.7.3/go.mod h1:YX4skyfW3NC8vI3Fk+EegJnlYFatA+dXK4o236EUCUc= -cloud.google.com/go/vpcaccess v1.7.4/go.mod h1:lA0KTvhtEOb/VOdnH/gwPuOzGgM+CWsmGu6bb4IoMKk= -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/webrisk v1.9.1/go.mod h1:4GCmXKcOa2BZcZPn6DCEvE7HypmEJcJkr4mtM+sqYPc= -cloud.google.com/go/webrisk v1.9.2/go.mod h1:pY9kfDgAqxUpDBOrG4w8deLfhvJmejKB0qd/5uQIPBc= -cloud.google.com/go/webrisk v1.9.3/go.mod h1:RUYXe9X/wBDXhVilss7EDLW9ZNa06aowPuinUOPCXH8= -cloud.google.com/go/webrisk v1.9.4/go.mod h1:w7m4Ib4C+OseSr2GL66m0zMBywdrVNTDKsdEsfMl7X0= -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/websecurityscanner v1.6.1/go.mod h1:Njgaw3rttgRHXzwCB8kgCYqv5/rGpFCsBOvPbYgszpg= -cloud.google.com/go/websecurityscanner v1.6.2/go.mod h1:7YgjuU5tun7Eg2kpKgGnDuEOXWIrh8x8lWrJT4zfmas= -cloud.google.com/go/websecurityscanner v1.6.3/go.mod h1:x9XANObUFR+83Cya3g/B9M/yoHVqzxPnFtgF8yYGAXw= -cloud.google.com/go/websecurityscanner v1.6.4/go.mod h1:mUiyMQ+dGpPPRkHgknIZeCzSHJ45+fY4F52nZFDHm2o= -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= -cloud.google.com/go/workflows v1.11.1/go.mod h1:Z+t10G1wF7h8LgdY/EmRcQY8ptBD/nvofaL6FqlET6g= -cloud.google.com/go/workflows v1.12.0/go.mod h1:PYhSk2b6DhZ508tj8HXKaBh+OFe+xdl0dHF/tJdzPQM= -cloud.google.com/go/workflows v1.12.1/go.mod h1:5A95OhD/edtOhQd/O741NSfIMezNTbCwLM1P1tBRGHM= -cloud.google.com/go/workflows v1.12.2/go.mod h1:+OmBIgNqYJPVggnMo9nqmizW0qEXHhmnAzK/CnBqsHc= -cloud.google.com/go/workflows v1.12.3/go.mod h1:fmOUeeqEwPzIU81foMjTRQIdwQHADi/vEr1cx9R1m5g= -dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= -dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +cloud.google.com/go/storage v1.64.0 h1:KLpxI/oX9LxeRsNqn877d2WyeT3ryiEwnGt8pwcSPZg= +cloud.google.com/go/storage v1.64.0/go.mod h1:lWyAtwvDZHdL3k68WVKbESP6bmWaV23ZJJ/JEVw/ZaQ= +cloud.google.com/go/trace v1.16.0 h1:GmQovzFc5F0CNfl0VLgL64aoTtu7xsM0YajW2GlG9+E= +cloud.google.com/go/trace v1.16.0/go.mod h1:r+bdAn16dKLSV1G2D5v3e58IlQlizfxWrUfjx7kM7X0= 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/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqbjDYsgN+RzP4q16yV5eM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 h1:tfLQ34V6F7tVSwoTf/4lH5sE0o6eCJuNDTmH09nDpbc= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 h1:m/sWOGCREuSBqg2htVQTBY8nOZpyajYztF0vUvSZTuM= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0/go.mod h1:Pu5Zksi2KrU7LPbZbNINx6fuVrUp/ffvpxdDj+i8LeE= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0 h1:aokoqcHvaGjiM3VpjKDfMMnF/8epJ+Q1HLJ7CudztqE= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0/go.mod h1:/WYEx9pcM9Y+Dd/APJaNlSvVSvzl54rrMdZT5+Oi2LM= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0 h1:CU4+EJeJi3TKYWEcYuSdWsjzw0nVsK/H0MSQOiPcymU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0/go.mod h1:q0+UTSRvShwUCrR/s5HtyInYphN7Wvxb7snFM3u+SLA= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 h1:fhqpLE3UEXi9lPaBRpQ6XuRW0nU7hgg4zlmZZa+a9q4= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0/go.mod h1:7dCRMLwisfRH3dBupKeNCioWYUZ4SS09Z14H+7i8ZoY= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.5.0 h1:MaKvxE6D0KkjOg6Wd9M00iqP5PR0kUxCfiezes4JweM= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.5.0/go.mod h1:i2h9fsTFKZorh8RdV2IcSUf/Qj98GlTkrTvUbX/s8as= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.2.0 h1:nCYfgcSyHZXJI8J0IWE5MsCGlb2xp9fJiXyxWgmOFg4= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.2.0/go.mod h1:ucUjca2JtSZboY8IoUqyQyuuXvwbMBVwFOm0vdQPNhA= +github.com/AzureAD/microsoft-authentication-library-for-go v1.7.2 h1:RHK7bS+HQMslb1sZpAokUt+zTVmue0hKSs2C791hhzU= +github.com/AzureAD/microsoft-authentication-library-for-go v1.7.2/go.mod h1:HKpQxkWaGLJ+D/5H8QRpyQXA1eKjxkFlOMwck5+33Jk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= -github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= +github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/DopplerHQ/terraform-provider-doppler v1.10.0 h1:keJ+MSC9WwzAr7g5xf3y7mdjYga5zA1Myge6KmkLRM0= -github.com/DopplerHQ/terraform-provider-doppler v1.10.0/go.mod h1:1cUmyihda0b4L2Xclj2eftCChGc8+asRGVDKHJx+vt8= +github.com/DopplerHQ/terraform-provider-doppler v1.22.0 h1:CfoLLu79mxkZR67pFif1Rt7CJgrdFxTU4jmq7/ahLHQ= +github.com/DopplerHQ/terraform-provider-doppler v1.22.0/go.mod h1:XhhJ/W8YH+Ob7hFYqvvXaR74Y9E9wAHBub1lZTKO8i8= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.35.0 h1:bN1gA3of5bXtbnLsRPrwfmbbe7A5UWFlcTHseujLnpc= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.35.0/go.mod h1:Yj5vHEz/aAepZGliRJsA6uvHAVAQyEwajq9ORCHPxzM= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.59.0 h1:c/Ivw7FuawPLfrr+zB0LZKeCchO2cAHQpF2qZ6OV7rQ= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.59.0/go.mod h1:Zba7lknY/d78oxbKqFTmCsaGwfpzeJ3ktrrLXtnTV6g= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.59.0 h1:xTXsqDOj5k9mK3VVWHYUryryJCIdYfXxdjKFwpzINUw= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.59.0/go.mod h1:V9g30lTKzfUsEW+gpWssck6u9IhARajmipodImLLcwI= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.59.0 h1:18FRm6ZcN/x9+ZmhMr96hLcTtlLn2/gHPuDLVeg7XcY= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.59.0/go.mod h1:YqwkQPrWSC7+byyc1VlKbWLBF5JsW5IoL6xUkemYSXk= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= -github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -1183,41 +92,30 @@ github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYr github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= -github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= -github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= -github.com/ProtonMail/go-crypto v1.1.0-alpha.0 h1:nHGfwXmFvJrSR9xu8qL7BkO4DqTHXE9N5vPhgY2I+j0= -github.com/ProtonMail/go-crypto v1.1.0-alpha.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= -github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= -github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/ProtonMail/go-crypto v1.5.2 h1:cucYnvqcY7UOXVD//mSyjeaPY0SSN3v5cDkYPxumINk= +github.com/ProtonMail/go-crypto v1.5.2/go.mod h1:/RaSu30DaKO4RY+XdV/ACcCcZkGr7AhUIduq5sjzzCo= +github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1ow= +github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4= +github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8= +github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo= github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412/go.mod h1:WPjqKcmVOxf0XSf3YxCJs6N6AOSrOx3obionmG7T0y0= -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/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= -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/arrow/go/v12 v12.0.0/go.mod h1:d+tV/eHZZ7Dz7RPrFKtPK02tpr+c9/PEd/zm8mDS9Vg= -github.com/apache/thrift v0.16.0/go.mod h1:PHK3hniurgQaNMZYaCLEqXKsYK8upmhPbmdP2FXSqgU= github.com/apparentlymart/go-cidr v1.0.1/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc= 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/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= -github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -1225,234 +123,192 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= -github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.50.36 h1:PjWXHwZPuTLMR1NIb8nEjLucZBMzmf84TLoLbD8BZqk= -github.com/aws/aws-sdk-go v1.50.36/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= -github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+EkA= -github.com/aws/aws-sdk-go-v2 v1.26.1/go.mod h1:ffIFB97e2yNsv4aTSGkqtHnppsIJzw7G7BReUZ3jCXM= -github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 h1:x6xsQXGSmW6frevwDA+vi/wqhp1ct18mVXYN08/93to= -github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2/go.mod h1:lPprDr1e6cJdyYeGXnRaJoP4Md+cDBvi2eOj00BlGmg= -github.com/aws/aws-sdk-go-v2/config v1.27.11 h1:f47rANd2LQEYHda2ddSCKYId18/8BhSRM4BULGmfgNA= -github.com/aws/aws-sdk-go-v2/config v1.27.11/go.mod h1:SMsV78RIOYdve1vf36z8LmnszlRWkwMQtomCAI0/mIE= -github.com/aws/aws-sdk-go-v2/credentials v1.17.11 h1:YuIB1dJNf1Re822rriUOTxopaHHvIq0l/pX3fwO+Tzs= -github.com/aws/aws-sdk-go-v2/credentials v1.17.11/go.mod h1:AQtFPsDH9bI2O+71anW6EKL+NcD7LG3dpKGMV4SShgo= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 h1:FVJ0r5XTHSmIHJV6KuDmdYhEpvlHpiSd38RQWhut5J4= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1/go.mod h1:zusuAeqezXzAB24LGuzuekqMAEgWkVYukBec3kr3jUg= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 h1:7Zwtt/lP3KNRkeZre7soMELMGNoBrutx8nobg1jKWmo= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15/go.mod h1:436h2adoHb57yd+8W+gYPrrA9U/R/SuAuOO42Ushzhw= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 h1:aw39xVGeRWlWx9EzGVnhOR4yOjQDHPQ6o6NmBlscyQg= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5/go.mod h1:FSaRudD0dXiMPK2UjknVwwTYyZMRsHv3TtkabsZih5I= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 h1:PG1F3OD1szkuQPzDw3CIQsRIrtTlUC3lP84taWzHlq0= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5/go.mod h1:jU1li6RFryMz+so64PpKtudI+QzbKoIEivqdf6LNpOc= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5 h1:81KE7vaZzrl7yHBYHVEzYB8sypz11NMOZ40YlWvPxsU= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5/go.mod h1:LIt2rg7Mcgn09Ygbdh/RdIm0rQ+3BNkbP1gyVMFtRK0= -github.com/aws/aws-sdk-go-v2/service/iam v1.31.4 h1:eVm30ZIDv//r6Aogat9I88b5YX1xASSLcEDqHYRPVl0= -github.com/aws/aws-sdk-go-v2/service/iam v1.31.4/go.mod h1:aXWImQV0uTW35LM0A/T4wEg6R1/ReXUu4SM6/lUHYK0= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 h1:Ji0DY1xUsUr3I8cHps0G+XM3WWU16lP6yG8qu1GAZAs= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2/go.mod h1:5CsjAbs3NlGQyZNFACh+zztPDI7fU6eW9QsxjfnuBKg= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7 h1:ZMeFZ5yk+Ek+jNr1+uwCd2tG89t6oTS5yVWpa6yy2es= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7/go.mod h1:mxV05U+4JiHqIpGqqYXOHLPKUC6bDXC44bsUhNjOEwY= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 h1:ogRAwT1/gxJBcSWDMZlgyFUM962F51A5CRhDLbxLdmo= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7/go.mod h1:YCsIZhXfRPLFFCl5xxY+1T9RKzOKjCut+28JSX2DnAk= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5 h1:f9RyWNtS8oH7cZlbn+/JNPpjUk5+5fLd5lM9M0i49Ys= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5/go.mod h1:h5CoMZV2VF297/VLhRhO1WF+XYWOzXo+4HsObA4HjBQ= -github.com/aws/aws-sdk-go-v2/service/kms v1.30.1 h1:SBn4I0fJXF9FYOVRSVMWuhvEKoAHDikjGpS3wlmw5DE= -github.com/aws/aws-sdk-go-v2/service/kms v1.30.1/go.mod h1:2snWQJQUKsbN66vAawJuOGX7dr37pfOq9hb0tZDGIqQ= -github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 h1:6cnno47Me9bRykw9AEv9zkXE+5or7jz8TsskTTccbgc= -github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1/go.mod h1:qmdkIIAC+GCLASF7R2whgNrJADz0QZPX+Seiw/i4S3o= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 h1:vN8hEbpRnL7+Hopy9dzmRle1xmDc7o8tmY0klsr175w= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.5/go.mod h1:qGzynb/msuZIE8I75DVRCUXw3o3ZyBmUvMwQ2t/BrGM= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 h1:Jux+gDDyi1Lruk+KHF91tK2KCuY61kzoCpvtvJJBtOE= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4/go.mod h1:mUYPBhaF2lGiukDEjJX2BLRRKTmoUSitGDUgM4tRxak= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 h1:cwIxeBttqPN3qkaAjcEcsh8NYr8n2HZPkcKgPAi1phU= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.6/go.mod h1:FZf1/nKNEkHdGGJP/cI2MoIMquumuRK6ol3QQJNDxmw= -github.com/aws/smithy-go v1.20.2 h1:tbp628ireGtzcHDDmLT/6ADHidqnwgF57XOXZe6tp4Q= -github.com/aws/smithy-go v1.20.2/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= +github.com/aws/aws-sdk-go-v2 v1.43.0 h1:fharf/WhbRAVZ1du0QL7roNFxZ6T/sWr+4Ni617bwSI= +github.com/aws/aws-sdk-go-v2 v1.43.0/go.mod h1:5pKeft2eJj+gElQ38Jqg4ibCqh+/AK33/0X3hip7IjM= +github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14 h1:3IZY0XAJquT3aHzbkHfPzy4ACPcEjVG0x87KOwtpqGY= +github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14/go.mod h1:zwM6veDkhGgQFqkBy+uT28AAYpLu+uFMlPl+rCg/73E= +github.com/aws/aws-sdk-go-v2/config v1.32.31 h1:n4nY9O3QKoHIkL85EX+V8RcMFtOhlpTFhGArg915PXk= +github.com/aws/aws-sdk-go-v2/config v1.32.31/go.mod h1:PN0NYDCCoOpGGsZ2+elDUidmHfQBPyYzN2GCgl8HEBs= +github.com/aws/aws-sdk-go-v2/credentials v1.19.30 h1:TTCvvzFU6gXa4iJecNG/0F/B0oYTiazoRECr2XyLHrY= +github.com/aws/aws-sdk-go-v2/credentials v1.19.30/go.mod h1:jKxAp2AEncnliinzpgOSZDFv6+VjvWhjw/AtbfsWT9U= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.31 h1:kfVL5wAunCJycL6MOQ6aNh6PlAYEymflcjuKmrWUA0o= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.31/go.mod h1:nWfRNDAppujCQgOUd43lKT4yeLv9z3nJ3bw1G3BgQKo= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.31 h1:Z8F3hfCY33IGpJjFAnv0wvtv1FIKj1GHmRDEYqy64tw= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.31/go.mod h1:aVyUoytEyOViR6jhq6jula0xkc5NfBE2hgeF6BvOrao= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.31 h1:hyOxUyXdh3AyjE93gBgsfziJag9ACwcs+ZpDBLzi8mw= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.31/go.mod h1:OERqI9k0draSLB8O8woxY3q25ZWTELRK4RRoLMuMZFo= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.32 h1:0MrUL35H/Y4kdFfItoR5jCgtDQ4Z/8LudAoIHRfA4hE= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.32/go.mod h1:2tNZkuWz54arj8mHVf+8Y7cKkcD8Wr/fBpENgEXpjLc= +github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.74.4 h1:4GBRq2ZWJkOy6S4HRNuJJpaZ5KXPNIDe/QJysoyXglI= +github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.74.4/go.mod h1:Op4lD9kBH1InUC+DxIALi0ALAASdpY71vRdtevYFVrs= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.13 h1:mbRIur/BiHK6SKPjoBIXSE/hJ6g6JGRLuxQy1jGjlN4= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.13/go.mod h1:ITg9em2KbJx1s0y4aqRX5OYWG6HBZ5TVR//OdpEZ2CQ= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.24 h1:mdPwDQPqxlw9Sc62Nt15yjEcARaDbPXkjRYtXsUripo= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.24/go.mod h1:ls5ytnwLTcQaUu32fMYXFI3MjpKuTwL840PAm9iqyEg= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.31 h1:w2SIhW92DZPFrSL4ksVCr8IYff5OZwIcxg8+95tzvAI= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.31/go.mod h1:wAhpCQbkov+IcvjozJbd2xRCoZybUEHNkcFunssNACg= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.32 h1:jWXtZdCnhXa9sGFixRaU2AxT4DIVse9HS4E2f+/KwV0= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.32/go.mod h1:9JS1UpfVvyD/ZPX8GsKb/Pq8scEM+7GP5fqh9SwH7po= +github.com/aws/aws-sdk-go-v2/service/kms v1.55.0 h1:uB8ymkVosyourmGXCZHyWhJ4wuKA4xq3ii2dVMPtBZY= +github.com/aws/aws-sdk-go-v2/service/kms v1.55.0/go.mod h1:rK4RITSY/qJw3qVJ7p19fceOWuvrisqqOChFkX05n5I= +github.com/aws/aws-sdk-go-v2/service/s3 v1.106.0 h1:7QZWVJZWzHivHWIa+5TELLaBBkbuoj0GPwQtMlJ0sqk= +github.com/aws/aws-sdk-go-v2/service/s3 v1.106.0/go.mod h1:fcvq5L7dK+5cQFicEJwpI6e6Wn8NY2i6yT5wRLYVc7s= +github.com/aws/aws-sdk-go-v2/service/signin v1.5.0 h1:OHH5iTQvVGmfHjX/5Q+vFuA/Rf2x6/95aJ/75QCQSm4= +github.com/aws/aws-sdk-go-v2/service/signin v1.5.0/go.mod h1:mCF3AK9PpL49oOrhniUXWAfhVBVQ/XbytoE5eccZUIs= +github.com/aws/aws-sdk-go-v2/service/sso v1.33.0 h1:CaJyYhxBE0M/HJX/YvSaSmQlsI91VHB0lKU8LtLxL3A= +github.com/aws/aws-sdk-go-v2/service/sso v1.33.0/go.mod h1:+e6BMRMPjBQoCw/WovYR9GLy2IU0z4Q77smOB1DraSg= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.38.0 h1:tC323YV77QdafeBr6LUhLDTsboyuyHLNRwAyCP44kGU= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.38.0/go.mod h1:SfLK1sgviHmbI+MozR9iDwDjL4cdCVZtahsjoR+z7wg= +github.com/aws/aws-sdk-go-v2/service/sts v1.45.0 h1:Pd6PNlp4t8PTXxqzstICl52Wsy78vpjFZ7PRUj44mJc= +github.com/aws/aws-sdk-go-v2/service/sts v1.45.0/go.mod h1:rmQ0TnHzuLPmabgjPcsywhsSOmaBDgzR4zvDxSPsGdg= +github.com/aws/smithy-go v1.27.4 h1:JQcphmBN4f0q/sPqXqROIItRNV/hy10cgu7CsFy616M= +github.com/aws/smithy-go v1.27.4/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/bazelbuild/buildtools v0.0.0-20260211083412-859bfffeef82 h1:PmoVmwzAnGb0iCjulb7Mgsaqw2Wj36LQJ8VyYaFe/ak= +github.com/bazelbuild/buildtools v0.0.0-20260211083412-859bfffeef82/go.mod h1:PLNUetjLa77TCCziPsz0EI8a6CUxgC+1jgmWv0H25tg= 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 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -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/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= -github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/cenkalti/backoff/v3 v3.2.2 h1:cfUAAO3yvKMYKPrvhDuHSwQnhZNk/RMHKdZqKTxfm6M= -github.com/cenkalti/backoff/v3 v3.2.2/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= +github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc= +github.com/bmatcuk/doublestar/v4 v4.6.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= +github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= +github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= 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/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY= -github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc= -github.com/charmbracelet/bubbletea v0.25.0 h1:bAfwk7jRz7FKFl9RzlIULPkStffg5k6pNt5dywy4TcM= -github.com/charmbracelet/bubbletea v0.25.0/go.mod h1:EN3QDR1T5ZdWmdfDzYcqOCAps45+QIJbLOBxmVNWNNg= -github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E= -github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charmbracelet/bubbles v1.0.0 h1:12J8/ak/uCZEMQ6KU7pcfwceyjLlWsDLAxB5fXonfvc= +github.com/charmbracelet/bubbles v1.0.0/go.mod h1:9d/Zd5GdnauMI5ivUIVisuEm3ave1XwXtD1ckyV6r3E= +github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw= +github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4= +github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q= +github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q= +github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= +github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30= +github.com/charmbracelet/x/ansi v0.11.9 h1:kIrqLBxtTVbLyyHO2Evoi93EjQo1mylWmpNEsfPxXAM= +github.com/charmbracelet/x/ansi v0.11.9/go.mod h1:DG/hpOnaI2QJ/KMMqLL2h0KVhluuJLazf8973P+Vy5w= +github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI= +github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q= +github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= +github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= -github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= -github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= 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/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= -github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= +github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= +github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= +github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= +github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= +github.com/cloudflare/circl v1.6.5 h1:O64F26HEqNhznd/hrC5KZXVKYuKM2rx4deZDTc4ihQA= +github.com/cloudflare/circl v1.6.5/go.mod h1:h5LNyxAc5nTue9DS5jT+48en2PSDYt3zdGnz5OstK6c= 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-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20230428030218-4003588d1b74/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY= -github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk= -github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 h1:aBangftG7EVZoUb69Os8IaYg++6uMOdKK83QtkkvJik= +github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2/go.mod h1:qwXFYgsP6T7XnJtbKlf1HP8AjxZZyzxMmc+Lq5GjlU4= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= -github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= +github.com/danieljoos/wincred v1.2.3/go.mod h1:6qqX0WNrS4RzPZ1tnroDzq9kY3fu1KwE7MRLQK4X0bs= 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/deckarep/golang-set/v2 v2.5.0 h1:hn6cEZtQ0h3J8kFrHR/NrzyOoTnjgW1+FmNJzQ7y/sA= -github.com/deckarep/golang-set/v2 v2.5.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= -github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= -github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= -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/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/deckarep/golang-set/v2 v2.9.0 h1:prva4eP9UysWagLyKrtn074ughi0NnkIf0A4M5yOCKI= +github.com/deckarep/golang-set/v2 v2.9.0/go.mod h1:EWknQXbs0mcFpat2QOoXV0Ee57cD+w6ZEN76BR2JVrM= +github.com/djherbis/times v1.6.0 h1:w2ctJ92J8fBvWPxugmXIv7Nz7Q3iDMKNx9v5ocVH20c= +github.com/djherbis/times v1.6.0/go.mod h1:gOHeRAz2h+VJNZ5Gmc/o7iD9k4wW7NMVqieYCY99oc0= +github.com/ebitengine/purego v0.10.2 h1:W809HbnvzAxgdm+aOvlSekrM16wGCdT/e76+9tS7gzE= +github.com/ebitengine/purego v0.10.2/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ= github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q= -github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a h1:mATvB/9r/3gvcejNsXKSkQ6lcIaNec2nyfOdlTBR2lU= -github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= -github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= 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.0/go.mod h1:VnHyVMpzcLvCFt9yUz1UnCwHLhwx1WguiVDV7pTG/tI= -github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q= -github.com/envoyproxy/go-control-plane v0.11.1/go.mod h1:uhMcXKCQMEJHiAb0w+YGefQLaTEw+YhGluxZkrTmD0g= +github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA= +github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU= +github.com/envoyproxy/go-control-plane/envoy v1.37.0 h1:u3riX6BoYRfF4Dr7dwSOroNfdSbEPe9Yyl09/B6wBrQ= +github.com/envoyproxy/go-control-plane/envoy v1.37.0/go.mod h1:DReE9MMrmecPy+YvQOAOHNYMALuowAnbjjEMkkWOi6A= +github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= +github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4= 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.0/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= -github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= -github.com/envoyproxy/protoc-gen-validate v1.0.1/go.mod h1:0vj8bNkYbSTNS2PIyH87KZaeN4x9zpL9Qt8fQC7d+vs= -github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= -github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= -github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= +github.com/envoyproxy/protoc-gen-validate v1.3.3 h1:MVQghNeW+LZcmXe7SY1V36Z+WFMDjpqGAGacLe2T0ds= +github.com/envoyproxy/protoc-gen-validate v1.3.3/go.mod h1:TsndJ/ngyIdQRhMcVVGDDHINPLWB7C82oDArY51KfB0= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -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/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= +github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc= +github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= -github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= -github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= -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.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= -github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= -github.com/go-git/go-billy/v5 v5.4.1/go.mod h1:vjbugF6Fz7JIflbVpl1hJsGjSHNltrSw45YK/ukIvQg= -github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= -github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.10.1/go.mod h1:uEuHjxkHap8kAl//V5F/nNWwqIYtP/402ddd05mp0wg= -github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lKqXmCUiUCY= -github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= -github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= +github.com/git-pkgs/manifests v0.4.1 h1:CWml+TrRXVzrfNJ2pTNKLqyi+9y/BFiQP/BX3pL4pPQ= +github.com/git-pkgs/manifests v0.4.1/go.mod h1:7SPFwU9diUG1Az682/p4ZupHJkfpbWKwRvNPwCcOeVs= +github.com/git-pkgs/purl v0.1.15 h1:iQ3clh0Cw41rkM0rf24B7ShnN9Z+UtLMAFlNDUs+Qd4= +github.com/git-pkgs/purl v0.1.15/go.mod h1:PqCLVBDeZrZgHysR803/AntMELgIr2LFZVNCcwLH2m0= +github.com/git-pkgs/vers v0.3.0 h1:xM4LLUCRmqzdDfe+/pVQUx4SRyFXRVth6tOsJ14wMKU= +github.com/git-pkgs/vers v0.3.0/go.mod h1:biTbSQK1qdbrsxDEKnqe3Jzclxz8vW6uDcwKjfUGcOo= +github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= +github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= +github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= +github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= +github.com/go-git/gcfg/v2 v2.0.2 h1:MY5SIIfTGGEMhdA7d7JePuVVxtKL7Hp+ApGDJAJ7dpo= +github.com/go-git/gcfg/v2 v2.0.2/go.mod h1:/lv2NsxvhepuMrldsFilrgct6pxzpGdSRC13ydTLSLs= +github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= +github.com/go-git/go-billy/v6 v6.0.0-beta.1 h1:OJ4r207zcEbeq/DJNajQUOMd+pph3r9A7hRq1Sjl1bA= +github.com/go-git/go-billy/v6 v6.0.0-beta.1/go.mod h1:QGOWN4CzmtRfpFeCw5paG3RJyKdTwsfGASkxBVkIaAU= +github.com/go-git/go-git-fixtures/v4 v4.0.1/go.mod h1:m+ICp2rF3jDhFgEZ/8yziagdT1C+ZpZcrJjappBCDSw= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 h1:gmqi2jvsreu0s8JMLylYDFq4sbjHwwlhktMw0DUg3mA= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1/go.mod h1:ECf1MqJlBdYpKggBrOXjo/0EnvRZx6D++I86UYjPgAQ= +github.com/go-git/go-git/v5 v5.1.0/go.mod h1:ZKfuPUoY1ZqIG4QG9BDBh3G4gLM5zvPuSJAozQrZuyM= +github.com/go-git/go-git/v6 v6.0.0-beta.1 h1:1t+vJYGDBN6f9GRWskgWx5UjXPFUa7wfffZZZ2C5GtA= +github.com/go-git/go-git/v6 v6.0.0-beta.1/go.mod h1:ugDlr38Wwc+fOw85J+Oluh5TNXQtJgYMcriOljg3l4s= 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-jose/go-jose/v3 v3.0.3 h1:fFKWeig/irsp7XD2zBxvnmA/XaRWp5V3CBsZXJF7G7k= -github.com/go-jose/go-jose/v3 v3.0.3/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= -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-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA= +github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -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-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -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/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/go-test/deep v1.1.1 h1:0r/53hagsehfO4bzD2Pgr/+RgHqhmf+k1Bpse2cTu1U= +github.com/go-test/deep v1.1.1/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= +github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= -github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= +github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= 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/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.5 h1:DrW6hGnjIhtvhOIiAKT6Psh/Kd/ldepEa81DKeiRJ5I= +github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= 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/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= 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= @@ -1467,52 +323,34 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W 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/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -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/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-pkcs11 v0.2.0/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= -github.com/google/go-pkcs11 v0.2.1-0.20230907215043-c6f79328ddf9/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= 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/go-replayers/grpcreplay v1.1.0 h1:S5+I3zYyZ+GQz68OfbURDdt/+cSMqCK1wrvNx7WBzTE= -github.com/google/go-replayers/grpcreplay v1.1.0/go.mod h1:qzAvJ8/wi57zq7gWqaE6AwLM6miiXUQwP1S+I9icmhk= -github.com/google/go-replayers/httpreplay v1.2.0 h1:VM1wEyyjaoU53BwrOnaf9VhAyQQEEioJvFYxYcLRKzk= -github.com/google/go-replayers/httpreplay v1.2.0/go.mod h1:WahEFFZZ7a1P4VM1qEeHy+tME4bwyqPcwWbNlUI1Mcg= +github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo= +github.com/google/go-tpm v0.9.8/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba h1:qJEJcuLzH5KDR0gKc0zcktin6KSAwL7+jWKBYceddTc= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba/go.mod h1:EFYHy8/1y2KfgTAsx7Luu7NGhoxtuVHnNo8jE7FikKc= 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/martian/v3 v3.3.3 h1:DIhPTQrbPkgs2yJYdXU/eNACCG5DVQjySNRNlflZ9Fc= +github.com/google/martian/v3 v3.3.3/go.mod h1:iEPrYcgCF7jA9OtScMFQyAlZZ4YXTKEtJ1E6RWzmBA0= 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= @@ -1520,69 +358,31 @@ github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hf 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-20210407192527-94a9f03dee38/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/s2a-go v0.1.0/go.mod h1:OJpEgntRZo8ugHpF9hkoLJbS5dSI20XZeXJ9JVywLlM= -github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= -github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= -github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= -github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= +github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= +github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= 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/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/wire v0.6.0 h1:HBkoIh4BdSxoyo9PveV8giw7ZsaBOvzWKfcg/6MrVwI= -github.com/google/wire v0.6.0/go.mod h1:F4QhpQ9EDIdJ1Mbop/NZBRB+5yrR6qg3BnctaoUk6NA= -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/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= -github.com/googleapis/enterprise-certificate-proxy v0.2.4/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= -github.com/googleapis/enterprise-certificate-proxy v0.2.5/go.mod h1:RxW0N9901Cko1VOCW3SXCpWP+mlIEkk2tP7jnHy9a3w= -github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= -github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= +github.com/google/wire v0.7.0 h1:JxUKI6+CVBgCO2WToKy/nQk0sS+amI9z9EjVmdaocj4= +github.com/google/wire v0.7.0/go.mod h1:n6YbUQD9cPKTnHXEBN2DXlOp/mVADhVErcMFb0v3J18= +github.com/googleapis/enterprise-certificate-proxy v0.3.19 h1:mMOE7DN2+p76/EdIrmAy9B9bH+yC4563vmnJ34QR8i4= +github.com/googleapis/enterprise-certificate-proxy v0.3.19/go.mod h1:rSEsBUemEBZEexP2y6jPp16LUmUbjmSbcPMQizR0o4k= 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/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= -github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= -github.com/googleapis/gax-go/v2 v2.10.0/go.mod h1:4UOEnMCrxsSqQ940WnTiD6qJ63le2ev3xfyagutxiPw= -github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= -github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= -github.com/googleapis/gax-go/v2 v2.12.2 h1:mhN09QQW1jEWeMF74zGR81R30z4VJzjZsfkUhuHF+DA= -github.com/googleapis/gax-go/v2 v2.12.2/go.mod h1:61M8vcyyXR2kqKFxKrfA22jaA8JGF7Dc8App1U3H6jc= -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/googleapis/gax-go/v2 v2.23.0 h1:Tchl7qkvE7Ip3y+ztvNufYFvkfqTe7NfLTYGIdJRLuE= +github.com/googleapis/gax-go/v2 v2.23.0/go.mod h1:rBQKOVJCdb8IFEzg+FCwlt1LP/xMDGuqUXhUG+XMXEg= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -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/grpc-ecosystem/grpc-gateway/v2 v2.32.0 h1:QMILzF8BA7xftE4zVORkRrlv08m12St3csK4RsyRgRs= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.32.0/go.mod h1:+ZQ6iUL8+ATyxGDQNuRKpNwJFdGDUi0e7E1QL9MvI7U= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= -github.com/hashicorp/cli v1.1.6/go.mod h1:MPon5QYlgjjo0BSoAiN0ESeT5fRzDjVRp+uioJ0piz4= +github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.72 h1:vTCWu1wbdYo7PEZFem/rlr01+Un+wwVmI7wiegFdRLk= +github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.72/go.mod h1:Vn+BBgKQHVQYdVQ4NZDICE1Brb+JfaONyDHr3q07oQc= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -1591,136 +391,117 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng 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-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= +github.com/hashicorp/go-cty v1.5.0 h1:EkQ/v+dDNUqnuVpmS5fPqyY71NXVgT5gf32+57xY8g0= +github.com/hashicorp/go-cty v1.5.0/go.mod h1:lFUCG5kd8exDobgSfyj4ONE/dc822kiYMguVKdHGMLM= github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= -github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= -github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.4.2-0.20200106182914-9813cbd4eb02/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= +github.com/hashicorp/go-getter v1.8.6 h1:9sQboWULaydVphxc4S64oAI4YqpuCk7nPmvbk131ebY= +github.com/hashicorp/go-getter v1.8.6/go.mod h1:nVH12eOV2P58dIiL3rsU6Fh3wLeJEKBOJzhMmzlSWoo= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= -github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= -github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= -github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= +github.com/hashicorp/go-plugin v1.3.0/go.mod h1:F9eH4LrE/ZsRdbwhfjs9k9HoDUwAHnYtXdgmf1AVNs0= +github.com/hashicorp/go-retryablehttp v0.7.8 h1:ylXZWnqa7Lhqpk0L1P1LzDtGcCR0rPVUrx/c8Unxc48= +github.com/hashicorp/go-retryablehttp v0.7.8/go.mod h1:rjiScheydd+CxvumBsIrFKlx3iS0jrZ7LvzFGFmuKbw= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -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-secure-stdlib/parseutil v0.1.8 h1:iBt4Ew4XEGLfh6/bPk4rSYmuZJGizr6/x/AEizP0CQc= -github.com/hashicorp/go-secure-stdlib/parseutil v0.1.8/go.mod h1:aiJI+PIApBRQG7FZTEBx5GiiX+HbOHilUdNxUZi4eV0= +github.com/hashicorp/go-secure-stdlib/parseutil v0.2.0 h1:U+kC2dOhMFQctRfhK0gRctKAPTloZdMU5ZJxaesJ/VM= +github.com/hashicorp/go-secure-stdlib/parseutil v0.2.0/go.mod h1:Ll013mhdmsVDuoIXVfBtvgGJsXDYkTw1kooNcoCXuE0= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 h1:kes8mmyCpxJsI7FTwtzRqEy9CdjCtrXrXGuOpxEA7Ts= github.com/hashicorp/go-secure-stdlib/strutil v0.1.2/go.mod h1:Gou2R9+il93BqX25LAKCLuM+y9U2T4hlwvT1yprcna4= -github.com/hashicorp/go-sockaddr v1.0.6 h1:RSG8rKU28VTUTvEKghe5gIhIQpv8evvNpnDEyqO4u9I= -github.com/hashicorp/go-sockaddr v1.0.6/go.mod h1:uoUUmtwU7n9Dv3O4SNLeFvg0SxQ3lyjsj6+CCykpaxI= +github.com/hashicorp/go-sockaddr v1.0.7 h1:G+pTkSO01HpR5qCxg7lxfsFEZaG+C0VssTy/9dbT+Fw= +github.com/hashicorp/go-sockaddr v1.0.7/go.mod h1:FZQbEYa1pxkQ7WLpyXJ6cbjpT8q0YgQaK/JakXqGyWw= 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.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 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.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= -github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA= +github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= 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/hc-install v0.6.2/go.mod h1:2JBpd+NCFKiHiu/yYCGaPyPHhZLxXTpz8oreHa/a3Ps= -github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= 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 v1.0.1-vault-7 h1:ag5OxFVy3QYTFTJODRzTKVZ6xvdfLLCA1cy/Y6xGI0I= +github.com/hashicorp/hcl v1.0.1-vault-7/go.mod h1:XYhtn6ijBSAj6n4YqAaf7RBPS4I06AItNorpy+MoQNM= github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90= -github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI= -github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= +github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= +github.com/hashicorp/hcl/v2 v2.24.0 h1:2QJdZ454DSsYGoaE6QheQZjtKZSUs9Nh2izTWiwQxvE= +github.com/hashicorp/hcl/v2 v2.24.0/go.mod h1:oGoO1FIQYfn/AgyOhlg9qLC6/nOJPX3qGbkZpYAcqfM= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 h1:T1Q6ag9tCwun16AW+XK3tAql24P4uTGUMIn1/92WsQQ= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/terraform-config-inspect v0.0.0-20191115094559-17f92b0546e8/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A= -github.com/hashicorp/terraform-exec v0.20.0/go.mod h1:ckKGkJWbsNqFKV1itgMnE0hY9IYf1HoiekpuN0eWoDw= +github.com/hashicorp/terraform-exec v0.9.0/go.mod h1:tOT8j1J8rP05bZBGWXfMyU3HkLi1LWyqL3Bzsc3CJjo= github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= -github.com/hashicorp/terraform-json v0.19.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= -github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= -github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= -github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= -github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= -github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= -github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= +github.com/hashicorp/terraform-json v0.5.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= +github.com/hashicorp/terraform-plugin-go v0.31.0 h1:0Fz2r9DQ+kNNl6bx8HRxFd1TfMKUvnrOtvJPmp3Z0q8= +github.com/hashicorp/terraform-plugin-go v0.31.0/go.mod h1:A88bDhd/cW7FnwqxQRz3slT+QY6yzbHKc6AOTtmdeS8= +github.com/hashicorp/terraform-plugin-log v0.10.0 h1:eu2kW6/QBVdN4P3Ju2WiB2W3ObjkAsyfBsL3Wh1fj3g= +github.com/hashicorp/terraform-plugin-log v0.10.0/go.mod h1:/9RR5Cv2aAbrqcTSdNmY1NRHP4E3ekrXRGjqORpXyB0= +github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= -github.com/hashicorp/terraform-plugin-sdk v1.9.1 h1:AgHnd6yPCg7o57XWrv4L7tIMdF0KQpcZro1pDHF1Xbw= -github.com/hashicorp/terraform-plugin-sdk v1.9.1/go.mod h1:C/AXwmDHqbc3h6URiHpIsVKrwV4PS0Sh0+VTaeEkShw= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.0.2/go.mod h1:pVZLnLuSe/yv0XqTHFPb8xRGWPwgANT77jHeHqjXS5o= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.40.1 h1:2yPUd7esMOpuTaG3y1iEla1iw+tla+3ZEkkBnmOAre4= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.40.1/go.mod h1:sq8qsxh+PwdvTQFcd17kfCoBgQo46ADNMvCpKE7t/gY= github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs= -github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= +github.com/hashicorp/terraform-plugin-test/v2 v2.1.1/go.mod h1:HaW2G5cDTVyiEKt7PHC85YSM5BwvYl/rIko1g8Lg7qE= github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= -github.com/hashicorp/vault/api v1.12.0 h1:meCpJSesvzQyao8FCOgk2fGdoADAnbDu2WPJN1lDLJ4= -github.com/hashicorp/vault/api v1.12.0/go.mod h1:si+lJCYO7oGkIoNPAN8j3azBLTn9SjMGS+jFaHd1Cck= +github.com/hashicorp/vault/api v1.22.0 h1:+HYFquE35/B74fHoIeXlZIP2YADVboaPjaSicHEZiH0= +github.com/hashicorp/vault/api v1.22.0/go.mod h1:IUZA2cDvr4Ok3+NtK2Oq/r+lJeXkeCrHRmqdyWfpmGM= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hexops/autogold v1.3.0 h1:IEtGNPxBeBu8RMn8eKWh/Ll9dVNgSnJ7bp/qHgMQ14o= github.com/hexops/autogold v1.3.0/go.mod h1:d4hwi2rid66Sag+BVuHgwakW/EmaFr8vdTSbWDbrDRI= -github.com/hexops/autogold/v2 v2.2.1 h1:JPUXuZQGkcQMv7eeDXuNMovjfoRYaa0yVcm+F3voaGY= -github.com/hexops/autogold/v2 v2.2.1/go.mod h1:IJwxtUfj1BGLm0YsR/k+dIxYi6xbeLjqGke2bzcOTMI= +github.com/hexops/autogold/v2 v2.3.1 h1:GcDwp9TkPkDG/wVodudePKPG8HbvEA8o8Z9hySIuAC4= +github.com/hexops/autogold/v2 v2.3.1/go.mod h1:1vQ1sj0yXQNn8VOlQeefQPXTLr9Qy9cf8pMDanZ4Gmo= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/hexops/valast v1.4.4 h1:rETyycw+/L2ZVJHHNxEBgh8KUn+87WugH9MxcEv9PGs= -github.com/hexops/valast v1.4.4/go.mod h1:Jcy1pNH7LNraVaAZDLyv21hHg2WBv9Nf9FL6fGxU7o4= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/hexops/valast v1.5.0 h1:FBTuvVi0wjTngtXJRZXMbkN/Dn6DgsUsBwch2DUJU8Y= +github.com/hexops/valast v1.5.0/go.mod h1:Jcy1pNH7LNraVaAZDLyv21hHg2WBv9Nf9FL6fGxU7o4= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.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.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/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/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= -github.com/jhump/gopoet v0.1.0/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= -github.com/jhump/goprotoc v0.5.0/go.mod h1:VrbvcYrQOrTi3i0Vf+m+oqQWk9l72mjkJCYo7UvLHRQ= -github.com/jhump/protoreflect v1.11.0/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= -github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +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.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -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/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 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/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/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= -github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kevinburke/ssh_config v1.6.0 h1:J1FBfmuVosPHf5GRdltRLhPJtJpTlMdKTBjRgTaQBFY= +github.com/kevinburke/ssh_config v1.6.0/go.mod h1:q2RIzfka+BXARoNexmF9gkxEX7DmvbW9P4hIVx2Kg4M= github.com/keybase/go-crypto v0.0.0-20161004153544-93f5b35093ba/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 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.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/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/klauspost/compress v1.18.7 h1:aUyZsS4kH3QTKurYhAOwAHxllVPnOthb3vPfnF1Ehjw= +github.com/klauspost/compress v1.18.7/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= 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/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -1730,42 +511,28 @@ 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/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= -github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -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/lyft/protoc-gen-star/v2 v2.0.3/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk= +github.com/lucasb-eyer/go-colorful v1.4.1 h1:1EO+WB73+EH8EVbzlrG3KLAfEypQWVHIBqlTf+2hNss= +github.com/lucasb-eyer/go-colorful v1.4.1/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= 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.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= +github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= 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.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -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.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI= +github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= -github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= -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/mattn/go-runewidth v0.0.31 h1:1oCV4ReTlosDBc6rYRw5cL8S/4y8iv5oRl4SJ5IBgwo= +github.com/mattn/go-runewidth v0.0.31/go.mod h1:3qAiGCV4Koz/yuveO58qUefmUTRm8r0IGEXZ9jeHp/8= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/cli v1.1.1/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= github.com/mitchellh/cli v1.1.5/go.mod h1:v8+iFts2sPIKUV1ltktPXMCC8fumSKFItNcD2cLtRR4= github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw= @@ -1779,6 +546,7 @@ github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= 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.0.4/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= @@ -1795,354 +563,297 @@ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx 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/mmcloughlin/avo v0.5.0/go.mod h1:ChHFdoV7ql95Wi7vuq2YT1bwCJqiWdZrQ1im3VujLYM= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo= github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= -github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s= -github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8= -github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo= -github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= +github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc= +github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= github.com/natefinch/atomic v1.0.1 h1:ZPYKxkqQOx3KZ+RsbnP/YsgvxWQPGxjC0oBt2AhwV0A= github.com/natefinch/atomic v1.0.1/go.mod h1:N/D/ELrljoqDyT3rZrsUmtsuzvHkeB/wWjHV22AZRbM= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAmxBiA= github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= -github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= -github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= -github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= -github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0= -github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo= -github.com/onsi/ginkgo/v2 v2.5.0/go.mod h1:Luc4sArBICYCS8THh8v3i3i5CuSZO+RaQRaJoeNwomw= -github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo= -github.com/onsi/ginkgo/v2 v2.8.1/go.mod h1:N1/NbDngAFcSLdyZ+/aYTYGSlq9qMCS/cNKGJjy+csc= -github.com/onsi/ginkgo/v2 v2.9.0/go.mod h1:4xkjoL/tZv4SMWeww56BU5kAt19mVB47gTWxmrTcxyk= -github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo= -github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts= -github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k= -github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0= -github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= -github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc= -github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM= -github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg= -github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM= -github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= -github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfadcIAw= -github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw= -github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ= -github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= -github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRahPmr4= -github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ= -github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= -github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= +github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 h1:zrbMGy9YXpIeTnGj4EljqMiZsIcE09mmF8XsD5AYOJc= +github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6/go.mod h1:rEKTHC9roVVicUIfZK7DYrdIoM0EOr8mK1Hj5s3JjH0= +github.com/olekukonko/errors v1.1.0 h1:RNuGIh15QdDenh+hNvKrJkmxxjV4hcS50Db478Ou5sM= +github.com/olekukonko/errors v1.1.0/go.mod h1:ppzxA5jBKcO1vIpCXQ9ZqgDh8iwODz6OXIGKU8r5m4Y= +github.com/olekukonko/ll v0.1.4-0.20260115111900-9e59c2286df0 h1:jrYnow5+hy3WRDCBypUFvVKNSPPCdqgSXIE9eJDD8LM= +github.com/olekukonko/ll v0.1.4-0.20260115111900-9e59c2286df0/go.mod h1:b52bVQRRPObe+yyBl0TxNfhesL0nedD4Cht0/zx55Ew= +github.com/olekukonko/tablewriter v1.1.3 h1:VSHhghXxrP0JHl+0NnKid7WoEmd9/urKRJLysb70nnA= +github.com/olekukonko/tablewriter v1.1.3/go.mod h1:9VU0knjhmMkXjnMKrZ3+L2JhhtsQ/L38BbL3CRNE8tM= +github.com/opentracing-contrib/go-grpc v0.1.4 h1:m9VukGYQ+tfcgtwdsifjjFtAoWRqmcbnGhgRQcZ+ZQA= +github.com/opentracing-contrib/go-grpc v0.1.4/go.mod h1:xP8rkWX/qdQJVTkf01D6Fc002zN0WUMKsvuKg7Tf93E= +github.com/opentracing-contrib/go-grpc/test v0.0.0-20260921214634-c4b381826b81 h1:OTbhGHT9+eMbYR7J0zJw741aJHsDo4SZrecanjdSFiQ= +github.com/opentracing-contrib/go-grpc/test v0.0.0-20260921214634-c4b381826b81/go.mod h1:EgSh6JmUwxmDnsxBVhxd1UjP+jOJPo7O/3zPWO9kiPo= github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0= github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/package-url/packageurl-go v0.1.6 h1:YO3p6u1XmCUliivUg/qWphaY8vI6hxSnnPv7Bfg3m5M= +github.com/package-url/packageurl-go v0.1.6/go.mod h1:nKAWB8E6uk1MHqiS/lQb9pYBGH2+mdJ2PJc2s50dQY0= github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU= github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M= +github.com/pgavlin/fx/v2 v2.0.12 h1:SjjaJ68Dt8Z4zHwOpY/RPijd7lShs6xYupJbF9ra00M= +github.com/pgavlin/fx/v2 v2.0.12/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 h1:LoCV5cscNVWyK5ChN/uCoIFJz8jZD63VQiGJIRgr6uo= github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386/go.mod h1:MRxHTJrf9FhdfNQ8Hdeh9gmHevC9RJE/fu8M3JIGjoE= -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 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= -github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pjbgf/sha1cd v0.7.0 h1:ZRNPKHj+gfkLBf0KJv/p1Hmz+7bqCT5o311YX0nq+DA= +github.com/pjbgf/sha1cd v0.7.0/go.mod h1:pKR5Li+qTCo+ebqITZfwPlJGoCFCvSO00qxjbNtTUFQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= 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/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= 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/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= 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/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= -github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= -github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= -github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= -github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.14.0 h1:CKL7lLF81Fq6VRhA5TNFsSMnHraTNCUzIhqCzYX8Wzk= -github.com/pulumi/pulumi-java/pkg v0.14.0/go.mod h1:VybuJMWJtJc9ZNbt1kcYH4TbpocMx9mEi7YWL2Co99c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 h1:FLQknb6r3r/uaj1XLbouFF88eF1Fk0h4JOVS9kHKDRY= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1/go.mod h1:JAxygKR/XGW6zIv6iOP6sHAYjZ7OCtqU7j6Od1lUk38= -github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= -github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.9.2 h1:BCUuRPA1USmFXrExiHRU8yJ+OiphLYnroPxKRgGCJrs= -github.com/pulumi/pulumi-yaml v1.9.2/go.mod h1:sIh/Oa/NLRGTojevh8D2/cPDPvo2j9iXegVDQIKKfw4= -github.com/pulumi/pulumi/pkg/v3 v3.129.0 h1:n4Jd4ctlvw3eqyHglb/yJKDtRqjOvdkCBfG5T+orU30= -github.com/pulumi/pulumi/pkg/v3 v3.129.0/go.mod h1:W3c7JgO064kUH5IfyQMCgmsAr5iwr3PO6KEeIQiO0dY= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= -github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= -github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= +github.com/pulumi/inflector v0.2.1 h1:bqyiish3tq//vLeLiEstSFE5K7RNjy/ce47ed4QATu8= +github.com/pulumi/inflector v0.2.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= +github.com/pulumi/providertest v0.7.0 h1:nXydemrnkJfil6sd8AtvO81gJOTzYc1wFfgtco4zWDc= +github.com/pulumi/providertest v0.7.0/go.mod h1:R7nigJF1sE3yUtNQSozNSfsUl/gK4xIDW0Mxmacl6IY= +github.com/pulumi/pulumi-cloud-sdk/go v1.20261012.0 h1:8yoYQDT+y2NBHyv6LcpFJ0bQSfgv9SG+tJX3364ptnc= +github.com/pulumi/pulumi-cloud-sdk/go v1.20261012.0/go.mod h1:NPA79X6Wmyr5zNKd+N+RiVJN8duwIrRmIaed8HCL9EM= +github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.114.2 h1:7GweJh+w/ft9sAjhHLSow3KF8IYqHv/Z+azCZSZq7bs= +github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3 v3.114.2/go.mod h1:hEMnRKGnXkT6S6Q+o7STPTSUlZCX/V41rlkqTLWSkcU= +github.com/pulumi/pulumi-hcl v0.18.5 h1:OmI8g/7V2zTmq8S39P98vCFBYqrLR1CywcZ4y/ZnLFY= +github.com/pulumi/pulumi-hcl v0.18.5/go.mod h1:8FW563iLMprxdvRcPsA6Vvt/BzXFizWLA+S4bBrjKxU= +github.com/pulumi/pulumi-java v1.37.4 h1:rABWtJPFblDZi0VT+PpSOaVz37ssN54SFGgxt79bEAM= +github.com/pulumi/pulumi-java v1.37.4/go.mod h1:TYW4BVenUk2oxOHOEOX8C0Vtrknx2H44UpG4f/3ccm4= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.141.0 h1:MEvAUvSsos5ae32BsNPOEynTTcXhjf7uIs16FmC7mVo= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.141.0/go.mod h1:SdW6T1s35nJyhKqAbOIzwhLWSX1woi92JtRBv5JJCtc= +github.com/pulumi/pulumi-yaml v1.38.10 h1:1bcz/x4Db7H+WVv3XJmrLfr+zGAbTz26xpi1xW+6cfw= +github.com/pulumi/pulumi-yaml v1.38.10/go.mod h1:/f4cm2Cbs+CItrOItkX1WKWZb9x9U9weqIQ75d+KlV4= +github.com/pulumi/pulumi/pkg/v3 v3.270.0 h1:eReuhd+Mp2TEyvC8nTTgw86DRDhUARGcRHYmew61tHE= +github.com/pulumi/pulumi/pkg/v3 v3.270.0/go.mod h1:NwRln8Ew9+ZqPkpClgaJzRRlqLU9AMxsSjyKD4AE/AA= +github.com/pulumi/pulumi/sdk/v3 v3.270.0 h1:qzqmv8CoZyZI9JT7yQTkgeu0fPFnjWl6421kwS+nwR4= +github.com/pulumi/pulumi/sdk/v3 v3.270.0/go.mod h1:aUQk7DpZpqUsxLSUUWUCzIapJNb4+Smgh81ONxIdfCo= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= github.com/pulumi/terraform-diff-reader v0.0.2/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ= -github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10 h1:M6Ceq1o6gGeEKxTZgJ2CKLye3p67ZZjnsAwxr5VC32A= -github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A= -github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= -github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rhysd/go-fakeio v1.0.0 h1:+TjiKCOs32dONY7DaoVz/VPOdvRkPfBkEyUDIpM8FQY= github.com/rhysd/go-fakeio v1.0.0/go.mod h1:joYxF906trVwp2JLrE4jlN7A0z6wrz8O6o1UjarbFzE= -github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= -github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= 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/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/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/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= -github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= -github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= +github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4= +github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY= github.com/segmentio/asm v1.1.3 h1:WM03sfUOENvvKexOLp+pCqgb/WDjsi7EK8gIsICtzhc= github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg= -github.com/segmentio/encoding v0.3.5 h1:UZEiaZ55nlXGDL92scoVuw00RmiRCazIEmvPSbSvt8Y= -github.com/segmentio/encoding v0.3.5/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= +github.com/segmentio/encoding v0.3.6 h1:E6lVLyDPseWEulBmCmAKPanDd3jiyGDo5gMcugCRwZQ= +github.com/segmentio/encoding v0.3.6/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= 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/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= +github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= +github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= -github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= -github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 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/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= -github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= -github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= +github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= -github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= -github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= 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/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spiffe/go-spiffe/v2 v2.8.1 h1:eXZMLsu+3MLEPJyGJkolqtVrteZfQdUpOWj6LTiDl/E= +github.com/spiffe/go-spiffe/v2 v2.8.1/go.mod h1:47Q0Q9/AqGha8QLHp+kxpH4Wca7X7EnOtlIJy3mxZ3U= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4= +github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0= 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.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -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.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/teekennedy/goldmark-markdown v0.3.0 h1:ik9/biVGCwGWFg8dQ3KVm2pQ/wiiG0whYiUcz9xH0W8= github.com/teekennedy/goldmark-markdown v0.3.0/go.mod h1:kMhDz8La77A9UHvJGsxejd0QUflN9sS+QXCqnhmxmNo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= -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/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.15 h1:9DNdB5s+SgV3bQ2ApL10xRc35ck0DuIX/isZvIk+ubY= +github.com/ulikunitz/xz v0.5.15/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/vbauerster/cupwriter v0.0.4 h1:9sBPe0uXWLZuWQU5lqVbhyFlxX6c09asST/YfatFAys= +github.com/vbauerster/cupwriter v0.0.4/go.mod h1:IFyzS6Xis5dnBH/rdAhrnuzg3c+KkUqEN6yE8lhJlDw= +github.com/vbauerster/mpb/v8 v8.15.2 h1:hyIM0fSQn98i/9jz9Z0dpqhXQoSssgDN+6yXDidAx9k= +github.com/vbauerster/mpb/v8 v8.15.2/go.mod h1:HgpQPKfcWe3kbuGGPmi+jatHreMase5C3Fp5dpdAy0Q= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.1+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= -github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= +github.com/xo/terminfo v1.2.0 h1:d0ZTOCpuGE0lwSAOs0zcJjwz3jWQyqcRt9XbGJpCOl4= +github.com/xo/terminfo v1.2.0/go.mod h1:lGzkSo8Fe7IRh/w+Gqz7n5mDog4FVXCj3gy/DYTBqio= 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/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg= -github.com/yuin/goldmark v1.7.4/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark v1.7.17 h1:p36OVWwRb246iHxA/U4p8OPEpOTESm4n+g+8t0EE5uA= +github.com/yuin/goldmark v1.7.17/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg= +github.com/zalando/go-keyring v0.2.8 h1:6sD/Ucpl7jNq10rM2pgqTs0sZ9V3qMrqfIIy5YPccHs= +github.com/zalando/go-keyring v0.2.8/go.mod h1:tsMo+VpRq5NGyKfxoBVjCuMrG47yj8cmakZDO5QGii0= 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.13.0/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -github.com/zclconf/go-cty v1.13.1/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -github.com/zclconf/go-cty v1.14.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty v1.14.2 h1:kTG7lqmBou0Zkx35r6HJHUQTvaRPr5bIAf3AoHS0izI= -github.com/zclconf/go-cty v1.14.2/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= -github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= +github.com/zclconf/go-cty v1.18.1 h1:yEGE8M4iIZlyKQURZNb2SnEyZlZHUcBCnx6KF81KuwM= +github.com/zclconf/go-cty v1.18.1/go.mod h1:qpnV6EDNgC1sns/AleL1fvatHw72j+S+nS+MJ+T2CSg= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= github.com/zclconf/go-cty-yaml v1.0.1/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= +github.com/zclconf/go-cty-yaml v1.2.0 h1:GDyL4+e/Qe/S0B7YaecMLbVvAR/Mp21CXMOSiCTOi1M= +github.com/zclconf/go-cty-yaml v1.2.0/go.mod h1:9YLUH4g7lOhVWqUbctnVlZ5KLpg7JAprQNgxSZ1Gyxs= +go.mongodb.org/mongo-driver v1.17.10 h1:kdAgQvu8TROXZpSkJQd5wzfaNCCrMbpZyKFtQ6qkPCE= +go.mongodb.org/mongo-driver v1.17.10/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ= 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/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= -go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo= -go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo= -go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI= -go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco= -go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw= -go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc= -go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= -go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= -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.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -gocloud.dev v0.37.0 h1:XF1rN6R0qZI/9DYjN16Uy0durAmSlf58DHOcb28GPro= -gocloud.dev v0.37.0/go.mod h1:7/O4kqdInCNsc6LqgmuFnS0GRew4XNNYWpA44yQnwco= -gocloud.dev/secrets/hashivault v0.37.0 h1:5ehGtUBP29DFAgAs6bPw7fVSgqQ3TxaoK2xVcLp1x+c= -gocloud.dev/secrets/hashivault v0.37.0/go.mod h1:4ClUWjBfP8wLdGts56acjHz3mWLuATMoH9vi74FjIv8= -golang.org/x/arch v0.1.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/collector/featuregate v1.69.0 h1:RapEMYjBfvt9IUP3ypQ9Y7/g21nwRzvtKO3dSOCCL6E= +go.opentelemetry.io/collector/featuregate v1.69.0/go.mod h1:dRYifiJa2vQ6LWpPwHny4mL82mnGWsWEVeVWw+DhYJw= +go.opentelemetry.io/collector/internal/testutil v0.163.0 h1:JR65ZHtuOP1E5cJZKl4ub/UFHQ7xo3KN/Iryhtc0P5E= +go.opentelemetry.io/collector/internal/testutil v0.163.0/go.mod h1:RUvWdMZGEBicc0C3teDcnTrifUX8HB4AJ4l8pMONURU= +go.opentelemetry.io/collector/pdata v1.69.0 h1:u0a2n1kOS/OGwIEQMOKCnl+bbmFG5wGO/OfFXajICpA= +go.opentelemetry.io/collector/pdata v1.69.0/go.mod h1:5U4aIRhQKQgo3DifeWgVdWBhSBbYV2BQ6Nz4bJc7dfE= +go.opentelemetry.io/contrib/bridges/otelslog v0.21.0 h1:/CdgE52i1OEPHhsGUqrggYNRaZy4v4YgVenGd52dRBI= +go.opentelemetry.io/contrib/bridges/otelslog v0.21.0/go.mod h1:9pBdbVbuehIDzxN4accnzzxEUPT8Nq7grbZMo+J1VN4= +go.opentelemetry.io/contrib/detectors/gcp v1.44.0 h1:NmLfL734pJhM0JKaYd2Y28+nY9dPRWYAAbxhRCrKXPw= +go.opentelemetry.io/contrib/detectors/gcp v1.44.0/go.mod h1:tNAsgd8avTGke1+MndXlU5Cru4PQ9Ai/cCNWQv/ZJ/s= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.72.0 h1:Tq+E65HaNbZTeqcLw6QUhsV+/EIWdkfUH2CQzcrlE5M= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.72.0/go.mod h1:A+EVhDakAj1waJBPhmTszZaSr08ww8MRRKy1nB1rqck= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 h1:LxwW/9ctSCv+QkE/cLR7M91ZIkXNMqJtEMi1vCw9U8s= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0/go.mod h1:tOsftB4SslBwwErVEPaenU2RpThXWPIU8DoJHEC4dyw= +go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= +go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= +go.opentelemetry.io/otel/bridge/opentracing v1.47.0 h1:s3CJ/gi1BywMOOKLvu9m6nNDf26x8+Cf+OkNKtTIRPY= +go.opentelemetry.io/otel/bridge/opentracing v1.47.0/go.mod h1:sSsj7slxZdcL7gtBnE7IT1T2yr0Zk85Ynf52xWRnfes= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.23.0 h1:5Ek4qQ5XX0PSQfY7lMW3CvcR36yy8YFDfGnYnaku8zE= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.23.0/go.mod h1:NUKIMOKSexQdTmS1pSxOQBDiVes3DHRier2ePsGW/gQ= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 h1:julhjPeUH/q/7hinbSdDdqt5h7Zw9YWmRlWRhI0jd54= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0/go.mod h1:Ao2mz688LH/tFf0yMAenidq6k2YNSx6SIY2q6jDACck= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.47.0 h1:UFpxOpYPmMNUtOWhdb+nC1WELIgVf8z9higURrbzYU4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.47.0/go.mod h1:YBGjxe3lt0jtXoEXxGrGhv/jM7oUBUDVK7zhAvNyEjc= +go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.44.0 h1:hqxVTu/GtBF+vJ8d1fzW7fRxZFvgoDjWcxwwCaFDYpU= +go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.44.0/go.mod h1:z5fVEF4X5v0ESvlJqBrrFlBVoj5EQuefZpzsu7R+x5Q= +go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= +go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= +go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= +go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= +go.opentelemetry.io/otel/metric/x v0.69.0 h1:DjRLr15H83v+hCW7JA9NoJvOkYTtmq5YoDRbe9deYpM= +go.opentelemetry.io/otel/metric/x v0.69.0/go.mod h1:uVvsMPMFFyj/HUQfrUnH3JjnOQ1dwFDorgFLRBasM0k= +go.opentelemetry.io/otel/sdk v1.47.0 h1:zWXEr4j2lFefG87TU6Yg8a7ngfohIKFZHKp0Hf5hC6I= +go.opentelemetry.io/otel/sdk v1.47.0/go.mod h1:VUc24kiOeoGsxG8G9ULx3fWKvB7jMhnGE8Oi607lgR0= +go.opentelemetry.io/otel/sdk/log v1.47.0 h1:W4N/ZfgpkRRnmARnqYoQ6BrWA0mrj8IzVDNLlpmUJZY= +go.opentelemetry.io/otel/sdk/log v1.47.0/go.mod h1:Wu74Z2EmOKXi2FleSNAb0Hyau2G+r5kubSEMJw5aAMs= +go.opentelemetry.io/otel/sdk/log/logtest v0.23.0 h1:j3pm42QCrKYYLLkI6OrV1QHFkUfDA6/4EP+Y1PzggLg= +go.opentelemetry.io/otel/sdk/log/logtest v0.23.0/go.mod h1:zt0gEnuTZgDvqvczHwYswz93eqMaIr6upTTsdV/HUlU= +go.opentelemetry.io/otel/sdk/metric v1.47.0 h1:lfISg2j93VT6yqdk9OfUaZmw/GfcZqCCV3jdXtsPnKw= +go.opentelemetry.io/otel/sdk/metric v1.47.0/go.mod h1:ypLp+mW1Nt2x+Szt3b5/i1syodyts49lMOwxpDI3VGw= +go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= +go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= +go.opentelemetry.io/proto/otlp v1.11.1 h1:SCrPqH9NE5CmBrOqpjNCiT0X5mGwMyGERXdogfR7Yjw= +go.opentelemetry.io/proto/otlp v1.11.1/go.mod h1:wq8W4aSf6bOy8RZyESOeQFr9Pu7wydWX/TY4sgvrTPg= +go.opentelemetry.io/proto/slim/otlp v1.11.1 h1:qf2OA3kQcIDXh3q7b6kc0IzRe8BFXlVIlH5uaOACrVQ= +go.opentelemetry.io/proto/slim/otlp v1.11.1/go.mod h1:15pWfj6/rYjQzyrC3ZGQoZ0rNgLqI/Lk+jFgYgV4UIE= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.4.1 h1:pgPIbi29ViNY/gE//bHlHuLyqHE+PDhhw7jAhItWIaM= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.4.1/go.mod h1:MSbd82YGFGySHE+GsR2J7+RvMf7mgnknr7IFjsxfoTs= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.4.1 h1:pso/53PWXaoGeW+/ww9WHKxoWTbTJBSmUH1VsiEmelU= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.4.1/go.mod h1:axuN0N02xZ3l+3zFqWXXRBTC6766vGQ0PbeCh46kuXA= +go.uber.org/atomic v1.12.0 h1:BvcXdFKuviU4fTL/f+SxdQ5qJX/Jix8pAkgdUcb3XOE= +go.uber.org/atomic v1.12.0/go.mod h1:I6c4cg+6HCxRjfjSsYtApoFILnpc0CGUdGkXVqbYVNk= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +gocloud.dev v0.46.1-0.20260810195832-b5401c07b5f1 h1:IAkFU35NtKgVP8FV3zm1b16DMucGz3f4XqrqdAZQ1aU= +gocloud.dev v0.46.1-0.20260810195832-b5401c07b5f1/go.mod h1:HdtAx0btBlExxR61nWzUxviFmndZTvWrKMPeGiFwRYk= +gocloud.dev/secrets/hashivault v0.46.0 h1:gQlpb/1wEwVoOavi/RGeQs5WlnzYddcDW81b0kywI0w= +gocloud.dev/secrets/hashivault v0.46.0/go.mod h1:I9RZ3S1+v/o++SRTJzSJ904LUGaBx7cpKVrzobm2SIA= +golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/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-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-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/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-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-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= -golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= -golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= -golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= -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/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= +golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= 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/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= -golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e h1:HgI6W1OolKK6tcV74is+rl9SMT0njsHlp0TbQiGXI/A= +golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e/go.mod h1:DBoxwWhjaW8DJJw/YeM4zpeOKMC1FMXSblsYy+1mFSw= 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= @@ -2153,8 +864,6 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl 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= @@ -2163,28 +872,13 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB 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.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= -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.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0= -golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= +golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= +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-20190108225652-1e06a53dbb7e/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= @@ -2207,96 +901,22 @@ golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/ 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-20200520004742-59133d7f0dd7/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-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-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/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-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= -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.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -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.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= -golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= -golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= +golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= 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.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -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.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= -golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= -golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= -golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= -golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= -golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= -golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= +golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= 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= @@ -2306,25 +926,14 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ 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.2.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.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= +golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= 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-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/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= @@ -2333,15 +942,9 @@ golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/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-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/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= @@ -2357,138 +960,44 @@ golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7w 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-20200909081042-eff7692f9009/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-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/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-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-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-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/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-20211110154304-99a53858aa08/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-20220319134239-a9b59b0215f8/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-20220422013727-9388b58f7150/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-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/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.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= +golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= 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.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/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.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= -golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= -golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= -golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= -golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= +golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= +golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= 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.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.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -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.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= +golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= 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/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= +golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/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-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= @@ -2501,7 +1010,6 @@ golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgw 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-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -2526,58 +1034,19 @@ golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roY 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-20200619180055-7c47624df98f/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-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-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/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.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= -golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= -golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ= -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.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4= -golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= -golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc= -golang.org/x/tools v0.10.0/go.mod h1:UJwyiVBsOA2uwvK/e5OY3GTpDUJriEd+/YlqAwLPmyM= -golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= -golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= -golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= -golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= +golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= +golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= 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/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= -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= +golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhSt0ABwskkZKjD3bXGnZGpNY= +golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= +gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= 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= @@ -2593,67 +1062,17 @@ google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/ 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.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/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg= -google.golang.org/api v0.118.0/go.mod h1:76TtD3vkgmZ66zZzp72bUUklpmQmKlhh6sYtIjYK+5E= -google.golang.org/api v0.122.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= -google.golang.org/api v0.124.0/go.mod h1:xu2HQurE5gi/3t1aFCvhPD781p0a3p11sdunTJ2BlP4= -google.golang.org/api v0.125.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= -google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= -google.golang.org/api v0.128.0/go.mod h1:Y611qgqaE92On/7g65MQgxYul3c0rEB894kniWLY750= -google.golang.org/api v0.139.0/go.mod h1:CVagp6Eekz9CjGZ718Z+sloknzkDJE7Vc1Ckj9+viBk= -google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI= -google.golang.org/api v0.169.0 h1:QwWPy71FgMWqJN/l6jVlFHUa29a7dcUy02I8o799nPY= -google.golang.org/api v0.169.0/go.mod h1:gpNOiMA2tZ4mf5R9Iwf4rK/Dcz0fbdIgWYWVoxmsyLg= +google.golang.org/api v0.290.0 h1:eMw0Xo+IfbbMlKmW7aHvpyQRv9RCXuWx/vs8AD+0x9A= +google.golang.org/api v0.290.0/go.mod h1:weJZ3lldHFYI0DBFNKpJelUDNnusTt5YaOEgxvt8ci8= 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/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +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= @@ -2673,183 +1092,21 @@ google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfG 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-20200310143817-43be25429f5a/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-20221025140454-527a21cfbd71/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-20230403163135-c38d8f061ccd/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= -google.golang.org/genproto v0.0.0-20230525234025-438c736192d0/go.mod h1:9ExIQyXL5hZrHzQceCwuSYwZZ5QZBazOcprJ5rgs3lY= -google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54/go.mod h1:zqTuNwFlFRsw5zIts5VnzLQxSRqh+CGOTVMlYbY0Eyk= -google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:zqTuNwFlFRsw5zIts5VnzLQxSRqh+CGOTVMlYbY0Eyk= -google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= -google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98/go.mod h1:S7mY02OqCJTD0E1OiQy1F72PWFB4bZJ87cAtLPYgDR0= -google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:0ggbjUrZYpy1q+ANUS30SEoGZ53cdfwtbuG7Ptgy108= -google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8= -google.golang.org/genproto v0.0.0-20230821184602-ccc8af3d0e93/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= -google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= -google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb/go.mod h1:yZTlhN0tQnXo3h00fuXNCxJdLdIdnVFVBaRJ5LWBbw4= -google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:CCviP9RmpZ1mxVr8MUjCnSiY09IbAXZxhLE6EhHIdPU= -google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97/go.mod h1:t1VqOqqvce95G3hIDCT5FeO3YUc6Q4Oe24L/+rNMxRk= -google.golang.org/genproto v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:EMfReVxb80Dq1hhioy0sOsY9jCE46YDgHlJ7fWVUWRE= -google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= -google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4= -google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:J7XzRzVy1+IPwWHZUzoD0IccYZIrXILAQpc+Qy9CMhY= -google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 h1:ImUcDPHjTrAqNhlOkSocDLfG9rrNHH7w7uoKWPaWZ8s= -google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7/go.mod h1:/3XmxOjePkvmKrHuBy4zNFw7IzxJXtAgdpXi8Ll990U= -google.golang.org/genproto/googleapis/api v0.0.0-20230525234020-1aefcd67740a/go.mod h1:ts19tUU+Z0ZShN1y3aPyq2+O3d5FUNNgT6FtOzmrNn8= -google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ= -google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= -google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ= -google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5/go.mod h1:5DZzOUPCLYL3mNkQ0ms0F3EuUNZ7py1Bqeq6sxzI7/Q= -google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= -google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= -google.golang.org/genproto/googleapis/api v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:RdyHbowztCGQySiCvQPgWQWgWhGnouTdCflKoDBt32U= -google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97/go.mod h1:iargEX0SFPm3xcfMI0d1domjg0ZF4Aa0p2awqyxhvF0= -google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:SUBoKXbI1Efip18FClrQVGjWcyd0QZd8KkvdP34t7ww= -google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= -google.golang.org/genproto/googleapis/api v0.0.0-20231030173426-d783a09b4405/go.mod h1:oT32Z4o8Zv2xPQTg0pbVaPr0MPOH6f14RgXt7zfIpwg= -google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 h1:oqta3O3AnlWbmIE3bFnWbu4bRxZjfbWCp0cKSuZh01E= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7/go.mod h1:VQW3tUculP/D4B+xVCo+VgSq8As6wA9ZjHl//pmk+6s= -google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= -google.golang.org/genproto/googleapis/bytestream v0.0.0-20230807174057-1744710a1577/go.mod h1:NjCQG/D8JandXxM57PZbAJL1DCNL6EypA0vPPwfsc7c= -google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a/go.mod h1:xURIpW9ES5+/GZhnV6beoEtxQrnkRGIfP5VQG2tCBLc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230731190214-cbb8c96f2d6d/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230803162519-f966b187b2e5/go.mod h1:zBEcrKX2ZOcEkHWxBPAIvYUWOKKMIhYcmNiUIu2ji3I= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920183334-c177e329c48b/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97/go.mod h1:v7nGkzlmW8P3n/bKmWBn2WpBjpOEx8Q6gMueudAmKfY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:4cYg8o5yUbm77w8ZX00LhMVNl/YVBFJRYWDc0uYWMs0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 h1:8EeVk1VKMD+GD/neyEHGmz7pFblqPjHoi+PGQIlLx2s= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto v0.0.0-20200711021454-869866162049/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20260724162435-b2f20204f0df h1:A7u56ilVtWR3CySHErsWAsimNwD4FoX9KWd8SUCn6vc= +google.golang.org/genproto v0.0.0-20260724162435-b2f20204f0df/go.mod h1:4RPHZcXMGptb7aRZb+M43xI7ixmjEtASEf2VtOOBZbU= +google.golang.org/genproto/googleapis/api v0.0.0-20261012220534-4341edf3f941 h1:DS/w3N8rsfrwxwgGSj6WhMsPo7aNQGmDx74J81zd0NQ= +google.golang.org/genproto/googleapis/api v0.0.0-20261012220534-4341edf3f941/go.mod h1:AuGAdi9KnXss7xbLxIKhCvk+Ro/SxpET/iS45DNYN+M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941 h1:QG6hS4zFplRZvOQedzei4t2pT/zkQc3VR1u+S9/rcAw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= +google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.14.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= @@ -2862,47 +1119,8 @@ google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 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.0/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY= -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.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= -google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= -google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= -google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= -google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= -google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= -google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0= +google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0= 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= @@ -2915,39 +1133,28 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj 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.28.2-0.20230222093303-bc1253ad3743/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.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= -google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= 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/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.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.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-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= +gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= 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= @@ -2955,65 +1162,12 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh 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= -lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw= -lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s= -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/cc/v3 v3.37.0/go.mod h1:vtL+3mdHx/wcj3iEGz84rQa8vEqR6XM84v5Lcvfph20= -modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0= -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.0.0-20220904174949-82d86e1b6d56/go.mod h1:YSXjPL62P2AMSxBphRHPn7IkzhVHqkvOnRKAKh+W6ZI= -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/ccgo/v3 v3.16.13-0.20221017192402-261537637ce8/go.mod h1:fUB3Vn0nVPReA+7IG7yZDfjv1TMWjhQP8gCxrFAtL5g= -modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= -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/libc v1.17.4/go.mod h1:WNg2ZH56rDEwdropAJeZPQkXmDwh+JCA1s/htl6r2fA= -modernc.org/libc v1.18.0/go.mod h1:vj6zehR5bfc98ipowQOM2nIDUZnVew/wNC/2tOGS+q0= -modernc.org/libc v1.20.3/go.mod h1:ZRfIaEkgrYgZDl6pa4W39HgN5G/yDW+NRmNKZBDFrk0= -modernc.org/libc v1.21.4/go.mod h1:przBsL5RDOZajTVslkugzLBj1evTue36jEomFQOoYuI= -modernc.org/libc v1.22.2/go.mod h1:uvQavJ1pZ0hIoC/jfqNoMLURIMhKzINIWypNM17puug= -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/memory v1.3.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= -modernc.org/memory v1.4.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= -modernc.org/memory v1.5.0/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/sqlite v1.18.2/go.mod h1:kvrTLEWgxUcHa2GfHBQtanR1H9ht3hTJNtKpzH9k1u0= -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/tcl v1.13.2/go.mod h1:7CLiGIPo1M8Rv1Mitpv5akc2+8fxUd2y2UzC/MfMzy0= -modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= -modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= -modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= -modernc.org/z v1.5.1/go.mod h1:eWFB510QWW5Th9YGZT81s+LwvaAs3Q2yr4sP0rmLkv8= -mvdan.cc/gofumpt v0.5.0 h1:0EQ+Z56k8tXjj/6TQD25BFNKQXpCvT0rnansIc7Ug5E= -mvdan.cc/gofumpt v0.5.0/go.mod h1:HBeVDtMKRZpXyxFciAirzdKklDlGu8aAy1wEbH5Y9js= -pgregory.net/rapid v0.6.1 h1:4eyrDxyht86tT4Ztm+kvlyNBLIk071gR+ZQdhphc9dQ= -pgregory.net/rapid v0.6.1/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +lukechampine.com/frand v1.5.1 h1:fg0eRtdmGFIxhP5zQJzM1lFDbD6CUfu/f+7WgAZd5/w= +lukechampine.com/frand v1.5.1/go.mod h1:4VstaWc2plN4Mjr10chUD46RAVGWhpkZ5Nja8+Azp0Q= +mvdan.cc/gofumpt v0.9.2 h1:zsEMWL8SVKGHNztrx6uZrXdp7AX8r421Vvp23sz7ik4= +mvdan.cc/gofumpt v0.9.2/go.mod h1:iB7Hn+ai8lPvofHd9ZFGVg2GOr8sBUw1QUWjNbmIL/s= +pgregory.net/rapid v1.3.0 h1:vBvO0VSqti75J1jjYqpgPNBLKMd1+gxa9fYo7vk/Exc= +pgregory.net/rapid v1.3.0/go.mod h1:dPlE4OBBxgXPqkP79flB6sJL1dx5azpI7HQ9MY9Z7uk= 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= diff --git a/provider/resources.go b/provider/resources.go index 74cbab2..bd6aa43 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -16,15 +16,22 @@ package doppler import ( "fmt" - "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/tokens" "path/filepath" + "runtime/debug" + "strings" + + // Allow embedding bridge-metadata.json in the provider. + _ "embed" "github.com/DopplerHQ/terraform-provider-doppler/doppler" + "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge" + "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/tokens" shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim" shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" - "github.com/pulumiverse/pulumi-doppler/provider/pkg/version" + + "github.com/DopplerHQ/pulumi-doppler/provider/pkg/version" ) // all of the token components used below. @@ -34,18 +41,36 @@ const ( mainPkg = "doppler" // modules: mainMod = "index" // the doppler module + // githubOrg is Doppler's GitHub org, also used as the .NET root namespace. + githubOrg = "DopplerHQ" ) +//go:embed cmd/pulumi-resource-doppler/bridge-metadata.json +var metadata []byte + // preConfigureCallback is called before the providerConfigure function of the underlying provider. // It should validate that the provider can be configured, and provide actionable errors in the case // it cannot be. Configuration variables can be read from `vars` using the `stringValue` function - // for example `stringValue(vars, "accessKey")`. -func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) error { +func preConfigureCallback(_ resource.PropertyMap, _ shim.ResourceConfig) error { return nil } // Provider returns additional overlaid schema and metadata associated with the provider.. func Provider() tfbridge.ProviderInfo { + // Upstream sends "terraform-provider-doppler/" as its User-Agent, which + // would identify every Pulumi request as Terraform. Append our own product so it reads + // "terraform-provider-doppler/1.22.0 pulumi-doppler/". + upstreamVersion := "unknown" + if info, ok := debug.ReadBuildInfo(); ok { + for _, dep := range info.Deps { + if dep.Path == "github.com/DopplerHQ/terraform-provider-doppler" { + upstreamVersion = strings.TrimPrefix(dep.Version, "v") + } + } + } + doppler.ProviderVersion = fmt.Sprintf("%s pulumi-doppler/%s", upstreamVersion, version.Version) + // Instantiate the Terraform provider p := shimv2.NewProvider(doppler.Provider()) @@ -58,34 +83,36 @@ func Provider() tfbridge.ProviderInfo { // DisplayName is a way to be able to change the casing of the provider // name when being displayed on the Pulumi registry DisplayName: "Doppler", - // The default publisher for all packages is Pulumi. - // Change this to your personal name (or a company name) that you - // would like to be shown in the Pulumi Registry if this package is published - // there. - Publisher: "Pulumiverse", - // LogoURL is optional but useful to help identify your package in the Pulumi Registry - // if this package is published there. - // - // You may host a logo on a domain you control or add an SVG logo for your package - // in your repository and use the raw content URL for that file as your logo URL. - LogoURL: "https://raw.githubusercontent.com/pulumiverse/pulumi-doppler/main/docs/logo.png", + // Shown in the Pulumi Registry. Must match a name in pulumi/registry's + // publisher-names.json, or registry publishing fails. + Publisher: "Doppler", + // Doppler's gradient logomark. Keep it a PNG: the .NET codegen downloads this URL into + // the NuGet package icon, and NuGet accepts only PNG and JPEG icons. + LogoURL: "https://raw.githubusercontent.com/DopplerHQ/pulumi-doppler/main/docs/logo.png", // PluginDownloadURL is an optional URL used to download the Provider // for use in Pulumi programs // e.g https://github.com/org/pulumi-provider-name/releases/ - PluginDownloadURL: "github://api.github.com/pulumiverse", - Description: "A Pulumi package for creating and managing doppler cloud resources.", + PluginDownloadURL: "github://api.github.com/DopplerHQ", + Description: "A Pulumi package for managing Doppler projects, secrets, and access.", // category/cloud tag helps with categorizing the package in the Pulumi Registry. // For all available categories, see `Keywords` in // https://www.pulumi.com/docs/guides/pulumi-packages/schema/#package. - Keywords: []string{"pulumi", "doppler", "category/cloud"}, + Keywords: []string{"pulumi", "doppler", "secrets", "secrets-management", "category/cloud"}, License: "Apache-2.0", - Homepage: "https://www.pulumi.com", - Repository: "https://github.com/pulumiverse/pulumi-doppler", + Homepage: "https://www.doppler.com", + Repository: "https://github.com/DopplerHQ/pulumi-doppler", Version: version.Version, + // Without this the bridge assumes the upstream provider is MPL-2.0 and says so in + // every SDK README. + TFProviderLicense: tfbridge.SetProviderLicense(tfbridge.Apache20LicenseType), // The GitHub Org for the provider - defaults to `terraform-providers`. Note that this // should match the TF provider module's require directive, not any replace directives. - GitHubOrg: "DopplerHQ", - Config: map[string]*tfbridge.SchemaInfo{}, + GitHubOrg: githubOrg, + MetadataInfo: tfbridge.NewProviderMetadata(metadata), + Config: map[string]*tfbridge.SchemaInfo{ + // Upstream doesn't mark the token Sensitive, so Pulumi would store it in plaintext. + "doppler_token": {Secret: tfbridge.True()}, + }, PreConfigureCallback: preConfigureCallback, Resources: map[string]*tfbridge.ResourceInfo{ "doppler_config": { @@ -96,58 +123,71 @@ func Provider() tfbridge.ProviderInfo { }, }, }, - }, - DataSources: map[string]*tfbridge.DataSourceInfo{}, - JavaScript: &tfbridge.JavaScriptInfo{ - PackageName: "@pulumiverse/doppler", - // List any npm dependencies and their versions - Dependencies: map[string]string{ - "@pulumi/pulumi": "^3.0.0", + "doppler_trusted_ips": { + Fields: map[string]*tfbridge.SchemaInfo{ + // C# forbids a member named after its enclosing type (TrustedIps). + "trusted_ips": {CSharpName: "TrustedIpList"}, + }, }, - DevDependencies: map[string]string{ - "@types/node": "^10.0.0", // so we can access strongly typed node definitions. - "@types/mime": "^2.0.0", + }, + DataSources: map[string]*tfbridge.DataSourceInfo{ + "doppler_environments": { + Fields: map[string]*tfbridge.SchemaInfo{ + // The bridge pluralizes the upstream "list" attribute to "lists". + "list": {Name: "environments"}, + }, }, + }, + JavaScript: &tfbridge.JavaScriptInfo{ + PackageName: "@dopplerhq/pulumi-doppler", + RespectSchemaVersion: true, // See the documentation for tfbridge.OverlayInfo for how to lay out this // section, or refer to the AWS provider. Delete this section if there are // no overlay files. //Overlay: &tfbridge.OverlayInfo{}, }, Python: &tfbridge.PythonInfo{ - PackageName: "pulumiverse_doppler", + PackageName: "pulumi_doppler", // List any Python dependencies and their version ranges Requires: map[string]string{ "pulumi": ">=3.0.0,<4.0.0", }, + PyProject: struct{ Enabled bool }{true}, + RespectSchemaVersion: true, }, Golang: &tfbridge.GolangInfo{ ImportBasePath: filepath.Join( - fmt.Sprintf("github.com/pulumiverse/pulumi-%[1]s/sdk/", mainPkg), + fmt.Sprintf("github.com/DopplerHQ/pulumi-%[1]s/sdk/", mainPkg), tfbridge.GetModuleMajorVersion(version.Version), "go", mainPkg, ), GenerateResourceContainerTypes: true, + RespectSchemaVersion: true, }, CSharp: &tfbridge.CSharpInfo{ - RootNamespace: "Pulumiverse", + RootNamespace: githubOrg, PackageReferences: map[string]string{ "Pulumi": "3.*", }, + RespectSchemaVersion: true, }, } prov.SetAutonaming(255, "-") - prov.ComputeTokens( + prov.MustComputeTokens( tokens.KnownModules( "doppler_", mainMod, []string{ "integration_", "project_member_", + "rotated_secret_", "secrets_sync_", }, tokens.MakeStandard(mainPkg))) + // Record token history in bridge-metadata.json so later renames get aliases automatically. + prov.MustApplyAutoAliases() return prov } diff --git a/provider/resources_test.go b/provider/resources_test.go new file mode 100644 index 0000000..457749f --- /dev/null +++ b/provider/resources_test.go @@ -0,0 +1,21 @@ +package doppler + +import ( + "strings" + "testing" + + "github.com/DopplerHQ/terraform-provider-doppler/doppler" + + "github.com/DopplerHQ/pulumi-doppler/provider/pkg/version" +) + +func TestUserAgentIdentifiesPulumi(t *testing.T) { + // Normally set by ldflags; Provider() needs a parseable version. + version.Version = "0.10.0" + Provider() + // Upstream prefixes this with "terraform-provider-doppler/". Test binaries carry no + // dependency build info, so the upstream version reads "unknown" here. + if !strings.HasSuffix(doppler.ProviderVersion, " pulumi-doppler/0.10.0") { + t.Fatalf("ProviderVersion = %q, want pulumi-doppler/0.10.0", doppler.ProviderVersion) + } +} diff --git a/scripts/crossbuild.mk b/scripts/crossbuild.mk new file mode 100644 index 0000000..4c7562e --- /dev/null +++ b/scripts/crossbuild.mk @@ -0,0 +1,85 @@ +# Provider cross-platform build & packaging + +# Set these variables to enable signing of the windows binary +AZURE_SIGNING_CLIENT_ID ?= +AZURE_SIGNING_CLIENT_SECRET ?= +AZURE_SIGNING_TENANT_ID ?= +AZURE_SIGNING_KEY_VAULT_URI ?= +SKIP_SIGNING ?= + +# These targets assume that the schema-embed.json exists - it's generated by tfgen. +# We disable CGO to ensure that the binary is statically linked. +bin/linux-amd64/$(PROVIDER): GOOS := linux +bin/linux-amd64/$(PROVIDER): GOARCH := amd64 +bin/linux-arm64/$(PROVIDER): GOOS := linux +bin/linux-arm64/$(PROVIDER): GOARCH := arm64 +bin/darwin-amd64/$(PROVIDER): GOOS := darwin +bin/darwin-amd64/$(PROVIDER): GOARCH := amd64 +bin/darwin-arm64/$(PROVIDER): GOOS := darwin +bin/darwin-arm64/$(PROVIDER): GOARCH := arm64 +bin/windows-amd64/$(PROVIDER).exe: GOOS := windows +bin/windows-amd64/$(PROVIDER).exe: GOARCH := amd64 +bin/windows-arm64/$(PROVIDER).exe: GOOS := windows +bin/windows-arm64/$(PROVIDER).exe: GOARCH := arm64 +bin/%/$(PROVIDER) bin/%/$(PROVIDER).exe: bin/jsign-6.0.jar + $(call build_provider_cmd,$(GOOS),$(GOARCH),$(WORKING_DIR)/$@) + + @# Only sign windows binary if fully configured. + @# Test variables set by joining with | between and looking for || showing at least one variable is empty. + @# Move the binary to a temporary location and sign it there to avoid the target being up-to-date if signing fails. + @set -e; \ + if [[ "${GOOS}" = "windows" && "${SKIP_SIGNING}" != "true" ]]; then \ + if [[ "|${AZURE_SIGNING_CLIENT_ID}|${AZURE_SIGNING_CLIENT_SECRET}|${AZURE_SIGNING_TENANT_ID}|${AZURE_SIGNING_KEY_VAULT_URI}|" == *"||"* ]]; then \ + echo "Can't sign windows binaries as required configuration not set: AZURE_SIGNING_CLIENT_ID, AZURE_SIGNING_CLIENT_SECRET, AZURE_SIGNING_TENANT_ID, AZURE_SIGNING_KEY_VAULT_URI"; \ + echo "To rebuild with signing delete the unsigned $@ and rebuild with the fixed configuration"; \ + if [[ "${CI}" == "true" ]]; then exit 1; fi; \ + else \ + mv $@ $@.unsigned; \ + az login --service-principal \ + --username "${AZURE_SIGNING_CLIENT_ID}" \ + --password "${AZURE_SIGNING_CLIENT_SECRET}" \ + --tenant "${AZURE_SIGNING_TENANT_ID}" \ + --output none; \ + ACCESS_TOKEN=$$(az account get-access-token --resource "https://vault.azure.net" | jq -r .accessToken); \ + java -jar bin/jsign-6.0.jar \ + --storetype AZUREKEYVAULT \ + --keystore "PulumiCodeSigning" \ + --url "${AZURE_SIGNING_KEY_VAULT_URI}" \ + --storepass "$${ACCESS_TOKEN}" \ + $@.unsigned; \ + mv $@.unsigned $@; \ + az logout; \ + fi; \ + fi + +bin/jsign-6.0.jar: + wget https://github.com/ebourg/jsign/releases/download/6.0/jsign-6.0.jar --output-document=bin/jsign-6.0.jar + +provider-linux-amd64: bin/linux-amd64/$(PROVIDER) +provider-linux-arm64: bin/linux-arm64/$(PROVIDER) +provider-darwin-amd64: bin/darwin-amd64/$(PROVIDER) +provider-darwin-arm64: bin/darwin-arm64/$(PROVIDER) +provider-windows-amd64: bin/windows-amd64/$(PROVIDER).exe +provider-windows-arm64: bin/windows-arm64/$(PROVIDER).exe +.PHONY: provider-linux-amd64 provider-linux-arm64 provider-darwin-amd64 provider-darwin-arm64 provider-windows-amd64 provider-windows-arm64 + +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-linux-amd64.tar.gz: bin/linux-amd64/$(PROVIDER) +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-linux-arm64.tar.gz: bin/linux-arm64/$(PROVIDER) +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-darwin-amd64.tar.gz: bin/darwin-amd64/$(PROVIDER) +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-darwin-arm64.tar.gz: bin/darwin-arm64/$(PROVIDER) +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-windows-amd64.tar.gz: bin/windows-amd64/$(PROVIDER).exe +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-windows-arm64.tar.gz: bin/windows-arm64/$(PROVIDER).exe +bin/$(PROVIDER)-v$(PROVIDER_VERSION)-%.tar.gz: + @mkdir -p dist + @# $< is the last dependency (the binary path from above) e.g. bin/linux-amd64/pulumi-resource-xyz + @# $@ is the current target e.g. bin/pulumi-resource-xyz-v1.2.3-linux-amd64.tar.gz + tar --gzip -cf $@ README.md LICENSE -C $$(dirname $<) . + +provider_dist-linux-amd64: bin/$(PROVIDER)-v$(PROVIDER_VERSION)-linux-amd64.tar.gz +provider_dist-linux-arm64: bin/$(PROVIDER)-v$(PROVIDER_VERSION)-linux-arm64.tar.gz +provider_dist-darwin-amd64: bin/$(PROVIDER)-v$(PROVIDER_VERSION)-darwin-amd64.tar.gz +provider_dist-darwin-arm64: bin/$(PROVIDER)-v$(PROVIDER_VERSION)-darwin-arm64.tar.gz +provider_dist-windows-amd64: bin/$(PROVIDER)-v$(PROVIDER_VERSION)-windows-amd64.tar.gz +provider_dist-windows-arm64: bin/$(PROVIDER)-v$(PROVIDER_VERSION)-windows-arm64.tar.gz +provider_dist: provider_dist-linux-amd64 provider_dist-linux-arm64 provider_dist-darwin-amd64 provider_dist-darwin-arm64 provider_dist-windows-amd64 +.PHONY: provider_dist-linux-amd64 provider_dist-linux-arm64 provider_dist-darwin-amd64 provider_dist-darwin-arm64 provider_dist-windows-amd64 provider_dist diff --git a/scripts/upstream.sh b/scripts/upstream.sh new file mode 100755 index 0000000..cb0550f --- /dev/null +++ b/scripts/upstream.sh @@ -0,0 +1,405 @@ +#!/usr/bin/env bash +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi-labs/ci-mgmt + +set -e + +original_exec="$0" +original_cmd="$1" + +usage() { + cat < [options] + +COMMANDS + init [-f] Initialize the upstream submodule and applies the + patches to the working directory. + checkout [-f] Create a branch in the upstream repository with the + patches applied as commits. + rebase [-o] [-i] Rebase the checked out patches. + check_in Write checkedout commits back to patches, add upstream + and patches changes to the git staging area and exit + checkout mode. + file_target Print a file path to depend on in make. + help Print this help message, plus examples. + +OPTIONS + -f Force the command to run even if the upstream submodule is modified + -o The new base commit to rebase the patches on top of + -i Run the rebase command interactively + -h Print this help message, plus examples +EOF +} + +extended_docs() { + cat < + ${original_exec} check_in + + Interactively edit the patches: + ${original_exec} checkout + ${original_exec} rebase -i + ${original_exec} check_in + + Add a new patch: + ${original_exec} checkout + # Make changes to the upstream repository + git commit -am "Add new feature" + ${original_exec} check_in +EOF +} + +assert_upstream_exists() { + if [[ ! -d upstream ]]; then + echo "No 'upstream' directory detected. Aborting." + exit 1 + fi +} + +assert_not_checked_out() { + current_branch=$(cd upstream && git --no-pager rev-parse --abbrev-ref HEAD) + if [[ "${current_branch}" == "pulumi/patch-checkout" ]]; then + cat <' to rebase the patches on top of the + new upstream commit. Resolve any conflicts and continue the rebase to completion. +3. '${original_exec} check_in' to create an updated set of patches from the commits + +Reset the upstream submodule to the previous known good upstream commit before +trying again. This can be done with: + + (cd upstream && git reset --hard ) + git add upstream + +EOF + exit 1 +} + +apply_patches() { + # Iterating over the patches folder in sorted order, + # apply the patch using a 3-way merge strategy. This mirrors the default behavior of 'git merge' + cd upstream + # Allow directory to be empty + shopt -s nullglob + for patch in ../patches/*.patch; do + if ! git apply --3way "${patch}" --allow-empty; then + err_failed_to_apply "$(basename "${patch}")" + fi + done + shopt -u nullglob +} + +clean_rebases() { + # Clean up any previous in-progress rebases. + cd upstream + rebase_merge_dir=$(git rev-parse --git-path rebase-merge) + rebase_apply_dir=$(git rev-parse --git-path rebase-apply) + rm -rf "${rebase_merge_dir}" + rm -rf "${rebase_apply_dir}" + cd .. +} + +clean_branches() { + cd upstream + if git show-ref --verify --quiet refs/heads/pulumi/patch-checkout; then + git branch -D pulumi/patch-checkout + fi + if git show-ref --verify --quiet refs/heads/pulumi/checkout-base; then + git branch -D pulumi/checkout-base + fi + if git show-ref --verify --quiet refs/heads/pulumi/original-base; then + git branch -D pulumi/original-base + fi + cd .. +} + +init() { + # Parse additional flags + while getopts "f" flag; do + case "${flag}" in + f) force="true";; + *) echo "Unexpected option ${flag}"; exit 1;; + esac + done + + if [[ ! -d upstream ]]; then + echo "No 'upstream' directory detected. Skipping init." + exit 0 + fi + + if [[ "${force}" != "true" ]]; then + assert_not_checked_out + assert_no_rebase_in_progress + fi + + git submodule update --force --init + cd upstream && git clean -fxd && cd .. + + if [[ "${force}" == "true" ]]; then + clean_rebases + clean_branches + fi + apply_patches +} + +checkout() { + # Parse additional flags + while getopts "f" flag; do + case "${flag}" in + f) force="true";; + *) echo "Unexpected option ${flag}"; exit 1;; + esac + done + + assert_upstream_exists + + if [[ "${force}" != "true" ]]; then + assert_not_checked_out + assert_no_rebase_in_progress + fi + + git submodule update --force --init + if [[ "${force}" == "true" ]]; then + clean_rebases + clean_branches + fi + + cd upstream + git fetch --all + + # Set the 'pulumi/checkout-base' branch to the current commit of the upstream repository + # This is used to track the base commit of the patches + # If rebasing, then this must be moved to the new base commit. + git branch -f pulumi/checkout-base + # Create a new branch 'pulumi/patch-checkout' which will contain the commits for each patch + git checkout -B pulumi/patch-checkout + + # Allow directory to be empty + shopt -s nullglob + for patch in ../patches/*.patch; do + if ! git am --ignore-whitespace --3way "${patch}"; then + err_failed_to_apply "$(basename "${patch}")" + fi + done + shopt -u nullglob + + cat < + +Once you have finished editing the commits, run + ${original_exec} check_in + +EOF +} + +rebase() { + # Parse additional flags + onto="pulumi/checkout-base" + interactive="false" + while getopts "io:" flag; do + case "${flag}" in + i) interactive="true";; + o) onto="${OPTARG}";; + *) echo "Unexpected option ${flag}"; exit 1;; + esac + done + + assert_is_checked_out + + cd upstream + # Fetch the latest changes from the upstream repository + git fetch --all + # Set the "pulumi/original-base" branch to the current base commit of the patches + git branch -f pulumi/original-base pulumi/checkout-base + # Set the "pulumi/patch-checkout" branch to track the "pulumi/original-base" branch + git branch --set-upstream-to=pulumi/original-base pulumi/patch-checkout + # Set the "pulumi/checkout-base" branch to the new base commit ready for formatting the patches after + git branch -f pulumi/checkout-base "${onto}" + # Rebase the 'pulumi/patch-checkout' branch on top of the new base commit + interactive_flag="" + if [[ "${interactive}" == "true" ]]; then + interactive_flag="--interactive" + fi + if ! git rebase --onto "${onto}" ${interactive_flag}; then + echo "Rebase failed. Please resolve the conflicts and run 'git rebase --continue' in the upstream directory. Once the rebase is complete, run '${original_exec} check_in' to write to commits back to patches." + exit 1 + fi + cd .. +} + +export_patches() { + # Remove all existing patches before creating the new ones in case they've been renamed or removed. + rm -f patches/*.patch + + # Extract patches from the commits in the 'pulumi/patch-checkout' branch into the 'patches' directory. + # Use the 'pulumi/checkout-base' branch to determine the base commit of the patches. + (cd upstream && git format-patch pulumi/checkout-base -o ../patches --zero-commit --no-signature --no-stat --no-numbered) +} + +format_patches() { + assert_upstream_exists + assert_is_checked_out + assert_no_rebase_in_progress + + export_patches + cat < /// Manage a Doppler config. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -42,12 +42,30 @@ namespace Pulumiverse.Doppler [DopplerResourceType("doppler:index/branchConfig:BranchConfig")] public partial class BranchConfig : global::Pulumi.CustomResource { + /// + /// The descriptor (project.config) of the Doppler config + /// + [Output("descriptor")] + public Output Descriptor { get; private set; } = null!; + /// /// The name of the Doppler environment where the config is located /// [Output("environment")] public Output Environment { get; private set; } = null!; + /// + /// Whether or not the Doppler config can be inherited by other configs + /// + [Output("inheritable")] + public Output Inheritable { get; private set; } = null!; + + /// + /// A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + /// + [Output("inherits")] + public Output> Inherits { get; private set; } = null!; + /// /// The name of the Doppler config /// @@ -83,7 +101,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", Aliases = { new global::Pulumi.Alias { Type = "doppler:index/config:Config" }, @@ -117,6 +135,24 @@ public sealed class BranchConfigArgs : global::Pulumi.ResourceArgs [Input("environment", required: true)] public Input Environment { get; set; } = null!; + /// + /// Whether or not the Doppler config can be inherited by other configs + /// + [Input("inheritable")] + public Input? Inheritable { get; set; } + + [Input("inherits")] + private InputList? _inherits; + + /// + /// A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + /// + public InputList Inherits + { + get => _inherits ?? (_inherits = new InputList()); + set => _inherits = value; + } + /// /// The name of the Doppler config /// @@ -137,12 +173,36 @@ public BranchConfigArgs() public sealed class BranchConfigState : global::Pulumi.ResourceArgs { + /// + /// The descriptor (project.config) of the Doppler config + /// + [Input("descriptor")] + public Input? Descriptor { get; set; } + /// /// The name of the Doppler environment where the config is located /// [Input("environment")] public Input? Environment { get; set; } + /// + /// Whether or not the Doppler config can be inherited by other configs + /// + [Input("inheritable")] + public Input? Inheritable { get; set; } + + [Input("inherits")] + private InputList? _inherits; + + /// + /// A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + /// + public InputList Inherits + { + get => _inherits ?? (_inherits = new InputList()); + set => _inherits = value; + } + /// /// The name of the Doppler config /// diff --git a/sdk/dotnet/ChangeRequestPolicy.cs b/sdk/dotnet/ChangeRequestPolicy.cs new file mode 100644 index 0000000..b765407 --- /dev/null +++ b/sdk/dotnet/ChangeRequestPolicy.cs @@ -0,0 +1,294 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage a Doppler change request policy. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Threading.Tasks; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(async() => + /// { + /// var nic = await Doppler.GetUser.InvokeAsync(new() + /// { + /// Email = "nic@doppler.com", + /// }); + /// + /// var emily = await Doppler.GetUser.InvokeAsync(new() + /// { + /// Email = "emily@doppler.com", + /// }); + /// + /// var testProj = new Doppler.Project("test_proj", new() + /// { + /// Name = "my-test-project", + /// Description = "This is a test project", + /// }); + /// + /// var prd = new Doppler.Environment("prd", new() + /// { + /// Project = testProj.Name, + /// Slug = "prd", + /// Name = "prd", + /// }); + /// + /// var ci = new Doppler.Environment("ci", new() + /// { + /// Project = testProj.Name, + /// Slug = "ci", + /// Name = "CI-CD", + /// }); + /// + /// var ciGithub = new Doppler.BranchConfig("ci_github", new() + /// { + /// Project = testProj.Name, + /// Environment = ci.Slug, + /// Name = "ci_github", + /// }); + /// + /// var prodReviewers = new Doppler.Group("prod_reviewers", new() + /// { + /// Name = "Prod Reviewers", + /// }); + /// + /// var prodReviewersGroupMember = new List<Doppler.GroupMember>(); + /// foreach (var range in new[] + /// { + /// nic.Slug, + /// }.ToDictionary(item => { + /// var entry = item.Value; + /// return entry; + /// }, item => { + /// var entry = item.Value; + /// return entry; + /// }).Select(pair => new { pair.Key, pair.Value })) + /// { + /// prodReviewersGroupMember.Add(new Doppler.GroupMember($"prod_reviewers-{range.Key}", new() + /// { + /// GroupSlug = prodReviewers.Slug, + /// UserSlug = range.Value, + /// })); + /// } + /// var prdReview = new Doppler.ChangeRequestPolicy("prd_review", new() + /// { + /// Rules = new Doppler.Inputs.ChangeRequestPolicyRulesArgs + /// { + /// RequiredReviewers = new[] + /// { + /// new Doppler.Inputs.ChangeRequestPolicyRulesRequiredReviewerArgs + /// { + /// Count = 2, + /// }, + /// new Doppler.Inputs.ChangeRequestPolicyRulesRequiredReviewerArgs + /// { + /// Count = 1, + /// GroupSlugs = new[] + /// { + /// prodReviewers.Slug, + /// }, + /// UserSlugs = new[] + /// { + /// emily.Slug, + /// }, + /// }, + /// }, + /// DisallowSelfReview = true, + /// AutoAssignReviewers = "matchCount", + /// }, + /// Targets = new Doppler.Inputs.ChangeRequestPolicyTargetsArgs + /// { + /// Projects = new[] + /// { + /// new Doppler.Inputs.ChangeRequestPolicyTargetsProjectArgs + /// { + /// ProjectName = testProj.Name, + /// EnvironmentSlugs = new[] + /// { + /// prd.Slug, + /// }, + /// ConfigNames = new[] + /// { + /// ciGithub.Name, + /// }, + /// }, + /// }, + /// }, + /// Name = "Prod Review", + /// Description = @"A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group. + /// Reviews from the author of the change request are not counted. + /// This policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config. + /// ", + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// ```sh + /// $ pulumi import doppler:index/changeRequestPolicy:ChangeRequestPolicy <name> <change-request-policy-id> + /// ``` + /// + [DopplerResourceType("doppler:index/changeRequestPolicy:ChangeRequestPolicy")] + public partial class ChangeRequestPolicy : global::Pulumi.CustomResource + { + /// + /// A description of the change request policy + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The name of the change request policy + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// Rules that the policy will apply to its targets + /// + [Output("rules")] + public Output Rules { get; private set; } = null!; + + /// + /// The unique identifier of the change request policy + /// + [Output("slug")] + public Output Slug { get; private set; } = null!; + + /// + /// Where the policy will apply + /// + [Output("targets")] + public Output Targets { get; private set; } = null!; + + + /// + /// Create a ChangeRequestPolicy resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public ChangeRequestPolicy(string name, ChangeRequestPolicyArgs args, CustomResourceOptions? options = null) + : base("doppler:index/changeRequestPolicy:ChangeRequestPolicy", name, args ?? new ChangeRequestPolicyArgs(), MakeResourceOptions(options, "")) + { + } + + private ChangeRequestPolicy(string name, Input id, ChangeRequestPolicyState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/changeRequestPolicy:ChangeRequestPolicy", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing ChangeRequestPolicy resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static ChangeRequestPolicy Get(string name, Input id, ChangeRequestPolicyState? state = null, CustomResourceOptions? options = null) + { + return new ChangeRequestPolicy(name, id, state, options); + } + } + + public sealed class ChangeRequestPolicyArgs : global::Pulumi.ResourceArgs + { + /// + /// A description of the change request policy + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The name of the change request policy + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// Rules that the policy will apply to its targets + /// + [Input("rules", required: true)] + public Input Rules { get; set; } = null!; + + /// + /// Where the policy will apply + /// + [Input("targets", required: true)] + public Input Targets { get; set; } = null!; + + public ChangeRequestPolicyArgs() + { + } + public static new ChangeRequestPolicyArgs Empty => new ChangeRequestPolicyArgs(); + } + + public sealed class ChangeRequestPolicyState : global::Pulumi.ResourceArgs + { + /// + /// A description of the change request policy + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The name of the change request policy + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// Rules that the policy will apply to its targets + /// + [Input("rules")] + public Input? Rules { get; set; } + + /// + /// The unique identifier of the change request policy + /// + [Input("slug")] + public Input? Slug { get; set; } + + /// + /// Where the policy will apply + /// + [Input("targets")] + public Input? Targets { get; set; } + + public ChangeRequestPolicyState() + { + } + public static new ChangeRequestPolicyState Empty => new ChangeRequestPolicyState(); + } +} diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs index 279f1aa..ddc73ee 100644 --- a/sdk/dotnet/Config/Config.cs +++ b/sdk/dotnet/Config/Config.cs @@ -1,10 +1,10 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Immutable; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { public static class Config { @@ -34,7 +34,7 @@ public void Set(T value) private static readonly __Value _dopplerToken = new __Value(() => __config.Get("dopplerToken")); /// - /// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. + /// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `DopplerToken` or OIDC authentication (`OidcIdentity` + `OidcToken`/`OidcTokenFile`) may be specified. /// public static string? DopplerToken { @@ -52,6 +52,36 @@ public static string? Host set => _host.Set(value); } + private static readonly __Value _oidcIdentity = new __Value(() => __config.Get("oidcIdentity")); + /// + /// The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + /// + public static string? OidcIdentity + { + get => _oidcIdentity.Get(); + set => _oidcIdentity.Set(value); + } + + private static readonly __Value _oidcToken = new __Value(() => __config.Get("oidcToken")); + /// + /// A JWT token to use for OIDC authentication. Only one of `OidcToken` or `OidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + /// + public static string? OidcToken + { + get => _oidcToken.Get(); + set => _oidcToken.Set(value); + } + + private static readonly __Value _oidcTokenFile = new __Value(() => __config.Get("oidcTokenFile")); + /// + /// A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `OidcToken` or `OidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + /// + public static string? OidcTokenFile + { + get => _oidcTokenFile.Get(); + set => _oidcTokenFile.Set(value); + } + private static readonly __Value _verifyTls = new __Value(() => __config.GetBoolean("verifyTls")); /// /// Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. diff --git a/sdk/dotnet/Config/README.md b/sdk/dotnet/Config/README.md index adf8929..a8c6463 100644 --- a/sdk/dotnet/Config/README.md +++ b/sdk/dotnet/Config/README.md @@ -1 +1 @@ -A Pulumi package for creating and managing doppler cloud resources. +A Pulumi package for managing Doppler projects, secrets, and access. diff --git a/sdk/dotnet/Pulumiverse.Doppler.csproj b/sdk/dotnet/DopplerHQ.Doppler.csproj similarity index 82% rename from sdk/dotnet/Pulumiverse.Doppler.csproj rename to sdk/dotnet/DopplerHQ.Doppler.csproj index 665c22d..387bfd4 100644 --- a/sdk/dotnet/Pulumiverse.Doppler.csproj +++ b/sdk/dotnet/DopplerHQ.Doppler.csproj @@ -2,13 +2,14 @@ true - Pulumiverse - Pulumiverse - A Pulumi package for creating and managing doppler cloud resources. + Doppler + Doppler + A Pulumi package for managing Doppler projects, secrets, and access. Apache-2.0 - https://www.pulumi.com - https://github.com/pulumiverse/pulumi-doppler + https://www.doppler.com + https://github.com/DopplerHQ/pulumi-doppler logo.png + 0.0.0-alpha.0+dev net6.0 enable diff --git a/sdk/dotnet/Environment.cs b/sdk/dotnet/Environment.cs index c14b064..fa3c447 100644 --- a/sdk/dotnet/Environment.cs +++ b/sdk/dotnet/Environment.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler environment. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -89,7 +89,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/GetEnvironments.cs b/sdk/dotnet/GetEnvironments.cs new file mode 100644 index 0000000..b70e0c5 --- /dev/null +++ b/sdk/dotnet/GetEnvironments.cs @@ -0,0 +1,180 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + public static class GetEnvironments + { + /// + /// Retrieve all environments in the project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Doppler.GetEnvironments.Invoke(new() + /// { + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["environmentNames"] = .Select(env => + /// { + /// return env.Name; + /// }).ToList(), + /// ["environmentSlugs"] = .Select(env => + /// { + /// return env.Slug; + /// }).ToList(), + /// }; + /// }); + /// ``` + /// + public static Task InvokeAsync(GetEnvironmentsArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("doppler:index/getEnvironments:getEnvironments", args ?? new GetEnvironmentsArgs(), options.WithDefaults()); + + /// + /// Retrieve all environments in the project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Doppler.GetEnvironments.Invoke(new() + /// { + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["environmentNames"] = .Select(env => + /// { + /// return env.Name; + /// }).ToList(), + /// ["environmentSlugs"] = .Select(env => + /// { + /// return env.Slug; + /// }).ToList(), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnvironmentsInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getEnvironments:getEnvironments", args ?? new GetEnvironmentsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve all environments in the project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Doppler.GetEnvironments.Invoke(new() + /// { + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["environmentNames"] = .Select(env => + /// { + /// return env.Name; + /// }).ToList(), + /// ["environmentSlugs"] = .Select(env => + /// { + /// return env.Slug; + /// }).ToList(), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnvironmentsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getEnvironments:getEnvironments", args ?? new GetEnvironmentsInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetEnvironmentsArgs : global::Pulumi.InvokeArgs + { + /// + /// The project to list environments for + /// + [Input("project", required: true)] + public string Project { get; set; } = null!; + + public GetEnvironmentsArgs() + { + } + public static new GetEnvironmentsArgs Empty => new GetEnvironmentsArgs(); + } + + public sealed class GetEnvironmentsInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// The project to list environments for + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + public GetEnvironmentsInvokeArgs() + { + } + public static new GetEnvironmentsInvokeArgs Empty => new GetEnvironmentsInvokeArgs(); + } + + + [OutputType] + public sealed class GetEnvironmentsResult + { + /// + /// List of environments in the project + /// + public readonly ImmutableArray Environments; + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + /// + /// The project to list environments for + /// + public readonly string Project; + + [OutputConstructor] + private GetEnvironmentsResult( + ImmutableArray environments, + + string id, + + string project) + { + Environments = environments; + Id = id; + Project = project; + } + } +} diff --git a/sdk/dotnet/GetGroup.cs b/sdk/dotnet/GetGroup.cs new file mode 100644 index 0000000..a3ddfb9 --- /dev/null +++ b/sdk/dotnet/GetGroup.cs @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + public static class GetGroup + { + /// + /// Retrieve an existing Doppler group. + /// + public static Task InvokeAsync(GetGroupArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("doppler:index/getGroup:getGroup", args ?? new GetGroupArgs(), options.WithDefaults()); + + /// + /// Retrieve an existing Doppler group. + /// + public static Output Invoke(GetGroupInvokeArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getGroup:getGroup", args ?? new GetGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve an existing Doppler group. + /// + public static Output Invoke(GetGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getGroup:getGroup", args ?? new GetGroupInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetGroupArgs : global::Pulumi.InvokeArgs + { + /// + /// The name of the Doppler group + /// + [Input("name")] + public string? Name { get; set; } + + /// + /// The slug of the Doppler group + /// + [Input("slug")] + public string? Slug { get; set; } + + public GetGroupArgs() + { + } + public static new GetGroupArgs Empty => new GetGroupArgs(); + } + + public sealed class GetGroupInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// The name of the Doppler group + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The slug of the Doppler group + /// + [Input("slug")] + public Input? Slug { get; set; } + + public GetGroupInvokeArgs() + { + } + public static new GetGroupInvokeArgs Empty => new GetGroupInvokeArgs(); + } + + + [OutputType] + public sealed class GetGroupResult + { + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + /// + /// The name of the Doppler group + /// + public readonly string? Name; + /// + /// The slug of the Doppler group + /// + public readonly string? Slug; + + [OutputConstructor] + private GetGroupResult( + string id, + + string? name, + + string? slug) + { + Id = id; + Name = name; + Slug = slug; + } + } +} diff --git a/sdk/dotnet/GetSecrets.cs b/sdk/dotnet/GetSecrets.cs index 258d63b..d6189ae 100644 --- a/sdk/dotnet/GetSecrets.cs +++ b/sdk/dotnet/GetSecrets.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { public static class GetSecrets { @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetSecretsArgs? args = null, In /// public static Output Invoke(GetSecretsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve all secrets in the config. + /// + public static Output Invoke(GetSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUser.cs b/sdk/dotnet/GetUser.cs index d3663ea..735e90a 100644 --- a/sdk/dotnet/GetUser.cs +++ b/sdk/dotnet/GetUser.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { public static class GetUser { @@ -21,7 +21,7 @@ public static class GetUser /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumi.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -45,7 +45,7 @@ public static Task InvokeAsync(GetUserArgs args, InvokeOptions? o /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumi.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetUserArgs args, InvokeOptions? o /// public static Output Invoke(GetUserInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve an existing Doppler user. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nic = Doppler.GetUser.Invoke(new() + /// { + /// Email = "nic@doppler.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetUserInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("doppler:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Group.cs b/sdk/dotnet/Group.cs index 4475c4a..2a9f33f 100644 --- a/sdk/dotnet/Group.cs +++ b/sdk/dotnet/Group.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler group. @@ -19,13 +19,14 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { /// var engineering = new Doppler.Group("engineering", new() /// { /// Name = "engineering", + /// WorkplaceRole = "viewer", /// }); /// /// }); @@ -34,7 +35,6 @@ namespace Pulumiverse.Doppler /// ## Import /// /// import using the group slug from the URL: - /// /// https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] /// /// ```sh @@ -45,7 +45,7 @@ namespace Pulumiverse.Doppler public partial class Group : global::Pulumi.CustomResource { /// - /// The default project role assigned to the group when added to a Doppler project + /// The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. /// [Output("defaultProjectRole")] public Output DefaultProjectRole { get; private set; } = null!; @@ -62,6 +62,12 @@ public partial class Group : global::Pulumi.CustomResource [Output("slug")] public Output Slug { get; private set; } = null!; + /// + /// The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "NoAccess" to ensure the group has no workplace permissions + /// + [Output("workplaceRole")] + public Output WorkplaceRole { get; private set; } = null!; + /// /// Create a Group resource with the given unique name, arguments, and options. @@ -85,7 +91,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -110,7 +116,7 @@ public static Group Get(string name, Input id, GroupState? state = null, public sealed class GroupArgs : global::Pulumi.ResourceArgs { /// - /// The default project role assigned to the group when added to a Doppler project + /// The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. /// [Input("defaultProjectRole")] public Input? DefaultProjectRole { get; set; } @@ -121,6 +127,12 @@ public sealed class GroupArgs : global::Pulumi.ResourceArgs [Input("name", required: true)] public Input Name { get; set; } = null!; + /// + /// The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "NoAccess" to ensure the group has no workplace permissions + /// + [Input("workplaceRole")] + public Input? WorkplaceRole { get; set; } + public GroupArgs() { } @@ -130,7 +142,7 @@ public GroupArgs() public sealed class GroupState : global::Pulumi.ResourceArgs { /// - /// The default project role assigned to the group when added to a Doppler project + /// The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. /// [Input("defaultProjectRole")] public Input? DefaultProjectRole { get; set; } @@ -147,6 +159,12 @@ public sealed class GroupState : global::Pulumi.ResourceArgs [Input("slug")] public Input? Slug { get; set; } + /// + /// The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "NoAccess" to ensure the group has no workplace permissions + /// + [Input("workplaceRole")] + public Input? WorkplaceRole { get; set; } + public GroupState() { } diff --git a/sdk/dotnet/GroupMember.cs b/sdk/dotnet/GroupMember.cs index cc91c2c..be28583 100644 --- a/sdk/dotnet/GroupMember.cs +++ b/sdk/dotnet/GroupMember.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler user/group membership. @@ -16,14 +16,59 @@ namespace Pulumiverse.Doppler /// **Note:** You can also exclusively manage all memberships in a group with a single resource. /// See the `doppler.GroupMembers` resource for more information. /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Threading.Tasks; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(async() => + /// { + /// var engineering = new Doppler.Group("engineering", new() + /// { + /// Name = "engineering", + /// }); + /// + /// var nic = await Doppler.GetUser.InvokeAsync(new() + /// { + /// Email = "nic@doppler.com", + /// }); + /// + /// var andre = await Doppler.GetUser.InvokeAsync(new() + /// { + /// Email = "andre@doppler.com", + /// }); + /// + /// var engineeringGroupMember = new List<Doppler.GroupMember>(); + /// foreach (var range in new[] + /// { + /// nic.Slug, + /// andre.Slug, + /// }.ToDictionary(item => { + /// var entry = item.Value; + /// return entry; + /// }, item => { + /// var entry = item.Value; + /// return entry; + /// }).Select(pair => new { pair.Key, pair.Value })) + /// { + /// engineeringGroupMember.Add(new Doppler.GroupMember($"engineering-{range.Key}", new() + /// { + /// GroupSlug = engineering.Slug, + /// UserSlug = range.Value, + /// })); + /// } + /// }); + /// ``` + /// /// ## Import /// /// import using the group slug from the URL: - /// /// https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - /// /// and the user slug from the URL: - /// /// https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] /// /// ```sh @@ -68,7 +113,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/GroupMembers.cs b/sdk/dotnet/GroupMembers.cs index eb844f8..239a5b9 100644 --- a/sdk/dotnet/GroupMembers.cs +++ b/sdk/dotnet/GroupMembers.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler group's memberships. @@ -23,8 +23,7 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumi.Doppler; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -59,11 +58,8 @@ namespace Pulumiverse.Doppler /// ## Import /// /// import using the group slug from the URL: - /// /// https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - /// /// and the user slugs from the URL: - /// /// https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] /// /// ```sh @@ -108,7 +104,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyRulesArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesArgs.cs new file mode 100644 index 0000000..81d6871 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyRulesArgs : global::Pulumi.ResourceArgs + { + /// + /// If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + /// + [Input("autoAssignReviewers")] + public Input? AutoAssignReviewers { get; set; } + + /// + /// If true, approvals from the author of a change request will be excluded when evaluating this policy + /// + [Input("disallowSelfReview")] + public Input? DisallowSelfReview { get; set; } + + [Input("requiredReviewers")] + private InputList? _requiredReviewers; + + /// + /// Enforces that a specific number of users approve a change request before it can be applied + /// + public InputList RequiredReviewers + { + get => _requiredReviewers ?? (_requiredReviewers = new InputList()); + set => _requiredReviewers = value; + } + + public ChangeRequestPolicyRulesArgs() + { + } + public static new ChangeRequestPolicyRulesArgs Empty => new ChangeRequestPolicyRulesArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyRulesGetArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesGetArgs.cs new file mode 100644 index 0000000..52199b2 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesGetArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyRulesGetArgs : global::Pulumi.ResourceArgs + { + /// + /// If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + /// + [Input("autoAssignReviewers")] + public Input? AutoAssignReviewers { get; set; } + + /// + /// If true, approvals from the author of a change request will be excluded when evaluating this policy + /// + [Input("disallowSelfReview")] + public Input? DisallowSelfReview { get; set; } + + [Input("requiredReviewers")] + private InputList? _requiredReviewers; + + /// + /// Enforces that a specific number of users approve a change request before it can be applied + /// + public InputList RequiredReviewers + { + get => _requiredReviewers ?? (_requiredReviewers = new InputList()); + set => _requiredReviewers = value; + } + + public ChangeRequestPolicyRulesGetArgs() + { + } + public static new ChangeRequestPolicyRulesGetArgs Empty => new ChangeRequestPolicyRulesGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyRulesRequiredReviewerArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesRequiredReviewerArgs.cs new file mode 100644 index 0000000..5a888a7 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesRequiredReviewerArgs.cs @@ -0,0 +1,51 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyRulesRequiredReviewerArgs : global::Pulumi.ResourceArgs + { + /// + /// The number of approvals a change request must receive before it can be applied + /// + [Input("count", required: true)] + public Input Count { get; set; } = null!; + + [Input("groupSlugs")] + private InputList? _groupSlugs; + + /// + /// If set, only approvals from members of these groups will satisfy this rule + /// + public InputList GroupSlugs + { + get => _groupSlugs ?? (_groupSlugs = new InputList()); + set => _groupSlugs = value; + } + + [Input("userSlugs")] + private InputList? _userSlugs; + + /// + /// If set, only approvals from these users will satisfy this rule + /// + public InputList UserSlugs + { + get => _userSlugs ?? (_userSlugs = new InputList()); + set => _userSlugs = value; + } + + public ChangeRequestPolicyRulesRequiredReviewerArgs() + { + } + public static new ChangeRequestPolicyRulesRequiredReviewerArgs Empty => new ChangeRequestPolicyRulesRequiredReviewerArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyRulesRequiredReviewerGetArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesRequiredReviewerGetArgs.cs new file mode 100644 index 0000000..65a18f8 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyRulesRequiredReviewerGetArgs.cs @@ -0,0 +1,51 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyRulesRequiredReviewerGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The number of approvals a change request must receive before it can be applied + /// + [Input("count", required: true)] + public Input Count { get; set; } = null!; + + [Input("groupSlugs")] + private InputList? _groupSlugs; + + /// + /// If set, only approvals from members of these groups will satisfy this rule + /// + public InputList GroupSlugs + { + get => _groupSlugs ?? (_groupSlugs = new InputList()); + set => _groupSlugs = value; + } + + [Input("userSlugs")] + private InputList? _userSlugs; + + /// + /// If set, only approvals from these users will satisfy this rule + /// + public InputList UserSlugs + { + get => _userSlugs ?? (_userSlugs = new InputList()); + set => _userSlugs = value; + } + + public ChangeRequestPolicyRulesRequiredReviewerGetArgs() + { + } + public static new ChangeRequestPolicyRulesRequiredReviewerGetArgs Empty => new ChangeRequestPolicyRulesRequiredReviewerGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsArgs.cs new file mode 100644 index 0000000..0a9aef1 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyTargetsArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether or not the policy applies to all projects in the workplace + /// + [Input("allProjects")] + public Input? AllProjects { get; set; } + + [Input("projects")] + private InputList? _projects; + + /// + /// A project that the policy will apply to + /// + public InputList Projects + { + get => _projects ?? (_projects = new InputList()); + set => _projects = value; + } + + public ChangeRequestPolicyTargetsArgs() + { + } + public static new ChangeRequestPolicyTargetsArgs Empty => new ChangeRequestPolicyTargetsArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsGetArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsGetArgs.cs new file mode 100644 index 0000000..8178929 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyTargetsGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether or not the policy applies to all projects in the workplace + /// + [Input("allProjects")] + public Input? AllProjects { get; set; } + + [Input("projects")] + private InputList? _projects; + + /// + /// A project that the policy will apply to + /// + public InputList Projects + { + get => _projects ?? (_projects = new InputList()); + set => _projects = value; + } + + public ChangeRequestPolicyTargetsGetArgs() + { + } + public static new ChangeRequestPolicyTargetsGetArgs Empty => new ChangeRequestPolicyTargetsGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsProjectArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsProjectArgs.cs new file mode 100644 index 0000000..7abe5e8 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsProjectArgs.cs @@ -0,0 +1,57 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyTargetsProjectArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether or not the policy applies to all configs in the project + /// + [Input("all")] + public Input? All { get; set; } + + [Input("configNames")] + private InputList? _configNames; + + /// + /// Specific configs the policy applies to + /// + public InputList ConfigNames + { + get => _configNames ?? (_configNames = new InputList()); + set => _configNames = value; + } + + [Input("environmentSlugs")] + private InputList? _environmentSlugs; + + /// + /// Entire environments the policy applies to + /// + public InputList EnvironmentSlugs + { + get => _environmentSlugs ?? (_environmentSlugs = new InputList()); + set => _environmentSlugs = value; + } + + /// + /// The name of the project to apply the policy to + /// + [Input("projectName", required: true)] + public Input ProjectName { get; set; } = null!; + + public ChangeRequestPolicyTargetsProjectArgs() + { + } + public static new ChangeRequestPolicyTargetsProjectArgs Empty => new ChangeRequestPolicyTargetsProjectArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsProjectGetArgs.cs b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsProjectGetArgs.cs new file mode 100644 index 0000000..68acd41 --- /dev/null +++ b/sdk/dotnet/Inputs/ChangeRequestPolicyTargetsProjectGetArgs.cs @@ -0,0 +1,57 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ChangeRequestPolicyTargetsProjectGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Whether or not the policy applies to all configs in the project + /// + [Input("all")] + public Input? All { get; set; } + + [Input("configNames")] + private InputList? _configNames; + + /// + /// Specific configs the policy applies to + /// + public InputList ConfigNames + { + get => _configNames ?? (_configNames = new InputList()); + set => _configNames = value; + } + + [Input("environmentSlugs")] + private InputList? _environmentSlugs; + + /// + /// Entire environments the policy applies to + /// + public InputList EnvironmentSlugs + { + get => _environmentSlugs ?? (_environmentSlugs = new InputList()); + set => _environmentSlugs = value; + } + + /// + /// The name of the project to apply the policy to + /// + [Input("projectName", required: true)] + public Input ProjectName { get; set; } = null!; + + public ChangeRequestPolicyTargetsProjectGetArgs() + { + } + public static new ChangeRequestPolicyTargetsProjectGetArgs Empty => new ChangeRequestPolicyTargetsProjectGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcArgs.cs b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcArgs.cs new file mode 100644 index 0000000..b8406e6 --- /dev/null +++ b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ServiceAccountIdentityConfigOidcArgs : global::Pulumi.ResourceArgs + { + [Input("claims", required: true)] + private InputList? _claims; + + /// + /// A set of valid values for a specific claim. At least "aud" and "sub" must be provided + /// + public InputList Claims + { + get => _claims ?? (_claims = new InputList()); + set => _claims = value; + } + + /// + /// If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + /// + [Input("claimsType")] + public Input? ClaimsType { get; set; } + + /// + /// The public URL of the OpenID discovery service + /// + [Input("discoveryUrl", required: true)] + public Input DiscoveryUrl { get; set; } = null!; + + public ServiceAccountIdentityConfigOidcArgs() + { + } + public static new ServiceAccountIdentityConfigOidcArgs Empty => new ServiceAccountIdentityConfigOidcArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcClaimArgs.cs b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcClaimArgs.cs new file mode 100644 index 0000000..b6a7644 --- /dev/null +++ b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcClaimArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ServiceAccountIdentityConfigOidcClaimArgs : global::Pulumi.ResourceArgs + { + /// + /// The key of the claim to validate + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + [Input("values", required: true)] + private InputList? _values; + + /// + /// The set of valid values for this claim + /// + public InputList Values + { + get => _values ?? (_values = new InputList()); + set => _values = value; + } + + public ServiceAccountIdentityConfigOidcClaimArgs() + { + } + public static new ServiceAccountIdentityConfigOidcClaimArgs Empty => new ServiceAccountIdentityConfigOidcClaimArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcClaimGetArgs.cs b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcClaimGetArgs.cs new file mode 100644 index 0000000..fe0d638 --- /dev/null +++ b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcClaimGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ServiceAccountIdentityConfigOidcClaimGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The key of the claim to validate + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + [Input("values", required: true)] + private InputList? _values; + + /// + /// The set of valid values for this claim + /// + public InputList Values + { + get => _values ?? (_values = new InputList()); + set => _values = value; + } + + public ServiceAccountIdentityConfigOidcClaimGetArgs() + { + } + public static new ServiceAccountIdentityConfigOidcClaimGetArgs Empty => new ServiceAccountIdentityConfigOidcClaimGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcGetArgs.cs b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcGetArgs.cs new file mode 100644 index 0000000..ad27b46 --- /dev/null +++ b/sdk/dotnet/Inputs/ServiceAccountIdentityConfigOidcGetArgs.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Inputs +{ + + public sealed class ServiceAccountIdentityConfigOidcGetArgs : global::Pulumi.ResourceArgs + { + [Input("claims", required: true)] + private InputList? _claims; + + /// + /// A set of valid values for a specific claim. At least "aud" and "sub" must be provided + /// + public InputList Claims + { + get => _claims ?? (_claims = new InputList()); + set => _claims = value; + } + + /// + /// If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + /// + [Input("claimsType")] + public Input? ClaimsType { get; set; } + + /// + /// The public URL of the OpenID discovery service + /// + [Input("discoveryUrl", required: true)] + public Input DiscoveryUrl { get; set; } = null!; + + public ServiceAccountIdentityConfigOidcGetArgs() + { + } + public static new ServiceAccountIdentityConfigOidcGetArgs Empty => new ServiceAccountIdentityConfigOidcGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/WebhookAuthenticationArgs.cs b/sdk/dotnet/Inputs/WebhookAuthenticationArgs.cs index 935e5fe..6fdc1c7 100644 --- a/sdk/dotnet/Inputs/WebhookAuthenticationArgs.cs +++ b/sdk/dotnet/Inputs/WebhookAuthenticationArgs.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Inputs +namespace DopplerHQ.Doppler.Inputs { public sealed class WebhookAuthenticationArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/WebhookAuthenticationGetArgs.cs b/sdk/dotnet/Inputs/WebhookAuthenticationGetArgs.cs index 4ec35b2..13272f2 100644 --- a/sdk/dotnet/Inputs/WebhookAuthenticationGetArgs.cs +++ b/sdk/dotnet/Inputs/WebhookAuthenticationGetArgs.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Inputs +namespace DopplerHQ.Doppler.Inputs { public sealed class WebhookAuthenticationGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Integration/AwsIamUserKeys.cs b/sdk/dotnet/Integration/AwsIamUserKeys.cs new file mode 100644 index 0000000..07e3961 --- /dev/null +++ b/sdk/dotnet/Integration/AwsIamUserKeys.cs @@ -0,0 +1,144 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a AWS IAM User Keys Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var iAwsIamUk = new Doppler.Integration.AwsIamUserKeys("i_aws_iam_uk", new() + /// { + /// Name = "TF AWS IAM UK", + /// AssumeRoleArn = "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsAwsIamUk = new Doppler.RotatedSecret.AwsIamUserKeys("rs_aws_iam_uk", new() + /// { + /// Integration = iAwsIamUk.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "AWS_IAM_UK", + /// RotationPeriodSec = 2592000, + /// Username = "xxxxxxxxxxxxx", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/awsIamUserKeys:AwsIamUserKeys")] + public partial class AwsIamUserKeys : global::Pulumi.CustomResource + { + /// + /// IAM Role ARN for role assumption + /// + [Output("assumeRoleArn")] + public Output AssumeRoleArn { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a AwsIamUserKeys resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsIamUserKeys(string name, AwsIamUserKeysArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/awsIamUserKeys:AwsIamUserKeys", name, args ?? new AwsIamUserKeysArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsIamUserKeys(string name, Input id, AwsIamUserKeysState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/awsIamUserKeys:AwsIamUserKeys", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsIamUserKeys resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsIamUserKeys Get(string name, Input id, AwsIamUserKeysState? state = null, CustomResourceOptions? options = null) + { + return new AwsIamUserKeys(name, id, state, options); + } + } + + public sealed class AwsIamUserKeysArgs : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn", required: true)] + public Input AssumeRoleArn { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public AwsIamUserKeysArgs() + { + } + public static new AwsIamUserKeysArgs Empty => new AwsIamUserKeysArgs(); + } + + public sealed class AwsIamUserKeysState : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn")] + public Input? AssumeRoleArn { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public AwsIamUserKeysState() + { + } + public static new AwsIamUserKeysState Empty => new AwsIamUserKeysState(); + } +} diff --git a/sdk/dotnet/Integration/AwsMssql.cs b/sdk/dotnet/Integration/AwsMssql.cs new file mode 100644 index 0000000..0f74908 --- /dev/null +++ b/sdk/dotnet/Integration/AwsMssql.cs @@ -0,0 +1,186 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a AWS MS SQL Server Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iAwsMssql = new Doppler.Integration.AwsMssql("i_aws_mssql", new() + /// { + /// Name = "TF AWS MS SQL Server", + /// AssumeRoleArn = "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + /// LambdaArn = "arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsAwsMssql = new Doppler.RotatedSecret.AwsMssql("rs_aws_mssql", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.AwsMssqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxx", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.AwsMssqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxx", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iAwsMssql.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "DB", + /// RotationPeriodSec = 2592000, + /// Host = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// Port = 1433, + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/awsMssql:AwsMssql")] + public partial class AwsMssql : global::Pulumi.CustomResource + { + /// + /// IAM Role ARN for role assumption + /// + [Output("assumeRoleArn")] + public Output AssumeRoleArn { get; private set; } = null!; + + /// + /// The Lambda ARN + /// + [Output("lambdaArn")] + public Output LambdaArn { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a AwsMssql resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsMssql(string name, AwsMssqlArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/awsMssql:AwsMssql", name, args ?? new AwsMssqlArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsMssql(string name, Input id, AwsMssqlState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/awsMssql:AwsMssql", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsMssql resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsMssql Get(string name, Input id, AwsMssqlState? state = null, CustomResourceOptions? options = null) + { + return new AwsMssql(name, id, state, options); + } + } + + public sealed class AwsMssqlArgs : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn", required: true)] + public Input AssumeRoleArn { get; set; } = null!; + + /// + /// The Lambda ARN + /// + [Input("lambdaArn", required: true)] + public Input LambdaArn { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public AwsMssqlArgs() + { + } + public static new AwsMssqlArgs Empty => new AwsMssqlArgs(); + } + + public sealed class AwsMssqlState : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn")] + public Input? AssumeRoleArn { get; set; } + + /// + /// The Lambda ARN + /// + [Input("lambdaArn")] + public Input? LambdaArn { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public AwsMssqlState() + { + } + public static new AwsMssqlState Empty => new AwsMssqlState(); + } +} diff --git a/sdk/dotnet/Integration/AwsMysql.cs b/sdk/dotnet/Integration/AwsMysql.cs new file mode 100644 index 0000000..5409303 --- /dev/null +++ b/sdk/dotnet/Integration/AwsMysql.cs @@ -0,0 +1,188 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a AWS MySQL Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iAwsMysql = new Doppler.Integration.AwsMysql("i_aws_mysql", new() + /// { + /// Name = "TF AWS MySQL", + /// AssumeRoleArn = "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + /// LambdaArn = "arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsAwsMysql = new Doppler.RotatedSecret.AwsMysql("rs_aws_mysql", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.AwsMysqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxx", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.AwsMysqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxx", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iAwsMysql.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "DB", + /// RotationPeriodSec = 2592000, + /// Host = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// Port = 3306, + /// ManagingUserUsername = "xxxxxxxx", + /// ManagingUserPassword = "xxxxxxxxxxxxxxxxxxxx", + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/awsMysql:AwsMysql")] + public partial class AwsMysql : global::Pulumi.CustomResource + { + /// + /// IAM Role ARN for role assumption + /// + [Output("assumeRoleArn")] + public Output AssumeRoleArn { get; private set; } = null!; + + /// + /// The Lambda ARN + /// + [Output("lambdaArn")] + public Output LambdaArn { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a AwsMysql resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsMysql(string name, AwsMysqlArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/awsMysql:AwsMysql", name, args ?? new AwsMysqlArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsMysql(string name, Input id, AwsMysqlState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/awsMysql:AwsMysql", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsMysql resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsMysql Get(string name, Input id, AwsMysqlState? state = null, CustomResourceOptions? options = null) + { + return new AwsMysql(name, id, state, options); + } + } + + public sealed class AwsMysqlArgs : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn", required: true)] + public Input AssumeRoleArn { get; set; } = null!; + + /// + /// The Lambda ARN + /// + [Input("lambdaArn", required: true)] + public Input LambdaArn { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public AwsMysqlArgs() + { + } + public static new AwsMysqlArgs Empty => new AwsMysqlArgs(); + } + + public sealed class AwsMysqlState : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn")] + public Input? AssumeRoleArn { get; set; } + + /// + /// The Lambda ARN + /// + [Input("lambdaArn")] + public Input? LambdaArn { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public AwsMysqlState() + { + } + public static new AwsMysqlState Empty => new AwsMysqlState(); + } +} diff --git a/sdk/dotnet/Integration/AwsParameterStore.cs b/sdk/dotnet/Integration/AwsParameterStore.cs index bc3f89f..8658a94 100644 --- a/sdk/dotnet/Integration/AwsParameterStore.cs +++ b/sdk/dotnet/Integration/AwsParameterStore.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Integration +namespace DopplerHQ.Doppler.Integration { /// /// Manage an AWS Parameter Store Doppler integration. @@ -21,42 +21,18 @@ namespace Pulumiverse.Doppler.Integration /// using System.Text.Json; /// using Pulumi; /// using Aws = Pulumi.Aws; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { - /// var dopplerParameterStore = new Aws.Iam.Role("doppler_parameter_store", new() + /// var dopplerParameterStore = new Aws.IamRole("doppler_parameter_store", new() /// { - /// Name = "doppler_parameter_store", - /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> - /// { - /// ["Version"] = "2012-10-17", - /// ["Statement"] = new[] - /// { - /// new Dictionary<string, object?> - /// { - /// ["Effect"] = "Allow", - /// ["Action"] = "sts:AssumeRole", - /// ["Principal"] = new Dictionary<string, object?> - /// { - /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", - /// }, - /// ["Condition"] = new Dictionary<string, object?> - /// { - /// ["StringEquals"] = new Dictionary<string, object?> - /// { - /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", - /// }, - /// }, - /// }, - /// }, - /// }), - /// InlinePolicies = new[] + /// InlinePolicy = new[] /// { - /// new Aws.Iam.Inputs.RoleInlinePolicyArgs + /// /// { - /// Name = "doppler_secret_manager", - /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { "name", "doppler_secret_manager" }, + /// { "policy", JsonSerializer.Serialize(new Dictionary<string, object?> /// { /// ["Version"] = "2012-10-17", /// ["Statement"] = new[] @@ -80,9 +56,33 @@ namespace Pulumiverse.Doppler.Integration /// ["Resource"] = "*", /// }, /// }, - /// }), + /// }) }, /// }, /// }, + /// Name = "doppler_parameter_store", + /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["Version"] = "2012-10-17", + /// ["Statement"] = new[] + /// { + /// new Dictionary<string, object?> + /// { + /// ["Effect"] = "Allow", + /// ["Action"] = "sts:AssumeRole", + /// ["Principal"] = new Dictionary<string, object?> + /// { + /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", + /// }, + /// ["Condition"] = new Dictionary<string, object?> + /// { + /// ["StringEquals"] = new Dictionary<string, object?> + /// { + /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", + /// }, + /// }, + /// }, + /// }, + /// }), /// }); /// /// var prod = new Doppler.Integration.AwsParameterStore("prod", new() @@ -147,7 +147,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Integration/AwsPostgres.cs b/sdk/dotnet/Integration/AwsPostgres.cs new file mode 100644 index 0000000..e60b1da --- /dev/null +++ b/sdk/dotnet/Integration/AwsPostgres.cs @@ -0,0 +1,189 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a AWS Postgres Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iAwsPostgres = new Doppler.Integration.AwsPostgres("i_aws_postgres", new() + /// { + /// Name = "TF AWS Postgres", + /// AssumeRoleArn = "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + /// LambdaArn = "arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsAwsPostgres = new Doppler.RotatedSecret.AwsPostgres("rs_aws_postgres", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.AwsPostgresCredentialArgs + /// { + /// Username = "xxxxxxxxxxx", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.AwsPostgresCredentialArgs + /// { + /// Username = "xxxxxxxxxxx", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iAwsPostgres.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "DB", + /// RotationPeriodSec = 2592000, + /// Host = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// Port = 5432, + /// Database = "xxxxxxxx", + /// ManagingUserUsername = "xxxxxxxx", + /// ManagingUserPassword = "xxxxxxxxxxxxxxxxxxxx", + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/awsPostgres:AwsPostgres")] + public partial class AwsPostgres : global::Pulumi.CustomResource + { + /// + /// IAM Role ARN for role assumption + /// + [Output("assumeRoleArn")] + public Output AssumeRoleArn { get; private set; } = null!; + + /// + /// The Lambda ARN + /// + [Output("lambdaArn")] + public Output LambdaArn { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a AwsPostgres resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsPostgres(string name, AwsPostgresArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/awsPostgres:AwsPostgres", name, args ?? new AwsPostgresArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsPostgres(string name, Input id, AwsPostgresState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/awsPostgres:AwsPostgres", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsPostgres resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsPostgres Get(string name, Input id, AwsPostgresState? state = null, CustomResourceOptions? options = null) + { + return new AwsPostgres(name, id, state, options); + } + } + + public sealed class AwsPostgresArgs : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn", required: true)] + public Input AssumeRoleArn { get; set; } = null!; + + /// + /// The Lambda ARN + /// + [Input("lambdaArn", required: true)] + public Input LambdaArn { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public AwsPostgresArgs() + { + } + public static new AwsPostgresArgs Empty => new AwsPostgresArgs(); + } + + public sealed class AwsPostgresState : global::Pulumi.ResourceArgs + { + /// + /// IAM Role ARN for role assumption + /// + [Input("assumeRoleArn")] + public Input? AssumeRoleArn { get; set; } + + /// + /// The Lambda ARN + /// + [Input("lambdaArn")] + public Input? LambdaArn { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public AwsPostgresState() + { + } + public static new AwsPostgresState Empty => new AwsPostgresState(); + } +} diff --git a/sdk/dotnet/Integration/AwsSecretsManager.cs b/sdk/dotnet/Integration/AwsSecretsManager.cs index 1962e5d..9132c76 100644 --- a/sdk/dotnet/Integration/AwsSecretsManager.cs +++ b/sdk/dotnet/Integration/AwsSecretsManager.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Integration +namespace DopplerHQ.Doppler.Integration { /// /// Manage an AWS Secrets Manager Doppler integration. @@ -21,42 +21,18 @@ namespace Pulumiverse.Doppler.Integration /// using System.Text.Json; /// using Pulumi; /// using Aws = Pulumi.Aws; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { - /// var dopplerSecretsManager = new Aws.Iam.Role("doppler_secrets_manager", new() + /// var dopplerSecretsManager = new Aws.IamRole("doppler_secrets_manager", new() /// { - /// Name = "doppler_secrets_manager", - /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> - /// { - /// ["Version"] = "2012-10-17", - /// ["Statement"] = new[] - /// { - /// new Dictionary<string, object?> - /// { - /// ["Effect"] = "Allow", - /// ["Action"] = "sts:AssumeRole", - /// ["Principal"] = new Dictionary<string, object?> - /// { - /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", - /// }, - /// ["Condition"] = new Dictionary<string, object?> - /// { - /// ["StringEquals"] = new Dictionary<string, object?> - /// { - /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", - /// }, - /// }, - /// }, - /// }, - /// }), - /// InlinePolicies = new[] + /// InlinePolicy = new[] /// { - /// new Aws.Iam.Inputs.RoleInlinePolicyArgs + /// /// { - /// Name = "doppler_secret_manager", - /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { "name", "doppler_secret_manager" }, + /// { "policy", JsonSerializer.Serialize(new Dictionary<string, object?> /// { /// ["Version"] = "2012-10-17", /// ["Statement"] = new[] @@ -77,9 +53,33 @@ namespace Pulumiverse.Doppler.Integration /// ["Resource"] = "*", /// }, /// }, - /// }), + /// }) }, /// }, /// }, + /// Name = "doppler_secrets_manager", + /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["Version"] = "2012-10-17", + /// ["Statement"] = new[] + /// { + /// new Dictionary<string, object?> + /// { + /// ["Effect"] = "Allow", + /// ["Action"] = "sts:AssumeRole", + /// ["Principal"] = new Dictionary<string, object?> + /// { + /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", + /// }, + /// ["Condition"] = new Dictionary<string, object?> + /// { + /// ["StringEquals"] = new Dictionary<string, object?> + /// { + /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", + /// }, + /// }, + /// }, + /// }, + /// }), /// }); /// /// var prod = new Doppler.Integration.AwsSecretsManager("prod", new() @@ -143,7 +143,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Integration/AzureDynamicServicePrincipal.cs b/sdk/dotnet/Integration/AzureDynamicServicePrincipal.cs new file mode 100644 index 0000000..593ebfb --- /dev/null +++ b/sdk/dotnet/Integration/AzureDynamicServicePrincipal.cs @@ -0,0 +1,196 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage an Azure Dynamic Service Principal Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = new Doppler.Integration.AzureDynamicServicePrincipal("prod", new() + /// { + /// Name = "Production", + /// TenantId = "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + /// ClientId = "77ed9112-b7f5-4d1d-a60f-198375e7f265", + /// ClientSecret = "kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal")] + public partial class AzureDynamicServicePrincipal : global::Pulumi.CustomResource + { + /// + /// The application (client) ID of the managing service principal + /// + [Output("clientId")] + public Output ClientId { get; private set; } = null!; + + /// + /// The client secret of the managing service principal + /// + [Output("clientSecret")] + public Output ClientSecret { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Output("tenantId")] + public Output TenantId { get; private set; } = null!; + + + /// + /// Create a AzureDynamicServicePrincipal resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AzureDynamicServicePrincipal(string name, AzureDynamicServicePrincipalArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal", name, args ?? new AzureDynamicServicePrincipalArgs(), MakeResourceOptions(options, "")) + { + } + + private AzureDynamicServicePrincipal(string name, Input id, AzureDynamicServicePrincipalState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "clientSecret", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AzureDynamicServicePrincipal resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AzureDynamicServicePrincipal Get(string name, Input id, AzureDynamicServicePrincipalState? state = null, CustomResourceOptions? options = null) + { + return new AzureDynamicServicePrincipal(name, id, state, options); + } + } + + public sealed class AzureDynamicServicePrincipalArgs : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId", required: true)] + public Input ClientId { get; set; } = null!; + + [Input("clientSecret", required: true)] + private Input? _clientSecret; + + /// + /// The client secret of the managing service principal + /// + public Input? ClientSecret + { + get => _clientSecret; + set + { + var emptySecret = Output.CreateSecret(0); + _clientSecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId", required: true)] + public Input TenantId { get; set; } = null!; + + public AzureDynamicServicePrincipalArgs() + { + } + public static new AzureDynamicServicePrincipalArgs Empty => new AzureDynamicServicePrincipalArgs(); + } + + public sealed class AzureDynamicServicePrincipalState : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId")] + public Input? ClientId { get; set; } + + [Input("clientSecret")] + private Input? _clientSecret; + + /// + /// The client secret of the managing service principal + /// + public Input? ClientSecret + { + get => _clientSecret; + set + { + var emptySecret = Output.CreateSecret(0); + _clientSecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + public AzureDynamicServicePrincipalState() + { + } + public static new AzureDynamicServicePrincipalState Empty => new AzureDynamicServicePrincipalState(); + } +} diff --git a/sdk/dotnet/Integration/AzureDynamicServicePrincipalOidc.cs b/sdk/dotnet/Integration/AzureDynamicServicePrincipalOidc.cs new file mode 100644 index 0000000..cba3f42 --- /dev/null +++ b/sdk/dotnet/Integration/AzureDynamicServicePrincipalOidc.cs @@ -0,0 +1,209 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage an Azure Dynamic Service Principal Doppler integration using workload identity federation. + /// + /// The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azuread = Pulumi.Azuread; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dopplerManager = Azuread.Application.Invoke(new() + /// { + /// ClientId = "77ed9112-b7f5-4d1d-a60f-198375e7f265", + /// }); + /// + /// var prod = new Doppler.Integration.AzureDynamicServicePrincipalOidc("prod", new() + /// { + /// Name = "Production", + /// TenantId = "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + /// ClientId = dopplerManager.ClientId, + /// }); + /// + /// var doppler = new Azuread.ApplicationFederatedIdentityCredential("doppler", new() + /// { + /// ApplicationId = dopplerManager.Id, + /// DisplayName = "doppler-production", + /// Issuer = prod.FederationIssuer, + /// Subject = prod.FederationSubject, + /// Audiences = new[] + /// { + /// prod.FederationAudience, + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc")] + public partial class AzureDynamicServicePrincipalOidc : global::Pulumi.CustomResource + { + /// + /// The application (client) ID of the managing service principal + /// + [Output("clientId")] + public Output ClientId { get; private set; } = null!; + + /// + /// The audience to configure on the federated identity credential + /// + [Output("federationAudience")] + public Output FederationAudience { get; private set; } = null!; + + /// + /// The issuer of the OIDC tokens Doppler issues for this integration + /// + [Output("federationIssuer")] + public Output FederationIssuer { get; private set; } = null!; + + /// + /// The subject of the OIDC tokens Doppler issues for this integration + /// + [Output("federationSubject")] + public Output FederationSubject { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Output("tenantId")] + public Output TenantId { get; private set; } = null!; + + + /// + /// Create a AzureDynamicServicePrincipalOidc resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AzureDynamicServicePrincipalOidc(string name, AzureDynamicServicePrincipalOidcArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc", name, args ?? new AzureDynamicServicePrincipalOidcArgs(), MakeResourceOptions(options, "")) + { + } + + private AzureDynamicServicePrincipalOidc(string name, Input id, AzureDynamicServicePrincipalOidcState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AzureDynamicServicePrincipalOidc resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AzureDynamicServicePrincipalOidc Get(string name, Input id, AzureDynamicServicePrincipalOidcState? state = null, CustomResourceOptions? options = null) + { + return new AzureDynamicServicePrincipalOidc(name, id, state, options); + } + } + + public sealed class AzureDynamicServicePrincipalOidcArgs : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId", required: true)] + public Input ClientId { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId", required: true)] + public Input TenantId { get; set; } = null!; + + public AzureDynamicServicePrincipalOidcArgs() + { + } + public static new AzureDynamicServicePrincipalOidcArgs Empty => new AzureDynamicServicePrincipalOidcArgs(); + } + + public sealed class AzureDynamicServicePrincipalOidcState : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId")] + public Input? ClientId { get; set; } + + /// + /// The audience to configure on the federated identity credential + /// + [Input("federationAudience")] + public Input? FederationAudience { get; set; } + + /// + /// The issuer of the OIDC tokens Doppler issues for this integration + /// + [Input("federationIssuer")] + public Input? FederationIssuer { get; set; } + + /// + /// The subject of the OIDC tokens Doppler issues for this integration + /// + [Input("federationSubject")] + public Input? FederationSubject { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + public AzureDynamicServicePrincipalOidcState() + { + } + public static new AzureDynamicServicePrincipalOidcState Empty => new AzureDynamicServicePrincipalOidcState(); + } +} diff --git a/sdk/dotnet/Integration/AzureRotatedServicePrincipal.cs b/sdk/dotnet/Integration/AzureRotatedServicePrincipal.cs new file mode 100644 index 0000000..53b4d34 --- /dev/null +++ b/sdk/dotnet/Integration/AzureRotatedServicePrincipal.cs @@ -0,0 +1,196 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage an Azure Rotated Service Principal Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = new Doppler.Integration.AzureRotatedServicePrincipal("prod", new() + /// { + /// Name = "Production", + /// TenantId = "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + /// ClientId = "77ed9112-b7f5-4d1d-a60f-198375e7f265", + /// ClientSecret = "kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal")] + public partial class AzureRotatedServicePrincipal : global::Pulumi.CustomResource + { + /// + /// The application (client) ID of the managing service principal + /// + [Output("clientId")] + public Output ClientId { get; private set; } = null!; + + /// + /// The client secret of the managing service principal + /// + [Output("clientSecret")] + public Output ClientSecret { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Output("tenantId")] + public Output TenantId { get; private set; } = null!; + + + /// + /// Create a AzureRotatedServicePrincipal resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AzureRotatedServicePrincipal(string name, AzureRotatedServicePrincipalArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal", name, args ?? new AzureRotatedServicePrincipalArgs(), MakeResourceOptions(options, "")) + { + } + + private AzureRotatedServicePrincipal(string name, Input id, AzureRotatedServicePrincipalState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "clientSecret", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AzureRotatedServicePrincipal resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AzureRotatedServicePrincipal Get(string name, Input id, AzureRotatedServicePrincipalState? state = null, CustomResourceOptions? options = null) + { + return new AzureRotatedServicePrincipal(name, id, state, options); + } + } + + public sealed class AzureRotatedServicePrincipalArgs : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId", required: true)] + public Input ClientId { get; set; } = null!; + + [Input("clientSecret", required: true)] + private Input? _clientSecret; + + /// + /// The client secret of the managing service principal + /// + public Input? ClientSecret + { + get => _clientSecret; + set + { + var emptySecret = Output.CreateSecret(0); + _clientSecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId", required: true)] + public Input TenantId { get; set; } = null!; + + public AzureRotatedServicePrincipalArgs() + { + } + public static new AzureRotatedServicePrincipalArgs Empty => new AzureRotatedServicePrincipalArgs(); + } + + public sealed class AzureRotatedServicePrincipalState : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId")] + public Input? ClientId { get; set; } + + [Input("clientSecret")] + private Input? _clientSecret; + + /// + /// The client secret of the managing service principal + /// + public Input? ClientSecret + { + get => _clientSecret; + set + { + var emptySecret = Output.CreateSecret(0); + _clientSecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + public AzureRotatedServicePrincipalState() + { + } + public static new AzureRotatedServicePrincipalState Empty => new AzureRotatedServicePrincipalState(); + } +} diff --git a/sdk/dotnet/Integration/AzureRotatedServicePrincipalOidc.cs b/sdk/dotnet/Integration/AzureRotatedServicePrincipalOidc.cs new file mode 100644 index 0000000..f95d22d --- /dev/null +++ b/sdk/dotnet/Integration/AzureRotatedServicePrincipalOidc.cs @@ -0,0 +1,209 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage an Azure Rotated Service Principal Doppler integration using workload identity federation. + /// + /// The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azuread = Pulumi.Azuread; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dopplerManager = Azuread.Application.Invoke(new() + /// { + /// ClientId = "77ed9112-b7f5-4d1d-a60f-198375e7f265", + /// }); + /// + /// var prod = new Doppler.Integration.AzureRotatedServicePrincipalOidc("prod", new() + /// { + /// Name = "Production", + /// TenantId = "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + /// ClientId = dopplerManager.ClientId, + /// }); + /// + /// var doppler = new Azuread.ApplicationFederatedIdentityCredential("doppler", new() + /// { + /// ApplicationId = dopplerManager.Id, + /// DisplayName = "doppler-production", + /// Issuer = prod.FederationIssuer, + /// Subject = prod.FederationSubject, + /// Audiences = new[] + /// { + /// prod.FederationAudience, + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc")] + public partial class AzureRotatedServicePrincipalOidc : global::Pulumi.CustomResource + { + /// + /// The application (client) ID of the managing service principal + /// + [Output("clientId")] + public Output ClientId { get; private set; } = null!; + + /// + /// The audience to configure on the federated identity credential + /// + [Output("federationAudience")] + public Output FederationAudience { get; private set; } = null!; + + /// + /// The issuer of the OIDC tokens Doppler issues for this integration + /// + [Output("federationIssuer")] + public Output FederationIssuer { get; private set; } = null!; + + /// + /// The subject of the OIDC tokens Doppler issues for this integration + /// + [Output("federationSubject")] + public Output FederationSubject { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Output("tenantId")] + public Output TenantId { get; private set; } = null!; + + + /// + /// Create a AzureRotatedServicePrincipalOidc resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AzureRotatedServicePrincipalOidc(string name, AzureRotatedServicePrincipalOidcArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc", name, args ?? new AzureRotatedServicePrincipalOidcArgs(), MakeResourceOptions(options, "")) + { + } + + private AzureRotatedServicePrincipalOidc(string name, Input id, AzureRotatedServicePrincipalOidcState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AzureRotatedServicePrincipalOidc resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AzureRotatedServicePrincipalOidc Get(string name, Input id, AzureRotatedServicePrincipalOidcState? state = null, CustomResourceOptions? options = null) + { + return new AzureRotatedServicePrincipalOidc(name, id, state, options); + } + } + + public sealed class AzureRotatedServicePrincipalOidcArgs : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId", required: true)] + public Input ClientId { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId", required: true)] + public Input TenantId { get; set; } = null!; + + public AzureRotatedServicePrincipalOidcArgs() + { + } + public static new AzureRotatedServicePrincipalOidcArgs Empty => new AzureRotatedServicePrincipalOidcArgs(); + } + + public sealed class AzureRotatedServicePrincipalOidcState : global::Pulumi.ResourceArgs + { + /// + /// The application (client) ID of the managing service principal + /// + [Input("clientId")] + public Input? ClientId { get; set; } + + /// + /// The audience to configure on the federated identity credential + /// + [Input("federationAudience")] + public Input? FederationAudience { get; set; } + + /// + /// The issuer of the OIDC tokens Doppler issues for this integration + /// + [Input("federationIssuer")] + public Input? FederationIssuer { get; set; } + + /// + /// The subject of the OIDC tokens Doppler issues for this integration + /// + [Input("federationSubject")] + public Input? FederationSubject { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The Azure directory (tenant) ID + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + public AzureRotatedServicePrincipalOidcState() + { + } + public static new AzureRotatedServicePrincipalOidcState Empty => new AzureRotatedServicePrincipalOidcState(); + } +} diff --git a/sdk/dotnet/Integration/AzureVaultServicePrincipal.cs b/sdk/dotnet/Integration/AzureVaultServicePrincipal.cs new file mode 100644 index 0000000..8ce6089 --- /dev/null +++ b/sdk/dotnet/Integration/AzureVaultServicePrincipal.cs @@ -0,0 +1,196 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage an Azure Vault (Service Principal) Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = new Doppler.Integration.AzureVaultServicePrincipal("prod", new() + /// { + /// Name = "prod", + /// ClientId = "77ed9112-b7f5-4d1d-a60f-198375e7f265", + /// ClientSecret = "kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + /// TenantId = "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal")] + public partial class AzureVaultServicePrincipal : global::Pulumi.CustomResource + { + /// + /// The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Output("clientId")] + public Output ClientId { get; private set; } = null!; + + /// + /// The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Output("clientSecret")] + public Output ClientSecret { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Output("tenantId")] + public Output TenantId { get; private set; } = null!; + + + /// + /// Create a AzureVaultServicePrincipal resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AzureVaultServicePrincipal(string name, AzureVaultServicePrincipalArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal", name, args ?? new AzureVaultServicePrincipalArgs(), MakeResourceOptions(options, "")) + { + } + + private AzureVaultServicePrincipal(string name, Input id, AzureVaultServicePrincipalState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "clientSecret", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AzureVaultServicePrincipal resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AzureVaultServicePrincipal Get(string name, Input id, AzureVaultServicePrincipalState? state = null, CustomResourceOptions? options = null) + { + return new AzureVaultServicePrincipal(name, id, state, options); + } + } + + public sealed class AzureVaultServicePrincipalArgs : global::Pulumi.ResourceArgs + { + /// + /// The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Input("clientId", required: true)] + public Input ClientId { get; set; } = null!; + + [Input("clientSecret", required: true)] + private Input? _clientSecret; + + /// + /// The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + public Input? ClientSecret + { + get => _clientSecret; + set + { + var emptySecret = Output.CreateSecret(0); + _clientSecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Input("tenantId", required: true)] + public Input TenantId { get; set; } = null!; + + public AzureVaultServicePrincipalArgs() + { + } + public static new AzureVaultServicePrincipalArgs Empty => new AzureVaultServicePrincipalArgs(); + } + + public sealed class AzureVaultServicePrincipalState : global::Pulumi.ResourceArgs + { + /// + /// The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Input("clientId")] + public Input? ClientId { get; set; } + + [Input("clientSecret")] + private Input? _clientSecret; + + /// + /// The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + public Input? ClientSecret + { + get => _clientSecret; + set + { + var emptySecret = Output.CreateSecret(0); + _clientSecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + /// + [Input("tenantId")] + public Input? TenantId { get; set; } + + public AzureVaultServicePrincipalState() + { + } + public static new AzureVaultServicePrincipalState Empty => new AzureVaultServicePrincipalState(); + } +} diff --git a/sdk/dotnet/Integration/Circleci.cs b/sdk/dotnet/Integration/Circleci.cs index 99bdeb7..a004734 100644 --- a/sdk/dotnet/Integration/Circleci.cs +++ b/sdk/dotnet/Integration/Circleci.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Integration +namespace DopplerHQ.Doppler.Integration { /// /// Manage a CircleCI Doppler integration. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler.Integration /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -81,7 +81,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "apiToken", diff --git a/sdk/dotnet/Integration/CloudflareTokens.cs b/sdk/dotnet/Integration/CloudflareTokens.cs new file mode 100644 index 0000000..4e071bc --- /dev/null +++ b/sdk/dotnet/Integration/CloudflareTokens.cs @@ -0,0 +1,187 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a Cloudflare Tokens Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var key1 = config.Get("key1") ?? ""; + /// var key2 = config.Get("key2") ?? ""; + /// var iCf = new Doppler.Integration.CloudflareTokens("i_cf", new() + /// { + /// Name = "TF Cloudflare", + /// ApiToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", + /// }); + /// + /// var rsCf = new Doppler.RotatedSecret.CloudflareTokens("rs_cf", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.CloudflareTokensCredentialArgs + /// { + /// Value = key1, + /// }, + /// new Doppler.RotatedSecret.Inputs.CloudflareTokensCredentialArgs + /// { + /// Value = key2, + /// }, + /// }, + /// Integration = iCf.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "CLOUDFLARE", + /// RotationPeriodSec = 2592000, + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/cloudflareTokens:CloudflareTokens")] + public partial class CloudflareTokens : global::Pulumi.CustomResource + { + /// + /// The API Token + /// + [Output("apiToken")] + public Output ApiToken { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a CloudflareTokens resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public CloudflareTokens(string name, CloudflareTokensArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/cloudflareTokens:CloudflareTokens", name, args ?? new CloudflareTokensArgs(), MakeResourceOptions(options, "")) + { + } + + private CloudflareTokens(string name, Input id, CloudflareTokensState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/cloudflareTokens:CloudflareTokens", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "apiToken", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing CloudflareTokens resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static CloudflareTokens Get(string name, Input id, CloudflareTokensState? state = null, CustomResourceOptions? options = null) + { + return new CloudflareTokens(name, id, state, options); + } + } + + public sealed class CloudflareTokensArgs : global::Pulumi.ResourceArgs + { + [Input("apiToken", required: true)] + private Input? _apiToken; + + /// + /// The API Token + /// + public Input? ApiToken + { + get => _apiToken; + set + { + var emptySecret = Output.CreateSecret(0); + _apiToken = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public CloudflareTokensArgs() + { + } + public static new CloudflareTokensArgs Empty => new CloudflareTokensArgs(); + } + + public sealed class CloudflareTokensState : global::Pulumi.ResourceArgs + { + [Input("apiToken")] + private Input? _apiToken; + + /// + /// The API Token + /// + public Input? ApiToken + { + get => _apiToken; + set + { + var emptySecret = Output.CreateSecret(0); + _apiToken = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public CloudflareTokensState() + { + } + public static new CloudflareTokensState Empty => new CloudflareTokensState(); + } +} diff --git a/sdk/dotnet/Integration/ExternalId.cs b/sdk/dotnet/Integration/ExternalId.cs new file mode 100644 index 0000000..b44c525 --- /dev/null +++ b/sdk/dotnet/Integration/ExternalId.cs @@ -0,0 +1,94 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + [DopplerResourceType("doppler:integration/externalId:ExternalId")] + public partial class ExternalId : global::Pulumi.CustomResource + { + /// + /// The integration type for the external id + /// + [Output("integrationType")] + public Output IntegrationType { get; private set; } = null!; + + + /// + /// Create a ExternalId resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public ExternalId(string name, ExternalIdArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/externalId:ExternalId", name, args ?? new ExternalIdArgs(), MakeResourceOptions(options, "")) + { + } + + private ExternalId(string name, Input id, ExternalIdState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/externalId:ExternalId", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing ExternalId resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static ExternalId Get(string name, Input id, ExternalIdState? state = null, CustomResourceOptions? options = null) + { + return new ExternalId(name, id, state, options); + } + } + + public sealed class ExternalIdArgs : global::Pulumi.ResourceArgs + { + /// + /// The integration type for the external id + /// + [Input("integrationType", required: true)] + public Input IntegrationType { get; set; } = null!; + + public ExternalIdArgs() + { + } + public static new ExternalIdArgs Empty => new ExternalIdArgs(); + } + + public sealed class ExternalIdState : global::Pulumi.ResourceArgs + { + /// + /// The integration type for the external id + /// + [Input("integrationType")] + public Input? IntegrationType { get; set; } + + public ExternalIdState() + { + } + public static new ExternalIdState Empty => new ExternalIdState(); + } +} diff --git a/sdk/dotnet/Integration/Flyio.cs b/sdk/dotnet/Integration/Flyio.cs index 1e31db4..646e11d 100644 --- a/sdk/dotnet/Integration/Flyio.cs +++ b/sdk/dotnet/Integration/Flyio.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Integration +namespace DopplerHQ.Doppler.Integration { /// /// Manage a Fly.io Doppler integration. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler.Integration /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -80,7 +80,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "apiKey", diff --git a/sdk/dotnet/Integration/GcpCloudsqlMysql.cs b/sdk/dotnet/Integration/GcpCloudsqlMysql.cs new file mode 100644 index 0000000..eb6d0ba --- /dev/null +++ b/sdk/dotnet/Integration/GcpCloudsqlMysql.cs @@ -0,0 +1,201 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP CloudSQL MySQL Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var gcpKey = config.Get("gcpKey") ?? @"{ + /// ""type"": ""service_account"", + /// ""project_id"": ""xxxxxxxxxxxxxxxxx"", + /// ""private_key_id"": ""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"", + /// ""private_key"": ""-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----"", + /// ""client_email"": ""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"", + /// ""client_id"": ""xxxxxxxxxxxxxxxxxxxxx"" + /// } + /// "; + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iGcpMysql = new Doppler.Integration.GcpCloudsqlMysql("i_gcp_mysql", new() + /// { + /// Name = "TF GCP MySQL", + /// GcpKey = gcpKey, + /// }); + /// + /// var rsGcpMysql = new Doppler.RotatedSecret.GcpCloudsql("rs_gcp_mysql", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxxx", + /// UserHostName = "%", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxxx", + /// UserHostName = "%", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iGcpMysql.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "DB", + /// RotationPeriodSec = 2592000, + /// DatabaseInstance = "xxxxxxxxxxxx", + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql")] + public partial class GcpCloudsqlMysql : global::Pulumi.CustomResource + { + /// + /// The GCP service account key + /// + [Output("gcpKey")] + public Output GcpKey { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpCloudsqlMysql resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsqlMysql(string name, GcpCloudsqlMysqlArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql", name, args ?? new GcpCloudsqlMysqlArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsqlMysql(string name, Input id, GcpCloudsqlMysqlState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "gcpKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsqlMysql resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsqlMysql Get(string name, Input id, GcpCloudsqlMysqlState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsqlMysql(name, id, state, options); + } + } + + public sealed class GcpCloudsqlMysqlArgs : global::Pulumi.ResourceArgs + { + [Input("gcpKey", required: true)] + private Input? _gcpKey; + + /// + /// The GCP service account key + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpCloudsqlMysqlArgs() + { + } + public static new GcpCloudsqlMysqlArgs Empty => new GcpCloudsqlMysqlArgs(); + } + + public sealed class GcpCloudsqlMysqlState : global::Pulumi.ResourceArgs + { + [Input("gcpKey")] + private Input? _gcpKey; + + /// + /// The GCP service account key + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpCloudsqlMysqlState() + { + } + public static new GcpCloudsqlMysqlState Empty => new GcpCloudsqlMysqlState(); + } +} diff --git a/sdk/dotnet/Integration/GcpCloudsqlMysqlOidc.cs b/sdk/dotnet/Integration/GcpCloudsqlMysqlOidc.cs new file mode 100644 index 0000000..dc90956 --- /dev/null +++ b/sdk/dotnet/Integration/GcpCloudsqlMysqlOidc.cs @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP CloudSQL MySQL Doppler integration using workload identity federation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Google = Pulumi.Google; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = new Doppler.Integration.GcpCloudsqlMysqlOidc("prod", new() + /// { + /// Name = "Production", + /// GcpWorkloadIdentityProvider = "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + /// GcpProjectId = "your-gcp-project-id", + /// }); + /// + /// var doppler = new Google.ProjectIamMember("doppler", new() + /// { + /// Project = "your-gcp-project-id", + /// Role = "roles/cloudsql.admin", + /// Member = prod.FederationPrincipal, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc")] + public partial class GcpCloudsqlMysqlOidc : global::Pulumi.CustomResource + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Output("federationPrincipal")] + public Output FederationPrincipal { get; private set; } = null!; + + /// + /// The ID of the GCP project the integration operates on + /// + [Output("gcpProjectId")] + public Output GcpProjectId { get; private set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Output("gcpWorkloadIdentityProvider")] + public Output GcpWorkloadIdentityProvider { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpCloudsqlMysqlOidc resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsqlMysqlOidc(string name, GcpCloudsqlMysqlOidcArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc", name, args ?? new GcpCloudsqlMysqlOidcArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsqlMysqlOidc(string name, Input id, GcpCloudsqlMysqlOidcState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsqlMysqlOidc resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsqlMysqlOidc Get(string name, Input id, GcpCloudsqlMysqlOidcState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsqlMysqlOidc(name, id, state, options); + } + } + + public sealed class GcpCloudsqlMysqlOidcArgs : global::Pulumi.ResourceArgs + { + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId", required: true)] + public Input GcpProjectId { get; set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider", required: true)] + public Input GcpWorkloadIdentityProvider { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpCloudsqlMysqlOidcArgs() + { + } + public static new GcpCloudsqlMysqlOidcArgs Empty => new GcpCloudsqlMysqlOidcArgs(); + } + + public sealed class GcpCloudsqlMysqlOidcState : global::Pulumi.ResourceArgs + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Input("federationPrincipal")] + public Input? FederationPrincipal { get; set; } + + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId")] + public Input? GcpProjectId { get; set; } + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider")] + public Input? GcpWorkloadIdentityProvider { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpCloudsqlMysqlOidcState() + { + } + public static new GcpCloudsqlMysqlOidcState Empty => new GcpCloudsqlMysqlOidcState(); + } +} diff --git a/sdk/dotnet/Integration/GcpCloudsqlPostgres.cs b/sdk/dotnet/Integration/GcpCloudsqlPostgres.cs new file mode 100644 index 0000000..c5dd4ec --- /dev/null +++ b/sdk/dotnet/Integration/GcpCloudsqlPostgres.cs @@ -0,0 +1,201 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP CloudSQL Postgres Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var gcpKey = config.Get("gcpKey") ?? @"{ + /// ""type"": ""service_account"", + /// ""project_id"": ""xxxxxxxxxxxxxxxxx"", + /// ""private_key_id"": ""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"", + /// ""private_key"": ""-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----"", + /// ""client_email"": ""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"", + /// ""client_id"": ""xxxxxxxxxxxxxxxxxxxxx"" + /// } + /// "; + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iGcpMysql = new Doppler.Integration.GcpCloudsqlMysql("i_gcp_mysql", new() + /// { + /// Name = "TF GCP MySQL", + /// GcpKey = gcpKey, + /// }); + /// + /// var rsGcpMysql = new Doppler.RotatedSecret.GcpCloudsql("rs_gcp_mysql", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxxx", + /// UserHostName = "%", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxxx", + /// UserHostName = "%", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iGcpMysql.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "DB", + /// RotationPeriodSec = 2592000, + /// DatabaseInstance = "xxxxxxxxxxxx", + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres")] + public partial class GcpCloudsqlPostgres : global::Pulumi.CustomResource + { + /// + /// The GCP service account key + /// + [Output("gcpKey")] + public Output GcpKey { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpCloudsqlPostgres resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsqlPostgres(string name, GcpCloudsqlPostgresArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres", name, args ?? new GcpCloudsqlPostgresArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsqlPostgres(string name, Input id, GcpCloudsqlPostgresState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "gcpKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsqlPostgres resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsqlPostgres Get(string name, Input id, GcpCloudsqlPostgresState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsqlPostgres(name, id, state, options); + } + } + + public sealed class GcpCloudsqlPostgresArgs : global::Pulumi.ResourceArgs + { + [Input("gcpKey", required: true)] + private Input? _gcpKey; + + /// + /// The GCP service account key + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpCloudsqlPostgresArgs() + { + } + public static new GcpCloudsqlPostgresArgs Empty => new GcpCloudsqlPostgresArgs(); + } + + public sealed class GcpCloudsqlPostgresState : global::Pulumi.ResourceArgs + { + [Input("gcpKey")] + private Input? _gcpKey; + + /// + /// The GCP service account key + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpCloudsqlPostgresState() + { + } + public static new GcpCloudsqlPostgresState Empty => new GcpCloudsqlPostgresState(); + } +} diff --git a/sdk/dotnet/Integration/GcpCloudsqlPostgresOidc.cs b/sdk/dotnet/Integration/GcpCloudsqlPostgresOidc.cs new file mode 100644 index 0000000..448e7e6 --- /dev/null +++ b/sdk/dotnet/Integration/GcpCloudsqlPostgresOidc.cs @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP CloudSQL Postgres Doppler integration using workload identity federation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Google = Pulumi.Google; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = new Doppler.Integration.GcpCloudsqlPostgresOidc("prod", new() + /// { + /// Name = "Production", + /// GcpWorkloadIdentityProvider = "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + /// GcpProjectId = "your-gcp-project-id", + /// }); + /// + /// var doppler = new Google.ProjectIamMember("doppler", new() + /// { + /// Project = "your-gcp-project-id", + /// Role = "roles/cloudsql.admin", + /// Member = prod.FederationPrincipal, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc")] + public partial class GcpCloudsqlPostgresOidc : global::Pulumi.CustomResource + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Output("federationPrincipal")] + public Output FederationPrincipal { get; private set; } = null!; + + /// + /// The ID of the GCP project the integration operates on + /// + [Output("gcpProjectId")] + public Output GcpProjectId { get; private set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Output("gcpWorkloadIdentityProvider")] + public Output GcpWorkloadIdentityProvider { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpCloudsqlPostgresOidc resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsqlPostgresOidc(string name, GcpCloudsqlPostgresOidcArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc", name, args ?? new GcpCloudsqlPostgresOidcArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsqlPostgresOidc(string name, Input id, GcpCloudsqlPostgresOidcState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsqlPostgresOidc resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsqlPostgresOidc Get(string name, Input id, GcpCloudsqlPostgresOidcState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsqlPostgresOidc(name, id, state, options); + } + } + + public sealed class GcpCloudsqlPostgresOidcArgs : global::Pulumi.ResourceArgs + { + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId", required: true)] + public Input GcpProjectId { get; set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider", required: true)] + public Input GcpWorkloadIdentityProvider { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpCloudsqlPostgresOidcArgs() + { + } + public static new GcpCloudsqlPostgresOidcArgs Empty => new GcpCloudsqlPostgresOidcArgs(); + } + + public sealed class GcpCloudsqlPostgresOidcState : global::Pulumi.ResourceArgs + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Input("federationPrincipal")] + public Input? FederationPrincipal { get; set; } + + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId")] + public Input? GcpProjectId { get; set; } + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider")] + public Input? GcpWorkloadIdentityProvider { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpCloudsqlPostgresOidcState() + { + } + public static new GcpCloudsqlPostgresOidcState Empty => new GcpCloudsqlPostgresOidcState(); + } +} diff --git a/sdk/dotnet/Integration/GcpCloudsqlSqlserver.cs b/sdk/dotnet/Integration/GcpCloudsqlSqlserver.cs new file mode 100644 index 0000000..b3f93ce --- /dev/null +++ b/sdk/dotnet/Integration/GcpCloudsqlSqlserver.cs @@ -0,0 +1,201 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP CloudSQL SQL Server Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var gcpKey = config.Get("gcpKey") ?? @"{ + /// ""type"": ""service_account"", + /// ""project_id"": ""xxxxxxxxxxxxxxxxx"", + /// ""private_key_id"": ""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"", + /// ""private_key"": ""-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----"", + /// ""client_email"": ""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"", + /// ""client_id"": ""xxxxxxxxxxxxxxxxxxxxx"" + /// } + /// "; + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iGcpMysql = new Doppler.Integration.GcpCloudsqlMysql("i_gcp_mysql", new() + /// { + /// Name = "TF GCP MySQL", + /// GcpKey = gcpKey, + /// }); + /// + /// var rsGcpMysql = new Doppler.RotatedSecret.GcpCloudsql("rs_gcp_mysql", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxxx", + /// UserHostName = "%", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.GcpCloudsqlCredentialArgs + /// { + /// Username = "xxxxxxxxxxxx", + /// UserHostName = "%", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iGcpMysql.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "DB", + /// RotationPeriodSec = 2592000, + /// DatabaseInstance = "xxxxxxxxxxxx", + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver")] + public partial class GcpCloudsqlSqlserver : global::Pulumi.CustomResource + { + /// + /// The GCP service account key + /// + [Output("gcpKey")] + public Output GcpKey { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpCloudsqlSqlserver resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsqlSqlserver(string name, GcpCloudsqlSqlserverArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver", name, args ?? new GcpCloudsqlSqlserverArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsqlSqlserver(string name, Input id, GcpCloudsqlSqlserverState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "gcpKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsqlSqlserver resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsqlSqlserver Get(string name, Input id, GcpCloudsqlSqlserverState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsqlSqlserver(name, id, state, options); + } + } + + public sealed class GcpCloudsqlSqlserverArgs : global::Pulumi.ResourceArgs + { + [Input("gcpKey", required: true)] + private Input? _gcpKey; + + /// + /// The GCP service account key + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpCloudsqlSqlserverArgs() + { + } + public static new GcpCloudsqlSqlserverArgs Empty => new GcpCloudsqlSqlserverArgs(); + } + + public sealed class GcpCloudsqlSqlserverState : global::Pulumi.ResourceArgs + { + [Input("gcpKey")] + private Input? _gcpKey; + + /// + /// The GCP service account key + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpCloudsqlSqlserverState() + { + } + public static new GcpCloudsqlSqlserverState Empty => new GcpCloudsqlSqlserverState(); + } +} diff --git a/sdk/dotnet/Integration/GcpCloudsqlSqlserverOidc.cs b/sdk/dotnet/Integration/GcpCloudsqlSqlserverOidc.cs new file mode 100644 index 0000000..80c4da2 --- /dev/null +++ b/sdk/dotnet/Integration/GcpCloudsqlSqlserverOidc.cs @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP CloudSQL SQL Server Doppler integration using workload identity federation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Google = Pulumi.Google; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = new Doppler.Integration.GcpCloudsqlSqlserverOidc("prod", new() + /// { + /// Name = "Production", + /// GcpWorkloadIdentityProvider = "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + /// GcpProjectId = "your-gcp-project-id", + /// }); + /// + /// var doppler = new Google.ProjectIamMember("doppler", new() + /// { + /// Project = "your-gcp-project-id", + /// Role = "roles/cloudsql.admin", + /// Member = prod.FederationPrincipal, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc")] + public partial class GcpCloudsqlSqlserverOidc : global::Pulumi.CustomResource + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Output("federationPrincipal")] + public Output FederationPrincipal { get; private set; } = null!; + + /// + /// The ID of the GCP project the integration operates on + /// + [Output("gcpProjectId")] + public Output GcpProjectId { get; private set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Output("gcpWorkloadIdentityProvider")] + public Output GcpWorkloadIdentityProvider { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpCloudsqlSqlserverOidc resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsqlSqlserverOidc(string name, GcpCloudsqlSqlserverOidcArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc", name, args ?? new GcpCloudsqlSqlserverOidcArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsqlSqlserverOidc(string name, Input id, GcpCloudsqlSqlserverOidcState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsqlSqlserverOidc resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsqlSqlserverOidc Get(string name, Input id, GcpCloudsqlSqlserverOidcState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsqlSqlserverOidc(name, id, state, options); + } + } + + public sealed class GcpCloudsqlSqlserverOidcArgs : global::Pulumi.ResourceArgs + { + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId", required: true)] + public Input GcpProjectId { get; set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider", required: true)] + public Input GcpWorkloadIdentityProvider { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpCloudsqlSqlserverOidcArgs() + { + } + public static new GcpCloudsqlSqlserverOidcArgs Empty => new GcpCloudsqlSqlserverOidcArgs(); + } + + public sealed class GcpCloudsqlSqlserverOidcState : global::Pulumi.ResourceArgs + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Input("federationPrincipal")] + public Input? FederationPrincipal { get; set; } + + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId")] + public Input? GcpProjectId { get; set; } + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider")] + public Input? GcpWorkloadIdentityProvider { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpCloudsqlSqlserverOidcState() + { + } + public static new GcpCloudsqlSqlserverOidcState Empty => new GcpCloudsqlSqlserverOidcState(); + } +} diff --git a/sdk/dotnet/Integration/GcpSecretManager.cs b/sdk/dotnet/Integration/GcpSecretManager.cs new file mode 100644 index 0000000..5f03c8e --- /dev/null +++ b/sdk/dotnet/Integration/GcpSecretManager.cs @@ -0,0 +1,192 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP Secret Manager Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var gcpKey = config.Get("gcpKey") ?? @"{ + /// ""type"": ""service_account"", + /// ""project_id"": ""your-gcp-project-id"", + /// ""private_key_id"": ""..."", + /// ""private_key"": ""-----BEGIN PRIVATE KEY-----\n ... \n-----END PRIVATE KEY-----\n"", + /// ""client_email"": ""doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com"", + /// ""client_id"": ""12345678901234567890"", + /// ""auth_uri"": ""https://accounts.google.com/o/oauth2/auth"", + /// ""token_uri"": ""https://oauth2.googleapis.com/token"", + /// ""auth_provider_x509_cert_url"": ""https://www.googleapis.com/oauth2/v1/certs"", + /// ""client_x509_cert_url"": ""https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com"", + /// ""universe_domain"": ""googleapis.com"" + /// } + /// "; + /// var prod = new Doppler.Integration.GcpSecretManager("prod", new() + /// { + /// Name = "prod", + /// GcpKey = gcpKey, + /// GcpSecretPrefix = "doppler-", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpSecretManager:GcpSecretManager")] + public partial class GcpSecretManager : global::Pulumi.CustomResource + { + /// + /// The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + /// + [Output("gcpKey")] + public Output GcpKey { get; private set; } = null!; + + /// + /// The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + /// + [Output("gcpSecretPrefix")] + public Output GcpSecretPrefix { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpSecretManager resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpSecretManager(string name, GcpSecretManagerArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpSecretManager:GcpSecretManager", name, args ?? new GcpSecretManagerArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpSecretManager(string name, Input id, GcpSecretManagerState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpSecretManager:GcpSecretManager", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "gcpKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpSecretManager resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpSecretManager Get(string name, Input id, GcpSecretManagerState? state = null, CustomResourceOptions? options = null) + { + return new GcpSecretManager(name, id, state, options); + } + } + + public sealed class GcpSecretManagerArgs : global::Pulumi.ResourceArgs + { + [Input("gcpKey", required: true)] + private Input? _gcpKey; + + /// + /// The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + /// + [Input("gcpSecretPrefix", required: true)] + public Input GcpSecretPrefix { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpSecretManagerArgs() + { + } + public static new GcpSecretManagerArgs Empty => new GcpSecretManagerArgs(); + } + + public sealed class GcpSecretManagerState : global::Pulumi.ResourceArgs + { + [Input("gcpKey")] + private Input? _gcpKey; + + /// + /// The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + /// + public Input? GcpKey + { + get => _gcpKey; + set + { + var emptySecret = Output.CreateSecret(0); + _gcpKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + /// + [Input("gcpSecretPrefix")] + public Input? GcpSecretPrefix { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpSecretManagerState() + { + } + public static new GcpSecretManagerState Empty => new GcpSecretManagerState(); + } +} diff --git a/sdk/dotnet/Integration/GcpSecretManagerOidc.cs b/sdk/dotnet/Integration/GcpSecretManagerOidc.cs new file mode 100644 index 0000000..b2ee06b --- /dev/null +++ b/sdk/dotnet/Integration/GcpSecretManagerOidc.cs @@ -0,0 +1,223 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP Secret Manager Doppler integration using workload identity federation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Google = Pulumi.Google; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var doppler = new Google.IamWorkloadIdentityPool("doppler", new() + /// { + /// WorkloadIdentityPoolId = "doppler-pool", + /// }); + /// + /// var dopplerIamWorkloadIdentityPoolProvider = new Google.IamWorkloadIdentityPoolProvider("doppler", new() + /// { + /// Oidc = new[] + /// { + /// + /// { + /// { "issuerUri", "https://api.doppler.com" }, + /// }, + /// }, + /// WorkloadIdentityPoolId = doppler.WorkloadIdentityPoolId, + /// WorkloadIdentityPoolProviderId = "doppler", + /// AttributeMapping = + /// { + /// { "google.subject", "assertion.sub" }, + /// }, + /// AttributeCondition = "assertion.workplace == '<YOUR_WORKPLACE_SLUG>'", + /// }); + /// + /// var prod = new Doppler.Integration.GcpSecretManagerOidc("prod", new() + /// { + /// Name = "Production", + /// GcpWorkloadIdentityProvider = $"//iam.googleapis.com/{dopplerIamWorkloadIdentityPoolProvider.Name}", + /// GcpProjectId = "your-gcp-project-id", + /// GcpSecretPrefix = "doppler-", + /// }); + /// + /// var dopplerProjectIamMember = new Google.ProjectIamMember("doppler", new() + /// { + /// Condition = new[] + /// { + /// + /// { + /// { "title", "doppler-prefix-only" }, + /// { "expression", "resource.name.startsWith(\"projects/<YOUR_PROJECT_NUMBER>/secrets/doppler-\")" }, + /// }, + /// }, + /// Project = "your-gcp-project-id", + /// Role = "roles/secretmanager.admin", + /// Member = prod.FederationPrincipal, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc")] + public partial class GcpSecretManagerOidc : global::Pulumi.CustomResource + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Output("federationPrincipal")] + public Output FederationPrincipal { get; private set; } = null!; + + /// + /// The ID of the GCP project the integration operates on + /// + [Output("gcpProjectId")] + public Output GcpProjectId { get; private set; } = null!; + + /// + /// The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + /// + [Output("gcpSecretPrefix")] + public Output GcpSecretPrefix { get; private set; } = null!; + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Output("gcpWorkloadIdentityProvider")] + public Output GcpWorkloadIdentityProvider { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpSecretManagerOidc resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpSecretManagerOidc(string name, GcpSecretManagerOidcArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc", name, args ?? new GcpSecretManagerOidcArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpSecretManagerOidc(string name, Input id, GcpSecretManagerOidcState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpSecretManagerOidc resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpSecretManagerOidc Get(string name, Input id, GcpSecretManagerOidcState? state = null, CustomResourceOptions? options = null) + { + return new GcpSecretManagerOidc(name, id, state, options); + } + } + + public sealed class GcpSecretManagerOidcArgs : global::Pulumi.ResourceArgs + { + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId", required: true)] + public Input GcpProjectId { get; set; } = null!; + + /// + /// The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + /// + [Input("gcpSecretPrefix")] + public Input? GcpSecretPrefix { get; set; } + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider", required: true)] + public Input GcpWorkloadIdentityProvider { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpSecretManagerOidcArgs() + { + } + public static new GcpSecretManagerOidcArgs Empty => new GcpSecretManagerOidcArgs(); + } + + public sealed class GcpSecretManagerOidcState : global::Pulumi.ResourceArgs + { + /// + /// The IAM principal identifier to grant roles to in GCP for this integration + /// + [Input("federationPrincipal")] + public Input? FederationPrincipal { get; set; } + + /// + /// The ID of the GCP project the integration operates on + /// + [Input("gcpProjectId")] + public Input? GcpProjectId { get; set; } + + /// + /// The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + /// + [Input("gcpSecretPrefix")] + public Input? GcpSecretPrefix { get; set; } + + /// + /// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + /// + [Input("gcpWorkloadIdentityProvider")] + public Input? GcpWorkloadIdentityProvider { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpSecretManagerOidcState() + { + } + public static new GcpSecretManagerOidcState Empty => new GcpSecretManagerOidcState(); + } +} diff --git a/sdk/dotnet/Integration/GcpServiceAccountKeys.cs b/sdk/dotnet/Integration/GcpServiceAccountKeys.cs new file mode 100644 index 0000000..698684c --- /dev/null +++ b/sdk/dotnet/Integration/GcpServiceAccountKeys.cs @@ -0,0 +1,241 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a GCP Service Account Keys Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Google = Pulumi.Google; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var iGcpSakExtid = new Doppler.Integration.ExternalId("i_gcp_sak_extid", new() + /// { + /// IntegrationType = "gcp_service_account_keys", + /// }); + /// + /// var gcpsaDopplerImpersonate = new Google.ServiceAccount("gcpsa_doppler_impersonate", new() + /// { + /// AccountId = "xxxxxxxxxxx", + /// Description = Std.Format.Invoke(new() + /// { + /// Input = "doppler_impersonate:%s", + /// Args = new[] + /// { + /// iGcpSakExtid.Id, + /// }, + /// }).Result, + /// DisplayName = "xxxxxxxxxx", + /// }); + /// + /// var dopplerRotationImpersonatePolicy = Google.IamPolicy.Invoke(new() + /// { + /// Binding = new[] + /// { + /// + /// { + /// { "role", "roles/iam.serviceAccountViewer" }, + /// { "members", new[] + /// { + /// gcpsaDopplerImpersonate.Member, + /// "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", + /// } }, + /// }, + /// + /// { + /// { "role", "roles/iam.serviceAccountTokenCreator" }, + /// { "members", new[] + /// { + /// "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", + /// } }, + /// }, + /// }, + /// }); + /// + /// var gcpPolicyImpersonate = new Google.ServiceAccountIamPolicy("gcp_policy_impersonate", new() + /// { + /// ServiceAccountId = gcpsaDopplerImpersonate.Name, + /// PolicyData = dopplerRotationImpersonatePolicy.PolicyData, + /// }); + /// + /// var gcpsaRotated = new Google.ServiceAccount("gcpsa_rotated", new() + /// { + /// AccountId = "xxxxxxxxxxxxxxxxxx", + /// DisplayName = "xxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var dopplerRotatedUserPolicy = Google.IamPolicy.Invoke(new() + /// { + /// Binding = new[] + /// { + /// + /// { + /// { "role", "roles/iam.serviceAccountKeyAdmin" }, + /// { "members", new[] + /// { + /// gcpsaDopplerImpersonate.Member, + /// } }, + /// }, + /// }, + /// }); + /// + /// var gcpPolicyRotated = new Google.ServiceAccountIamPolicy("gcp_policy_rotated", new() + /// { + /// ServiceAccountId = gcpsaRotated.Name, + /// PolicyData = dopplerRotatedUserPolicy.PolicyData, + /// }); + /// + /// var iGcpSak = new Doppler.Integration.GcpServiceAccountKeys("i_gcp_sak", new() + /// { + /// Name = "TF GCP Service Account Keys", + /// ImpersonatedServiceAccount = gcpsaDopplerImpersonate.Email, + /// ExternalId = iGcpSakExtid.Id, + /// }); + /// + /// var rsGcpsak = new Doppler.RotatedSecret.GcpServiceAccountKeys("rs_gcpsak", new() + /// { + /// Integration = iGcpSak.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "GCP_SERVICE_ACCOUNT", + /// RotationPeriodSec = 2592000, + /// ServiceAccount = gcpsaRotated.Email, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys")] + public partial class GcpServiceAccountKeys : global::Pulumi.CustomResource + { + /// + /// The Doppler-generated external id (placed in the service account description field) + /// + [Output("externalId")] + public Output ExternalId { get; private set; } = null!; + + /// + /// The service account email of the account to be impersonated + /// + [Output("impersonatedServiceAccount")] + public Output ImpersonatedServiceAccount { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a GcpServiceAccountKeys resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpServiceAccountKeys(string name, GcpServiceAccountKeysArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys", name, args ?? new GcpServiceAccountKeysArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpServiceAccountKeys(string name, Input id, GcpServiceAccountKeysState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpServiceAccountKeys resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpServiceAccountKeys Get(string name, Input id, GcpServiceAccountKeysState? state = null, CustomResourceOptions? options = null) + { + return new GcpServiceAccountKeys(name, id, state, options); + } + } + + public sealed class GcpServiceAccountKeysArgs : global::Pulumi.ResourceArgs + { + /// + /// The Doppler-generated external id (placed in the service account description field) + /// + [Input("externalId", required: true)] + public Input ExternalId { get; set; } = null!; + + /// + /// The service account email of the account to be impersonated + /// + [Input("impersonatedServiceAccount", required: true)] + public Input ImpersonatedServiceAccount { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GcpServiceAccountKeysArgs() + { + } + public static new GcpServiceAccountKeysArgs Empty => new GcpServiceAccountKeysArgs(); + } + + public sealed class GcpServiceAccountKeysState : global::Pulumi.ResourceArgs + { + /// + /// The Doppler-generated external id (placed in the service account description field) + /// + [Input("externalId")] + public Input? ExternalId { get; set; } + + /// + /// The service account email of the account to be impersonated + /// + [Input("impersonatedServiceAccount")] + public Input? ImpersonatedServiceAccount { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public GcpServiceAccountKeysState() + { + } + public static new GcpServiceAccountKeysState Empty => new GcpServiceAccountKeysState(); + } +} diff --git a/sdk/dotnet/Integration/MemberGroup.cs b/sdk/dotnet/Integration/MemberGroup.cs new file mode 100644 index 0000000..520d51d --- /dev/null +++ b/sdk/dotnet/Integration/MemberGroup.cs @@ -0,0 +1,153 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a Doppler integration group member. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var awsEngineering = new Doppler.Integration.MemberGroup("aws_engineering", new() + /// { + /// Integration = prod.Slug, + /// GroupSlug = engineering.Slug, + /// Role = "consumer", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/memberGroup:MemberGroup")] + public partial class MemberGroup : global::Pulumi.CustomResource + { + /// + /// The slug of the Doppler group + /// + [Output("groupSlug")] + public Output GroupSlug { get; private set; } = null!; + + /// + /// The slug of the Doppler integration where the access is applied + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Output("role")] + public Output Role { get; private set; } = null!; + + + /// + /// Create a MemberGroup resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public MemberGroup(string name, MemberGroupArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/memberGroup:MemberGroup", name, args ?? new MemberGroupArgs(), MakeResourceOptions(options, "")) + { + } + + private MemberGroup(string name, Input id, MemberGroupState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/memberGroup:MemberGroup", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing MemberGroup resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static MemberGroup Get(string name, Input id, MemberGroupState? state = null, CustomResourceOptions? options = null) + { + return new MemberGroup(name, id, state, options); + } + } + + public sealed class MemberGroupArgs : global::Pulumi.ResourceArgs + { + /// + /// The slug of the Doppler group + /// + [Input("groupSlug", required: true)] + public Input GroupSlug { get; set; } = null!; + + /// + /// The slug of the Doppler integration where the access is applied + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Input("role", required: true)] + public Input Role { get; set; } = null!; + + public MemberGroupArgs() + { + } + public static new MemberGroupArgs Empty => new MemberGroupArgs(); + } + + public sealed class MemberGroupState : global::Pulumi.ResourceArgs + { + /// + /// The slug of the Doppler group + /// + [Input("groupSlug")] + public Input? GroupSlug { get; set; } + + /// + /// The slug of the Doppler integration where the access is applied + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Input("role")] + public Input? Role { get; set; } + + public MemberGroupState() + { + } + public static new MemberGroupState Empty => new MemberGroupState(); + } +} diff --git a/sdk/dotnet/Integration/MemberServiceAccount.cs b/sdk/dotnet/Integration/MemberServiceAccount.cs new file mode 100644 index 0000000..7b7dfef --- /dev/null +++ b/sdk/dotnet/Integration/MemberServiceAccount.cs @@ -0,0 +1,153 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a Doppler integration service account member. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var awsCi = new Doppler.Integration.MemberServiceAccount("aws_ci", new() + /// { + /// Integration = prod.Slug, + /// ServiceAccountSlug = ci.Slug, + /// Role = "consumer", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/memberServiceAccount:MemberServiceAccount")] + public partial class MemberServiceAccount : global::Pulumi.CustomResource + { + /// + /// The slug of the Doppler integration where the access is applied + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Output("role")] + public Output Role { get; private set; } = null!; + + /// + /// The slug of the Doppler service account + /// + [Output("serviceAccountSlug")] + public Output ServiceAccountSlug { get; private set; } = null!; + + + /// + /// Create a MemberServiceAccount resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public MemberServiceAccount(string name, MemberServiceAccountArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/memberServiceAccount:MemberServiceAccount", name, args ?? new MemberServiceAccountArgs(), MakeResourceOptions(options, "")) + { + } + + private MemberServiceAccount(string name, Input id, MemberServiceAccountState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/memberServiceAccount:MemberServiceAccount", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing MemberServiceAccount resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static MemberServiceAccount Get(string name, Input id, MemberServiceAccountState? state = null, CustomResourceOptions? options = null) + { + return new MemberServiceAccount(name, id, state, options); + } + } + + public sealed class MemberServiceAccountArgs : global::Pulumi.ResourceArgs + { + /// + /// The slug of the Doppler integration where the access is applied + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Input("role", required: true)] + public Input Role { get; set; } = null!; + + /// + /// The slug of the Doppler service account + /// + [Input("serviceAccountSlug", required: true)] + public Input ServiceAccountSlug { get; set; } = null!; + + public MemberServiceAccountArgs() + { + } + public static new MemberServiceAccountArgs Empty => new MemberServiceAccountArgs(); + } + + public sealed class MemberServiceAccountState : global::Pulumi.ResourceArgs + { + /// + /// The slug of the Doppler integration where the access is applied + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Input("role")] + public Input? Role { get; set; } + + /// + /// The slug of the Doppler service account + /// + [Input("serviceAccountSlug")] + public Input? ServiceAccountSlug { get; set; } + + public MemberServiceAccountState() + { + } + public static new MemberServiceAccountState Empty => new MemberServiceAccountState(); + } +} diff --git a/sdk/dotnet/Integration/MemberUser.cs b/sdk/dotnet/Integration/MemberUser.cs new file mode 100644 index 0000000..8a08163 --- /dev/null +++ b/sdk/dotnet/Integration/MemberUser.cs @@ -0,0 +1,158 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a Doppler integration user member. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var brian = Doppler.GetUser.Invoke(new() + /// { + /// Email = "brian@doppler.com", + /// }); + /// + /// var awsBrian = new Doppler.Integration.MemberUser("aws_brian", new() + /// { + /// Integration = prod.Slug, + /// UserSlug = brian.Apply(getUserResult => getUserResult.Slug), + /// Role = "consumer", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/memberUser:MemberUser")] + public partial class MemberUser : global::Pulumi.CustomResource + { + /// + /// The slug of the Doppler integration where the access is applied + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Output("role")] + public Output Role { get; private set; } = null!; + + /// + /// The slug of the Doppler workplace user + /// + [Output("userSlug")] + public Output UserSlug { get; private set; } = null!; + + + /// + /// Create a MemberUser resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public MemberUser(string name, MemberUserArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/memberUser:MemberUser", name, args ?? new MemberUserArgs(), MakeResourceOptions(options, "")) + { + } + + private MemberUser(string name, Input id, MemberUserState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/memberUser:MemberUser", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing MemberUser resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static MemberUser Get(string name, Input id, MemberUserState? state = null, CustomResourceOptions? options = null) + { + return new MemberUser(name, id, state, options); + } + } + + public sealed class MemberUserArgs : global::Pulumi.ResourceArgs + { + /// + /// The slug of the Doppler integration where the access is applied + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Input("role", required: true)] + public Input Role { get; set; } = null!; + + /// + /// The slug of the Doppler workplace user + /// + [Input("userSlug", required: true)] + public Input UserSlug { get; set; } = null!; + + public MemberUserArgs() + { + } + public static new MemberUserArgs Empty => new MemberUserArgs(); + } + + public sealed class MemberUserState : global::Pulumi.ResourceArgs + { + /// + /// The slug of the Doppler integration where the access is applied + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`Admin`, `Consumer`, `Viewer`, or `NoAccess`), or the slug for a custom integration role. + /// + [Input("role")] + public Input? Role { get; set; } + + /// + /// The slug of the Doppler workplace user + /// + [Input("userSlug")] + public Input? UserSlug { get; set; } + + public MemberUserState() + { + } + public static new MemberUserState Empty => new MemberUserState(); + } +} diff --git a/sdk/dotnet/Integration/MongodbAtlas.cs b/sdk/dotnet/Integration/MongodbAtlas.cs new file mode 100644 index 0000000..ec6118f --- /dev/null +++ b/sdk/dotnet/Integration/MongodbAtlas.cs @@ -0,0 +1,209 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a MongoDB Atlas Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var dbPassword1 = config.Get("dbPassword1") ?? ""; + /// var dbPassword2 = config.Get("dbPassword2") ?? ""; + /// var iMongodbAtlas = new Doppler.Integration.MongodbAtlas("i_mongodb_atlas", new() + /// { + /// Name = "TF MongoDB Atlas", + /// PublicKey = "xxxxxxxx", + /// PrivateKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsMongodbAtlas = new Doppler.RotatedSecret.MongodbAtlas("rs_mongodb_atlas", new() + /// { + /// Credentials = new[] + /// { + /// new Doppler.RotatedSecret.Inputs.MongodbAtlasCredentialArgs + /// { + /// Username = "xxxxxxxxx", + /// Password = dbPassword1, + /// }, + /// new Doppler.RotatedSecret.Inputs.MongodbAtlasCredentialArgs + /// { + /// Username = "xxxxxxxxx", + /// Password = dbPassword2, + /// }, + /// }, + /// Integration = iMongodbAtlas.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "MONGODB", + /// RotationPeriodSec = 2592000, + /// ProjectId = "xxxxxxxxxxxxxxxxx", + /// }, new CustomResourceOptions + /// { + /// IgnoreChanges = + /// { + /// "credentials", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/mongodbAtlas:MongodbAtlas")] + public partial class MongodbAtlas : global::Pulumi.CustomResource + { + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The Private Key + /// + [Output("privateKey")] + public Output PrivateKey { get; private set; } = null!; + + /// + /// The Public Key + /// + [Output("publicKey")] + public Output PublicKey { get; private set; } = null!; + + + /// + /// Create a MongodbAtlas resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public MongodbAtlas(string name, MongodbAtlasArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/mongodbAtlas:MongodbAtlas", name, args ?? new MongodbAtlasArgs(), MakeResourceOptions(options, "")) + { + } + + private MongodbAtlas(string name, Input id, MongodbAtlasState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/mongodbAtlas:MongodbAtlas", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "privateKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing MongodbAtlas resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static MongodbAtlas Get(string name, Input id, MongodbAtlasState? state = null, CustomResourceOptions? options = null) + { + return new MongodbAtlas(name, id, state, options); + } + } + + public sealed class MongodbAtlasArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("privateKey", required: true)] + private Input? _privateKey; + + /// + /// The Private Key + /// + public Input? PrivateKey + { + get => _privateKey; + set + { + var emptySecret = Output.CreateSecret(0); + _privateKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The Public Key + /// + [Input("publicKey", required: true)] + public Input PublicKey { get; set; } = null!; + + public MongodbAtlasArgs() + { + } + public static new MongodbAtlasArgs Empty => new MongodbAtlasArgs(); + } + + public sealed class MongodbAtlasState : global::Pulumi.ResourceArgs + { + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + [Input("privateKey")] + private Input? _privateKey; + + /// + /// The Private Key + /// + public Input? PrivateKey + { + get => _privateKey; + set + { + var emptySecret = Output.CreateSecret(0); + _privateKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The Public Key + /// + [Input("publicKey")] + public Input? PublicKey { get; set; } + + public MongodbAtlasState() + { + } + public static new MongodbAtlasState Empty => new MongodbAtlasState(); + } +} diff --git a/sdk/dotnet/Integration/Openai.cs b/sdk/dotnet/Integration/Openai.cs new file mode 100644 index 0000000..1c1c2df --- /dev/null +++ b/sdk/dotnet/Integration/Openai.cs @@ -0,0 +1,168 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage an OpenAI Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var iOpenai = new Doppler.Integration.Openai("i_openai", new() + /// { + /// Name = "TF OpenAI", + /// AdminKey = "sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsOpenai = new Doppler.RotatedSecret.Openai("rs_openai", new() + /// { + /// Integration = iOpenai.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "OPENAI", + /// RotationPeriodSec = 2592000, + /// ProjectId = "proj_xxxxxxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/openai:Openai")] + public partial class Openai : global::Pulumi.CustomResource + { + /// + /// The OpenAI admin key + /// + [Output("adminKey")] + public Output AdminKey { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a Openai resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Openai(string name, OpenaiArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/openai:Openai", name, args ?? new OpenaiArgs(), MakeResourceOptions(options, "")) + { + } + + private Openai(string name, Input id, OpenaiState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/openai:Openai", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "adminKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Openai resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Openai Get(string name, Input id, OpenaiState? state = null, CustomResourceOptions? options = null) + { + return new Openai(name, id, state, options); + } + } + + public sealed class OpenaiArgs : global::Pulumi.ResourceArgs + { + [Input("adminKey", required: true)] + private Input? _adminKey; + + /// + /// The OpenAI admin key + /// + public Input? AdminKey + { + get => _adminKey; + set + { + var emptySecret = Output.CreateSecret(0); + _adminKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public OpenaiArgs() + { + } + public static new OpenaiArgs Empty => new OpenaiArgs(); + } + + public sealed class OpenaiState : global::Pulumi.ResourceArgs + { + [Input("adminKey")] + private Input? _adminKey; + + /// + /// The OpenAI admin key + /// + public Input? AdminKey + { + get => _adminKey; + set + { + var emptySecret = Output.CreateSecret(0); + _adminKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public OpenaiState() + { + } + public static new OpenaiState Empty => new OpenaiState(); + } +} diff --git a/sdk/dotnet/Integration/README.md b/sdk/dotnet/Integration/README.md index adf8929..a8c6463 100644 --- a/sdk/dotnet/Integration/README.md +++ b/sdk/dotnet/Integration/README.md @@ -1 +1 @@ -A Pulumi package for creating and managing doppler cloud resources. +A Pulumi package for managing Doppler projects, secrets, and access. diff --git a/sdk/dotnet/Integration/Sendgrid.cs b/sdk/dotnet/Integration/Sendgrid.cs new file mode 100644 index 0000000..8b220cf --- /dev/null +++ b/sdk/dotnet/Integration/Sendgrid.cs @@ -0,0 +1,172 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a SendGrid Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var iSendgrid = new Doppler.Integration.Sendgrid("i_sendgrid", new() + /// { + /// Name = "TF SendGrid", + /// ApiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsSendgrid = new Doppler.RotatedSecret.Sendgrid("rs_sendgrid", new() + /// { + /// Integration = iSendgrid.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "SENDGRID", + /// RotationPeriodSec = 2592000, + /// Scopes = new[] + /// { + /// "alerts.create", + /// "alerts.read", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/sendgrid:Sendgrid")] + public partial class Sendgrid : global::Pulumi.CustomResource + { + /// + /// The API Key + /// + [Output("apiKey")] + public Output ApiKey { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a Sendgrid resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Sendgrid(string name, SendgridArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/sendgrid:Sendgrid", name, args ?? new SendgridArgs(), MakeResourceOptions(options, "")) + { + } + + private Sendgrid(string name, Input id, SendgridState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/sendgrid:Sendgrid", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "apiKey", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Sendgrid resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Sendgrid Get(string name, Input id, SendgridState? state = null, CustomResourceOptions? options = null) + { + return new Sendgrid(name, id, state, options); + } + } + + public sealed class SendgridArgs : global::Pulumi.ResourceArgs + { + [Input("apiKey", required: true)] + private Input? _apiKey; + + /// + /// The API Key + /// + public Input? ApiKey + { + get => _apiKey; + set + { + var emptySecret = Output.CreateSecret(0); + _apiKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public SendgridArgs() + { + } + public static new SendgridArgs Empty => new SendgridArgs(); + } + + public sealed class SendgridState : global::Pulumi.ResourceArgs + { + [Input("apiKey")] + private Input? _apiKey; + + /// + /// The API Key + /// + public Input? ApiKey + { + get => _apiKey; + set + { + var emptySecret = Output.CreateSecret(0); + _apiKey = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public SendgridState() + { + } + public static new SendgridState Empty => new SendgridState(); + } +} diff --git a/sdk/dotnet/Integration/TerraformCloud.cs b/sdk/dotnet/Integration/TerraformCloud.cs index 0098afc..c7556fb 100644 --- a/sdk/dotnet/Integration/TerraformCloud.cs +++ b/sdk/dotnet/Integration/TerraformCloud.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,14 +8,55 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Integration +namespace DopplerHQ.Doppler.Integration { /// + /// Manage a Terraform Cloud Doppler integration. + /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Tfe = Pulumi.Tfe; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = Tfe.Workspace.Invoke(new() + /// { + /// Name = "my-workspace-name", + /// Organization = "my-org-name", + /// }); + /// + /// var prodTerraformCloud = new Doppler.Integration.TerraformCloud("prod", new() + /// { + /// Name = "Production", + /// ApiKey = "my_api_key", + /// }); + /// + /// var backendProd = new Doppler.SecretsSync.TerraformCloud("backend_prod", new() + /// { + /// Integration = prodTerraformCloud.Id, + /// Project = "backend", + /// Config = "prd", + /// SyncTarget = "workspace", + /// WorkspaceId = prod.Id, + /// VariableSyncType = "terraform", + /// NameTransform = "lowercase", + /// DeleteBehavior = "leave_in_target", + /// }); + /// + /// }); + /// ``` /// [DopplerResourceType("doppler:integration/terraformCloud:TerraformCloud")] public partial class TerraformCloud : global::Pulumi.CustomResource { + /// + /// A Terraform Cloud API key. + /// [Output("apiKey")] public Output ApiKey { get; private set; } = null!; @@ -48,7 +89,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "apiKey", @@ -78,6 +119,10 @@ public sealed class TerraformCloudArgs : global::Pulumi.ResourceArgs { [Input("apiKey", required: true)] private Input? _apiKey; + + /// + /// A Terraform Cloud API key. + /// public Input? ApiKey { get => _apiKey; @@ -104,6 +149,10 @@ public sealed class TerraformCloudState : global::Pulumi.ResourceArgs { [Input("apiKey")] private Input? _apiKey; + + /// + /// A Terraform Cloud API key. + /// public Input? ApiKey { get => _apiKey; diff --git a/sdk/dotnet/Integration/Twilio.cs b/sdk/dotnet/Integration/Twilio.cs new file mode 100644 index 0000000..19bd537 --- /dev/null +++ b/sdk/dotnet/Integration/Twilio.cs @@ -0,0 +1,205 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Integration +{ + /// + /// Manage a Twilio Doppler integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var iTwilio = new Doppler.Integration.Twilio("i_twilio", new() + /// { + /// Name = "TF Twilio", + /// AccountSid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// KeySid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// KeySecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + /// }); + /// + /// var rsTwilio = new Doppler.RotatedSecret.Twilio("rs_twilio", new() + /// { + /// Integration = iTwilio.Id, + /// Project = "backend", + /// Config = "dev", + /// Name = "TWILIO", + /// RotationPeriodSec = 2592000, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:integration/twilio:Twilio")] + public partial class Twilio : global::Pulumi.CustomResource + { + /// + /// The Account SID + /// + [Output("accountSid")] + public Output AccountSid { get; private set; } = null!; + + /// + /// The Key Secret + /// + [Output("keySecret")] + public Output KeySecret { get; private set; } = null!; + + /// + /// The Key SID (cannot equal accountSID) + /// + [Output("keySid")] + public Output KeySid { get; private set; } = null!; + + /// + /// The name of the integration + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a Twilio resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Twilio(string name, TwilioArgs args, CustomResourceOptions? options = null) + : base("doppler:integration/twilio:Twilio", name, args ?? new TwilioArgs(), MakeResourceOptions(options, "")) + { + } + + private Twilio(string name, Input id, TwilioState? state = null, CustomResourceOptions? options = null) + : base("doppler:integration/twilio:Twilio", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "keySecret", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Twilio resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Twilio Get(string name, Input id, TwilioState? state = null, CustomResourceOptions? options = null) + { + return new Twilio(name, id, state, options); + } + } + + public sealed class TwilioArgs : global::Pulumi.ResourceArgs + { + /// + /// The Account SID + /// + [Input("accountSid", required: true)] + public Input AccountSid { get; set; } = null!; + + [Input("keySecret", required: true)] + private Input? _keySecret; + + /// + /// The Key Secret + /// + public Input? KeySecret + { + get => _keySecret; + set + { + var emptySecret = Output.CreateSecret(0); + _keySecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The Key SID (cannot equal accountSID) + /// + [Input("keySid", required: true)] + public Input KeySid { get; set; } = null!; + + /// + /// The name of the integration + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public TwilioArgs() + { + } + public static new TwilioArgs Empty => new TwilioArgs(); + } + + public sealed class TwilioState : global::Pulumi.ResourceArgs + { + /// + /// The Account SID + /// + [Input("accountSid")] + public Input? AccountSid { get; set; } + + [Input("keySecret")] + private Input? _keySecret; + + /// + /// The Key Secret + /// + public Input? KeySecret + { + get => _keySecret; + set + { + var emptySecret = Output.CreateSecret(0); + _keySecret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The Key SID (cannot equal accountSID) + /// + [Input("keySid")] + public Input? KeySid { get; set; } + + /// + /// The name of the integration + /// + [Input("name")] + public Input? Name { get; set; } + + public TwilioState() + { + } + public static new TwilioState Empty => new TwilioState(); + } +} diff --git a/sdk/dotnet/Outputs/ChangeRequestPolicyRules.cs b/sdk/dotnet/Outputs/ChangeRequestPolicyRules.cs new file mode 100644 index 0000000..3ca00bc --- /dev/null +++ b/sdk/dotnet/Outputs/ChangeRequestPolicyRules.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class ChangeRequestPolicyRules + { + /// + /// If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + /// + public readonly string? AutoAssignReviewers; + /// + /// If true, approvals from the author of a change request will be excluded when evaluating this policy + /// + public readonly bool? DisallowSelfReview; + /// + /// Enforces that a specific number of users approve a change request before it can be applied + /// + public readonly ImmutableArray RequiredReviewers; + + [OutputConstructor] + private ChangeRequestPolicyRules( + string? autoAssignReviewers, + + bool? disallowSelfReview, + + ImmutableArray requiredReviewers) + { + AutoAssignReviewers = autoAssignReviewers; + DisallowSelfReview = disallowSelfReview; + RequiredReviewers = requiredReviewers; + } + } +} diff --git a/sdk/dotnet/Outputs/ChangeRequestPolicyRulesRequiredReviewer.cs b/sdk/dotnet/Outputs/ChangeRequestPolicyRulesRequiredReviewer.cs new file mode 100644 index 0000000..d3c0d73 --- /dev/null +++ b/sdk/dotnet/Outputs/ChangeRequestPolicyRulesRequiredReviewer.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class ChangeRequestPolicyRulesRequiredReviewer + { + /// + /// The number of approvals a change request must receive before it can be applied + /// + public readonly int Count; + /// + /// If set, only approvals from members of these groups will satisfy this rule + /// + public readonly ImmutableArray GroupSlugs; + /// + /// If set, only approvals from these users will satisfy this rule + /// + public readonly ImmutableArray UserSlugs; + + [OutputConstructor] + private ChangeRequestPolicyRulesRequiredReviewer( + int count, + + ImmutableArray groupSlugs, + + ImmutableArray userSlugs) + { + Count = count; + GroupSlugs = groupSlugs; + UserSlugs = userSlugs; + } + } +} diff --git a/sdk/dotnet/Outputs/ChangeRequestPolicyTargets.cs b/sdk/dotnet/Outputs/ChangeRequestPolicyTargets.cs new file mode 100644 index 0000000..a178901 --- /dev/null +++ b/sdk/dotnet/Outputs/ChangeRequestPolicyTargets.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class ChangeRequestPolicyTargets + { + /// + /// Whether or not the policy applies to all projects in the workplace + /// + public readonly bool? AllProjects; + /// + /// A project that the policy will apply to + /// + public readonly ImmutableArray Projects; + + [OutputConstructor] + private ChangeRequestPolicyTargets( + bool? allProjects, + + ImmutableArray projects) + { + AllProjects = allProjects; + Projects = projects; + } + } +} diff --git a/sdk/dotnet/Outputs/ChangeRequestPolicyTargetsProject.cs b/sdk/dotnet/Outputs/ChangeRequestPolicyTargetsProject.cs new file mode 100644 index 0000000..6f3a9ed --- /dev/null +++ b/sdk/dotnet/Outputs/ChangeRequestPolicyTargetsProject.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class ChangeRequestPolicyTargetsProject + { + /// + /// Whether or not the policy applies to all configs in the project + /// + public readonly bool? All; + /// + /// Specific configs the policy applies to + /// + public readonly ImmutableArray ConfigNames; + /// + /// Entire environments the policy applies to + /// + public readonly ImmutableArray EnvironmentSlugs; + /// + /// The name of the project to apply the policy to + /// + public readonly string ProjectName; + + [OutputConstructor] + private ChangeRequestPolicyTargetsProject( + bool? all, + + ImmutableArray configNames, + + ImmutableArray environmentSlugs, + + string projectName) + { + All = all; + ConfigNames = configNames; + EnvironmentSlugs = environmentSlugs; + ProjectName = projectName; + } + } +} diff --git a/sdk/dotnet/Outputs/GetEnvironmentsEnvironmentResult.cs b/sdk/dotnet/Outputs/GetEnvironmentsEnvironmentResult.cs new file mode 100644 index 0000000..c09c6da --- /dev/null +++ b/sdk/dotnet/Outputs/GetEnvironmentsEnvironmentResult.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class GetEnvironmentsEnvironmentResult + { + /// + /// When the environment was created + /// + public readonly string CreatedAt; + /// + /// The name of the environment + /// + public readonly string Name; + /// + /// The project the environment belongs to + /// + public readonly string Project; + /// + /// The slug of the environment + /// + public readonly string Slug; + + [OutputConstructor] + private GetEnvironmentsEnvironmentResult( + string createdAt, + + string name, + + string project, + + string slug) + { + CreatedAt = createdAt; + Name = name; + Project = project; + Slug = slug; + } + } +} diff --git a/sdk/dotnet/Outputs/ServiceAccountIdentityConfigOidc.cs b/sdk/dotnet/Outputs/ServiceAccountIdentityConfigOidc.cs new file mode 100644 index 0000000..7047637 --- /dev/null +++ b/sdk/dotnet/Outputs/ServiceAccountIdentityConfigOidc.cs @@ -0,0 +1,43 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class ServiceAccountIdentityConfigOidc + { + /// + /// A set of valid values for a specific claim. At least "aud" and "sub" must be provided + /// + public readonly ImmutableArray Claims; + /// + /// If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + /// + public readonly string? ClaimsType; + /// + /// The public URL of the OpenID discovery service + /// + public readonly string DiscoveryUrl; + + [OutputConstructor] + private ServiceAccountIdentityConfigOidc( + ImmutableArray claims, + + string? claimsType, + + string discoveryUrl) + { + Claims = claims; + ClaimsType = claimsType; + DiscoveryUrl = discoveryUrl; + } + } +} diff --git a/sdk/dotnet/Outputs/ServiceAccountIdentityConfigOidcClaim.cs b/sdk/dotnet/Outputs/ServiceAccountIdentityConfigOidcClaim.cs new file mode 100644 index 0000000..6712fd4 --- /dev/null +++ b/sdk/dotnet/Outputs/ServiceAccountIdentityConfigOidcClaim.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.Outputs +{ + + [OutputType] + public sealed class ServiceAccountIdentityConfigOidcClaim + { + /// + /// The key of the claim to validate + /// + public readonly string Key; + /// + /// The set of valid values for this claim + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private ServiceAccountIdentityConfigOidcClaim( + string key, + + ImmutableArray values) + { + Key = key; + Values = values; + } + } +} diff --git a/sdk/dotnet/Outputs/WebhookAuthentication.cs b/sdk/dotnet/Outputs/WebhookAuthentication.cs index dc4cfd7..ef06592 100644 --- a/sdk/dotnet/Outputs/WebhookAuthentication.cs +++ b/sdk/dotnet/Outputs/WebhookAuthentication.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.Outputs +namespace DopplerHQ.Doppler.Outputs { [OutputType] diff --git a/sdk/dotnet/Project.cs b/sdk/dotnet/Project.cs index 1bc5713..616a97b 100644 --- a/sdk/dotnet/Project.cs +++ b/sdk/dotnet/Project.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler project. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -76,7 +76,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ProjectMember/Group.cs b/sdk/dotnet/ProjectMember/Group.cs index 9009c71..e860d1f 100644 --- a/sdk/dotnet/ProjectMember/Group.cs +++ b/sdk/dotnet/ProjectMember/Group.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.ProjectMember +namespace DopplerHQ.Doppler.ProjectMember { /// /// Manage a Doppler project group member. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler.ProjectMember /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -60,7 +60,7 @@ public partial class Group : global::Pulumi.CustomResource public Output Project { get; private set; } = null!; /// - /// The project role identifier for the access + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. /// [Output("role")] public Output Role { get; private set; } = null!; @@ -88,7 +88,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -137,7 +137,7 @@ public InputList Environments public Input Project { get; set; } = null!; /// - /// The project role identifier for the access + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. /// [Input("role", required: true)] public Input Role { get; set; } = null!; @@ -175,7 +175,7 @@ public InputList Environments public Input? Project { get; set; } /// - /// The project role identifier for the access + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. /// [Input("role")] public Input? Role { get; set; } diff --git a/sdk/dotnet/ProjectMember/README.md b/sdk/dotnet/ProjectMember/README.md index adf8929..a8c6463 100644 --- a/sdk/dotnet/ProjectMember/README.md +++ b/sdk/dotnet/ProjectMember/README.md @@ -1 +1 @@ -A Pulumi package for creating and managing doppler cloud resources. +A Pulumi package for managing Doppler projects, secrets, and access. diff --git a/sdk/dotnet/ProjectMember/ServiceAccount.cs b/sdk/dotnet/ProjectMember/ServiceAccount.cs index 9d55d1d..2bc02da 100644 --- a/sdk/dotnet/ProjectMember/ServiceAccount.cs +++ b/sdk/dotnet/ProjectMember/ServiceAccount.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.ProjectMember +namespace DopplerHQ.Doppler.ProjectMember { /// /// Manage a Doppler project service account member. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler.ProjectMember /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -55,7 +55,7 @@ public partial class ServiceAccount : global::Pulumi.CustomResource public Output Project { get; private set; } = null!; /// - /// The project role identifier for the access + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. /// [Output("role")] public Output Role { get; private set; } = null!; @@ -89,7 +89,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -132,7 +132,7 @@ public InputList Environments public Input Project { get; set; } = null!; /// - /// The project role identifier for the access + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. /// [Input("role", required: true)] public Input Role { get; set; } = null!; @@ -170,7 +170,7 @@ public InputList Environments public Input? Project { get; set; } /// - /// The project role identifier for the access + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. /// [Input("role")] public Input? Role { get; set; } diff --git a/sdk/dotnet/ProjectMember/User.cs b/sdk/dotnet/ProjectMember/User.cs new file mode 100644 index 0000000..22a0516 --- /dev/null +++ b/sdk/dotnet/ProjectMember/User.cs @@ -0,0 +1,193 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.ProjectMember +{ + /// + /// Manage a Doppler project user member. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var brian = Doppler.GetUser.Invoke(new() + /// { + /// Email = "brian@doppler.com", + /// }); + /// + /// var backendBrian = new Doppler.ProjectMember.User("backend_brian", new() + /// { + /// Project = "backend", + /// UserSlug = brian.Apply(getUserResult => getUserResult.Slug), + /// Role = "collaborator", + /// Environments = new[] + /// { + /// "dev", + /// "stg", + /// }, + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:projectMember/user:User")] + public partial class User : global::Pulumi.CustomResource + { + /// + /// The environments in the project where this access will apply (null or omitted for roles with access to all environments) + /// + [Output("environments")] + public Output> Environments { get; private set; } = null!; + + /// + /// The name of the Doppler project where the access is applied + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. + /// + [Output("role")] + public Output Role { get; private set; } = null!; + + /// + /// The slug of the Doppler workplace user + /// + [Output("userSlug")] + public Output UserSlug { get; private set; } = null!; + + + /// + /// Create a User resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public User(string name, UserArgs args, CustomResourceOptions? options = null) + : base("doppler:projectMember/user:User", name, args ?? new UserArgs(), MakeResourceOptions(options, "")) + { + } + + private User(string name, Input id, UserState? state = null, CustomResourceOptions? options = null) + : base("doppler:projectMember/user:User", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing User resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static User Get(string name, Input id, UserState? state = null, CustomResourceOptions? options = null) + { + return new User(name, id, state, options); + } + } + + public sealed class UserArgs : global::Pulumi.ResourceArgs + { + [Input("environments")] + private InputList? _environments; + + /// + /// The environments in the project where this access will apply (null or omitted for roles with access to all environments) + /// + public InputList Environments + { + get => _environments ?? (_environments = new InputList()); + set => _environments = value; + } + + /// + /// The name of the Doppler project where the access is applied + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. + /// + [Input("role", required: true)] + public Input Role { get; set; } = null!; + + /// + /// The slug of the Doppler workplace user + /// + [Input("userSlug", required: true)] + public Input UserSlug { get; set; } = null!; + + public UserArgs() + { + } + public static new UserArgs Empty => new UserArgs(); + } + + public sealed class UserState : global::Pulumi.ResourceArgs + { + [Input("environments")] + private InputList? _environments; + + /// + /// The environments in the project where this access will apply (null or omitted for roles with access to all environments) + /// + public InputList Environments + { + get => _environments ?? (_environments = new InputList()); + set => _environments = value; + } + + /// + /// The name of the Doppler project where the access is applied + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The project role identifier for the access. Must use either one of the built-in project role slugs (`Admin`, `Owner`, `Collaborator`, or `NoAccess`), or the slug for a custom project role. + /// + [Input("role")] + public Input? Role { get; set; } + + /// + /// The slug of the Doppler workplace user + /// + [Input("userSlug")] + public Input? UserSlug { get; set; } + + public UserState() + { + } + public static new UserState Empty => new UserState(); + } +} diff --git a/sdk/dotnet/ProjectRole.cs b/sdk/dotnet/ProjectRole.cs index 5ed6dd6..b017259 100644 --- a/sdk/dotnet/ProjectRole.cs +++ b/sdk/dotnet/ProjectRole.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler project_role. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -91,7 +91,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ProjectTag.cs b/sdk/dotnet/ProjectTag.cs new file mode 100644 index 0000000..edbf07b --- /dev/null +++ b/sdk/dotnet/ProjectTag.cs @@ -0,0 +1,145 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage a Doppler tag assigned to a project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var backend = new Doppler.Tag("backend", new() + /// { + /// Name = "Backend", + /// }); + /// + /// var backendProjectTag = new Doppler.ProjectTag("backend", new() + /// { + /// Project = "backend", + /// TagSlug = backend.Slug, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// ```sh + /// $ pulumi import doppler:index/projectTag:ProjectTag default <project-name>.<tag-slug> + /// ``` + /// + [DopplerResourceType("doppler:index/projectTag:ProjectTag")] + public partial class ProjectTag : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler project the tag is assigned to + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The slug of the Doppler tag + /// + [Output("tagSlug")] + public Output TagSlug { get; private set; } = null!; + + + /// + /// Create a ProjectTag resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public ProjectTag(string name, ProjectTagArgs args, CustomResourceOptions? options = null) + : base("doppler:index/projectTag:ProjectTag", name, args ?? new ProjectTagArgs(), MakeResourceOptions(options, "")) + { + } + + private ProjectTag(string name, Input id, ProjectTagState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/projectTag:ProjectTag", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing ProjectTag resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static ProjectTag Get(string name, Input id, ProjectTagState? state = null, CustomResourceOptions? options = null) + { + return new ProjectTag(name, id, state, options); + } + } + + public sealed class ProjectTagArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler project the tag is assigned to + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The slug of the Doppler tag + /// + [Input("tagSlug", required: true)] + public Input TagSlug { get; set; } = null!; + + public ProjectTagArgs() + { + } + public static new ProjectTagArgs Empty => new ProjectTagArgs(); + } + + public sealed class ProjectTagState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler project the tag is assigned to + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The slug of the Doppler tag + /// + [Input("tagSlug")] + public Input? TagSlug { get; set; } + + public ProjectTagState() + { + } + public static new ProjectTagState Empty => new ProjectTagState(); + } +} diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs index 82155e9..2d6d08e 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// The provider type for the doppler package. By default, resources use package-wide configuration @@ -20,10 +20,10 @@ namespace Pulumiverse.Doppler public partial class Provider : global::Pulumi.ProviderResource { /// - /// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. + /// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `DopplerToken` or OIDC authentication (`OidcIdentity` + `OidcToken`/`OidcTokenFile`) may be specified. /// [Output("dopplerToken")] - public Output DopplerToken { get; private set; } = null!; + public Output DopplerToken { get; private set; } = null!; /// /// The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. @@ -31,6 +31,24 @@ public partial class Provider : global::Pulumi.ProviderResource [Output("host")] public Output Host { get; private set; } = null!; + /// + /// The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + /// + [Output("oidcIdentity")] + public Output OidcIdentity { get; private set; } = null!; + + /// + /// A JWT token to use for OIDC authentication. Only one of `OidcToken` or `OidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + /// + [Output("oidcToken")] + public Output OidcToken { get; private set; } = null!; + + /// + /// A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `OidcToken` or `OidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + /// + [Output("oidcTokenFile")] + public Output OidcTokenFile { get; private set; } = null!; + /// /// Create a Provider resource with the given unique name, arguments, and options. @@ -39,7 +57,7 @@ public partial class Provider : global::Pulumi.ProviderResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public Provider(string name, ProviderArgs args, CustomResourceOptions? options = null) + public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null) : base("doppler", name, args ?? new ProviderArgs(), MakeResourceOptions(options, "")) { } @@ -49,22 +67,43 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "dopplerToken", + "oidcToken", + }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; } + + /// + /// This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider. + /// + public global::Pulumi.Output TerraformConfig() + => global::Pulumi.Deployment.Instance.Call("pulumi:providers:doppler/terraformConfig", CallArgs.Empty, this); } public sealed class ProviderArgs : global::Pulumi.ResourceArgs { + [Input("dopplerToken")] + private Input? _dopplerToken; + /// - /// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. + /// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `DopplerToken` or OIDC authentication (`OidcIdentity` + `OidcToken`/`OidcTokenFile`) may be specified. /// - [Input("dopplerToken", required: true)] - public Input DopplerToken { get; set; } = null!; + public Input? DopplerToken + { + get => _dopplerToken; + set + { + var emptySecret = Output.CreateSecret(0); + _dopplerToken = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } /// /// The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. @@ -72,6 +111,34 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs [Input("host")] public Input? Host { get; set; } + /// + /// The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + /// + [Input("oidcIdentity")] + public Input? OidcIdentity { get; set; } + + [Input("oidcToken")] + private Input? _oidcToken; + + /// + /// A JWT token to use for OIDC authentication. Only one of `OidcToken` or `OidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + /// + public Input? OidcToken + { + get => _oidcToken; + set + { + var emptySecret = Output.CreateSecret(0); + _oidcToken = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `OidcToken` or `OidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + /// + [Input("oidcTokenFile")] + public Input? OidcTokenFile { get; set; } + /// /// Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. /// @@ -83,4 +150,19 @@ public ProviderArgs() } public static new ProviderArgs Empty => new ProviderArgs(); } + + /// + /// The results of the method. + /// + [OutputType] + public sealed class ProviderTerraformConfigResult + { + public readonly ImmutableDictionary Result; + + [OutputConstructor] + private ProviderTerraformConfigResult(ImmutableDictionary result) + { + Result = result; + } + } } diff --git a/sdk/dotnet/Pulumi.yaml b/sdk/dotnet/Pulumi.yaml index e69de29..825c35e 100644 --- a/sdk/dotnet/Pulumi.yaml +++ b/sdk/dotnet/Pulumi.yaml @@ -0,0 +1,3 @@ +name: doppler +description: A Pulumi resource provider for doppler. +language: dotnet diff --git a/sdk/dotnet/README.md b/sdk/dotnet/README.md index adf8929..a8c6463 100644 --- a/sdk/dotnet/README.md +++ b/sdk/dotnet/README.md @@ -1 +1 @@ -A Pulumi package for creating and managing doppler cloud resources. +A Pulumi package for managing Doppler projects, secrets, and access. diff --git a/sdk/dotnet/RotatedSecret/AwsIamUserKeys.cs b/sdk/dotnet/RotatedSecret/AwsIamUserKeys.cs new file mode 100644 index 0000000..9ed78ba --- /dev/null +++ b/sdk/dotnet/RotatedSecret/AwsIamUserKeys.cs @@ -0,0 +1,184 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys")] + public partial class AwsIamUserKeys : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + /// + /// The IAM username (excluding ARN and scope prefix) + /// + [Output("username")] + public Output Username { get; private set; } = null!; + + + /// + /// Create a AwsIamUserKeys resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsIamUserKeys(string name, AwsIamUserKeysArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys", name, args ?? new AwsIamUserKeysArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsIamUserKeys(string name, Input id, AwsIamUserKeysState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsIamUserKeys resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsIamUserKeys Get(string name, Input id, AwsIamUserKeysState? state = null, CustomResourceOptions? options = null) + { + return new AwsIamUserKeys(name, id, state, options); + } + } + + public sealed class AwsIamUserKeysArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + /// + /// The IAM username (excluding ARN and scope prefix) + /// + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsIamUserKeysArgs() + { + } + public static new AwsIamUserKeysArgs Empty => new AwsIamUserKeysArgs(); + } + + public sealed class AwsIamUserKeysState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + /// + /// The IAM username (excluding ARN and scope prefix) + /// + [Input("username")] + public Input? Username { get; set; } + + public AwsIamUserKeysState() + { + } + public static new AwsIamUserKeysState Empty => new AwsIamUserKeysState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/AwsMssql.cs b/sdk/dotnet/RotatedSecret/AwsMssql.cs new file mode 100644 index 0000000..5438a5b --- /dev/null +++ b/sdk/dotnet/RotatedSecret/AwsMssql.cs @@ -0,0 +1,250 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/awsMssql:AwsMssql")] + public partial class AwsMssql : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// Rotated secret credentials + /// + [Output("credentials")] + public Output> Credentials { get; private set; } = null!; + + /// + /// The DB database + /// + [Output("database")] + public Output Database { get; private set; } = null!; + + /// + /// The DB Host + /// + [Output("host")] + public Output Host { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The DB Port + /// + [Output("port")] + public Output Port { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a AwsMssql resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsMssql(string name, AwsMssqlArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsMssql:AwsMssql", name, args ?? new AwsMssqlArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsMssql(string name, Input id, AwsMssqlState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsMssql:AwsMssql", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsMssql resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsMssql Get(string name, Input id, AwsMssqlState? state = null, CustomResourceOptions? options = null) + { + return new AwsMssql(name, id, state, options); + } + } + + public sealed class AwsMssqlArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + [Input("credentials", required: true)] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The DB database + /// + [Input("database", required: true)] + public Input Database { get; set; } = null!; + + /// + /// The DB Host + /// + [Input("host", required: true)] + public Input Host { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The DB Port + /// + [Input("port", required: true)] + public Input Port { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public AwsMssqlArgs() + { + } + public static new AwsMssqlArgs Empty => new AwsMssqlArgs(); + } + + public sealed class AwsMssqlState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + [Input("credentials")] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The DB database + /// + [Input("database")] + public Input? Database { get; set; } + + /// + /// The DB Host + /// + [Input("host")] + public Input? Host { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The DB Port + /// + [Input("port")] + public Input? Port { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public AwsMssqlState() + { + } + public static new AwsMssqlState Empty => new AwsMssqlState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/AwsMysql.cs b/sdk/dotnet/RotatedSecret/AwsMysql.cs new file mode 100644 index 0000000..1c45087 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/AwsMysql.cs @@ -0,0 +1,310 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/awsMysql:AwsMysql")] + public partial class AwsMysql : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// Rotated secret credentials + /// + [Output("credentials")] + public Output> Credentials { get; private set; } = null!; + + /// + /// The DB database + /// + [Output("database")] + public Output Database { get; private set; } = null!; + + /// + /// The DB Host + /// + [Output("host")] + public Output Host { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The managing user password + /// + [Output("managingUserPassword")] + public Output ManagingUserPassword { get; private set; } = null!; + + /// + /// The managing user username + /// + [Output("managingUserUsername")] + public Output ManagingUserUsername { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The DB Port + /// + [Output("port")] + public Output Port { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a AwsMysql resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsMysql(string name, AwsMysqlArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsMysql:AwsMysql", name, args ?? new AwsMysqlArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsMysql(string name, Input id, AwsMysqlState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsMysql:AwsMysql", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "managingUserPassword", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsMysql resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsMysql Get(string name, Input id, AwsMysqlState? state = null, CustomResourceOptions? options = null) + { + return new AwsMysql(name, id, state, options); + } + } + + public sealed class AwsMysqlArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + [Input("credentials", required: true)] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The DB database + /// + [Input("database")] + public Input? Database { get; set; } + + /// + /// The DB Host + /// + [Input("host", required: true)] + public Input Host { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + [Input("managingUserPassword", required: true)] + private Input? _managingUserPassword; + + /// + /// The managing user password + /// + public Input? ManagingUserPassword + { + get => _managingUserPassword; + set + { + var emptySecret = Output.CreateSecret(0); + _managingUserPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The managing user username + /// + [Input("managingUserUsername", required: true)] + public Input ManagingUserUsername { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The DB Port + /// + [Input("port", required: true)] + public Input Port { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public AwsMysqlArgs() + { + } + public static new AwsMysqlArgs Empty => new AwsMysqlArgs(); + } + + public sealed class AwsMysqlState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + [Input("credentials")] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The DB database + /// + [Input("database")] + public Input? Database { get; set; } + + /// + /// The DB Host + /// + [Input("host")] + public Input? Host { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + [Input("managingUserPassword")] + private Input? _managingUserPassword; + + /// + /// The managing user password + /// + public Input? ManagingUserPassword + { + get => _managingUserPassword; + set + { + var emptySecret = Output.CreateSecret(0); + _managingUserPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The managing user username + /// + [Input("managingUserUsername")] + public Input? ManagingUserUsername { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The DB Port + /// + [Input("port")] + public Input? Port { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public AwsMysqlState() + { + } + public static new AwsMysqlState Empty => new AwsMysqlState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/AwsPostgres.cs b/sdk/dotnet/RotatedSecret/AwsPostgres.cs new file mode 100644 index 0000000..1d509f4 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/AwsPostgres.cs @@ -0,0 +1,328 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/awsPostgres:AwsPostgres")] + public partial class AwsPostgres : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// Rotated secret credentials + /// + [Output("credentials")] + public Output> Credentials { get; private set; } = null!; + + /// + /// The DB database + /// + [Output("database")] + public Output Database { get; private set; } = null!; + + /// + /// The DB Host + /// + [Output("host")] + public Output Host { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The managing user password + /// + [Output("managingUserPassword")] + public Output ManagingUserPassword { get; private set; } = null!; + + /// + /// The managing user username + /// + [Output("managingUserUsername")] + public Output ManagingUserUsername { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The DB Port + /// + [Output("port")] + public Output Port { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + /// + /// An optional SSL CA for the AWS region the DB is in + /// + [Output("sslCa")] + public Output SslCa { get; private set; } = null!; + + + /// + /// Create a AwsPostgres resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AwsPostgres(string name, AwsPostgresArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsPostgres:AwsPostgres", name, args ?? new AwsPostgresArgs(), MakeResourceOptions(options, "")) + { + } + + private AwsPostgres(string name, Input id, AwsPostgresState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/awsPostgres:AwsPostgres", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + AdditionalSecretOutputs = + { + "managingUserPassword", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AwsPostgres resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AwsPostgres Get(string name, Input id, AwsPostgresState? state = null, CustomResourceOptions? options = null) + { + return new AwsPostgres(name, id, state, options); + } + } + + public sealed class AwsPostgresArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + [Input("credentials", required: true)] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The DB database + /// + [Input("database", required: true)] + public Input Database { get; set; } = null!; + + /// + /// The DB Host + /// + [Input("host", required: true)] + public Input Host { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + [Input("managingUserPassword", required: true)] + private Input? _managingUserPassword; + + /// + /// The managing user password + /// + public Input? ManagingUserPassword + { + get => _managingUserPassword; + set + { + var emptySecret = Output.CreateSecret(0); + _managingUserPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The managing user username + /// + [Input("managingUserUsername", required: true)] + public Input ManagingUserUsername { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The DB Port + /// + [Input("port", required: true)] + public Input Port { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + /// + /// An optional SSL CA for the AWS region the DB is in + /// + [Input("sslCa")] + public Input? SslCa { get; set; } + + public AwsPostgresArgs() + { + } + public static new AwsPostgresArgs Empty => new AwsPostgresArgs(); + } + + public sealed class AwsPostgresState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + [Input("credentials")] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The DB database + /// + [Input("database")] + public Input? Database { get; set; } + + /// + /// The DB Host + /// + [Input("host")] + public Input? Host { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + [Input("managingUserPassword")] + private Input? _managingUserPassword; + + /// + /// The managing user password + /// + public Input? ManagingUserPassword + { + get => _managingUserPassword; + set + { + var emptySecret = Output.CreateSecret(0); + _managingUserPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// The managing user username + /// + [Input("managingUserUsername")] + public Input? ManagingUserUsername { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The DB Port + /// + [Input("port")] + public Input? Port { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + /// + /// An optional SSL CA for the AWS region the DB is in + /// + [Input("sslCa")] + public Input? SslCa { get; set; } + + public AwsPostgresState() + { + } + public static new AwsPostgresState Empty => new AwsPostgresState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/CloudflareTokens.cs b/sdk/dotnet/RotatedSecret/CloudflareTokens.cs new file mode 100644 index 0000000..1c62f73 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/CloudflareTokens.cs @@ -0,0 +1,196 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/cloudflareTokens:CloudflareTokens")] + public partial class CloudflareTokens : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// Rotated secret credentials + /// + [Output("credentials")] + public Output> Credentials { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a CloudflareTokens resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public CloudflareTokens(string name, CloudflareTokensArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/cloudflareTokens:CloudflareTokens", name, args ?? new CloudflareTokensArgs(), MakeResourceOptions(options, "")) + { + } + + private CloudflareTokens(string name, Input id, CloudflareTokensState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/cloudflareTokens:CloudflareTokens", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing CloudflareTokens resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static CloudflareTokens Get(string name, Input id, CloudflareTokensState? state = null, CustomResourceOptions? options = null) + { + return new CloudflareTokens(name, id, state, options); + } + } + + public sealed class CloudflareTokensArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + [Input("credentials", required: true)] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public CloudflareTokensArgs() + { + } + public static new CloudflareTokensArgs Empty => new CloudflareTokensArgs(); + } + + public sealed class CloudflareTokensState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + [Input("credentials")] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public CloudflareTokensState() + { + } + public static new CloudflareTokensState Empty => new CloudflareTokensState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/GcpCloudsql.cs b/sdk/dotnet/RotatedSecret/GcpCloudsql.cs new file mode 100644 index 0000000..4796fdf --- /dev/null +++ b/sdk/dotnet/RotatedSecret/GcpCloudsql.cs @@ -0,0 +1,214 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/gcpCloudsql:GcpCloudsql")] + public partial class GcpCloudsql : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// Rotated secret credentials + /// + [Output("credentials")] + public Output> Credentials { get; private set; } = null!; + + /// + /// Cloud SQL database instance name + /// + [Output("databaseInstance")] + public Output DatabaseInstance { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a GcpCloudsql resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpCloudsql(string name, GcpCloudsqlArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/gcpCloudsql:GcpCloudsql", name, args ?? new GcpCloudsqlArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpCloudsql(string name, Input id, GcpCloudsqlState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/gcpCloudsql:GcpCloudsql", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpCloudsql resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpCloudsql Get(string name, Input id, GcpCloudsqlState? state = null, CustomResourceOptions? options = null) + { + return new GcpCloudsql(name, id, state, options); + } + } + + public sealed class GcpCloudsqlArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + [Input("credentials", required: true)] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// Cloud SQL database instance name + /// + [Input("databaseInstance", required: true)] + public Input DatabaseInstance { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public GcpCloudsqlArgs() + { + } + public static new GcpCloudsqlArgs Empty => new GcpCloudsqlArgs(); + } + + public sealed class GcpCloudsqlState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + [Input("credentials")] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// Cloud SQL database instance name + /// + [Input("databaseInstance")] + public Input? DatabaseInstance { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public GcpCloudsqlState() + { + } + public static new GcpCloudsqlState Empty => new GcpCloudsqlState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/GcpServiceAccountKeys.cs b/sdk/dotnet/RotatedSecret/GcpServiceAccountKeys.cs new file mode 100644 index 0000000..071ba38 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/GcpServiceAccountKeys.cs @@ -0,0 +1,184 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys")] + public partial class GcpServiceAccountKeys : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + /// + /// The Service Account Email whose keys should be rotated + /// + [Output("serviceAccount")] + public Output ServiceAccount { get; private set; } = null!; + + + /// + /// Create a GcpServiceAccountKeys resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpServiceAccountKeys(string name, GcpServiceAccountKeysArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys", name, args ?? new GcpServiceAccountKeysArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpServiceAccountKeys(string name, Input id, GcpServiceAccountKeysState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpServiceAccountKeys resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpServiceAccountKeys Get(string name, Input id, GcpServiceAccountKeysState? state = null, CustomResourceOptions? options = null) + { + return new GcpServiceAccountKeys(name, id, state, options); + } + } + + public sealed class GcpServiceAccountKeysArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + /// + /// The Service Account Email whose keys should be rotated + /// + [Input("serviceAccount", required: true)] + public Input ServiceAccount { get; set; } = null!; + + public GcpServiceAccountKeysArgs() + { + } + public static new GcpServiceAccountKeysArgs Empty => new GcpServiceAccountKeysArgs(); + } + + public sealed class GcpServiceAccountKeysState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + /// + /// The Service Account Email whose keys should be rotated + /// + [Input("serviceAccount")] + public Input? ServiceAccount { get; set; } + + public GcpServiceAccountKeysState() + { + } + public static new GcpServiceAccountKeysState Empty => new GcpServiceAccountKeysState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/AwsMssqlCredentialArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/AwsMssqlCredentialArgs.cs new file mode 100644 index 0000000..b662175 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/AwsMssqlCredentialArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class AwsMssqlCredentialArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsMssqlCredentialArgs() + { + } + public static new AwsMssqlCredentialArgs Empty => new AwsMssqlCredentialArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/AwsMssqlCredentialGetArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/AwsMssqlCredentialGetArgs.cs new file mode 100644 index 0000000..ff8c217 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/AwsMssqlCredentialGetArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class AwsMssqlCredentialGetArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsMssqlCredentialGetArgs() + { + } + public static new AwsMssqlCredentialGetArgs Empty => new AwsMssqlCredentialGetArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/AwsMysqlCredentialArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/AwsMysqlCredentialArgs.cs new file mode 100644 index 0000000..5b07691 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/AwsMysqlCredentialArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class AwsMysqlCredentialArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsMysqlCredentialArgs() + { + } + public static new AwsMysqlCredentialArgs Empty => new AwsMysqlCredentialArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/AwsMysqlCredentialGetArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/AwsMysqlCredentialGetArgs.cs new file mode 100644 index 0000000..b88187e --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/AwsMysqlCredentialGetArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class AwsMysqlCredentialGetArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsMysqlCredentialGetArgs() + { + } + public static new AwsMysqlCredentialGetArgs Empty => new AwsMysqlCredentialGetArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/AwsPostgresCredentialArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/AwsPostgresCredentialArgs.cs new file mode 100644 index 0000000..4838fee --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/AwsPostgresCredentialArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class AwsPostgresCredentialArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsPostgresCredentialArgs() + { + } + public static new AwsPostgresCredentialArgs Empty => new AwsPostgresCredentialArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/AwsPostgresCredentialGetArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/AwsPostgresCredentialGetArgs.cs new file mode 100644 index 0000000..a37b347 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/AwsPostgresCredentialGetArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class AwsPostgresCredentialGetArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public AwsPostgresCredentialGetArgs() + { + } + public static new AwsPostgresCredentialGetArgs Empty => new AwsPostgresCredentialGetArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/CloudflareTokensCredentialArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/CloudflareTokensCredentialArgs.cs new file mode 100644 index 0000000..66fd48f --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/CloudflareTokensCredentialArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class CloudflareTokensCredentialArgs : global::Pulumi.ResourceArgs + { + [Input("value", required: true)] + private Input? _value; + public Input? Value + { + get => _value; + set + { + var emptySecret = Output.CreateSecret(0); + _value = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public CloudflareTokensCredentialArgs() + { + } + public static new CloudflareTokensCredentialArgs Empty => new CloudflareTokensCredentialArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/CloudflareTokensCredentialGetArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/CloudflareTokensCredentialGetArgs.cs new file mode 100644 index 0000000..20358d4 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/CloudflareTokensCredentialGetArgs.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class CloudflareTokensCredentialGetArgs : global::Pulumi.ResourceArgs + { + [Input("value", required: true)] + private Input? _value; + public Input? Value + { + get => _value; + set + { + var emptySecret = Output.CreateSecret(0); + _value = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + public CloudflareTokensCredentialGetArgs() + { + } + public static new CloudflareTokensCredentialGetArgs Empty => new CloudflareTokensCredentialGetArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/GcpCloudsqlCredentialArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/GcpCloudsqlCredentialArgs.cs new file mode 100644 index 0000000..87ed5eb --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/GcpCloudsqlCredentialArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class GcpCloudsqlCredentialArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("userHostName")] + public Input? UserHostName { get; set; } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public GcpCloudsqlCredentialArgs() + { + } + public static new GcpCloudsqlCredentialArgs Empty => new GcpCloudsqlCredentialArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/GcpCloudsqlCredentialGetArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/GcpCloudsqlCredentialGetArgs.cs new file mode 100644 index 0000000..a88b0f0 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/GcpCloudsqlCredentialGetArgs.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class GcpCloudsqlCredentialGetArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("userHostName")] + public Input? UserHostName { get; set; } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public GcpCloudsqlCredentialGetArgs() + { + } + public static new GcpCloudsqlCredentialGetArgs Empty => new GcpCloudsqlCredentialGetArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/MongodbAtlasCredentialArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/MongodbAtlasCredentialArgs.cs new file mode 100644 index 0000000..c03a7ce --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/MongodbAtlasCredentialArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class MongodbAtlasCredentialArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public MongodbAtlasCredentialArgs() + { + } + public static new MongodbAtlasCredentialArgs Empty => new MongodbAtlasCredentialArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Inputs/MongodbAtlasCredentialGetArgs.cs b/sdk/dotnet/RotatedSecret/Inputs/MongodbAtlasCredentialGetArgs.cs new file mode 100644 index 0000000..a735d37 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Inputs/MongodbAtlasCredentialGetArgs.cs @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Inputs +{ + + public sealed class MongodbAtlasCredentialGetArgs : global::Pulumi.ResourceArgs + { + [Input("password", required: true)] + private Input? _password; + public Input? Password + { + get => _password; + set + { + var emptySecret = Output.CreateSecret(0); + _password = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + [Input("username", required: true)] + public Input Username { get; set; } = null!; + + public MongodbAtlasCredentialGetArgs() + { + } + public static new MongodbAtlasCredentialGetArgs Empty => new MongodbAtlasCredentialGetArgs(); + } +} diff --git a/sdk/dotnet/RotatedSecret/MongodbAtlas.cs b/sdk/dotnet/RotatedSecret/MongodbAtlas.cs new file mode 100644 index 0000000..258fc59 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/MongodbAtlas.cs @@ -0,0 +1,214 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/mongodbAtlas:MongodbAtlas")] + public partial class MongodbAtlas : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// Rotated secret credentials + /// + [Output("credentials")] + public Output> Credentials { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The Mongo DB Atlas Project ID + /// + [Output("projectId")] + public Output ProjectId { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a MongodbAtlas resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public MongodbAtlas(string name, MongodbAtlasArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/mongodbAtlas:MongodbAtlas", name, args ?? new MongodbAtlasArgs(), MakeResourceOptions(options, "")) + { + } + + private MongodbAtlas(string name, Input id, MongodbAtlasState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/mongodbAtlas:MongodbAtlas", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing MongodbAtlas resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static MongodbAtlas Get(string name, Input id, MongodbAtlasState? state = null, CustomResourceOptions? options = null) + { + return new MongodbAtlas(name, id, state, options); + } + } + + public sealed class MongodbAtlasArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + [Input("credentials", required: true)] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The Mongo DB Atlas Project ID + /// + [Input("projectId", required: true)] + public Input ProjectId { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public MongodbAtlasArgs() + { + } + public static new MongodbAtlasArgs Empty => new MongodbAtlasArgs(); + } + + public sealed class MongodbAtlasState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + [Input("credentials")] + private InputList? _credentials; + + /// + /// Rotated secret credentials + /// + public InputList Credentials + { + get => _credentials ?? (_credentials = new InputList()); + set => _credentials = value; + } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The Mongo DB Atlas Project ID + /// + [Input("projectId")] + public Input? ProjectId { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public MongodbAtlasState() + { + } + public static new MongodbAtlasState Empty => new MongodbAtlasState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Openai.cs b/sdk/dotnet/RotatedSecret/Openai.cs new file mode 100644 index 0000000..62c8917 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Openai.cs @@ -0,0 +1,184 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/openai:Openai")] + public partial class Openai : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The OpenAI project ID to create service accounts in + /// + [Output("projectId")] + public Output ProjectId { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a Openai resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Openai(string name, OpenaiArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/openai:Openai", name, args ?? new OpenaiArgs(), MakeResourceOptions(options, "")) + { + } + + private Openai(string name, Input id, OpenaiState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/openai:Openai", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Openai resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Openai Get(string name, Input id, OpenaiState? state = null, CustomResourceOptions? options = null) + { + return new Openai(name, id, state, options); + } + } + + public sealed class OpenaiArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The OpenAI project ID to create service accounts in + /// + [Input("projectId", required: true)] + public Input ProjectId { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public OpenaiArgs() + { + } + public static new OpenaiArgs Empty => new OpenaiArgs(); + } + + public sealed class OpenaiState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The OpenAI project ID to create service accounts in + /// + [Input("projectId")] + public Input? ProjectId { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public OpenaiState() + { + } + public static new OpenaiState Empty => new OpenaiState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Outputs/AwsMssqlCredential.cs b/sdk/dotnet/RotatedSecret/Outputs/AwsMssqlCredential.cs new file mode 100644 index 0000000..f67144f --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Outputs/AwsMssqlCredential.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Outputs +{ + + [OutputType] + public sealed class AwsMssqlCredential + { + public readonly string Password; + public readonly string Username; + + [OutputConstructor] + private AwsMssqlCredential( + string password, + + string username) + { + Password = password; + Username = username; + } + } +} diff --git a/sdk/dotnet/RotatedSecret/Outputs/AwsMysqlCredential.cs b/sdk/dotnet/RotatedSecret/Outputs/AwsMysqlCredential.cs new file mode 100644 index 0000000..063cdd6 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Outputs/AwsMysqlCredential.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Outputs +{ + + [OutputType] + public sealed class AwsMysqlCredential + { + public readonly string Password; + public readonly string Username; + + [OutputConstructor] + private AwsMysqlCredential( + string password, + + string username) + { + Password = password; + Username = username; + } + } +} diff --git a/sdk/dotnet/RotatedSecret/Outputs/AwsPostgresCredential.cs b/sdk/dotnet/RotatedSecret/Outputs/AwsPostgresCredential.cs new file mode 100644 index 0000000..481e630 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Outputs/AwsPostgresCredential.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Outputs +{ + + [OutputType] + public sealed class AwsPostgresCredential + { + public readonly string Password; + public readonly string Username; + + [OutputConstructor] + private AwsPostgresCredential( + string password, + + string username) + { + Password = password; + Username = username; + } + } +} diff --git a/sdk/dotnet/RotatedSecret/Outputs/CloudflareTokensCredential.cs b/sdk/dotnet/RotatedSecret/Outputs/CloudflareTokensCredential.cs new file mode 100644 index 0000000..1b074a8 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Outputs/CloudflareTokensCredential.cs @@ -0,0 +1,25 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Outputs +{ + + [OutputType] + public sealed class CloudflareTokensCredential + { + public readonly string Value; + + [OutputConstructor] + private CloudflareTokensCredential(string value) + { + Value = value; + } + } +} diff --git a/sdk/dotnet/RotatedSecret/Outputs/GcpCloudsqlCredential.cs b/sdk/dotnet/RotatedSecret/Outputs/GcpCloudsqlCredential.cs new file mode 100644 index 0000000..1b09f6b --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Outputs/GcpCloudsqlCredential.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Outputs +{ + + [OutputType] + public sealed class GcpCloudsqlCredential + { + public readonly string Password; + public readonly string? UserHostName; + public readonly string Username; + + [OutputConstructor] + private GcpCloudsqlCredential( + string password, + + string? userHostName, + + string username) + { + Password = password; + UserHostName = userHostName; + Username = username; + } + } +} diff --git a/sdk/dotnet/RotatedSecret/Outputs/MongodbAtlasCredential.cs b/sdk/dotnet/RotatedSecret/Outputs/MongodbAtlasCredential.cs new file mode 100644 index 0000000..14da848 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Outputs/MongodbAtlasCredential.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret.Outputs +{ + + [OutputType] + public sealed class MongodbAtlasCredential + { + public readonly string Password; + public readonly string Username; + + [OutputConstructor] + private MongodbAtlasCredential( + string password, + + string username) + { + Password = password; + Username = username; + } + } +} diff --git a/sdk/dotnet/RotatedSecret/README.md b/sdk/dotnet/RotatedSecret/README.md new file mode 100644 index 0000000..a8c6463 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/README.md @@ -0,0 +1 @@ +A Pulumi package for managing Doppler projects, secrets, and access. diff --git a/sdk/dotnet/RotatedSecret/Sendgrid.cs b/sdk/dotnet/RotatedSecret/Sendgrid.cs new file mode 100644 index 0000000..a6a738c --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Sendgrid.cs @@ -0,0 +1,196 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/sendgrid:Sendgrid")] + public partial class Sendgrid : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + /// + /// SendGrid scopes + /// + [Output("scopes")] + public Output> Scopes { get; private set; } = null!; + + + /// + /// Create a Sendgrid resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Sendgrid(string name, SendgridArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/sendgrid:Sendgrid", name, args ?? new SendgridArgs(), MakeResourceOptions(options, "")) + { + } + + private Sendgrid(string name, Input id, SendgridState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/sendgrid:Sendgrid", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Sendgrid resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Sendgrid Get(string name, Input id, SendgridState? state = null, CustomResourceOptions? options = null) + { + return new Sendgrid(name, id, state, options); + } + } + + public sealed class SendgridArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + [Input("scopes", required: true)] + private InputList? _scopes; + + /// + /// SendGrid scopes + /// + public InputList Scopes + { + get => _scopes ?? (_scopes = new InputList()); + set => _scopes = value; + } + + public SendgridArgs() + { + } + public static new SendgridArgs Empty => new SendgridArgs(); + } + + public sealed class SendgridState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + [Input("scopes")] + private InputList? _scopes; + + /// + /// SendGrid scopes + /// + public InputList Scopes + { + get => _scopes ?? (_scopes = new InputList()); + set => _scopes = value; + } + + public SendgridState() + { + } + public static new SendgridState Empty => new SendgridState(); + } +} diff --git a/sdk/dotnet/RotatedSecret/Twilio.cs b/sdk/dotnet/RotatedSecret/Twilio.cs new file mode 100644 index 0000000..354a094 --- /dev/null +++ b/sdk/dotnet/RotatedSecret/Twilio.cs @@ -0,0 +1,166 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.RotatedSecret +{ + [DopplerResourceType("doppler:rotatedSecret/twilio:Twilio")] + public partial class Twilio : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the rotated secret + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Output("rotationPeriodSec")] + public Output RotationPeriodSec { get; private set; } = null!; + + + /// + /// Create a Twilio resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Twilio(string name, TwilioArgs args, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/twilio:Twilio", name, args ?? new TwilioArgs(), MakeResourceOptions(options, "")) + { + } + + private Twilio(string name, Input id, TwilioState? state = null, CustomResourceOptions? options = null) + : base("doppler:rotatedSecret/twilio:Twilio", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Twilio resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Twilio Get(string name, Input id, TwilioState? state = null, CustomResourceOptions? options = null) + { + return new Twilio(name, id, state, options); + } + } + + public sealed class TwilioArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the rotated secret + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec", required: true)] + public Input RotationPeriodSec { get; set; } = null!; + + public TwilioArgs() + { + } + public static new TwilioArgs Empty => new TwilioArgs(); + } + + public sealed class TwilioState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The slug of the integration to use for this rotated secret + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the rotated secret + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// How frequently to rotate the secret + /// + [Input("rotationPeriodSec")] + public Input? RotationPeriodSec { get; set; } + + public TwilioState() + { + } + public static new TwilioState Empty => new TwilioState(); + } +} diff --git a/sdk/dotnet/Secret.cs b/sdk/dotnet/Secret.cs index c9366f0..3cc0e32 100644 --- a/sdk/dotnet/Secret.cs +++ b/sdk/dotnet/Secret.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,11 +8,43 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a single Doppler secret in a config. /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dbPassword = new Random.Password("db_password", new() + /// { + /// Length = 32, + /// Special = true, + /// }); + /// + /// var dbPasswordSecret = new Doppler.Secret("db_password", new() + /// { + /// Project = "backend", + /// Config = "dev", + /// Name = "DB_PASSWORD", + /// Value = dbPassword.Result, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["resourceValue"] = Output.Unsecret(dbPasswordSecret.Value), + /// }; + /// }); + /// ``` + /// /// ## Import /// /// ```sh @@ -53,7 +85,13 @@ public partial class Secret : global::Pulumi.CustomResource public Output Value { get; private set; } = null!; /// - /// The visibility of the secret + /// The value type of the secret + /// + [Output("valueType")] + public Output ValueType { get; private set; } = null!; + + /// + /// The visibility of the secret. One of `Masked`, `Unmasked`, or `Restricted`. Defaults to `Masked`. /// [Output("visibility")] public Output Visibility { get; private set; } = null!; @@ -81,7 +119,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "computed", @@ -145,7 +183,13 @@ public Input? Value } /// - /// The visibility of the secret + /// The value type of the secret + /// + [Input("valueType")] + public Input? ValueType { get; set; } + + /// + /// The visibility of the secret. One of `Masked`, `Unmasked`, or `Restricted`. Defaults to `Masked`. /// [Input("visibility")] public Input? Visibility { get; set; } @@ -209,7 +253,13 @@ public Input? Value } /// - /// The visibility of the secret + /// The value type of the secret + /// + [Input("valueType")] + public Input? ValueType { get; set; } + + /// + /// The visibility of the secret. One of `Masked`, `Unmasked`, or `Restricted`. Defaults to `Masked`. /// [Input("visibility")] public Input? Visibility { get; set; } diff --git a/sdk/dotnet/SecretNote.cs b/sdk/dotnet/SecretNote.cs new file mode 100644 index 0000000..fb99d85 --- /dev/null +++ b/sdk/dotnet/SecretNote.cs @@ -0,0 +1,155 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage the note attached to a Doppler secret. Notes are scoped per project and secret name, and they apply across all configs in the project. + /// + /// The note resource is independent of `doppler.Secret`. A note can be declared for a secret managed inside or outside Terraform, as long as the secret exists in at least one config in the project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var stripeKey = new Doppler.SecretNote("stripe_key", new() + /// { + /// Project = "backend", + /// Name = "STRIPE_SECRET_KEY", + /// Note = "Owner: payments team. Rotate quarterly via Stripe dashboard.", + /// }); + /// + /// }); + /// ``` + /// + [DopplerResourceType("doppler:index/secretNote:SecretNote")] + public partial class SecretNote : global::Pulumi.CustomResource + { + /// + /// The name of the secret. Notes are scoped per project + secret name and apply across all configs. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The note content to attach to the secret + /// + [Output("note")] + public Output Note { get; private set; } = null!; + + /// + /// The name of the Doppler project that owns the secret + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + + /// + /// Create a SecretNote resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public SecretNote(string name, SecretNoteArgs args, CustomResourceOptions? options = null) + : base("doppler:index/secretNote:SecretNote", name, args ?? new SecretNoteArgs(), MakeResourceOptions(options, "")) + { + } + + private SecretNote(string name, Input id, SecretNoteState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/secretNote:SecretNote", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing SecretNote resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static SecretNote Get(string name, Input id, SecretNoteState? state = null, CustomResourceOptions? options = null) + { + return new SecretNote(name, id, state, options); + } + } + + public sealed class SecretNoteArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the secret. Notes are scoped per project + secret name and apply across all configs. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The note content to attach to the secret + /// + [Input("note", required: true)] + public Input Note { get; set; } = null!; + + /// + /// The name of the Doppler project that owns the secret + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + public SecretNoteArgs() + { + } + public static new SecretNoteArgs Empty => new SecretNoteArgs(); + } + + public sealed class SecretNoteState : global::Pulumi.ResourceArgs + { + /// + /// The name of the secret. Notes are scoped per project + secret name and apply across all configs. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The note content to attach to the secret + /// + [Input("note")] + public Input? Note { get; set; } + + /// + /// The name of the Doppler project that owns the secret + /// + [Input("project")] + public Input? Project { get; set; } + + public SecretNoteState() + { + } + public static new SecretNoteState Empty => new SecretNoteState(); + } +} diff --git a/sdk/dotnet/SecretsSync/AwsParameterStore.cs b/sdk/dotnet/SecretsSync/AwsParameterStore.cs index e5a5a64..dc6ad4b 100644 --- a/sdk/dotnet/SecretsSync/AwsParameterStore.cs +++ b/sdk/dotnet/SecretsSync/AwsParameterStore.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.SecretsSync +namespace DopplerHQ.Doppler.SecretsSync { /// /// Manage an AWS Parameter Store Doppler sync. @@ -21,42 +21,18 @@ namespace Pulumiverse.Doppler.SecretsSync /// using System.Text.Json; /// using Pulumi; /// using Aws = Pulumi.Aws; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { - /// var dopplerParameterStore = new Aws.Iam.Role("doppler_parameter_store", new() + /// var dopplerParameterStore = new Aws.IamRole("doppler_parameter_store", new() /// { - /// Name = "doppler_parameter_store", - /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> - /// { - /// ["Version"] = "2012-10-17", - /// ["Statement"] = new[] - /// { - /// new Dictionary<string, object?> - /// { - /// ["Effect"] = "Allow", - /// ["Action"] = "sts:AssumeRole", - /// ["Principal"] = new Dictionary<string, object?> - /// { - /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", - /// }, - /// ["Condition"] = new Dictionary<string, object?> - /// { - /// ["StringEquals"] = new Dictionary<string, object?> - /// { - /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", - /// }, - /// }, - /// }, - /// }, - /// }), - /// InlinePolicies = new[] + /// InlinePolicy = new[] /// { - /// new Aws.Iam.Inputs.RoleInlinePolicyArgs + /// /// { - /// Name = "doppler_secret_manager", - /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { "name", "doppler_secret_manager" }, + /// { "policy", JsonSerializer.Serialize(new Dictionary<string, object?> /// { /// ["Version"] = "2012-10-17", /// ["Statement"] = new[] @@ -80,9 +56,33 @@ namespace Pulumiverse.Doppler.SecretsSync /// ["Resource"] = "*", /// }, /// }, - /// }), + /// }) }, /// }, /// }, + /// Name = "doppler_parameter_store", + /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["Version"] = "2012-10-17", + /// ["Statement"] = new[] + /// { + /// new Dictionary<string, object?> + /// { + /// ["Effect"] = "Allow", + /// ["Action"] = "sts:AssumeRole", + /// ["Principal"] = new Dictionary<string, object?> + /// { + /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", + /// }, + /// ["Condition"] = new Dictionary<string, object?> + /// { + /// ["StringEquals"] = new Dictionary<string, object?> + /// { + /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", + /// }, + /// }, + /// }, + /// }, + /// }), /// }); /// /// var prod = new Doppler.Integration.AwsParameterStore("prod", new() @@ -112,6 +112,12 @@ namespace Pulumiverse.Doppler.SecretsSync [DopplerResourceType("doppler:secretsSync/awsParameterStore:AwsParameterStore")] public partial class AwsParameterStore : global::Pulumi.CustomResource { + /// + /// Whether or not the parameters are explicitly stored as an advanced parameter + /// + [Output("advancedParameter")] + public Output AdvancedParameter { get; private set; } = null!; + /// /// The name of the Doppler config /// @@ -119,7 +125,7 @@ public partial class AwsParameterStore : global::Pulumi.CustomResource public Output Config { get; private set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Output("deleteBehavior")] public Output DeleteBehavior { get; private set; } = null!; @@ -136,6 +142,12 @@ public partial class AwsParameterStore : global::Pulumi.CustomResource [Output("kmsKeyId")] public Output KmsKeyId { get; private set; } = null!; + /// + /// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + /// + [Output("nameTransform")] + public Output NameTransform { get; private set; } = null!; + /// /// The path to the parameters in AWS /// @@ -160,12 +172,24 @@ public partial class AwsParameterStore : global::Pulumi.CustomResource [Output("secureString")] public Output SecureString { get; private set; } = null!; + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + /// + [Output("syncStrategy")] + public Output SyncStrategy { get; private set; } = null!; + /// /// AWS tags to attach to the parameters /// [Output("tags")] public Output?> Tags { get; private set; } = null!; + /// + /// Behavior for AWS resource tags on updates (`Never` update, `Upsert` tags (leaving non-Doppler tags alone), `Replace` tags (remove non-Doppler tags)) + /// + [Output("updateResourceTags")] + public Output UpdateResourceTags { get; private set; } = null!; + /// /// Create a AwsParameterStore resource with the given unique name, arguments, and options. @@ -189,7 +213,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -213,6 +237,12 @@ public static AwsParameterStore Get(string name, Input id, AwsParameterS public sealed class AwsParameterStoreArgs : global::Pulumi.ResourceArgs { + /// + /// Whether or not the parameters are explicitly stored as an advanced parameter + /// + [Input("advancedParameter")] + public Input? AdvancedParameter { get; set; } + /// /// The name of the Doppler config /// @@ -220,7 +250,7 @@ public sealed class AwsParameterStoreArgs : global::Pulumi.ResourceArgs public Input Config { get; set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -237,6 +267,12 @@ public sealed class AwsParameterStoreArgs : global::Pulumi.ResourceArgs [Input("kmsKeyId")] public Input? KmsKeyId { get; set; } + /// + /// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + /// + [Input("nameTransform")] + public Input? NameTransform { get; set; } + /// /// The path to the parameters in AWS /// @@ -261,6 +297,12 @@ public sealed class AwsParameterStoreArgs : global::Pulumi.ResourceArgs [Input("secureString")] public Input? SecureString { get; set; } + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + /// + [Input("syncStrategy")] + public Input? SyncStrategy { get; set; } + [Input("tags")] private InputMap? _tags; @@ -273,6 +315,12 @@ public InputMap Tags set => _tags = value; } + /// + /// Behavior for AWS resource tags on updates (`Never` update, `Upsert` tags (leaving non-Doppler tags alone), `Replace` tags (remove non-Doppler tags)) + /// + [Input("updateResourceTags")] + public Input? UpdateResourceTags { get; set; } + public AwsParameterStoreArgs() { } @@ -281,6 +329,12 @@ public AwsParameterStoreArgs() public sealed class AwsParameterStoreState : global::Pulumi.ResourceArgs { + /// + /// Whether or not the parameters are explicitly stored as an advanced parameter + /// + [Input("advancedParameter")] + public Input? AdvancedParameter { get; set; } + /// /// The name of the Doppler config /// @@ -288,7 +342,7 @@ public sealed class AwsParameterStoreState : global::Pulumi.ResourceArgs public Input? Config { get; set; } /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -305,6 +359,12 @@ public sealed class AwsParameterStoreState : global::Pulumi.ResourceArgs [Input("kmsKeyId")] public Input? KmsKeyId { get; set; } + /// + /// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + /// + [Input("nameTransform")] + public Input? NameTransform { get; set; } + /// /// The path to the parameters in AWS /// @@ -329,6 +389,12 @@ public sealed class AwsParameterStoreState : global::Pulumi.ResourceArgs [Input("secureString")] public Input? SecureString { get; set; } + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + /// + [Input("syncStrategy")] + public Input? SyncStrategy { get; set; } + [Input("tags")] private InputMap? _tags; @@ -341,6 +407,12 @@ public InputMap Tags set => _tags = value; } + /// + /// Behavior for AWS resource tags on updates (`Never` update, `Upsert` tags (leaving non-Doppler tags alone), `Replace` tags (remove non-Doppler tags)) + /// + [Input("updateResourceTags")] + public Input? UpdateResourceTags { get; set; } + public AwsParameterStoreState() { } diff --git a/sdk/dotnet/SecretsSync/AwsSecretsManager.cs b/sdk/dotnet/SecretsSync/AwsSecretsManager.cs index b8a3188..615da6a 100644 --- a/sdk/dotnet/SecretsSync/AwsSecretsManager.cs +++ b/sdk/dotnet/SecretsSync/AwsSecretsManager.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.SecretsSync +namespace DopplerHQ.Doppler.SecretsSync { /// /// Manage an AWS Secrets Manager Doppler sync. @@ -21,42 +21,18 @@ namespace Pulumiverse.Doppler.SecretsSync /// using System.Text.Json; /// using Pulumi; /// using Aws = Pulumi.Aws; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { - /// var dopplerSecretsManager = new Aws.Iam.Role("doppler_secrets_manager", new() + /// var dopplerSecretsManager = new Aws.IamRole("doppler_secrets_manager", new() /// { - /// Name = "doppler_secrets_manager", - /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> - /// { - /// ["Version"] = "2012-10-17", - /// ["Statement"] = new[] - /// { - /// new Dictionary<string, object?> - /// { - /// ["Effect"] = "Allow", - /// ["Action"] = "sts:AssumeRole", - /// ["Principal"] = new Dictionary<string, object?> - /// { - /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", - /// }, - /// ["Condition"] = new Dictionary<string, object?> - /// { - /// ["StringEquals"] = new Dictionary<string, object?> - /// { - /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", - /// }, - /// }, - /// }, - /// }, - /// }), - /// InlinePolicies = new[] + /// InlinePolicy = new[] /// { - /// new Aws.Iam.Inputs.RoleInlinePolicyArgs + /// /// { - /// Name = "doppler_secret_manager", - /// Policy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { "name", "doppler_secret_manager" }, + /// { "policy", JsonSerializer.Serialize(new Dictionary<string, object?> /// { /// ["Version"] = "2012-10-17", /// ["Statement"] = new[] @@ -77,9 +53,33 @@ namespace Pulumiverse.Doppler.SecretsSync /// ["Resource"] = "*", /// }, /// }, - /// }), + /// }) }, /// }, /// }, + /// Name = "doppler_secrets_manager", + /// AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["Version"] = "2012-10-17", + /// ["Statement"] = new[] + /// { + /// new Dictionary<string, object?> + /// { + /// ["Effect"] = "Allow", + /// ["Action"] = "sts:AssumeRole", + /// ["Principal"] = new Dictionary<string, object?> + /// { + /// ["AWS"] = "arn:aws:iam::299900769157:user/doppler-integration-operator", + /// }, + /// ["Condition"] = new Dictionary<string, object?> + /// { + /// ["StringEquals"] = new Dictionary<string, object?> + /// { + /// ["sts:ExternalId"] = "<YOUR_WORKPLACE_SLUG>", + /// }, + /// }, + /// }, + /// }, + /// }), /// }); /// /// var prod = new Doppler.Integration.AwsSecretsManager("prod", new() @@ -115,7 +115,7 @@ public partial class AwsSecretsManager : global::Pulumi.CustomResource public Output Config { get; private set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Output("deleteBehavior")] public Output DeleteBehavior { get; private set; } = null!; @@ -132,12 +132,24 @@ public partial class AwsSecretsManager : global::Pulumi.CustomResource [Output("kmsKeyId")] public Output KmsKeyId { get; private set; } = null!; + /// + /// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + /// + [Output("nameTransform")] + public Output NameTransform { get; private set; } = null!; + /// /// The path to the secret in AWS /// [Output("path")] public Output Path { get; private set; } = null!; + /// + /// The behavior to modify the provided path. Either `AddDopplerSuffix` (default) which appends `Doppler` to the provided path or `None` which leaves the path unchanged. + /// + [Output("pathBehavior")] + public Output PathBehavior { get; private set; } = null!; + /// /// The name of the Doppler project /// @@ -150,6 +162,12 @@ public partial class AwsSecretsManager : global::Pulumi.CustomResource [Output("region")] public Output Region { get; private set; } = null!; + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + /// + [Output("syncStrategy")] + public Output SyncStrategy { get; private set; } = null!; + /// /// AWS tags to attach to the secrets /// @@ -157,11 +175,17 @@ public partial class AwsSecretsManager : global::Pulumi.CustomResource public Output?> Tags { get; private set; } = null!; /// - /// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + /// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. /// [Output("updateMetadata")] public Output UpdateMetadata { get; private set; } = null!; + /// + /// Behavior for AWS resource tags on updates (`Never` update, `Upsert` tags (leaving non-Doppler tags alone), `Replace` tags (remove non-Doppler tags)) + /// + [Output("updateResourceTags")] + public Output UpdateResourceTags { get; private set; } = null!; + /// /// Create a AwsSecretsManager resource with the given unique name, arguments, and options. @@ -185,7 +209,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -216,7 +240,7 @@ public sealed class AwsSecretsManagerArgs : global::Pulumi.ResourceArgs public Input Config { get; set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -233,12 +257,24 @@ public sealed class AwsSecretsManagerArgs : global::Pulumi.ResourceArgs [Input("kmsKeyId")] public Input? KmsKeyId { get; set; } + /// + /// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + /// + [Input("nameTransform")] + public Input? NameTransform { get; set; } + /// /// The path to the secret in AWS /// [Input("path", required: true)] public Input Path { get; set; } = null!; + /// + /// The behavior to modify the provided path. Either `AddDopplerSuffix` (default) which appends `Doppler` to the provided path or `None` which leaves the path unchanged. + /// + [Input("pathBehavior")] + public Input? PathBehavior { get; set; } + /// /// The name of the Doppler project /// @@ -251,6 +287,12 @@ public sealed class AwsSecretsManagerArgs : global::Pulumi.ResourceArgs [Input("region", required: true)] public Input Region { get; set; } = null!; + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + /// + [Input("syncStrategy")] + public Input? SyncStrategy { get; set; } + [Input("tags")] private InputMap? _tags; @@ -264,11 +306,17 @@ public InputMap Tags } /// - /// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + /// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. /// [Input("updateMetadata")] public Input? UpdateMetadata { get; set; } + /// + /// Behavior for AWS resource tags on updates (`Never` update, `Upsert` tags (leaving non-Doppler tags alone), `Replace` tags (remove non-Doppler tags)) + /// + [Input("updateResourceTags")] + public Input? UpdateResourceTags { get; set; } + public AwsSecretsManagerArgs() { } @@ -284,7 +332,7 @@ public sealed class AwsSecretsManagerState : global::Pulumi.ResourceArgs public Input? Config { get; set; } /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -301,12 +349,24 @@ public sealed class AwsSecretsManagerState : global::Pulumi.ResourceArgs [Input("kmsKeyId")] public Input? KmsKeyId { get; set; } + /// + /// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + /// + [Input("nameTransform")] + public Input? NameTransform { get; set; } + /// /// The path to the secret in AWS /// [Input("path")] public Input? Path { get; set; } + /// + /// The behavior to modify the provided path. Either `AddDopplerSuffix` (default) which appends `Doppler` to the provided path or `None` which leaves the path unchanged. + /// + [Input("pathBehavior")] + public Input? PathBehavior { get; set; } + /// /// The name of the Doppler project /// @@ -319,6 +379,12 @@ public sealed class AwsSecretsManagerState : global::Pulumi.ResourceArgs [Input("region")] public Input? Region { get; set; } + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + /// + [Input("syncStrategy")] + public Input? SyncStrategy { get; set; } + [Input("tags")] private InputMap? _tags; @@ -332,11 +398,17 @@ public InputMap Tags } /// - /// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + /// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. /// [Input("updateMetadata")] public Input? UpdateMetadata { get; set; } + /// + /// Behavior for AWS resource tags on updates (`Never` update, `Upsert` tags (leaving non-Doppler tags alone), `Replace` tags (remove non-Doppler tags)) + /// + [Input("updateResourceTags")] + public Input? UpdateResourceTags { get; set; } + public AwsSecretsManagerState() { } diff --git a/sdk/dotnet/SecretsSync/AzureVault.cs b/sdk/dotnet/SecretsSync/AzureVault.cs new file mode 100644 index 0000000..6e2ab8d --- /dev/null +++ b/sdk/dotnet/SecretsSync/AzureVault.cs @@ -0,0 +1,205 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.SecretsSync +{ + /// + /// Manage an Azure Vault Doppler sync. + /// + [DopplerResourceType("doppler:secretsSync/azureVault:AzureVault")] + public partial class AzureVault : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Output("deleteBehavior")] + public Output DeleteBehavior { get; private set; } = null!; + + /// + /// The slug of the integration to use for this sync + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + /// + [Output("singleSecretName")] + public Output SingleSecretName { get; private set; } = null!; + + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + /// + [Output("syncStrategy")] + public Output SyncStrategy { get; private set; } = null!; + + /// + /// The Azure Vault URI for the vault secrets will be synced to. + /// + [Output("vaultUri")] + public Output VaultUri { get; private set; } = null!; + + + /// + /// Create a AzureVault resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public AzureVault(string name, AzureVaultArgs args, CustomResourceOptions? options = null) + : base("doppler:secretsSync/azureVault:AzureVault", name, args ?? new AzureVaultArgs(), MakeResourceOptions(options, "")) + { + } + + private AzureVault(string name, Input id, AzureVaultState? state = null, CustomResourceOptions? options = null) + : base("doppler:secretsSync/azureVault:AzureVault", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing AzureVault resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static AzureVault Get(string name, Input id, AzureVaultState? state = null, CustomResourceOptions? options = null) + { + return new AzureVault(name, id, state, options); + } + } + + public sealed class AzureVaultArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + /// + [Input("singleSecretName")] + public Input? SingleSecretName { get; set; } + + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + /// + [Input("syncStrategy", required: true)] + public Input SyncStrategy { get; set; } = null!; + + /// + /// The Azure Vault URI for the vault secrets will be synced to. + /// + [Input("vaultUri", required: true)] + public Input VaultUri { get; set; } = null!; + + public AzureVaultArgs() + { + } + public static new AzureVaultArgs Empty => new AzureVaultArgs(); + } + + public sealed class AzureVaultState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + /// + [Input("singleSecretName")] + public Input? SingleSecretName { get; set; } + + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + /// + [Input("syncStrategy")] + public Input? SyncStrategy { get; set; } + + /// + /// The Azure Vault URI for the vault secrets will be synced to. + /// + [Input("vaultUri")] + public Input? VaultUri { get; set; } + + public AzureVaultState() + { + } + public static new AzureVaultState Empty => new AzureVaultState(); + } +} diff --git a/sdk/dotnet/SecretsSync/Circleci.cs b/sdk/dotnet/SecretsSync/Circleci.cs index f44cd71..4b9e859 100644 --- a/sdk/dotnet/SecretsSync/Circleci.cs +++ b/sdk/dotnet/SecretsSync/Circleci.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.SecretsSync +namespace DopplerHQ.Doppler.SecretsSync { /// /// Manage a CircleCI Doppler sync. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler.SecretsSync /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -53,7 +53,7 @@ public partial class Circleci : global::Pulumi.CustomResource public Output Config { get; private set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Output("deleteBehavior")] public Output DeleteBehavior { get; private set; } = null!; @@ -111,7 +111,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -142,7 +142,7 @@ public sealed class CircleciArgs : global::Pulumi.ResourceArgs public Input Config { get; set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -192,7 +192,7 @@ public sealed class CircleciState : global::Pulumi.ResourceArgs public Input? Config { get; set; } /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } diff --git a/sdk/dotnet/SecretsSync/Flyio.cs b/sdk/dotnet/SecretsSync/Flyio.cs index 89786b6..58b4503 100644 --- a/sdk/dotnet/SecretsSync/Flyio.cs +++ b/sdk/dotnet/SecretsSync/Flyio.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.SecretsSync +namespace DopplerHQ.Doppler.SecretsSync { /// /// Manage a Fly.io Doppler sync. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler.SecretsSync /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -58,7 +58,7 @@ public partial class Flyio : global::Pulumi.CustomResource public Output Config { get; private set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Output("deleteBehavior")] public Output DeleteBehavior { get; private set; } = null!; @@ -104,7 +104,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -141,7 +141,7 @@ public sealed class FlyioArgs : global::Pulumi.ResourceArgs public Input Config { get; set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -185,7 +185,7 @@ public sealed class FlyioState : global::Pulumi.ResourceArgs public Input? Config { get; set; } /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } diff --git a/sdk/dotnet/SecretsSync/GcpSecretManager.cs b/sdk/dotnet/SecretsSync/GcpSecretManager.cs new file mode 100644 index 0000000..7387ce3 --- /dev/null +++ b/sdk/dotnet/SecretsSync/GcpSecretManager.cs @@ -0,0 +1,235 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.SecretsSync +{ + /// + /// Manage a GCP Secret Manager Doppler sync. + /// + [DopplerResourceType("doppler:secretsSync/gcpSecretManager:GcpSecretManager")] + public partial class GcpSecretManager : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Output("deleteBehavior")] + public Output DeleteBehavior { get; private set; } = null!; + + /// + /// Specifies the format secrets will be stored in. Either `Env` or `Json`. Defaults to `Json`. + /// + [Output("format")] + public Output Format { get; private set; } = null!; + + /// + /// The slug of the integration to use for this sync + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// The name used to store the secret when SyncStrategy is set to `single-secret` (note that the integration's `GcpSecretPrefix` will be prepended to this). + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + /// + [Output("regions")] + public Output> Regions { get; private set; } = null!; + + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + /// + [Output("syncStrategy")] + public Output SyncStrategy { get; private set; } = null!; + + + /// + /// Create a GcpSecretManager resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GcpSecretManager(string name, GcpSecretManagerArgs args, CustomResourceOptions? options = null) + : base("doppler:secretsSync/gcpSecretManager:GcpSecretManager", name, args ?? new GcpSecretManagerArgs(), MakeResourceOptions(options, "")) + { + } + + private GcpSecretManager(string name, Input id, GcpSecretManagerState? state = null, CustomResourceOptions? options = null) + : base("doppler:secretsSync/gcpSecretManager:GcpSecretManager", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GcpSecretManager resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GcpSecretManager Get(string name, Input id, GcpSecretManagerState? state = null, CustomResourceOptions? options = null) + { + return new GcpSecretManager(name, id, state, options); + } + } + + public sealed class GcpSecretManagerArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// Specifies the format secrets will be stored in. Either `Env` or `Json`. Defaults to `Json`. + /// + [Input("format")] + public Input? Format { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// The name used to store the secret when SyncStrategy is set to `single-secret` (note that the integration's `GcpSecretPrefix` will be prepended to this). + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + [Input("regions", required: true)] + private InputList? _regions; + + /// + /// The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + /// + public InputList Regions + { + get => _regions ?? (_regions = new InputList()); + set => _regions = value; + } + + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + /// + [Input("syncStrategy", required: true)] + public Input SyncStrategy { get; set; } = null!; + + public GcpSecretManagerArgs() + { + } + public static new GcpSecretManagerArgs Empty => new GcpSecretManagerArgs(); + } + + public sealed class GcpSecretManagerState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// Specifies the format secrets will be stored in. Either `Env` or `Json`. Defaults to `Json`. + /// + [Input("format")] + public Input? Format { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// The name used to store the secret when SyncStrategy is set to `single-secret` (note that the integration's `GcpSecretPrefix` will be prepended to this). + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + [Input("regions")] + private InputList? _regions; + + /// + /// The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + /// + public InputList Regions + { + get => _regions ?? (_regions = new InputList()); + set => _regions = value; + } + + /// + /// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + /// + [Input("syncStrategy")] + public Input? SyncStrategy { get; set; } + + public GcpSecretManagerState() + { + } + public static new GcpSecretManagerState Empty => new GcpSecretManagerState(); + } +} diff --git a/sdk/dotnet/SecretsSync/GithubActions.cs b/sdk/dotnet/SecretsSync/GithubActions.cs index f981fe5..3d3f4b7 100644 --- a/sdk/dotnet/SecretsSync/GithubActions.cs +++ b/sdk/dotnet/SecretsSync/GithubActions.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.SecretsSync +namespace DopplerHQ.Doppler.SecretsSync { /// /// Manage a GitHub Actions Doppler sync. @@ -23,13 +23,13 @@ public partial class GithubActions : global::Pulumi.CustomResource public Output Config { get; private set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Output("deleteBehavior")] public Output DeleteBehavior { get; private set; } = null!; /// - /// The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + /// The GitHub repo environment name to sync to (only used when `SyncTarget` is set to "repo") /// [Output("environmentName")] public Output EnvironmentName { get; private set; } = null!; @@ -41,7 +41,7 @@ public partial class GithubActions : global::Pulumi.CustomResource public Output Integration { get; private set; } = null!; /// - /// Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") /// [Output("orgScope")] public Output OrgScope { get; private set; } = null!; @@ -53,7 +53,7 @@ public partial class GithubActions : global::Pulumi.CustomResource public Output Project { get; private set; } = null!; /// - /// The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") /// [Output("repoName")] public Output RepoName { get; private set; } = null!; @@ -64,6 +64,12 @@ public partial class GithubActions : global::Pulumi.CustomResource [Output("syncTarget")] public Output SyncTarget { get; private set; } = null!; + /// + /// When enabled, causes secrets with the `Unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `False`. + /// + [Output("syncUnmaskedAsVariables")] + public Output SyncUnmaskedAsVariables { get; private set; } = null!; + /// /// Create a GithubActions resource with the given unique name, arguments, and options. @@ -87,7 +93,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -118,13 +124,13 @@ public sealed class GithubActionsArgs : global::Pulumi.ResourceArgs public Input Config { get; set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } /// - /// The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + /// The GitHub repo environment name to sync to (only used when `SyncTarget` is set to "repo") /// [Input("environmentName")] public Input? EnvironmentName { get; set; } @@ -136,7 +142,7 @@ public sealed class GithubActionsArgs : global::Pulumi.ResourceArgs public Input Integration { get; set; } = null!; /// - /// Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") /// [Input("orgScope")] public Input? OrgScope { get; set; } @@ -148,7 +154,7 @@ public sealed class GithubActionsArgs : global::Pulumi.ResourceArgs public Input Project { get; set; } = null!; /// - /// The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") /// [Input("repoName")] public Input? RepoName { get; set; } @@ -159,6 +165,12 @@ public sealed class GithubActionsArgs : global::Pulumi.ResourceArgs [Input("syncTarget", required: true)] public Input SyncTarget { get; set; } = null!; + /// + /// When enabled, causes secrets with the `Unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `False`. + /// + [Input("syncUnmaskedAsVariables")] + public Input? SyncUnmaskedAsVariables { get; set; } + public GithubActionsArgs() { } @@ -174,13 +186,13 @@ public sealed class GithubActionsState : global::Pulumi.ResourceArgs public Input? Config { get; set; } /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } /// - /// The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + /// The GitHub repo environment name to sync to (only used when `SyncTarget` is set to "repo") /// [Input("environmentName")] public Input? EnvironmentName { get; set; } @@ -192,7 +204,7 @@ public sealed class GithubActionsState : global::Pulumi.ResourceArgs public Input? Integration { get; set; } /// - /// Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") /// [Input("orgScope")] public Input? OrgScope { get; set; } @@ -204,7 +216,7 @@ public sealed class GithubActionsState : global::Pulumi.ResourceArgs public Input? Project { get; set; } /// - /// The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") /// [Input("repoName")] public Input? RepoName { get; set; } @@ -215,6 +227,12 @@ public sealed class GithubActionsState : global::Pulumi.ResourceArgs [Input("syncTarget")] public Input? SyncTarget { get; set; } + /// + /// When enabled, causes secrets with the `Unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `False`. + /// + [Input("syncUnmaskedAsVariables")] + public Input? SyncUnmaskedAsVariables { get; set; } + public GithubActionsState() { } diff --git a/sdk/dotnet/SecretsSync/GithubAgents.cs b/sdk/dotnet/SecretsSync/GithubAgents.cs new file mode 100644 index 0000000..0c0d84c --- /dev/null +++ b/sdk/dotnet/SecretsSync/GithubAgents.cs @@ -0,0 +1,223 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.SecretsSync +{ + /// + /// Manage a GitHub Copilot Agents Doppler sync. + /// + [DopplerResourceType("doppler:secretsSync/githubAgents:GithubAgents")] + public partial class GithubAgents : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Output("deleteBehavior")] + public Output DeleteBehavior { get; private set; } = null!; + + /// + /// The slug of the integration to use for this sync + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Output("orgScope")] + public Output OrgScope { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Output("repoName")] + public Output RepoName { get; private set; } = null!; + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Output("syncTarget")] + public Output SyncTarget { get; private set; } = null!; + + /// + /// When enabled, causes secrets with the `Unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `False`. + /// + [Output("syncUnmaskedAsVariables")] + public Output SyncUnmaskedAsVariables { get; private set; } = null!; + + + /// + /// Create a GithubAgents resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GithubAgents(string name, GithubAgentsArgs args, CustomResourceOptions? options = null) + : base("doppler:secretsSync/githubAgents:GithubAgents", name, args ?? new GithubAgentsArgs(), MakeResourceOptions(options, "")) + { + } + + private GithubAgents(string name, Input id, GithubAgentsState? state = null, CustomResourceOptions? options = null) + : base("doppler:secretsSync/githubAgents:GithubAgents", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GithubAgents resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GithubAgents Get(string name, Input id, GithubAgentsState? state = null, CustomResourceOptions? options = null) + { + return new GithubAgents(name, id, state, options); + } + } + + public sealed class GithubAgentsArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Input("orgScope")] + public Input? OrgScope { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Input("repoName")] + public Input? RepoName { get; set; } + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Input("syncTarget", required: true)] + public Input SyncTarget { get; set; } = null!; + + /// + /// When enabled, causes secrets with the `Unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `False`. + /// + [Input("syncUnmaskedAsVariables")] + public Input? SyncUnmaskedAsVariables { get; set; } + + public GithubAgentsArgs() + { + } + public static new GithubAgentsArgs Empty => new GithubAgentsArgs(); + } + + public sealed class GithubAgentsState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Input("orgScope")] + public Input? OrgScope { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Input("repoName")] + public Input? RepoName { get; set; } + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Input("syncTarget")] + public Input? SyncTarget { get; set; } + + /// + /// When enabled, causes secrets with the `Unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `False`. + /// + [Input("syncUnmaskedAsVariables")] + public Input? SyncUnmaskedAsVariables { get; set; } + + public GithubAgentsState() + { + } + public static new GithubAgentsState Empty => new GithubAgentsState(); + } +} diff --git a/sdk/dotnet/SecretsSync/GithubCodespaces.cs b/sdk/dotnet/SecretsSync/GithubCodespaces.cs new file mode 100644 index 0000000..8e5f87d --- /dev/null +++ b/sdk/dotnet/SecretsSync/GithubCodespaces.cs @@ -0,0 +1,205 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.SecretsSync +{ + /// + /// Manage a GitHub Codespaces Doppler sync. + /// + [DopplerResourceType("doppler:secretsSync/githubCodespaces:GithubCodespaces")] + public partial class GithubCodespaces : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Output("deleteBehavior")] + public Output DeleteBehavior { get; private set; } = null!; + + /// + /// The slug of the integration to use for this sync + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Output("orgScope")] + public Output OrgScope { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Output("repoName")] + public Output RepoName { get; private set; } = null!; + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Output("syncTarget")] + public Output SyncTarget { get; private set; } = null!; + + + /// + /// Create a GithubCodespaces resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GithubCodespaces(string name, GithubCodespacesArgs args, CustomResourceOptions? options = null) + : base("doppler:secretsSync/githubCodespaces:GithubCodespaces", name, args ?? new GithubCodespacesArgs(), MakeResourceOptions(options, "")) + { + } + + private GithubCodespaces(string name, Input id, GithubCodespacesState? state = null, CustomResourceOptions? options = null) + : base("doppler:secretsSync/githubCodespaces:GithubCodespaces", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GithubCodespaces resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GithubCodespaces Get(string name, Input id, GithubCodespacesState? state = null, CustomResourceOptions? options = null) + { + return new GithubCodespaces(name, id, state, options); + } + } + + public sealed class GithubCodespacesArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Input("orgScope")] + public Input? OrgScope { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Input("repoName")] + public Input? RepoName { get; set; } + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Input("syncTarget", required: true)] + public Input SyncTarget { get; set; } = null!; + + public GithubCodespacesArgs() + { + } + public static new GithubCodespacesArgs Empty => new GithubCodespacesArgs(); + } + + public sealed class GithubCodespacesState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Input("orgScope")] + public Input? OrgScope { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Input("repoName")] + public Input? RepoName { get; set; } + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Input("syncTarget")] + public Input? SyncTarget { get; set; } + + public GithubCodespacesState() + { + } + public static new GithubCodespacesState Empty => new GithubCodespacesState(); + } +} diff --git a/sdk/dotnet/SecretsSync/GithubDependabot.cs b/sdk/dotnet/SecretsSync/GithubDependabot.cs new file mode 100644 index 0000000..d865e68 --- /dev/null +++ b/sdk/dotnet/SecretsSync/GithubDependabot.cs @@ -0,0 +1,205 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler.SecretsSync +{ + /// + /// Manage a GitHub Dependabot Doppler sync. + /// + [DopplerResourceType("doppler:secretsSync/githubDependabot:GithubDependabot")] + public partial class GithubDependabot : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Output("deleteBehavior")] + public Output DeleteBehavior { get; private set; } = null!; + + /// + /// The slug of the integration to use for this sync + /// + [Output("integration")] + public Output Integration { get; private set; } = null!; + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Output("orgScope")] + public Output OrgScope { get; private set; } = null!; + + /// + /// The name of the Doppler project + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Output("repoName")] + public Output RepoName { get; private set; } = null!; + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Output("syncTarget")] + public Output SyncTarget { get; private set; } = null!; + + + /// + /// Create a GithubDependabot resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public GithubDependabot(string name, GithubDependabotArgs args, CustomResourceOptions? options = null) + : base("doppler:secretsSync/githubDependabot:GithubDependabot", name, args ?? new GithubDependabotArgs(), MakeResourceOptions(options, "")) + { + } + + private GithubDependabot(string name, Input id, GithubDependabotState? state = null, CustomResourceOptions? options = null) + : base("doppler:secretsSync/githubDependabot:GithubDependabot", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing GithubDependabot resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static GithubDependabot Get(string name, Input id, GithubDependabotState? state = null, CustomResourceOptions? options = null) + { + return new GithubDependabot(name, id, state, options); + } + } + + public sealed class GithubDependabotArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration", required: true)] + public Input Integration { get; set; } = null!; + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Input("orgScope")] + public Input? OrgScope { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Input("repoName")] + public Input? RepoName { get; set; } + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Input("syncTarget", required: true)] + public Input SyncTarget { get; set; } = null!; + + public GithubDependabotArgs() + { + } + public static new GithubDependabotArgs Empty => new GithubDependabotArgs(); + } + + public sealed class GithubDependabotState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. + /// + [Input("deleteBehavior")] + public Input? DeleteBehavior { get; set; } + + /// + /// The slug of the integration to use for this sync + /// + [Input("integration")] + public Input? Integration { get; set; } + + /// + /// Either "all" or "private", based on the which repos you want to have access (only used when `SyncTarget` is set to "org") + /// + [Input("orgScope")] + public Input? OrgScope { get; set; } + + /// + /// The name of the Doppler project + /// + [Input("project")] + public Input? Project { get; set; } + + /// + /// The GitHub repo name to sync to (only used when `SyncTarget` is set to "repo") + /// + [Input("repoName")] + public Input? RepoName { get; set; } + + /// + /// Either "repo" or "org", based on the resource type to sync to + /// + [Input("syncTarget")] + public Input? SyncTarget { get; set; } + + public GithubDependabotState() + { + } + public static new GithubDependabotState Empty => new GithubDependabotState(); + } +} diff --git a/sdk/dotnet/SecretsSync/README.md b/sdk/dotnet/SecretsSync/README.md index adf8929..a8c6463 100644 --- a/sdk/dotnet/SecretsSync/README.md +++ b/sdk/dotnet/SecretsSync/README.md @@ -1 +1 @@ -A Pulumi package for creating and managing doppler cloud resources. +A Pulumi package for managing Doppler projects, secrets, and access. diff --git a/sdk/dotnet/SecretsSync/TerraformCloud.cs b/sdk/dotnet/SecretsSync/TerraformCloud.cs index de26067..8f935bc 100644 --- a/sdk/dotnet/SecretsSync/TerraformCloud.cs +++ b/sdk/dotnet/SecretsSync/TerraformCloud.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,10 +8,48 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler.SecretsSync +namespace DopplerHQ.Doppler.SecretsSync { /// + /// Manage a Terraform Cloud Doppler sync. + /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// using Tfe = Pulumi.Tfe; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var prod = Tfe.Workspace.Invoke(new() + /// { + /// Name = "my-workspace-name", + /// Organization = "my-org-name", + /// }); + /// + /// var prodTerraformCloud = new Doppler.Integration.TerraformCloud("prod", new() + /// { + /// Name = "Production", + /// ApiKey = "my_api_key", + /// }); + /// + /// var backendProd = new Doppler.SecretsSync.TerraformCloud("backend_prod", new() + /// { + /// Integration = prodTerraformCloud.Id, + /// Project = "backend", + /// Config = "prd", + /// SyncTarget = "workspace", + /// WorkspaceId = prod.Id, + /// VariableSyncType = "terraform", + /// NameTransform = "lowercase", + /// DeleteBehavior = "leave_in_target", + /// }); + /// + /// }); + /// ``` /// [DopplerResourceType("doppler:secretsSync/terraformCloud:TerraformCloud")] public partial class TerraformCloud : global::Pulumi.CustomResource @@ -23,7 +61,7 @@ public partial class TerraformCloud : global::Pulumi.CustomResource public Output Config { get; private set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Output("deleteBehavior")] public Output DeleteBehavior { get; private set; } = null!; @@ -52,12 +90,21 @@ public partial class TerraformCloud : global::Pulumi.CustomResource [Output("syncTarget")] public Output SyncTarget { get; private set; } = null!; + /// + /// The Terraform Cloud variable set ID to sync to + /// [Output("variableSetId")] public Output VariableSetId { get; private set; } = null!; + /// + /// Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + /// [Output("variableSyncType")] public Output VariableSyncType { get; private set; } = null!; + /// + /// The Terraform Cloud workspace ID to sync to + /// [Output("workspaceId")] public Output WorkspaceId { get; private set; } = null!; @@ -84,7 +131,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -115,7 +162,7 @@ public sealed class TerraformCloudArgs : global::Pulumi.ResourceArgs public Input Config { get; set; } = null!; /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -144,12 +191,21 @@ public sealed class TerraformCloudArgs : global::Pulumi.ResourceArgs [Input("syncTarget", required: true)] public Input SyncTarget { get; set; } = null!; + /// + /// The Terraform Cloud variable set ID to sync to + /// [Input("variableSetId")] public Input? VariableSetId { get; set; } + /// + /// Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + /// [Input("variableSyncType", required: true)] public Input VariableSyncType { get; set; } = null!; + /// + /// The Terraform Cloud workspace ID to sync to + /// [Input("workspaceId")] public Input? WorkspaceId { get; set; } @@ -168,7 +224,7 @@ public sealed class TerraformCloudState : global::Pulumi.ResourceArgs public Input? Config { get; set; } /// - /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + /// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `LeaveInTarget` (default) or `DeleteFromTarget`. /// [Input("deleteBehavior")] public Input? DeleteBehavior { get; set; } @@ -197,12 +253,21 @@ public sealed class TerraformCloudState : global::Pulumi.ResourceArgs [Input("syncTarget")] public Input? SyncTarget { get; set; } + /// + /// The Terraform Cloud variable set ID to sync to + /// [Input("variableSetId")] public Input? VariableSetId { get; set; } + /// + /// Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + /// [Input("variableSyncType")] public Input? VariableSyncType { get; set; } + /// + /// The Terraform Cloud workspace ID to sync to + /// [Input("workspaceId")] public Input? WorkspaceId { get; set; } diff --git a/sdk/dotnet/ServiceAccount.cs b/sdk/dotnet/ServiceAccount.cs index 8ca71b2..6021fc1 100644 --- a/sdk/dotnet/ServiceAccount.cs +++ b/sdk/dotnet/ServiceAccount.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler service account. @@ -19,13 +19,14 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { /// var ci = new Doppler.ServiceAccount("ci", new() /// { /// Name = "ci", + /// WorkplaceRole = "collaborator", /// }); /// /// }); @@ -34,7 +35,6 @@ namespace Pulumiverse.Doppler /// ## Import /// /// import using the service account slug from the URL: - /// /// https://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug] /// /// ```sh @@ -57,13 +57,13 @@ public partial class ServiceAccount : global::Pulumi.CustomResource public Output Slug { get; private set; } = null!; /// - /// A list of the workplace permissions for the service account (or use `workplace_role`) + /// A list of the workplace permissions for the service account (or use `WorkplaceRole`) /// [Output("workplacePermissions")] public Output> WorkplacePermissions { get; private set; } = null!; /// - /// The identifier of the workplace role for the service account (or use `workplace_permissions`) + /// The identifier of the workplace role for the service account (or use `WorkplacePermissions`) /// [Output("workplaceRole")] public Output WorkplaceRole { get; private set; } = null!; @@ -91,7 +91,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. @@ -125,7 +125,7 @@ public sealed class ServiceAccountArgs : global::Pulumi.ResourceArgs private InputList? _workplacePermissions; /// - /// A list of the workplace permissions for the service account (or use `workplace_role`) + /// A list of the workplace permissions for the service account (or use `WorkplaceRole`) /// public InputList WorkplacePermissions { @@ -134,7 +134,7 @@ public InputList WorkplacePermissions } /// - /// The identifier of the workplace role for the service account (or use `workplace_permissions`) + /// The identifier of the workplace role for the service account (or use `WorkplacePermissions`) /// [Input("workplaceRole")] public Input? WorkplaceRole { get; set; } @@ -163,7 +163,7 @@ public sealed class ServiceAccountState : global::Pulumi.ResourceArgs private InputList? _workplacePermissions; /// - /// A list of the workplace permissions for the service account (or use `workplace_role`) + /// A list of the workplace permissions for the service account (or use `WorkplaceRole`) /// public InputList WorkplacePermissions { @@ -172,7 +172,7 @@ public InputList WorkplacePermissions } /// - /// The identifier of the workplace role for the service account (or use `workplace_permissions`) + /// The identifier of the workplace role for the service account (or use `WorkplacePermissions`) /// [Input("workplaceRole")] public Input? WorkplaceRole { get; set; } diff --git a/sdk/dotnet/ServiceAccountIdentity.cs b/sdk/dotnet/ServiceAccountIdentity.cs new file mode 100644 index 0000000..ec99b9d --- /dev/null +++ b/sdk/dotnet/ServiceAccountIdentity.cs @@ -0,0 +1,220 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage a Doppler service account identity. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ci = new Doppler.ServiceAccount("ci", new() + /// { + /// Name = "ci", + /// WorkplaceRole = "collaborator", + /// }); + /// + /// var githubOidc = new Doppler.ServiceAccountIdentity("github_oidc", new() + /// { + /// ConfigOidc = new Doppler.Inputs.ServiceAccountIdentityConfigOidcArgs + /// { + /// Claims = new[] + /// { + /// new Doppler.Inputs.ServiceAccountIdentityConfigOidcClaimArgs + /// { + /// Key = "aud", + /// Values = new[] + /// { + /// "https://github.com/DopplerHQ", + /// }, + /// }, + /// new Doppler.Inputs.ServiceAccountIdentityConfigOidcClaimArgs + /// { + /// Key = "sub", + /// Values = new[] + /// { + /// "repo:DopplerHQ/terraform-provider-doppler:pull_request", + /// "repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*", + /// }, + /// }, + /// }, + /// DiscoveryUrl = "https://token.actions.githubusercontent.com", + /// ClaimsType = "wildcard", + /// }, + /// ServiceAccountSlug = ci.Slug, + /// Name = "GitHub Actions OIDC", + /// TtlSeconds = 600, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// ```sh + /// $ pulumi import doppler:index/serviceAccountIdentity:ServiceAccountIdentity default <service-account-slug>.<service-account-identity-slug> + /// ``` + /// + [DopplerResourceType("doppler:index/serviceAccountIdentity:ServiceAccountIdentity")] + public partial class ServiceAccountIdentity : global::Pulumi.CustomResource + { + /// + /// The OIDC configuration for the identity + /// + [Output("configOidc")] + public Output ConfigOidc { get; private set; } = null!; + + /// + /// The display name of the service account identity + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// Slug of the service account + /// + [Output("serviceAccountSlug")] + public Output ServiceAccountSlug { get; private set; } = null!; + + /// + /// Slug of the service account identity + /// + [Output("slug")] + public Output Slug { get; private set; } = null!; + + /// + /// The amount of time, in seconds, that auth tokens for this identity will be valid + /// + [Output("ttlSeconds")] + public Output TtlSeconds { get; private set; } = null!; + + + /// + /// Create a ServiceAccountIdentity resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public ServiceAccountIdentity(string name, ServiceAccountIdentityArgs args, CustomResourceOptions? options = null) + : base("doppler:index/serviceAccountIdentity:ServiceAccountIdentity", name, args ?? new ServiceAccountIdentityArgs(), MakeResourceOptions(options, "")) + { + } + + private ServiceAccountIdentity(string name, Input id, ServiceAccountIdentityState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/serviceAccountIdentity:ServiceAccountIdentity", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing ServiceAccountIdentity resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static ServiceAccountIdentity Get(string name, Input id, ServiceAccountIdentityState? state = null, CustomResourceOptions? options = null) + { + return new ServiceAccountIdentity(name, id, state, options); + } + } + + public sealed class ServiceAccountIdentityArgs : global::Pulumi.ResourceArgs + { + /// + /// The OIDC configuration for the identity + /// + [Input("configOidc", required: true)] + public Input ConfigOidc { get; set; } = null!; + + /// + /// The display name of the service account identity + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// Slug of the service account + /// + [Input("serviceAccountSlug", required: true)] + public Input ServiceAccountSlug { get; set; } = null!; + + /// + /// The amount of time, in seconds, that auth tokens for this identity will be valid + /// + [Input("ttlSeconds", required: true)] + public Input TtlSeconds { get; set; } = null!; + + public ServiceAccountIdentityArgs() + { + } + public static new ServiceAccountIdentityArgs Empty => new ServiceAccountIdentityArgs(); + } + + public sealed class ServiceAccountIdentityState : global::Pulumi.ResourceArgs + { + /// + /// The OIDC configuration for the identity + /// + [Input("configOidc")] + public Input? ConfigOidc { get; set; } + + /// + /// The display name of the service account identity + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// Slug of the service account + /// + [Input("serviceAccountSlug")] + public Input? ServiceAccountSlug { get; set; } + + /// + /// Slug of the service account identity + /// + [Input("slug")] + public Input? Slug { get; set; } + + /// + /// The amount of time, in seconds, that auth tokens for this identity will be valid + /// + [Input("ttlSeconds")] + public Input? TtlSeconds { get; set; } + + public ServiceAccountIdentityState() + { + } + public static new ServiceAccountIdentityState Empty => new ServiceAccountIdentityState(); + } +} diff --git a/sdk/dotnet/ServiceAccountToken.cs b/sdk/dotnet/ServiceAccountToken.cs index e13cbef..7f06ce5 100644 --- a/sdk/dotnet/ServiceAccountToken.cs +++ b/sdk/dotnet/ServiceAccountToken.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,10 +8,36 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler service account token. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ci = new Doppler.ServiceAccount("ci", new() + /// { + /// Name = "ci", + /// WorkplaceRole = "collaborator", + /// }); + /// + /// var builderCiToken = new Doppler.ServiceAccountToken("builder_ci_token", new() + /// { + /// ServiceAccountSlug = ci.Slug, + /// Name = "Builder CI Token", + /// ExpiresAt = "2024-05-30T11:00:00.000Z", + /// }); + /// + /// }); + /// ``` /// [DopplerResourceType("doppler:index/serviceAccountToken:ServiceAccountToken")] public partial class ServiceAccountToken : global::Pulumi.CustomResource @@ -75,7 +101,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "apiKey", diff --git a/sdk/dotnet/ServiceToken.cs b/sdk/dotnet/ServiceToken.cs index f733637..cf65613 100644 --- a/sdk/dotnet/ServiceToken.cs +++ b/sdk/dotnet/ServiceToken.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,7 +8,7 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { /// /// Manage a Doppler service token. @@ -19,7 +19,7 @@ namespace Pulumiverse.Doppler /// using System.Collections.Generic; /// using System.Linq; /// using Pulumi; - /// using Doppler = Pulumiverse.Doppler; + /// using Doppler = DopplerHQ.Doppler; /// /// return await Deployment.RunAsync(() => /// { @@ -90,7 +90,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "key", diff --git a/sdk/dotnet/Tag.cs b/sdk/dotnet/Tag.cs new file mode 100644 index 0000000..17aede4 --- /dev/null +++ b/sdk/dotnet/Tag.cs @@ -0,0 +1,158 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage a Doppler tag. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var backend = new Doppler.Tag("backend", new() + /// { + /// Name = "Backend", + /// Color = "blue", + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// ```sh + /// $ pulumi import doppler:index/tag:Tag default <tag-slug> + /// ``` + /// + [DopplerResourceType("doppler:index/tag:Tag")] + public partial class Tag : global::Pulumi.CustomResource + { + /// + /// The color of the tag. One of `Gray` (default), `Purple`, `Blue`, `Green`, `Yellow`, `Orange`, `Red`, or `Pink` + /// + [Output("color")] + public Output Color { get; private set; } = null!; + + /// + /// The name of the tag + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The slug of the tag. Generated from the name when omitted + /// + [Output("slug")] + public Output Slug { get; private set; } = null!; + + + /// + /// Create a Tag resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Tag(string name, TagArgs args, CustomResourceOptions? options = null) + : base("doppler:index/tag:Tag", name, args ?? new TagArgs(), MakeResourceOptions(options, "")) + { + } + + private Tag(string name, Input id, TagState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/tag:Tag", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Tag resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static Tag Get(string name, Input id, TagState? state = null, CustomResourceOptions? options = null) + { + return new Tag(name, id, state, options); + } + } + + public sealed class TagArgs : global::Pulumi.ResourceArgs + { + /// + /// The color of the tag. One of `Gray` (default), `Purple`, `Blue`, `Green`, `Yellow`, `Orange`, `Red`, or `Pink` + /// + [Input("color")] + public Input? Color { get; set; } + + /// + /// The name of the tag + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The slug of the tag. Generated from the name when omitted + /// + [Input("slug")] + public Input? Slug { get; set; } + + public TagArgs() + { + } + public static new TagArgs Empty => new TagArgs(); + } + + public sealed class TagState : global::Pulumi.ResourceArgs + { + /// + /// The color of the tag. One of `Gray` (default), `Purple`, `Blue`, `Green`, `Yellow`, `Orange`, `Red`, or `Pink` + /// + [Input("color")] + public Input? Color { get; set; } + + /// + /// The name of the tag + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The slug of the tag. Generated from the name when omitted + /// + [Input("slug")] + public Input? Slug { get; set; } + + public TagState() + { + } + public static new TagState Empty => new TagState(); + } +} diff --git a/sdk/dotnet/TrustedIps.cs b/sdk/dotnet/TrustedIps.cs new file mode 100644 index 0000000..4621dfd --- /dev/null +++ b/sdk/dotnet/TrustedIps.cs @@ -0,0 +1,207 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage the trusted IP allowlist for a Doppler config. Only requests from the specified IP ranges will be permitted to access the config's secrets via the API. + /// + /// Requires a **Team or Enterprise plan**. Collaborators and other project roles with the `EnclaveProjectConfigTrustedIps` permission have permission to manage trusted ips for a config. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var backendPrd = new Doppler.TrustedIps("backend_prd", new() + /// { + /// Project = "backend", + /// Config = "prd", + /// TrustedIpList = new[] + /// { + /// "203.0.113.0/24", + /// "198.51.100.5/32", + /// "2001:db8::1/128", + /// }, + /// }); + /// + /// var backendStg = new Doppler.TrustedIps("backend_stg", new() + /// { + /// Project = "backend", + /// Config = "stg", + /// TrustedIpList = new[] + /// { + /// "203.0.113.0/24", + /// }, + /// }); + /// + /// var backendDev = new Doppler.TrustedIps("backend_dev", new() + /// { + /// Project = "backend", + /// Config = "dev", + /// TrustedIpList = new[] + /// { + /// "0.0.0.0/0", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Notes + /// + /// - **Warning:** Reconfiguring trusted IPs could lock you out of the config if the current client IP is not included in the trusted list. + /// - The default state for any config is `["0.0.0.0/0"]` (allow all traffic). Deleting this resource restores that default. + /// - Trusted IPs restrict API access only. They do not affect Dashboard logins. + /// - IP addresses must be specified in CIDR notation. Use `/32` for an exact IPv4 address and `/128` for an exact IPv6 address (e.g. `1.2.3.4/32` or `2001:db8::1/128`). + /// + /// ## Import + /// + /// An existing trusted IP configuration can be imported using `<project>.<config>`: + /// + /// ```sh + /// $ pulumi import doppler:index/trustedIps:TrustedIps backend_prd backend.prd + /// ``` + /// + [DopplerResourceType("doppler:index/trustedIps:TrustedIps")] + public partial class TrustedIps : global::Pulumi.CustomResource + { + /// + /// The name of the Doppler config + /// + [Output("config")] + public Output Config { get; private set; } = null!; + + /// + /// The name of the Doppler project where the config is located + /// + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + /// + [Output("trustedIps")] + public Output> TrustedIpList { get; private set; } = null!; + + + /// + /// Create a TrustedIps resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public TrustedIps(string name, TrustedIpsArgs args, CustomResourceOptions? options = null) + : base("doppler:index/trustedIps:TrustedIps", name, args ?? new TrustedIpsArgs(), MakeResourceOptions(options, "")) + { + } + + private TrustedIps(string name, Input id, TrustedIpsState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/trustedIps:TrustedIps", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing TrustedIps resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static TrustedIps Get(string name, Input id, TrustedIpsState? state = null, CustomResourceOptions? options = null) + { + return new TrustedIps(name, id, state, options); + } + } + + public sealed class TrustedIpsArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config", required: true)] + public Input Config { get; set; } = null!; + + /// + /// The name of the Doppler project where the config is located + /// + [Input("project", required: true)] + public Input Project { get; set; } = null!; + + [Input("trustedIps", required: true)] + private InputList? _trustedIps; + + /// + /// List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + /// + public InputList TrustedIpList + { + get => _trustedIps ?? (_trustedIps = new InputList()); + set => _trustedIps = value; + } + + public TrustedIpsArgs() + { + } + public static new TrustedIpsArgs Empty => new TrustedIpsArgs(); + } + + public sealed class TrustedIpsState : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler config + /// + [Input("config")] + public Input? Config { get; set; } + + /// + /// The name of the Doppler project where the config is located + /// + [Input("project")] + public Input? Project { get; set; } + + [Input("trustedIps")] + private InputList? _trustedIps; + + /// + /// List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + /// + public InputList TrustedIpList + { + get => _trustedIps ?? (_trustedIps = new InputList()); + set => _trustedIps = value; + } + + public TrustedIpsState() + { + } + public static new TrustedIpsState Empty => new TrustedIpsState(); + } +} diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 7581fd8..c73e06f 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -1,7 +1,7 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { static class Utilities { @@ -53,7 +53,15 @@ static class Utilities { var dst = src ?? new global::Pulumi.InvokeOptions{}; dst.Version = src?.Version ?? Version; - dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/pulumiverse"; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/DopplerHQ"; + return dst; + } + + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/DopplerHQ"; return dst; } @@ -63,7 +71,7 @@ static class Utilities static Utilities() { var assembly = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Utilities)).Assembly; - using var stream = assembly.GetManifestResourceStream("Pulumiverse.Doppler.version.txt"); + using var stream = assembly.GetManifestResourceStream("DopplerHQ.Doppler.version.txt"); using var reader = new global::System.IO.StreamReader(stream ?? throw new global::System.NotSupportedException("Missing embedded version.txt file")); version = reader.ReadToEnd().Trim(); var parts = version.Split("\n"); diff --git a/sdk/dotnet/Webhook.cs b/sdk/dotnet/Webhook.cs index c3b07d3..61dc2ba 100644 --- a/sdk/dotnet/Webhook.cs +++ b/sdk/dotnet/Webhook.cs @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; @@ -8,8 +8,56 @@ using Pulumi.Serialization; using Pulumi; -namespace Pulumiverse.Doppler +namespace DopplerHQ.Doppler { + /// + /// Manage a Doppler Webhook. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ci = new Doppler.Webhook("ci", new() + /// { + /// Authentication = new Doppler.Inputs.WebhookAuthenticationArgs + /// { + /// Type = "Bearer", + /// Token = "my bearer token", + /// }, + /// Project = testProj.Name, + /// Url = "https://localhost/webhook", + /// Name = "My Webhook", + /// Secret = "my signing secret-2", + /// Enabled = true, + /// EnabledConfigs = new[] + /// { + /// ciGithub.Name, + /// }, + /// Payload = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["myKey"] = "my value", + /// }), + /// }); + /// + /// }); + /// ``` + /// + /// ## State Management + /// + /// For security reasons, the Doppler API does not return the fields listed below, which prevents the Terraform provider from checking this external state. + /// In other words, the Terraform provider can be used to update these webhook fields but it will be unaware of external changes. + /// + /// - `Secret` + /// - `Authentication` + /// - `Payload` + /// [DopplerResourceType("doppler:index/webhook:Webhook")] public partial class Webhook : global::Pulumi.CustomResource { @@ -31,6 +79,12 @@ public partial class Webhook : global::Pulumi.CustomResource [Output("enabledConfigs")] public Output> EnabledConfigs { get; private set; } = null!; + /// + /// Name of the webhook + /// + [Output("name")] + public Output Name { get; private set; } = null!; + /// /// The webhook's payload as a JSON string. Leave empty to use the default webhook payload /// @@ -84,7 +138,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "github://api.github.com/pulumiverse", + PluginDownloadURL = "github://api.github.com/DopplerHQ", AdditionalSecretOutputs = { "payload", @@ -137,6 +191,12 @@ public InputList EnabledConfigs set => _enabledConfigs = value; } + /// + /// Name of the webhook + /// + [Input("name")] + public Input? Name { get; set; } + [Input("payload")] private Input? _payload; @@ -213,6 +273,12 @@ public InputList EnabledConfigs set => _enabledConfigs = value; } + /// + /// Name of the webhook + /// + [Input("name")] + public Input? Name { get; set; } + [Input("payload")] private Input? _payload; diff --git a/sdk/dotnet/WorkplaceRole.cs b/sdk/dotnet/WorkplaceRole.cs new file mode 100644 index 0000000..b0f0a18 --- /dev/null +++ b/sdk/dotnet/WorkplaceRole.cs @@ -0,0 +1,179 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; +using Pulumi; + +namespace DopplerHQ.Doppler +{ + /// + /// Manage a Doppler workplace_role. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Doppler = DopplerHQ.Doppler; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var teamManager = new Doppler.WorkplaceRole("team_manager", new() + /// { + /// Name = "Team Manager", + /// Permissions = new[] + /// { + /// "team_manage", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// ```sh + /// $ pulumi import doppler:index/workplaceRole:WorkplaceRole default <workplace-role-identifier> + /// ``` + /// + [DopplerResourceType("doppler:index/workplaceRole:WorkplaceRole")] + public partial class WorkplaceRole : global::Pulumi.CustomResource + { + /// + /// The role's unique identifier + /// + [Output("identifier")] + public Output Identifier { get; private set; } = null!; + + /// + /// Whether or not the role is custom (as opposed to Doppler built-in) + /// + [Output("isCustomRole")] + public Output IsCustomRole { get; private set; } = null!; + + /// + /// The name of the Doppler workplace role + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + /// + [Output("permissions")] + public Output> Permissions { get; private set; } = null!; + + + /// + /// Create a WorkplaceRole resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public WorkplaceRole(string name, WorkplaceRoleArgs args, CustomResourceOptions? options = null) + : base("doppler:index/workplaceRole:WorkplaceRole", name, args ?? new WorkplaceRoleArgs(), MakeResourceOptions(options, "")) + { + } + + private WorkplaceRole(string name, Input id, WorkplaceRoleState? state = null, CustomResourceOptions? options = null) + : base("doppler:index/workplaceRole:WorkplaceRole", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/DopplerHQ", + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing WorkplaceRole resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static WorkplaceRole Get(string name, Input id, WorkplaceRoleState? state = null, CustomResourceOptions? options = null) + { + return new WorkplaceRole(name, id, state, options); + } + } + + public sealed class WorkplaceRoleArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the Doppler workplace role + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + [Input("permissions", required: true)] + private InputList? _permissions; + + /// + /// A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + /// + public InputList Permissions + { + get => _permissions ?? (_permissions = new InputList()); + set => _permissions = value; + } + + public WorkplaceRoleArgs() + { + } + public static new WorkplaceRoleArgs Empty => new WorkplaceRoleArgs(); + } + + public sealed class WorkplaceRoleState : global::Pulumi.ResourceArgs + { + /// + /// The role's unique identifier + /// + [Input("identifier")] + public Input? Identifier { get; set; } + + /// + /// Whether or not the role is custom (as opposed to Doppler built-in) + /// + [Input("isCustomRole")] + public Input? IsCustomRole { get; set; } + + /// + /// The name of the Doppler workplace role + /// + [Input("name")] + public Input? Name { get; set; } + + [Input("permissions")] + private InputList? _permissions; + + /// + /// A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + /// + public InputList Permissions + { + get => _permissions ?? (_permissions = new InputList()); + set => _permissions = value; + } + + public WorkplaceRoleState() + { + } + public static new WorkplaceRoleState Empty => new WorkplaceRoleState(); + } +} diff --git a/sdk/dotnet/go.mod b/sdk/dotnet/go.mod new file mode 100644 index 0000000..ba42947 --- /dev/null +++ b/sdk/dotnet/go.mod @@ -0,0 +1,3 @@ +module fake_dotnet_module // Exclude this directory from Go tools + +go 1.17 diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json index eda4744..5b514fc 100644 --- a/sdk/dotnet/pulumi-plugin.json +++ b/sdk/dotnet/pulumi-plugin.json @@ -1,5 +1,6 @@ { "resource": true, "name": "doppler", - "server": "github://api.github.com/pulumiverse" + "version": "0.0.0-alpha.0+dev", + "server": "github://api.github.com/DopplerHQ" } diff --git a/sdk/go.mod b/sdk/go.mod index 5fc9375..2faed8b 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -1,93 +1,121 @@ -module github.com/pulumiverse/pulumi-doppler/sdk +module github.com/DopplerHQ/pulumi-doppler/sdk -go 1.21 +go 1.26.6 -require github.com/pulumi/pulumi/sdk/v3 v3.129.0 +require github.com/pulumi/pulumi/sdk/v3 v3.270.0 require ( - github.com/BurntSushi/toml v1.2.1 // indirect + github.com/BurntSushi/toml v1.6.0 // indirect + github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect + github.com/cenkalti/backoff/v5 v5.0.3 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/charmbracelet/colorprofile v0.4.2 // indirect + github.com/charmbracelet/x/ansi v0.11.6 // indirect + github.com/charmbracelet/x/cellbuf v0.0.15 // indirect + github.com/charmbracelet/x/term v0.2.2 // indirect + github.com/clipperhouse/displaywidth v0.11.0 // indirect + github.com/clipperhouse/uax29/v2 v2.7.0 // indirect + github.com/danieljoos/wincred v1.2.3 // indirect + github.com/deckarep/golang-set/v2 v2.5.0 // indirect + github.com/ebitengine/purego v0.10.2 // indirect + github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect + github.com/go-git/gcfg/v2 v2.0.2 // indirect + github.com/go-git/go-billy/v6 v6.0.0-beta.1 // indirect + github.com/go-git/go-git/v6 v6.0.0-beta.1 // indirect + github.com/go-jose/go-jose/v4 v4.1.4 // indirect + github.com/go-logr/logr v1.4.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/godbus/dbus/v5 v5.2.2 // indirect + github.com/google/go-tpm v0.9.8 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 // indirect + github.com/hashicorp/go-version v1.8.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/klauspost/compress v1.18.7 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/pkg/errors v0.9.1 // indirect + github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0 // indirect + github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect + github.com/zalando/go-keyring v0.2.8 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/collector/featuregate v1.53.0 // indirect + go.opentelemetry.io/collector/pdata v1.53.0 // indirect + go.opentelemetry.io/contrib/bridges/otelslog v0.20.0 // indirect + go.opentelemetry.io/otel v1.45.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0 // indirect + go.opentelemetry.io/otel/log v0.21.0 // indirect + go.opentelemetry.io/otel/metric v1.45.0 // indirect + go.opentelemetry.io/otel/sdk v1.45.0 // indirect + go.opentelemetry.io/otel/sdk/log v0.21.0 // indirect + go.opentelemetry.io/otel/trace v1.45.0 // indirect + go.opentelemetry.io/proto/otlp v1.11.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d // indirect ) require ( - dario.cat/mergo v1.0.0 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.0.0 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect + github.com/ProtonMail/go-crypto v1.5.2 // indirect github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect - github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/blang/semver v3.5.1+incompatible - github.com/charmbracelet/bubbles v0.16.1 // indirect - github.com/charmbracelet/bubbletea v0.25.0 // indirect - github.com/charmbracelet/lipgloss v0.7.1 // indirect - github.com/cheggaaa/pb v1.0.29 // indirect - github.com/cloudflare/circl v1.3.7 // indirect - github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect - github.com/cyphar/filepath-securejoin v0.2.4 // indirect + github.com/charmbracelet/bubbles v1.0.0 // indirect + github.com/charmbracelet/bubbletea v1.3.10 // indirect + github.com/charmbracelet/lipgloss v1.1.0 // indirect + github.com/cloudflare/circl v1.6.3 // indirect github.com/djherbis/times v1.5.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect - github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect - github.com/go-git/go-git/v5 v5.12.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/glog v1.2.5 // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/hcl/v2 v2.17.0 // indirect + github.com/hashicorp/hcl/v2 v2.22.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect - github.com/kevinburke/ssh_config v1.2.0 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect + github.com/kevinburke/ssh_config v1.6.0 // indirect + github.com/lucasb-eyer/go-colorful v1.3.0 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.20 // indirect github.com/mitchellh/go-ps v1.0.0 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/reflow v0.3.0 // indirect - github.com/muesli/termenv v0.15.2 // indirect + github.com/muesli/termenv v0.16.0 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pgavlin/fx v0.1.6 // indirect - github.com/pjbgf/sha1cd v0.3.0 // indirect + github.com/pjbgf/sha1cd v0.7.0 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect - github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect + github.com/rivo/uniseg v0.4.7 // indirect + github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect - github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect - github.com/skeema/knownhosts v1.2.2 // indirect + github.com/sergi/go-diff v1.4.0 // indirect github.com/spf13/cast v1.4.1 // indirect - github.com/spf13/cobra v1.7.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/cobra v1.10.2 // indirect + github.com/spf13/pflag v1.0.10 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect - github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect - go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.24.0 // indirect - golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/tools v0.22.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect - gopkg.in/warnings.v0 v0.1.2 // indirect + go.uber.org/atomic v1.11.0 // indirect + golang.org/x/crypto v0.57.0 // indirect + golang.org/x/mod v0.41.0 // indirect + golang.org/x/net v0.59.0 // indirect + golang.org/x/sync v0.23.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/term v0.46.0 // indirect + golang.org/x/text v0.42.0 // indirect + golang.org/x/tools v0.49.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d // indirect + google.golang.org/grpc v1.83.2 // indirect + google.golang.org/protobuf v1.36.11 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/frand v1.4.2 // indirect ) diff --git a/sdk/go.sum b/sdk/go.sum index fdd7dcf..1899b49 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -1,14 +1,11 @@ -dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= -dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= -github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= -github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= +github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/HdrHistogram/hdrhistogram-go v1.1.2 h1:5IcZpTvzydCQeHzK4Ef/D5rrSqwxob0t8PQPMybUNFM= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= -github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= -github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= -github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= -github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/ProtonMail/go-crypto v1.5.2 h1:cucYnvqcY7UOXVD//mSyjeaPY0SSN3v5cDkYPxumINk= +github.com/ProtonMail/go-crypto v1.5.2/go.mod h1:/RaSu30DaKO4RY+XdV/ACcCcZkGr7AhUIduq5sjzzCo= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY= github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= @@ -17,66 +14,91 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= 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-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= +github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= -github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY= -github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc= -github.com/charmbracelet/bubbletea v0.25.0 h1:bAfwk7jRz7FKFl9RzlIULPkStffg5k6pNt5dywy4TcM= -github.com/charmbracelet/bubbletea v0.25.0/go.mod h1:EN3QDR1T5ZdWmdfDzYcqOCAps45+QIJbLOBxmVNWNNg= -github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E= -github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c= -github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= -github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= -github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= -github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= -github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY= -github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= -github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= +github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charmbracelet/bubbles v1.0.0 h1:12J8/ak/uCZEMQ6KU7pcfwceyjLlWsDLAxB5fXonfvc= +github.com/charmbracelet/bubbles v1.0.0/go.mod h1:9d/Zd5GdnauMI5ivUIVisuEm3ave1XwXtD1ckyV6r3E= +github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw= +github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4= +github.com/charmbracelet/colorprofile v0.4.2 h1:BdSNuMjRbotnxHSfxy+PCSa4xAmz7szw70ktAtWRYrY= +github.com/charmbracelet/colorprofile v0.4.2/go.mod h1:0rTi81QpwDElInthtrQ6Ni7cG0sDtwAd4C4le060fT8= +github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= +github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30= +github.com/charmbracelet/x/ansi v0.11.6 h1:GhV21SiDz/45W9AnV2R61xZMRri5NlLnl6CVF7ihZW8= +github.com/charmbracelet/x/ansi v0.11.6/go.mod h1:2JNYLgQUsyqaiLovhU2Rv/pb8r6ydXKS3NIttu3VGZQ= +github.com/charmbracelet/x/cellbuf v0.0.15 h1:ur3pZy0o6z/R7EylET877CBxaiE1Sp1GMxoFPAIztPI= +github.com/charmbracelet/x/cellbuf v0.0.15/go.mod h1:J1YVbR7MUuEGIFPCaaZ96KDl5NoS0DAWkskup+mOY+Q= +github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= +github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= +github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= +github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= +github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= +github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= +github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= +github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= +github.com/danieljoos/wincred v1.2.3/go.mod h1:6qqX0WNrS4RzPZ1tnroDzq9kY3fu1KwE7MRLQK4X0bs= 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/deckarep/golang-set/v2 v2.5.0 h1:hn6cEZtQ0h3J8kFrHR/NrzyOoTnjgW1+FmNJzQ7y/sA= +github.com/deckarep/golang-set/v2 v2.5.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= -github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a h1:mATvB/9r/3gvcejNsXKSkQ6lcIaNec2nyfOdlTBR2lU= -github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= +github.com/ebitengine/purego v0.10.2 h1:W809HbnvzAxgdm+aOvlSekrM16wGCdT/e76+9tS7gzE= +github.com/ebitengine/purego v0.10.2/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= -github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= -github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= -github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= -github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= -github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= -github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= -github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= +github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= +github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= +github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= +github.com/go-git/gcfg/v2 v2.0.2 h1:MY5SIIfTGGEMhdA7d7JePuVVxtKL7Hp+ApGDJAJ7dpo= +github.com/go-git/gcfg/v2 v2.0.2/go.mod h1:/lv2NsxvhepuMrldsFilrgct6pxzpGdSRC13ydTLSLs= +github.com/go-git/go-billy/v6 v6.0.0-beta.1 h1:OJ4r207zcEbeq/DJNajQUOMd+pph3r9A7hRq1Sjl1bA= +github.com/go-git/go-billy/v6 v6.0.0-beta.1/go.mod h1:QGOWN4CzmtRfpFeCw5paG3RJyKdTwsfGASkxBVkIaAU= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1 h1:gmqi2jvsreu0s8JMLylYDFq4sbjHwwlhktMw0DUg3mA= +github.com/go-git/go-git-fixtures/v6 v6.0.0-alpha.1/go.mod h1:ECf1MqJlBdYpKggBrOXjo/0EnvRZx6D++I86UYjPgAQ= +github.com/go-git/go-git/v6 v6.0.0-beta.1 h1:1t+vJYGDBN6f9GRWskgWx5UjXPFUa7wfffZZZ2C5GtA= +github.com/go-git/go-git/v6 v6.0.0-beta.1/go.mod h1:ugDlr38Wwc+fOw85J+Oluh5TNXQtJgYMcriOljg3l4s= +github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA= +github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= +github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= -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/glog v1.2.5 h1:DrW6hGnjIhtvhOIiAKT6Psh/Kd/ldepEa81DKeiRJ5I= +github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -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-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo= +github.com/google/go-tpm v0.9.8/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba h1:qJEJcuLzH5KDR0gKc0zcktin6KSAwL7+jWKBYceddTc= +github.com/google/go-tpm-tools v0.3.13-0.20230620182252-4639ecce2aba/go.mod h1:EFYHy8/1y2KfgTAsx7Luu7NGhoxtuVHnNo8jE7FikKc= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -84,17 +106,21 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= -github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= +github.com/hashicorp/go-version v1.8.0 h1:KAkNb1HAiZd1ukkxDFGmokVZe1Xy9HG6NUp+bPle2i4= +github.com/hashicorp/go-version v1.8.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hcl/v2 v2.22.0 h1:hkZ3nCtqeJsDhPRFz5EA9iwcG1hNWGePOTw6oyul12M= +github.com/hashicorp/hcl/v2 v2.22.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -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/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/kevinburke/ssh_config v1.6.0 h1:J1FBfmuVosPHf5GRdltRLhPJtJpTlMdKTBjRgTaQBFY= +github.com/kevinburke/ssh_config v1.6.0/go.mod h1:q2RIzfka+BXARoNexmF9gkxEX7DmvbW9P4hIVx2Kg4M= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.18.7 h1:aUyZsS4kH3QTKurYhAOwAHxllVPnOthb3vPfnF1Ehjw= +github.com/klauspost/compress v1.18.7/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -102,35 +128,30 @@ 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/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= -github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/lucasb-eyer/go-colorful v1.3.0 h1:2/yBRLdWBZKrf7gB40FoiKfAWYQ0lqNcbuQwVHXptag= +github.com/lucasb-eyer/go-colorful v1.3.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= -github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.20 h1:WcT52H91ZUAwy8+HUkdM3THM6gXqXuLJi9O3rjcQQaQ= +github.com/mattn/go-runewidth v0.0.20/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo= github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= -github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s= -github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8= -github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo= -github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= -github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= -github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= +github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc= +github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0= github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -138,178 +159,182 @@ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+ github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU= github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M= -github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= -github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pgavlin/fx/v2 v2.0.12 h1:SjjaJ68Dt8Z4zHwOpY/RPijd7lShs6xYupJbF9ra00M= +github.com/pgavlin/fx/v2 v2.0.12/go.mod h1:M/nF/ooAOy+NUBooYYXl2REARzJ/giPJxfMs8fINfKc= +github.com/pjbgf/sha1cd v0.7.0 h1:ZRNPKHj+gfkLBf0KJv/p1Hmz+7bqCT5o311YX0nq+DA= +github.com/pjbgf/sha1cd v0.7.0/go.mod h1:pKR5Li+qTCo+ebqITZfwPlJGoCFCvSO00qxjbNtTUFQ= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= -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/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= -github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= -github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= -github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= -github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0 h1:uq7VYDSrWGfQZbyUKr9emUbqRy1RsSnaFQ67mlcLBWU= +github.com/pulumi/pulumi-cloud-sdk/go v1.20260918.0/go.mod h1:NPA79X6Wmyr5zNKd+N+RiVJN8duwIrRmIaed8HCL9EM= +github.com/pulumi/pulumi/sdk/v3 v3.270.0 h1:qzqmv8CoZyZI9JT7yQTkgeu0fPFnjWl6421kwS+nwR4= +github.com/pulumi/pulumi/sdk/v3 v3.270.0/go.mod h1:aUQk7DpZpqUsxLSUUWUCzIapJNb4+Smgh81ONxIdfCo= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= -github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE= github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= -github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= -github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= +github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= +github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= 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.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= -github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no= +github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zalando/go-keyring v0.2.8 h1:6sD/Ucpl7jNq10rM2pgqTs0sZ9V3qMrqfIIy5YPccHs= +github.com/zalando/go-keyring v0.2.8/go.mod h1:tsMo+VpRq5NGyKfxoBVjCuMrG47yj8cmakZDO5QGii0= github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/collector/featuregate v1.53.0 h1:cgjXdtl7jezWxq6V0eohe/JqjY4PBotZGb5+bTR2OJw= +go.opentelemetry.io/collector/featuregate v1.53.0/go.mod h1:PS7zY/zaCb28EqciePVwRHVhc3oKortTFXsi3I6ee4g= +go.opentelemetry.io/collector/internal/testutil v0.147.0 h1:DFlRxBRp23/sZnpTITK25yqe0d56yNvK+63IaWc6OsU= +go.opentelemetry.io/collector/internal/testutil v0.147.0/go.mod h1:Jkjs6rkqs973LqgZ0Fe3zrokQRKULYXPIf4HuqStiEE= +go.opentelemetry.io/collector/pdata v1.53.0 h1:DlYDbRwammEZaxDZHINx5v0n8SEOVNniPbi6FRTlVkA= +go.opentelemetry.io/collector/pdata v1.53.0/go.mod h1:LRSYGNjKXaUrZEwZv3Yl+8/zV2HmRGKXW62zB2bysms= +go.opentelemetry.io/contrib/bridges/otelslog v0.20.0 h1:oEl2Pw/i4OQwhAuda2pAHFAcOMivA+Xa+iTccBfab/g= +go.opentelemetry.io/contrib/bridges/otelslog v0.20.0/go.mod h1:yMSQaiiq5dpfrSJCYLBcqFeJkFFI67seT4ngvx6jfVo= +go.opentelemetry.io/otel v1.45.0 h1:pdrWmLHofpubmArBv1LgFSv1Z0Ie/ppdZzu+kUN5EeU= +go.opentelemetry.io/otel v1.45.0/go.mod h1:XZxIqPapzEYnhNSScF5DIqXhm/rYi0FzCe2XddAwZfQ= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0 h1:WseeVYf5dJZTsyPiyW5L14k5qsSibqXAMTSiFEDiWr0= +go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0/go.mod h1:SiLZnQS6Qk2eCpvr2CH/XMAOa64TWGXxEZJZCpD2Lmc= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0 h1:QRefszxJmfPdjXUUm3j6iDzY03mTPXMjqErFqQ67vUg= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.45.0/go.mod h1:Tiz03lTBVBrm7eWZBOidzEaYaJa8tjwGUGv6d8mlTyk= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0 h1:fG5MCxGz8+2VtrN/WgqSpJFctVz24gpxj8CxkKmc8Ww= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0/go.mod h1:BmAYTn+3ysbRe+IU2msxmf5Rx3g6DHvex+tWI3LdhYI= +go.opentelemetry.io/otel/log v0.21.0 h1:SLsVDGmtyBrdw8/a2Z0bOIxou/+bN4z56GebH7T0LvA= +go.opentelemetry.io/otel/log v0.21.0/go.mod h1:iReetQrZL9Wyg84cCkOoCmqDHS5RCFfyxC7J+r8fn8g= +go.opentelemetry.io/otel/metric v1.45.0 h1:7Eg1uH7CJ5cXv9is6tnBe1FI6rj1nwUdbFypRm3br/M= +go.opentelemetry.io/otel/metric v1.45.0/go.mod h1:HAPbm1nd3p1PmFH7v2dR+6BjXxw+Lq4a2+pndMAm08s= +go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw= +go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA= +go.opentelemetry.io/otel/sdk/log v0.21.0 h1:QsE7XSR0ktQdKmRKGnR+f1ObGF32WG+7MER/P9KgmYc= +go.opentelemetry.io/otel/sdk/log v0.21.0/go.mod h1:m9mApjCoD2/1QuKCAptjv+BrG9WKOvQLVdNx+iBldTo= +go.opentelemetry.io/otel/sdk/log/logtest v0.21.0 h1:X+JBBgKlswCGYsmgL0CnoUUtlE//VB345c84jYAYkdQ= +go.opentelemetry.io/otel/sdk/log/logtest v0.21.0/go.mod h1:HD1575K8e6sIFBBDd5tZB3t9DlMytWXq9FuR+Y4rfjE= +go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o= +go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA= +go.opentelemetry.io/otel/trace v1.45.0 h1:l/mP6Uv7oNO7/TblbhpbgMidxhq1uO/rPsikOyVhxag= +go.opentelemetry.io/otel/trace v1.45.0/go.mod h1:qoJJA2xNMnxRrdISU/kLtfUH2wNeQbiv+jhs/CxI8bc= +go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= +go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= +go.opentelemetry.io/proto/slim/otlp v1.9.0 h1:fPVMv8tP3TrsqlkH1HWYUpbCY9cAIemx184VGkS6vlE= +go.opentelemetry.io/proto/slim/otlp v1.9.0/go.mod h1:xXdeJJ90Gqyll+orzUkY4bOd2HECo5JofeoLpymVqdI= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.2.0 h1:o13nadWDNkH/quoDomDUClnQBpdQQ2Qqv0lQBjIXjE8= +go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.2.0/go.mod h1:Gyb6Xe7FTi/6xBHwMmngGoHqL0w29Y4eW8TGFzpefGA= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.2.0 h1:EiUYvtwu6PMrMHVjcPfnsG3v+ajPkbUeH+IL93+QYyk= +go.opentelemetry.io/proto/slim/otlp/profiles/v1development v0.2.0/go.mod h1:mUUHKFiN2SST3AhJ8XhJxEoeVW12oqfXog0Bo8W3Ec4= +go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= +go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= -golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= -golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= +golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M= +golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA= +golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f h1:W3F4c+6OLc6H2lb//N1q4WpJkhzJCK5J6kUi1NTVXfM= +golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f/go.mod h1:J1xhfL/vlindoeF/aINzNzt2Bket5bjo9sdOYzOsU80= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/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.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0= -golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c= +golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.6.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.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= -golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= +golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues= +golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= 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-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk= +golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/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-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/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.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -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.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE= +golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.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.4.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.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/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-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= -golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= +golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= +golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= 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= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de h1:cZGRis4/ot9uVm639a+rHCUaG0JJHEsdyzSQTMX+suY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= +gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= +google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d h1:FarXi840EJWSHYTN3ERkADbPWjl307+FGrA22KAVjjc= +google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d/go.mod h1:K/+WGbmBY7aNW1HDw1fJnKYo10i0DkAX6pows00dLig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d h1:IL4hdHzcUv2l/gcg98/Rj3FbtE6axwqslOW8SW0C+S0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= +google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/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-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -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.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw= lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s= -pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= -pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= +pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= diff --git a/sdk/go/.gitattributes b/sdk/go/.gitattributes new file mode 100644 index 0000000..aae64e2 --- /dev/null +++ b/sdk/go/.gitattributes @@ -0,0 +1 @@ +* linguist-generated diff --git a/sdk/go/Pulumi.yaml b/sdk/go/Pulumi.yaml index e69de29..3705b2a 100644 --- a/sdk/go/Pulumi.yaml +++ b/sdk/go/Pulumi.yaml @@ -0,0 +1,3 @@ +name: doppler +description: A Pulumi resource provider for doppler. +language: go diff --git a/sdk/go/doppler/branchConfig.go b/sdk/go/doppler/branchConfig.go index 2bfcd5f..e27bdb3 100644 --- a/sdk/go/doppler/branchConfig.go +++ b/sdk/go/doppler/branchConfig.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler config. @@ -21,8 +21,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // @@ -50,8 +50,14 @@ import ( type BranchConfig struct { pulumi.CustomResourceState + // The descriptor (project.config) of the Doppler config + Descriptor pulumi.StringOutput `pulumi:"descriptor"` // The name of the Doppler environment where the config is located Environment pulumi.StringOutput `pulumi:"environment"` + // Whether or not the Doppler config can be inherited by other configs + Inheritable pulumi.BoolPtrOutput `pulumi:"inheritable"` + // A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + Inherits pulumi.StringArrayOutput `pulumi:"inherits"` // The name of the Doppler config Name pulumi.StringOutput `pulumi:"name"` // The name of the Doppler project where the config is located @@ -100,8 +106,14 @@ func GetBranchConfig(ctx *pulumi.Context, // Input properties used for looking up and filtering BranchConfig resources. type branchConfigState struct { + // The descriptor (project.config) of the Doppler config + Descriptor *string `pulumi:"descriptor"` // The name of the Doppler environment where the config is located Environment *string `pulumi:"environment"` + // Whether or not the Doppler config can be inherited by other configs + Inheritable *bool `pulumi:"inheritable"` + // A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + Inherits []string `pulumi:"inherits"` // The name of the Doppler config Name *string `pulumi:"name"` // The name of the Doppler project where the config is located @@ -109,8 +121,14 @@ type branchConfigState struct { } type BranchConfigState struct { + // The descriptor (project.config) of the Doppler config + Descriptor pulumi.StringPtrInput // The name of the Doppler environment where the config is located Environment pulumi.StringPtrInput + // Whether or not the Doppler config can be inherited by other configs + Inheritable pulumi.BoolPtrInput + // A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + Inherits pulumi.StringArrayInput // The name of the Doppler config Name pulumi.StringPtrInput // The name of the Doppler project where the config is located @@ -124,6 +142,10 @@ func (BranchConfigState) ElementType() reflect.Type { type branchConfigArgs struct { // The name of the Doppler environment where the config is located Environment string `pulumi:"environment"` + // Whether or not the Doppler config can be inherited by other configs + Inheritable *bool `pulumi:"inheritable"` + // A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + Inherits []string `pulumi:"inherits"` // The name of the Doppler config Name *string `pulumi:"name"` // The name of the Doppler project where the config is located @@ -134,6 +156,10 @@ type branchConfigArgs struct { type BranchConfigArgs struct { // The name of the Doppler environment where the config is located Environment pulumi.StringInput + // Whether or not the Doppler config can be inherited by other configs + Inheritable pulumi.BoolPtrInput + // A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + Inherits pulumi.StringArrayInput // The name of the Doppler config Name pulumi.StringPtrInput // The name of the Doppler project where the config is located @@ -227,11 +253,26 @@ func (o BranchConfigOutput) ToBranchConfigOutputWithContext(ctx context.Context) return o } +// The descriptor (project.config) of the Doppler config +func (o BranchConfigOutput) Descriptor() pulumi.StringOutput { + return o.ApplyT(func(v *BranchConfig) pulumi.StringOutput { return v.Descriptor }).(pulumi.StringOutput) +} + // The name of the Doppler environment where the config is located func (o BranchConfigOutput) Environment() pulumi.StringOutput { return o.ApplyT(func(v *BranchConfig) pulumi.StringOutput { return v.Environment }).(pulumi.StringOutput) } +// Whether or not the Doppler config can be inherited by other configs +func (o BranchConfigOutput) Inheritable() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *BranchConfig) pulumi.BoolPtrOutput { return v.Inheritable }).(pulumi.BoolPtrOutput) +} + +// A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) +func (o BranchConfigOutput) Inherits() pulumi.StringArrayOutput { + return o.ApplyT(func(v *BranchConfig) pulumi.StringArrayOutput { return v.Inherits }).(pulumi.StringArrayOutput) +} + // The name of the Doppler config func (o BranchConfigOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *BranchConfig) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) diff --git a/sdk/go/doppler/changeRequestPolicy.go b/sdk/go/doppler/changeRequestPolicy.go new file mode 100644 index 0000000..0947519 --- /dev/null +++ b/sdk/go/doppler/changeRequestPolicy.go @@ -0,0 +1,413 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler change request policy. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "fmt" +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// nic, err := doppler.GetUser(ctx, &doppler.GetUserArgs{ +// Email: "nic@doppler.com", +// }, nil) +// if err != nil { +// return err +// } +// emily, err := doppler.GetUser(ctx, &doppler.GetUserArgs{ +// Email: "emily@doppler.com", +// }, nil) +// if err != nil { +// return err +// } +// testProj, err := doppler.NewProject(ctx, "test_proj", &doppler.ProjectArgs{ +// Name: pulumi.String("my-test-project"), +// Description: pulumi.String("This is a test project"), +// }) +// if err != nil { +// return err +// } +// prd, err := doppler.NewEnvironment(ctx, "prd", &doppler.EnvironmentArgs{ +// Project: testProj.Name, +// Slug: pulumi.String("prd"), +// Name: pulumi.String("prd"), +// }) +// if err != nil { +// return err +// } +// ci, err := doppler.NewEnvironment(ctx, "ci", &doppler.EnvironmentArgs{ +// Project: testProj.Name, +// Slug: pulumi.String("ci"), +// Name: pulumi.String("CI-CD"), +// }) +// if err != nil { +// return err +// } +// ciGithub, err := doppler.NewBranchConfig(ctx, "ci_github", &doppler.BranchConfigArgs{ +// Project: testProj.Name, +// Environment: ci.Slug, +// Name: pulumi.String("ci_github"), +// }) +// if err != nil { +// return err +// } +// prodReviewers, err := doppler.NewGroup(ctx, "prod_reviewers", &doppler.GroupArgs{ +// Name: pulumi.String("Prod Reviewers"), +// }) +// if err != nil { +// return err +// } +// forResult0 := map[string]*string{} +// for _, entry := range []*string{ +// nic.Slug, +// } { +// forResult0[entry] = entry +// } +// var prodReviewersGroupMember []*doppler.GroupMember +// for key0, val0 := range forResult0 { +// __res, err := doppler.NewGroupMember(ctx, fmt.Sprintf("prod_reviewers-%v", key0), &doppler.GroupMemberArgs{ +// GroupSlug: prodReviewers.Slug, +// UserSlug: pulumi.String(val0), +// }) +// if err != nil { +// return err +// } +// prodReviewersGroupMember = append(prodReviewersGroupMember, __res) +// } +// _, err = doppler.NewChangeRequestPolicy(ctx, "prd_review", &doppler.ChangeRequestPolicyArgs{ +// Rules: &doppler.ChangeRequestPolicyRulesArgs{ +// RequiredReviewers: doppler.ChangeRequestPolicyRulesRequiredReviewerArray{ +// &doppler.ChangeRequestPolicyRulesRequiredReviewerArgs{ +// Count: pulumi.Int(2), +// }, +// &doppler.ChangeRequestPolicyRulesRequiredReviewerArgs{ +// Count: pulumi.Int(1), +// GroupSlugs: pulumi.StringArray{ +// prodReviewers.Slug, +// }, +// UserSlugs: pulumi.StringArray{ +// pulumi.String(emily.Slug), +// }, +// }, +// }, +// DisallowSelfReview: pulumi.Bool(true), +// AutoAssignReviewers: pulumi.String("matchCount"), +// }, +// Targets: &doppler.ChangeRequestPolicyTargetsArgs{ +// Projects: doppler.ChangeRequestPolicyTargetsProjectArray{ +// &doppler.ChangeRequestPolicyTargetsProjectArgs{ +// ProjectName: testProj.Name, +// EnvironmentSlugs: pulumi.StringArray{ +// prd.Slug, +// }, +// ConfigNames: pulumi.StringArray{ +// ciGithub.Name, +// }, +// }, +// }, +// }, +// Name: pulumi.String("Prod Review"), +// Description: pulumi.String("A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group.\nReviews from the author of the change request are not counted.\nThis policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config.\n"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// ```sh +// $ pulumi import doppler:index/changeRequestPolicy:ChangeRequestPolicy +// ``` +type ChangeRequestPolicy struct { + pulumi.CustomResourceState + + // A description of the change request policy + Description pulumi.StringPtrOutput `pulumi:"description"` + // The name of the change request policy + Name pulumi.StringOutput `pulumi:"name"` + // Rules that the policy will apply to its targets + Rules ChangeRequestPolicyRulesOutput `pulumi:"rules"` + // The unique identifier of the change request policy + Slug pulumi.StringOutput `pulumi:"slug"` + // Where the policy will apply + Targets ChangeRequestPolicyTargetsOutput `pulumi:"targets"` +} + +// NewChangeRequestPolicy registers a new resource with the given unique name, arguments, and options. +func NewChangeRequestPolicy(ctx *pulumi.Context, + name string, args *ChangeRequestPolicyArgs, opts ...pulumi.ResourceOption) (*ChangeRequestPolicy, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Rules == nil { + return nil, errors.New("invalid value for required argument 'Rules'") + } + if args.Targets == nil { + return nil, errors.New("invalid value for required argument 'Targets'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource ChangeRequestPolicy + err := ctx.RegisterResource("doppler:index/changeRequestPolicy:ChangeRequestPolicy", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetChangeRequestPolicy gets an existing ChangeRequestPolicy resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetChangeRequestPolicy(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ChangeRequestPolicyState, opts ...pulumi.ResourceOption) (*ChangeRequestPolicy, error) { + var resource ChangeRequestPolicy + err := ctx.ReadResource("doppler:index/changeRequestPolicy:ChangeRequestPolicy", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ChangeRequestPolicy resources. +type changeRequestPolicyState struct { + // A description of the change request policy + Description *string `pulumi:"description"` + // The name of the change request policy + Name *string `pulumi:"name"` + // Rules that the policy will apply to its targets + Rules *ChangeRequestPolicyRules `pulumi:"rules"` + // The unique identifier of the change request policy + Slug *string `pulumi:"slug"` + // Where the policy will apply + Targets *ChangeRequestPolicyTargets `pulumi:"targets"` +} + +type ChangeRequestPolicyState struct { + // A description of the change request policy + Description pulumi.StringPtrInput + // The name of the change request policy + Name pulumi.StringPtrInput + // Rules that the policy will apply to its targets + Rules ChangeRequestPolicyRulesPtrInput + // The unique identifier of the change request policy + Slug pulumi.StringPtrInput + // Where the policy will apply + Targets ChangeRequestPolicyTargetsPtrInput +} + +func (ChangeRequestPolicyState) ElementType() reflect.Type { + return reflect.TypeOf((*changeRequestPolicyState)(nil)).Elem() +} + +type changeRequestPolicyArgs struct { + // A description of the change request policy + Description *string `pulumi:"description"` + // The name of the change request policy + Name string `pulumi:"name"` + // Rules that the policy will apply to its targets + Rules ChangeRequestPolicyRules `pulumi:"rules"` + // Where the policy will apply + Targets ChangeRequestPolicyTargets `pulumi:"targets"` +} + +// The set of arguments for constructing a ChangeRequestPolicy resource. +type ChangeRequestPolicyArgs struct { + // A description of the change request policy + Description pulumi.StringPtrInput + // The name of the change request policy + Name pulumi.StringInput + // Rules that the policy will apply to its targets + Rules ChangeRequestPolicyRulesInput + // Where the policy will apply + Targets ChangeRequestPolicyTargetsInput +} + +func (ChangeRequestPolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*changeRequestPolicyArgs)(nil)).Elem() +} + +type ChangeRequestPolicyInput interface { + pulumi.Input + + ToChangeRequestPolicyOutput() ChangeRequestPolicyOutput + ToChangeRequestPolicyOutputWithContext(ctx context.Context) ChangeRequestPolicyOutput +} + +func (*ChangeRequestPolicy) ElementType() reflect.Type { + return reflect.TypeOf((**ChangeRequestPolicy)(nil)).Elem() +} + +func (i *ChangeRequestPolicy) ToChangeRequestPolicyOutput() ChangeRequestPolicyOutput { + return i.ToChangeRequestPolicyOutputWithContext(context.Background()) +} + +func (i *ChangeRequestPolicy) ToChangeRequestPolicyOutputWithContext(ctx context.Context) ChangeRequestPolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyOutput) +} + +// ChangeRequestPolicyArrayInput is an input type that accepts ChangeRequestPolicyArray and ChangeRequestPolicyArrayOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyArrayInput` via: +// +// ChangeRequestPolicyArray{ ChangeRequestPolicyArgs{...} } +type ChangeRequestPolicyArrayInput interface { + pulumi.Input + + ToChangeRequestPolicyArrayOutput() ChangeRequestPolicyArrayOutput + ToChangeRequestPolicyArrayOutputWithContext(context.Context) ChangeRequestPolicyArrayOutput +} + +type ChangeRequestPolicyArray []ChangeRequestPolicyInput + +func (ChangeRequestPolicyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ChangeRequestPolicy)(nil)).Elem() +} + +func (i ChangeRequestPolicyArray) ToChangeRequestPolicyArrayOutput() ChangeRequestPolicyArrayOutput { + return i.ToChangeRequestPolicyArrayOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyArray) ToChangeRequestPolicyArrayOutputWithContext(ctx context.Context) ChangeRequestPolicyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyArrayOutput) +} + +// ChangeRequestPolicyMapInput is an input type that accepts ChangeRequestPolicyMap and ChangeRequestPolicyMapOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyMapInput` via: +// +// ChangeRequestPolicyMap{ "key": ChangeRequestPolicyArgs{...} } +type ChangeRequestPolicyMapInput interface { + pulumi.Input + + ToChangeRequestPolicyMapOutput() ChangeRequestPolicyMapOutput + ToChangeRequestPolicyMapOutputWithContext(context.Context) ChangeRequestPolicyMapOutput +} + +type ChangeRequestPolicyMap map[string]ChangeRequestPolicyInput + +func (ChangeRequestPolicyMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ChangeRequestPolicy)(nil)).Elem() +} + +func (i ChangeRequestPolicyMap) ToChangeRequestPolicyMapOutput() ChangeRequestPolicyMapOutput { + return i.ToChangeRequestPolicyMapOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyMap) ToChangeRequestPolicyMapOutputWithContext(ctx context.Context) ChangeRequestPolicyMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyMapOutput) +} + +type ChangeRequestPolicyOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ChangeRequestPolicy)(nil)).Elem() +} + +func (o ChangeRequestPolicyOutput) ToChangeRequestPolicyOutput() ChangeRequestPolicyOutput { + return o +} + +func (o ChangeRequestPolicyOutput) ToChangeRequestPolicyOutputWithContext(ctx context.Context) ChangeRequestPolicyOutput { + return o +} + +// A description of the change request policy +func (o ChangeRequestPolicyOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ChangeRequestPolicy) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +// The name of the change request policy +func (o ChangeRequestPolicyOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *ChangeRequestPolicy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// Rules that the policy will apply to its targets +func (o ChangeRequestPolicyOutput) Rules() ChangeRequestPolicyRulesOutput { + return o.ApplyT(func(v *ChangeRequestPolicy) ChangeRequestPolicyRulesOutput { return v.Rules }).(ChangeRequestPolicyRulesOutput) +} + +// The unique identifier of the change request policy +func (o ChangeRequestPolicyOutput) Slug() pulumi.StringOutput { + return o.ApplyT(func(v *ChangeRequestPolicy) pulumi.StringOutput { return v.Slug }).(pulumi.StringOutput) +} + +// Where the policy will apply +func (o ChangeRequestPolicyOutput) Targets() ChangeRequestPolicyTargetsOutput { + return o.ApplyT(func(v *ChangeRequestPolicy) ChangeRequestPolicyTargetsOutput { return v.Targets }).(ChangeRequestPolicyTargetsOutput) +} + +type ChangeRequestPolicyArrayOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ChangeRequestPolicy)(nil)).Elem() +} + +func (o ChangeRequestPolicyArrayOutput) ToChangeRequestPolicyArrayOutput() ChangeRequestPolicyArrayOutput { + return o +} + +func (o ChangeRequestPolicyArrayOutput) ToChangeRequestPolicyArrayOutputWithContext(ctx context.Context) ChangeRequestPolicyArrayOutput { + return o +} + +func (o ChangeRequestPolicyArrayOutput) Index(i pulumi.IntInput) ChangeRequestPolicyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ChangeRequestPolicy { + return vs[0].([]*ChangeRequestPolicy)[vs[1].(int)] + }).(ChangeRequestPolicyOutput) +} + +type ChangeRequestPolicyMapOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ChangeRequestPolicy)(nil)).Elem() +} + +func (o ChangeRequestPolicyMapOutput) ToChangeRequestPolicyMapOutput() ChangeRequestPolicyMapOutput { + return o +} + +func (o ChangeRequestPolicyMapOutput) ToChangeRequestPolicyMapOutputWithContext(ctx context.Context) ChangeRequestPolicyMapOutput { + return o +} + +func (o ChangeRequestPolicyMapOutput) MapIndex(k pulumi.StringInput) ChangeRequestPolicyOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ChangeRequestPolicy { + return vs[0].(map[string]*ChangeRequestPolicy)[vs[1].(string)] + }).(ChangeRequestPolicyOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyInput)(nil)).Elem(), &ChangeRequestPolicy{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyArrayInput)(nil)).Elem(), ChangeRequestPolicyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyMapInput)(nil)).Elem(), ChangeRequestPolicyMap{}) + pulumi.RegisterOutputType(ChangeRequestPolicyOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyArrayOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyMapOutput{}) +} diff --git a/sdk/go/doppler/config/config.go b/sdk/go/doppler/config/config.go index 9519c36..6f3ed4a 100644 --- a/sdk/go/doppler/config/config.go +++ b/sdk/go/doppler/config/config.go @@ -1,17 +1,17 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package config import ( + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) var _ = internal.GetEnvOrDefault -// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. +// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. func GetDopplerToken(ctx *pulumi.Context) string { return config.Get(ctx, "doppler:dopplerToken") } @@ -21,6 +21,21 @@ func GetHost(ctx *pulumi.Context) string { return config.Get(ctx, "doppler:host") } +// The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. +func GetOidcIdentity(ctx *pulumi.Context) string { + return config.Get(ctx, "doppler:oidcIdentity") +} + +// A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. +func GetOidcToken(ctx *pulumi.Context) string { + return config.Get(ctx, "doppler:oidcToken") +} + +// A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. +func GetOidcTokenFile(ctx *pulumi.Context) string { + return config.Get(ctx, "doppler:oidcTokenFile") +} + // Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. func GetVerifyTls(ctx *pulumi.Context) bool { return config.GetBool(ctx, "doppler:verifyTls") diff --git a/sdk/go/doppler/doc.go b/sdk/go/doppler/doc.go index bacb13d..5a47346 100644 --- a/sdk/go/doppler/doc.go +++ b/sdk/go/doppler/doc.go @@ -1,2 +1,2 @@ -// A Pulumi package for creating and managing doppler cloud resources. +// A Pulumi package for managing Doppler projects, secrets, and access. package doppler diff --git a/sdk/go/doppler/environment.go b/sdk/go/doppler/environment.go index 405d49e..71ca478 100644 --- a/sdk/go/doppler/environment.go +++ b/sdk/go/doppler/environment.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler environment. @@ -21,8 +21,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // diff --git a/sdk/go/doppler/getEnvironments.go b/sdk/go/doppler/getEnvironments.go new file mode 100644 index 0000000..230fbac --- /dev/null +++ b/sdk/go/doppler/getEnvironments.go @@ -0,0 +1,90 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Retrieve all environments in the project. +// +// ## Example Usage +func GetEnvironments(ctx *pulumi.Context, args *GetEnvironmentsArgs, opts ...pulumi.InvokeOption) (*GetEnvironmentsResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetEnvironmentsResult + err := ctx.Invoke("doppler:index/getEnvironments:getEnvironments", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getEnvironments. +type GetEnvironmentsArgs struct { + // The project to list environments for + Project string `pulumi:"project"` +} + +// A collection of values returned by getEnvironments. +type GetEnvironmentsResult struct { + // List of environments in the project + Environments []GetEnvironmentsEnvironment `pulumi:"environments"` + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + // The project to list environments for + Project string `pulumi:"project"` +} + +func GetEnvironmentsOutput(ctx *pulumi.Context, args GetEnvironmentsOutputArgs, opts ...pulumi.InvokeOption) GetEnvironmentsResultOutput { + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("doppler:index/getEnvironments:getEnvironments", args, GetEnvironmentsResultOutput{}, options).(GetEnvironmentsResultOutput) +} + +// A collection of arguments for invoking getEnvironments. +type GetEnvironmentsOutputArgs struct { + // The project to list environments for + Project pulumi.StringInput `pulumi:"project"` +} + +func (GetEnvironmentsOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetEnvironmentsArgs)(nil)).Elem() +} + +// A collection of values returned by getEnvironments. +type GetEnvironmentsResultOutput struct{ *pulumi.OutputState } + +func (GetEnvironmentsResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetEnvironmentsResult)(nil)).Elem() +} + +func (o GetEnvironmentsResultOutput) ToGetEnvironmentsResultOutput() GetEnvironmentsResultOutput { + return o +} + +func (o GetEnvironmentsResultOutput) ToGetEnvironmentsResultOutputWithContext(ctx context.Context) GetEnvironmentsResultOutput { + return o +} + +// List of environments in the project +func (o GetEnvironmentsResultOutput) Environments() GetEnvironmentsEnvironmentArrayOutput { + return o.ApplyT(func(v GetEnvironmentsResult) []GetEnvironmentsEnvironment { return v.Environments }).(GetEnvironmentsEnvironmentArrayOutput) +} + +// The provider-assigned unique ID for this managed resource. +func (o GetEnvironmentsResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetEnvironmentsResult) string { return v.Id }).(pulumi.StringOutput) +} + +// The project to list environments for +func (o GetEnvironmentsResultOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v GetEnvironmentsResult) string { return v.Project }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(GetEnvironmentsResultOutput{}) +} diff --git a/sdk/go/doppler/getGroup.go b/sdk/go/doppler/getGroup.go new file mode 100644 index 0000000..50e1503 --- /dev/null +++ b/sdk/go/doppler/getGroup.go @@ -0,0 +1,92 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Retrieve an existing Doppler group. +func LookupGroup(ctx *pulumi.Context, args *LookupGroupArgs, opts ...pulumi.InvokeOption) (*LookupGroupResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGroupResult + err := ctx.Invoke("doppler:index/getGroup:getGroup", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getGroup. +type LookupGroupArgs struct { + // The name of the Doppler group + Name *string `pulumi:"name"` + // The slug of the Doppler group + Slug *string `pulumi:"slug"` +} + +// A collection of values returned by getGroup. +type LookupGroupResult struct { + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + // The name of the Doppler group + Name *string `pulumi:"name"` + // The slug of the Doppler group + Slug *string `pulumi:"slug"` +} + +func LookupGroupOutput(ctx *pulumi.Context, args LookupGroupOutputArgs, opts ...pulumi.InvokeOption) LookupGroupResultOutput { + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("doppler:index/getGroup:getGroup", args, LookupGroupResultOutput{}, options).(LookupGroupResultOutput) +} + +// A collection of arguments for invoking getGroup. +type LookupGroupOutputArgs struct { + // The name of the Doppler group + Name pulumi.StringPtrInput `pulumi:"name"` + // The slug of the Doppler group + Slug pulumi.StringPtrInput `pulumi:"slug"` +} + +func (LookupGroupOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupGroupArgs)(nil)).Elem() +} + +// A collection of values returned by getGroup. +type LookupGroupResultOutput struct{ *pulumi.OutputState } + +func (LookupGroupResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupGroupResult)(nil)).Elem() +} + +func (o LookupGroupResultOutput) ToLookupGroupResultOutput() LookupGroupResultOutput { + return o +} + +func (o LookupGroupResultOutput) ToLookupGroupResultOutputWithContext(ctx context.Context) LookupGroupResultOutput { + return o +} + +// The provider-assigned unique ID for this managed resource. +func (o LookupGroupResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupGroupResult) string { return v.Id }).(pulumi.StringOutput) +} + +// The name of the Doppler group +func (o LookupGroupResultOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupGroupResult) *string { return v.Name }).(pulumi.StringPtrOutput) +} + +// The slug of the Doppler group +func (o LookupGroupResultOutput) Slug() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupGroupResult) *string { return v.Slug }).(pulumi.StringPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupGroupResultOutput{}) +} diff --git a/sdk/go/doppler/getSecrets.go b/sdk/go/doppler/getSecrets.go index b8a66be..2b24c0b 100644 --- a/sdk/go/doppler/getSecrets.go +++ b/sdk/go/doppler/getSecrets.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -7,8 +7,8 @@ import ( "context" "reflect" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Retrieve all secrets in the config. @@ -43,16 +43,8 @@ type GetSecretsResult struct { } func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetSecretsResult, error) { - args := v.(GetSecretsArgs) - r, err := GetSecrets(ctx, &args, opts...) - var s GetSecretsResult - if r != nil { - s = *r - } - return s, err - }).(GetSecretsResultOutput) + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("doppler:index/getSecrets:getSecrets", args, GetSecretsResultOutput{}, options).(GetSecretsResultOutput) } // A collection of arguments for invoking getSecrets. diff --git a/sdk/go/doppler/getUser.go b/sdk/go/doppler/getUser.go index 8202d6e..db7814d 100644 --- a/sdk/go/doppler/getUser.go +++ b/sdk/go/doppler/getUser.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -7,8 +7,8 @@ import ( "context" "reflect" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Retrieve an existing Doppler user. @@ -20,8 +20,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // @@ -65,16 +65,8 @@ type GetUserResult struct { } func GetUserOutput(ctx *pulumi.Context, args GetUserOutputArgs, opts ...pulumi.InvokeOption) GetUserResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetUserResult, error) { - args := v.(GetUserArgs) - r, err := GetUser(ctx, &args, opts...) - var s GetUserResult - if r != nil { - s = *r - } - return s, err - }).(GetUserResultOutput) + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("doppler:index/getUser:getUser", args, GetUserResultOutput{}, options).(GetUserResultOutput) } // A collection of arguments for invoking getUser. diff --git a/sdk/go/doppler/group.go b/sdk/go/doppler/group.go index dcaeea6..28ca18d 100644 --- a/sdk/go/doppler/group.go +++ b/sdk/go/doppler/group.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler group. @@ -21,15 +21,16 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := doppler.NewGroup(ctx, "engineering", &doppler.GroupArgs{ -// Name: pulumi.String("engineering"), +// Name: pulumi.String("engineering"), +// WorkplaceRole: pulumi.String("viewer"), // }) // if err != nil { // return err @@ -43,7 +44,6 @@ import ( // ## Import // // import using the group slug from the URL: -// // https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] // // ```sh @@ -52,12 +52,14 @@ import ( type Group struct { pulumi.CustomResourceState - // The default project role assigned to the group when added to a Doppler project + // The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. DefaultProjectRole pulumi.StringPtrOutput `pulumi:"defaultProjectRole"` // The name of the group Name pulumi.StringOutput `pulumi:"name"` // The slug of the group Slug pulumi.StringOutput `pulumi:"slug"` + // The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + WorkplaceRole pulumi.StringPtrOutput `pulumi:"workplaceRole"` } // NewGroup registers a new resource with the given unique name, arguments, and options. @@ -93,21 +95,25 @@ func GetGroup(ctx *pulumi.Context, // Input properties used for looking up and filtering Group resources. type groupState struct { - // The default project role assigned to the group when added to a Doppler project + // The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. DefaultProjectRole *string `pulumi:"defaultProjectRole"` // The name of the group Name *string `pulumi:"name"` // The slug of the group Slug *string `pulumi:"slug"` + // The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + WorkplaceRole *string `pulumi:"workplaceRole"` } type GroupState struct { - // The default project role assigned to the group when added to a Doppler project + // The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. DefaultProjectRole pulumi.StringPtrInput // The name of the group Name pulumi.StringPtrInput // The slug of the group Slug pulumi.StringPtrInput + // The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + WorkplaceRole pulumi.StringPtrInput } func (GroupState) ElementType() reflect.Type { @@ -115,18 +121,22 @@ func (GroupState) ElementType() reflect.Type { } type groupArgs struct { - // The default project role assigned to the group when added to a Doppler project + // The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. DefaultProjectRole *string `pulumi:"defaultProjectRole"` // The name of the group Name string `pulumi:"name"` + // The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + WorkplaceRole *string `pulumi:"workplaceRole"` } // The set of arguments for constructing a Group resource. type GroupArgs struct { - // The default project role assigned to the group when added to a Doppler project + // The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. DefaultProjectRole pulumi.StringPtrInput // The name of the group Name pulumi.StringInput + // The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + WorkplaceRole pulumi.StringPtrInput } func (GroupArgs) ElementType() reflect.Type { @@ -216,7 +226,7 @@ func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput { return o } -// The default project role assigned to the group when added to a Doppler project +// The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. func (o GroupOutput) DefaultProjectRole() pulumi.StringPtrOutput { return o.ApplyT(func(v *Group) pulumi.StringPtrOutput { return v.DefaultProjectRole }).(pulumi.StringPtrOutput) } @@ -231,6 +241,11 @@ func (o GroupOutput) Slug() pulumi.StringOutput { return o.ApplyT(func(v *Group) pulumi.StringOutput { return v.Slug }).(pulumi.StringOutput) } +// The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions +func (o GroupOutput) WorkplaceRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Group) pulumi.StringPtrOutput { return v.WorkplaceRole }).(pulumi.StringPtrOutput) +} + type GroupArrayOutput struct{ *pulumi.OutputState } func (GroupArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/doppler/groupMember.go b/sdk/go/doppler/groupMember.go index 724c8c8..3005d7b 100644 --- a/sdk/go/doppler/groupMember.go +++ b/sdk/go/doppler/groupMember.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler user/group membership. @@ -17,14 +17,69 @@ import ( // **Note:** You can also exclusively manage all memberships in a group with a single resource. // See the `GroupMembers` resource for more information. // +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "fmt" +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// engineering, err := doppler.NewGroup(ctx, "engineering", &doppler.GroupArgs{ +// Name: pulumi.String("engineering"), +// }) +// if err != nil { +// return err +// } +// nic, err := doppler.GetUser(ctx, &doppler.GetUserArgs{ +// Email: "nic@doppler.com", +// }, nil) +// if err != nil { +// return err +// } +// andre, err := doppler.GetUser(ctx, &doppler.GetUserArgs{ +// Email: "andre@doppler.com", +// }, nil) +// if err != nil { +// return err +// } +// forResult0 := map[string]*string{} +// for _, entry := range []*string{ +// nic.Slug, +// andre.Slug, +// } { +// forResult0[entry] = entry +// } +// var engineeringGroupMember []*doppler.GroupMember +// for key0, val0 := range forResult0 { +// __res, err := doppler.NewGroupMember(ctx, fmt.Sprintf("engineering-%v", key0), &doppler.GroupMemberArgs{ +// GroupSlug: engineering.Slug, +// UserSlug: pulumi.String(val0), +// }) +// if err != nil { +// return err +// } +// engineeringGroupMember = append(engineeringGroupMember, __res) +// } +// return nil +// }) +// } +// +// ``` +// // ## Import // // import using the group slug from the URL: -// // https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] -// // and the user slug from the URL: -// // https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] // // ```sh diff --git a/sdk/go/doppler/groupMembers.go b/sdk/go/doppler/groupMembers.go index ff79749..f9fa44f 100644 --- a/sdk/go/doppler/groupMembers.go +++ b/sdk/go/doppler/groupMembers.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler group's memberships. @@ -25,8 +25,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // @@ -69,11 +69,8 @@ import ( // ## Import // // import using the group slug from the URL: -// // https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] -// // and the user slugs from the URL: -// // https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] // // ```sh diff --git a/sdk/go/doppler/init.go b/sdk/go/doppler/init.go index f1cba1b..20809ec 100644 --- a/sdk/go/doppler/init.go +++ b/sdk/go/doppler/init.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -6,9 +6,9 @@ package doppler import ( "fmt" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/blang/semver" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) type module struct { @@ -23,6 +23,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi switch typ { case "doppler:index/branchConfig:BranchConfig": r = &BranchConfig{} + case "doppler:index/changeRequestPolicy:ChangeRequestPolicy": + r = &ChangeRequestPolicy{} case "doppler:index/environment:Environment": r = &Environment{} case "doppler:index/group:Group": @@ -35,16 +37,28 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &Project{} case "doppler:index/projectRole:ProjectRole": r = &ProjectRole{} + case "doppler:index/projectTag:ProjectTag": + r = &ProjectTag{} case "doppler:index/secret:Secret": r = &Secret{} + case "doppler:index/secretNote:SecretNote": + r = &SecretNote{} case "doppler:index/serviceAccount:ServiceAccount": r = &ServiceAccount{} + case "doppler:index/serviceAccountIdentity:ServiceAccountIdentity": + r = &ServiceAccountIdentity{} case "doppler:index/serviceAccountToken:ServiceAccountToken": r = &ServiceAccountToken{} case "doppler:index/serviceToken:ServiceToken": r = &ServiceToken{} + case "doppler:index/tag:Tag": + r = &Tag{} + case "doppler:index/trustedIps:TrustedIps": + r = &TrustedIps{} case "doppler:index/webhook:Webhook": r = &Webhook{} + case "doppler:index/workplaceRole:WorkplaceRole": + r = &WorkplaceRole{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -81,6 +95,11 @@ func init() { "index/branchConfig", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "index/changeRequestPolicy", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "index/environment", @@ -111,16 +130,31 @@ func init() { "index/projectRole", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "index/projectTag", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "index/secret", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "index/secretNote", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "index/serviceAccount", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "index/serviceAccountIdentity", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "index/serviceAccountToken", @@ -131,11 +165,26 @@ func init() { "index/serviceToken", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "index/tag", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "index/trustedIps", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "index/webhook", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "index/workplaceRole", + &module{version}, + ) pulumi.RegisterResourcePackage( "doppler", &pkg{version}, diff --git a/sdk/go/doppler/integration/awsIamUserKeys.go b/sdk/go/doppler/integration/awsIamUserKeys.go new file mode 100644 index 0000000..be7a3ec --- /dev/null +++ b/sdk/go/doppler/integration/awsIamUserKeys.go @@ -0,0 +1,276 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a AWS IAM User Keys Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// iAwsIamUk, err := integration.NewAwsIamUserKeys(ctx, "i_aws_iam_uk", &integration.AwsIamUserKeysArgs{ +// Name: pulumi.String("TF AWS IAM UK"), +// AssumeRoleArn: pulumi.String("arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewAwsIamUserKeys(ctx, "rs_aws_iam_uk", &rotatedsecret.AwsIamUserKeysArgs{ +// Integration: iAwsIamUk.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("AWS_IAM_UK"), +// RotationPeriodSec: pulumi.Int(2592000), +// Username: pulumi.String("xxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AwsIamUserKeys struct { + pulumi.CustomResourceState + + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringOutput `pulumi:"assumeRoleArn"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewAwsIamUserKeys registers a new resource with the given unique name, arguments, and options. +func NewAwsIamUserKeys(ctx *pulumi.Context, + name string, args *AwsIamUserKeysArgs, opts ...pulumi.ResourceOption) (*AwsIamUserKeys, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AssumeRoleArn == nil { + return nil, errors.New("invalid value for required argument 'AssumeRoleArn'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsIamUserKeys + err := ctx.RegisterResource("doppler:integration/awsIamUserKeys:AwsIamUserKeys", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsIamUserKeys gets an existing AwsIamUserKeys resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsIamUserKeys(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsIamUserKeysState, opts ...pulumi.ResourceOption) (*AwsIamUserKeys, error) { + var resource AwsIamUserKeys + err := ctx.ReadResource("doppler:integration/awsIamUserKeys:AwsIamUserKeys", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsIamUserKeys resources. +type awsIamUserKeysState struct { + // IAM Role ARN for role assumption + AssumeRoleArn *string `pulumi:"assumeRoleArn"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type AwsIamUserKeysState struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (AwsIamUserKeysState) ElementType() reflect.Type { + return reflect.TypeOf((*awsIamUserKeysState)(nil)).Elem() +} + +type awsIamUserKeysArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn string `pulumi:"assumeRoleArn"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a AwsIamUserKeys resource. +type AwsIamUserKeysArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (AwsIamUserKeysArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsIamUserKeysArgs)(nil)).Elem() +} + +type AwsIamUserKeysInput interface { + pulumi.Input + + ToAwsIamUserKeysOutput() AwsIamUserKeysOutput + ToAwsIamUserKeysOutputWithContext(ctx context.Context) AwsIamUserKeysOutput +} + +func (*AwsIamUserKeys) ElementType() reflect.Type { + return reflect.TypeOf((**AwsIamUserKeys)(nil)).Elem() +} + +func (i *AwsIamUserKeys) ToAwsIamUserKeysOutput() AwsIamUserKeysOutput { + return i.ToAwsIamUserKeysOutputWithContext(context.Background()) +} + +func (i *AwsIamUserKeys) ToAwsIamUserKeysOutputWithContext(ctx context.Context) AwsIamUserKeysOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsIamUserKeysOutput) +} + +// AwsIamUserKeysArrayInput is an input type that accepts AwsIamUserKeysArray and AwsIamUserKeysArrayOutput values. +// You can construct a concrete instance of `AwsIamUserKeysArrayInput` via: +// +// AwsIamUserKeysArray{ AwsIamUserKeysArgs{...} } +type AwsIamUserKeysArrayInput interface { + pulumi.Input + + ToAwsIamUserKeysArrayOutput() AwsIamUserKeysArrayOutput + ToAwsIamUserKeysArrayOutputWithContext(context.Context) AwsIamUserKeysArrayOutput +} + +type AwsIamUserKeysArray []AwsIamUserKeysInput + +func (AwsIamUserKeysArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsIamUserKeys)(nil)).Elem() +} + +func (i AwsIamUserKeysArray) ToAwsIamUserKeysArrayOutput() AwsIamUserKeysArrayOutput { + return i.ToAwsIamUserKeysArrayOutputWithContext(context.Background()) +} + +func (i AwsIamUserKeysArray) ToAwsIamUserKeysArrayOutputWithContext(ctx context.Context) AwsIamUserKeysArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsIamUserKeysArrayOutput) +} + +// AwsIamUserKeysMapInput is an input type that accepts AwsIamUserKeysMap and AwsIamUserKeysMapOutput values. +// You can construct a concrete instance of `AwsIamUserKeysMapInput` via: +// +// AwsIamUserKeysMap{ "key": AwsIamUserKeysArgs{...} } +type AwsIamUserKeysMapInput interface { + pulumi.Input + + ToAwsIamUserKeysMapOutput() AwsIamUserKeysMapOutput + ToAwsIamUserKeysMapOutputWithContext(context.Context) AwsIamUserKeysMapOutput +} + +type AwsIamUserKeysMap map[string]AwsIamUserKeysInput + +func (AwsIamUserKeysMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsIamUserKeys)(nil)).Elem() +} + +func (i AwsIamUserKeysMap) ToAwsIamUserKeysMapOutput() AwsIamUserKeysMapOutput { + return i.ToAwsIamUserKeysMapOutputWithContext(context.Background()) +} + +func (i AwsIamUserKeysMap) ToAwsIamUserKeysMapOutputWithContext(ctx context.Context) AwsIamUserKeysMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsIamUserKeysMapOutput) +} + +type AwsIamUserKeysOutput struct{ *pulumi.OutputState } + +func (AwsIamUserKeysOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsIamUserKeys)(nil)).Elem() +} + +func (o AwsIamUserKeysOutput) ToAwsIamUserKeysOutput() AwsIamUserKeysOutput { + return o +} + +func (o AwsIamUserKeysOutput) ToAwsIamUserKeysOutputWithContext(ctx context.Context) AwsIamUserKeysOutput { + return o +} + +// IAM Role ARN for role assumption +func (o AwsIamUserKeysOutput) AssumeRoleArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.AssumeRoleArn }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AwsIamUserKeysOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type AwsIamUserKeysArrayOutput struct{ *pulumi.OutputState } + +func (AwsIamUserKeysArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsIamUserKeys)(nil)).Elem() +} + +func (o AwsIamUserKeysArrayOutput) ToAwsIamUserKeysArrayOutput() AwsIamUserKeysArrayOutput { + return o +} + +func (o AwsIamUserKeysArrayOutput) ToAwsIamUserKeysArrayOutputWithContext(ctx context.Context) AwsIamUserKeysArrayOutput { + return o +} + +func (o AwsIamUserKeysArrayOutput) Index(i pulumi.IntInput) AwsIamUserKeysOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsIamUserKeys { + return vs[0].([]*AwsIamUserKeys)[vs[1].(int)] + }).(AwsIamUserKeysOutput) +} + +type AwsIamUserKeysMapOutput struct{ *pulumi.OutputState } + +func (AwsIamUserKeysMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsIamUserKeys)(nil)).Elem() +} + +func (o AwsIamUserKeysMapOutput) ToAwsIamUserKeysMapOutput() AwsIamUserKeysMapOutput { + return o +} + +func (o AwsIamUserKeysMapOutput) ToAwsIamUserKeysMapOutputWithContext(ctx context.Context) AwsIamUserKeysMapOutput { + return o +} + +func (o AwsIamUserKeysMapOutput) MapIndex(k pulumi.StringInput) AwsIamUserKeysOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsIamUserKeys { + return vs[0].(map[string]*AwsIamUserKeys)[vs[1].(string)] + }).(AwsIamUserKeysOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsIamUserKeysInput)(nil)).Elem(), &AwsIamUserKeys{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsIamUserKeysArrayInput)(nil)).Elem(), AwsIamUserKeysArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsIamUserKeysMapInput)(nil)).Elem(), AwsIamUserKeysMap{}) + pulumi.RegisterOutputType(AwsIamUserKeysOutput{}) + pulumi.RegisterOutputType(AwsIamUserKeysArrayOutput{}) + pulumi.RegisterOutputType(AwsIamUserKeysMapOutput{}) +} diff --git a/sdk/go/doppler/integration/awsMssql.go b/sdk/go/doppler/integration/awsMssql.go new file mode 100644 index 0000000..e4bd800 --- /dev/null +++ b/sdk/go/doppler/integration/awsMssql.go @@ -0,0 +1,318 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a AWS MS SQL Server Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iAwsMssql, err := integration.NewAwsMssql(ctx, "i_aws_mssql", &integration.AwsMssqlArgs{ +// Name: pulumi.String("TF AWS MS SQL Server"), +// AssumeRoleArn: pulumi.String("arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx"), +// LambdaArn: pulumi.String("arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewAwsMssql(ctx, "rs_aws_mssql", &rotatedsecret.AwsMssqlArgs{ +// Credentials: rotatedsecret.AwsMssqlCredentialArray{ +// &rotatedsecret.AwsMssqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxx"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.AwsMssqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxx"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iAwsMssql.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB"), +// RotationPeriodSec: pulumi.Int(2592000), +// Host: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// Port: pulumi.Int(1433), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AwsMssql struct { + pulumi.CustomResourceState + + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringOutput `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn pulumi.StringOutput `pulumi:"lambdaArn"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewAwsMssql registers a new resource with the given unique name, arguments, and options. +func NewAwsMssql(ctx *pulumi.Context, + name string, args *AwsMssqlArgs, opts ...pulumi.ResourceOption) (*AwsMssql, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AssumeRoleArn == nil { + return nil, errors.New("invalid value for required argument 'AssumeRoleArn'") + } + if args.LambdaArn == nil { + return nil, errors.New("invalid value for required argument 'LambdaArn'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsMssql + err := ctx.RegisterResource("doppler:integration/awsMssql:AwsMssql", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsMssql gets an existing AwsMssql resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsMssql(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsMssqlState, opts ...pulumi.ResourceOption) (*AwsMssql, error) { + var resource AwsMssql + err := ctx.ReadResource("doppler:integration/awsMssql:AwsMssql", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsMssql resources. +type awsMssqlState struct { + // IAM Role ARN for role assumption + AssumeRoleArn *string `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn *string `pulumi:"lambdaArn"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type AwsMssqlState struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringPtrInput + // The Lambda ARN + LambdaArn pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (AwsMssqlState) ElementType() reflect.Type { + return reflect.TypeOf((*awsMssqlState)(nil)).Elem() +} + +type awsMssqlArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn string `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn string `pulumi:"lambdaArn"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a AwsMssql resource. +type AwsMssqlArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringInput + // The Lambda ARN + LambdaArn pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (AwsMssqlArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsMssqlArgs)(nil)).Elem() +} + +type AwsMssqlInput interface { + pulumi.Input + + ToAwsMssqlOutput() AwsMssqlOutput + ToAwsMssqlOutputWithContext(ctx context.Context) AwsMssqlOutput +} + +func (*AwsMssql) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMssql)(nil)).Elem() +} + +func (i *AwsMssql) ToAwsMssqlOutput() AwsMssqlOutput { + return i.ToAwsMssqlOutputWithContext(context.Background()) +} + +func (i *AwsMssql) ToAwsMssqlOutputWithContext(ctx context.Context) AwsMssqlOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlOutput) +} + +// AwsMssqlArrayInput is an input type that accepts AwsMssqlArray and AwsMssqlArrayOutput values. +// You can construct a concrete instance of `AwsMssqlArrayInput` via: +// +// AwsMssqlArray{ AwsMssqlArgs{...} } +type AwsMssqlArrayInput interface { + pulumi.Input + + ToAwsMssqlArrayOutput() AwsMssqlArrayOutput + ToAwsMssqlArrayOutputWithContext(context.Context) AwsMssqlArrayOutput +} + +type AwsMssqlArray []AwsMssqlInput + +func (AwsMssqlArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMssql)(nil)).Elem() +} + +func (i AwsMssqlArray) ToAwsMssqlArrayOutput() AwsMssqlArrayOutput { + return i.ToAwsMssqlArrayOutputWithContext(context.Background()) +} + +func (i AwsMssqlArray) ToAwsMssqlArrayOutputWithContext(ctx context.Context) AwsMssqlArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlArrayOutput) +} + +// AwsMssqlMapInput is an input type that accepts AwsMssqlMap and AwsMssqlMapOutput values. +// You can construct a concrete instance of `AwsMssqlMapInput` via: +// +// AwsMssqlMap{ "key": AwsMssqlArgs{...} } +type AwsMssqlMapInput interface { + pulumi.Input + + ToAwsMssqlMapOutput() AwsMssqlMapOutput + ToAwsMssqlMapOutputWithContext(context.Context) AwsMssqlMapOutput +} + +type AwsMssqlMap map[string]AwsMssqlInput + +func (AwsMssqlMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMssql)(nil)).Elem() +} + +func (i AwsMssqlMap) ToAwsMssqlMapOutput() AwsMssqlMapOutput { + return i.ToAwsMssqlMapOutputWithContext(context.Background()) +} + +func (i AwsMssqlMap) ToAwsMssqlMapOutputWithContext(ctx context.Context) AwsMssqlMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlMapOutput) +} + +type AwsMssqlOutput struct{ *pulumi.OutputState } + +func (AwsMssqlOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMssql)(nil)).Elem() +} + +func (o AwsMssqlOutput) ToAwsMssqlOutput() AwsMssqlOutput { + return o +} + +func (o AwsMssqlOutput) ToAwsMssqlOutputWithContext(ctx context.Context) AwsMssqlOutput { + return o +} + +// IAM Role ARN for role assumption +func (o AwsMssqlOutput) AssumeRoleArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.AssumeRoleArn }).(pulumi.StringOutput) +} + +// The Lambda ARN +func (o AwsMssqlOutput) LambdaArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.LambdaArn }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AwsMssqlOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type AwsMssqlArrayOutput struct{ *pulumi.OutputState } + +func (AwsMssqlArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMssql)(nil)).Elem() +} + +func (o AwsMssqlArrayOutput) ToAwsMssqlArrayOutput() AwsMssqlArrayOutput { + return o +} + +func (o AwsMssqlArrayOutput) ToAwsMssqlArrayOutputWithContext(ctx context.Context) AwsMssqlArrayOutput { + return o +} + +func (o AwsMssqlArrayOutput) Index(i pulumi.IntInput) AwsMssqlOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsMssql { + return vs[0].([]*AwsMssql)[vs[1].(int)] + }).(AwsMssqlOutput) +} + +type AwsMssqlMapOutput struct{ *pulumi.OutputState } + +func (AwsMssqlMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMssql)(nil)).Elem() +} + +func (o AwsMssqlMapOutput) ToAwsMssqlMapOutput() AwsMssqlMapOutput { + return o +} + +func (o AwsMssqlMapOutput) ToAwsMssqlMapOutputWithContext(ctx context.Context) AwsMssqlMapOutput { + return o +} + +func (o AwsMssqlMapOutput) MapIndex(k pulumi.StringInput) AwsMssqlOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsMssql { + return vs[0].(map[string]*AwsMssql)[vs[1].(string)] + }).(AwsMssqlOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlInput)(nil)).Elem(), &AwsMssql{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlArrayInput)(nil)).Elem(), AwsMssqlArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlMapInput)(nil)).Elem(), AwsMssqlMap{}) + pulumi.RegisterOutputType(AwsMssqlOutput{}) + pulumi.RegisterOutputType(AwsMssqlArrayOutput{}) + pulumi.RegisterOutputType(AwsMssqlMapOutput{}) +} diff --git a/sdk/go/doppler/integration/awsMysql.go b/sdk/go/doppler/integration/awsMysql.go new file mode 100644 index 0000000..f1ca858 --- /dev/null +++ b/sdk/go/doppler/integration/awsMysql.go @@ -0,0 +1,320 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a AWS MySQL Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iAwsMysql, err := integration.NewAwsMysql(ctx, "i_aws_mysql", &integration.AwsMysqlArgs{ +// Name: pulumi.String("TF AWS MySQL"), +// AssumeRoleArn: pulumi.String("arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx"), +// LambdaArn: pulumi.String("arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewAwsMysql(ctx, "rs_aws_mysql", &rotatedsecret.AwsMysqlArgs{ +// Credentials: rotatedsecret.AwsMysqlCredentialArray{ +// &rotatedsecret.AwsMysqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxx"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.AwsMysqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxx"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iAwsMysql.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB"), +// RotationPeriodSec: pulumi.Int(2592000), +// Host: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// Port: pulumi.Int(3306), +// ManagingUserUsername: pulumi.String("xxxxxxxx"), +// ManagingUserPassword: pulumi.String("xxxxxxxxxxxxxxxxxxxx"), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AwsMysql struct { + pulumi.CustomResourceState + + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringOutput `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn pulumi.StringOutput `pulumi:"lambdaArn"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewAwsMysql registers a new resource with the given unique name, arguments, and options. +func NewAwsMysql(ctx *pulumi.Context, + name string, args *AwsMysqlArgs, opts ...pulumi.ResourceOption) (*AwsMysql, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AssumeRoleArn == nil { + return nil, errors.New("invalid value for required argument 'AssumeRoleArn'") + } + if args.LambdaArn == nil { + return nil, errors.New("invalid value for required argument 'LambdaArn'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsMysql + err := ctx.RegisterResource("doppler:integration/awsMysql:AwsMysql", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsMysql gets an existing AwsMysql resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsMysql(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsMysqlState, opts ...pulumi.ResourceOption) (*AwsMysql, error) { + var resource AwsMysql + err := ctx.ReadResource("doppler:integration/awsMysql:AwsMysql", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsMysql resources. +type awsMysqlState struct { + // IAM Role ARN for role assumption + AssumeRoleArn *string `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn *string `pulumi:"lambdaArn"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type AwsMysqlState struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringPtrInput + // The Lambda ARN + LambdaArn pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (AwsMysqlState) ElementType() reflect.Type { + return reflect.TypeOf((*awsMysqlState)(nil)).Elem() +} + +type awsMysqlArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn string `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn string `pulumi:"lambdaArn"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a AwsMysql resource. +type AwsMysqlArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringInput + // The Lambda ARN + LambdaArn pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (AwsMysqlArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsMysqlArgs)(nil)).Elem() +} + +type AwsMysqlInput interface { + pulumi.Input + + ToAwsMysqlOutput() AwsMysqlOutput + ToAwsMysqlOutputWithContext(ctx context.Context) AwsMysqlOutput +} + +func (*AwsMysql) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMysql)(nil)).Elem() +} + +func (i *AwsMysql) ToAwsMysqlOutput() AwsMysqlOutput { + return i.ToAwsMysqlOutputWithContext(context.Background()) +} + +func (i *AwsMysql) ToAwsMysqlOutputWithContext(ctx context.Context) AwsMysqlOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlOutput) +} + +// AwsMysqlArrayInput is an input type that accepts AwsMysqlArray and AwsMysqlArrayOutput values. +// You can construct a concrete instance of `AwsMysqlArrayInput` via: +// +// AwsMysqlArray{ AwsMysqlArgs{...} } +type AwsMysqlArrayInput interface { + pulumi.Input + + ToAwsMysqlArrayOutput() AwsMysqlArrayOutput + ToAwsMysqlArrayOutputWithContext(context.Context) AwsMysqlArrayOutput +} + +type AwsMysqlArray []AwsMysqlInput + +func (AwsMysqlArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMysql)(nil)).Elem() +} + +func (i AwsMysqlArray) ToAwsMysqlArrayOutput() AwsMysqlArrayOutput { + return i.ToAwsMysqlArrayOutputWithContext(context.Background()) +} + +func (i AwsMysqlArray) ToAwsMysqlArrayOutputWithContext(ctx context.Context) AwsMysqlArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlArrayOutput) +} + +// AwsMysqlMapInput is an input type that accepts AwsMysqlMap and AwsMysqlMapOutput values. +// You can construct a concrete instance of `AwsMysqlMapInput` via: +// +// AwsMysqlMap{ "key": AwsMysqlArgs{...} } +type AwsMysqlMapInput interface { + pulumi.Input + + ToAwsMysqlMapOutput() AwsMysqlMapOutput + ToAwsMysqlMapOutputWithContext(context.Context) AwsMysqlMapOutput +} + +type AwsMysqlMap map[string]AwsMysqlInput + +func (AwsMysqlMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMysql)(nil)).Elem() +} + +func (i AwsMysqlMap) ToAwsMysqlMapOutput() AwsMysqlMapOutput { + return i.ToAwsMysqlMapOutputWithContext(context.Background()) +} + +func (i AwsMysqlMap) ToAwsMysqlMapOutputWithContext(ctx context.Context) AwsMysqlMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlMapOutput) +} + +type AwsMysqlOutput struct{ *pulumi.OutputState } + +func (AwsMysqlOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMysql)(nil)).Elem() +} + +func (o AwsMysqlOutput) ToAwsMysqlOutput() AwsMysqlOutput { + return o +} + +func (o AwsMysqlOutput) ToAwsMysqlOutputWithContext(ctx context.Context) AwsMysqlOutput { + return o +} + +// IAM Role ARN for role assumption +func (o AwsMysqlOutput) AssumeRoleArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.AssumeRoleArn }).(pulumi.StringOutput) +} + +// The Lambda ARN +func (o AwsMysqlOutput) LambdaArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.LambdaArn }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AwsMysqlOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type AwsMysqlArrayOutput struct{ *pulumi.OutputState } + +func (AwsMysqlArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMysql)(nil)).Elem() +} + +func (o AwsMysqlArrayOutput) ToAwsMysqlArrayOutput() AwsMysqlArrayOutput { + return o +} + +func (o AwsMysqlArrayOutput) ToAwsMysqlArrayOutputWithContext(ctx context.Context) AwsMysqlArrayOutput { + return o +} + +func (o AwsMysqlArrayOutput) Index(i pulumi.IntInput) AwsMysqlOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsMysql { + return vs[0].([]*AwsMysql)[vs[1].(int)] + }).(AwsMysqlOutput) +} + +type AwsMysqlMapOutput struct{ *pulumi.OutputState } + +func (AwsMysqlMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMysql)(nil)).Elem() +} + +func (o AwsMysqlMapOutput) ToAwsMysqlMapOutput() AwsMysqlMapOutput { + return o +} + +func (o AwsMysqlMapOutput) ToAwsMysqlMapOutputWithContext(ctx context.Context) AwsMysqlMapOutput { + return o +} + +func (o AwsMysqlMapOutput) MapIndex(k pulumi.StringInput) AwsMysqlOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsMysql { + return vs[0].(map[string]*AwsMysql)[vs[1].(string)] + }).(AwsMysqlOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlInput)(nil)).Elem(), &AwsMysql{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlArrayInput)(nil)).Elem(), AwsMysqlArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlMapInput)(nil)).Elem(), AwsMysqlMap{}) + pulumi.RegisterOutputType(AwsMysqlOutput{}) + pulumi.RegisterOutputType(AwsMysqlArrayOutput{}) + pulumi.RegisterOutputType(AwsMysqlMapOutput{}) +} diff --git a/sdk/go/doppler/integration/awsParameterStore.go b/sdk/go/doppler/integration/awsParameterStore.go index 7276a0b..1986156 100644 --- a/sdk/go/doppler/integration/awsParameterStore.go +++ b/sdk/go/doppler/integration/awsParameterStore.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package integration @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage an AWS Parameter Store Doppler integration. @@ -23,100 +23,52 @@ import ( // // "encoding/json" // -// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" +// "github.com/pulumi/pulumi-aws/sdk/v7/go/aws" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// tmpJSON0, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Effect": "Allow", -// "Action": "sts:AssumeRole", -// "Principal": map[string]interface{}{ -// "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", -// }, -// "Condition": map[string]interface{}{ -// "StringEquals": map[string]interface{}{ -// "sts:ExternalId": "", -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json0 := string(tmpJSON0) -// tmpJSON1, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Action": []string{ -// "ssm:PutParameter", -// "ssm:LabelParameterVersion", -// "ssm:DeleteParameter", -// "ssm:RemoveTagsFromResource", -// "ssm:GetParameterHistory", -// "ssm:AddTagsToResource", -// "ssm:GetParametersByPath", -// "ssm:GetParameters", -// "ssm:GetParameter", -// "ssm:DeleteParameters", -// }, -// "Effect": "Allow", -// "Resource": "*", -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json1 := string(tmpJSON1) -// dopplerParameterStore, err := iam.NewRole(ctx, "doppler_parameter_store", &iam.RoleArgs{ -// Name: pulumi.String("doppler_parameter_store"), -// AssumeRolePolicy: pulumi.String(json0), -// InlinePolicies: iam.RoleInlinePolicyArray{ -// &iam.RoleInlinePolicyArgs{ -// Name: pulumi.String("doppler_secret_manager"), -// Policy: pulumi.String(json1), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// prod, err := integration.NewAwsParameterStore(ctx, "prod", &integration.AwsParameterStoreArgs{ -// Name: pulumi.String("Production"), -// AssumeRoleArn: dopplerParameterStore.Arn, -// }) -// if err != nil { -// return err -// } -// _, err = secretsSync.NewAwsParameterStore(ctx, "backend_prod", &secretsSync.AwsParameterStoreArgs{ -// Integration: prod.ID(), -// Project: pulumi.String("backend"), -// Config: pulumi.String("prd"), -// Region: pulumi.String("us-east-1"), -// Path: pulumi.String("/backend/"), -// SecureString: pulumi.Bool(true), -// Tags: pulumi.StringMap{ -// "myTag": pulumi.String("enabled"), -// }, -// DeleteBehavior: pulumi.String("leave_in_target"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dopplerParameterStore, err := aws.NewIamRole(ctx, "doppler_parameter_store", &aws.IamRoleArgs{ +// InlinePolicy: []map[string]string{ +// { +// "name": "doppler_secret_manager", +// "policy": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }, +// }, +// Name: "doppler_parameter_store", +// AssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }) +// if err != nil { +// return err +// } +// prod, err := integration.NewAwsParameterStore(ctx, "prod", &integration.AwsParameterStoreArgs{ +// Name: pulumi.String("Production"), +// AssumeRoleArn: dopplerParameterStore.Arn, +// }) +// if err != nil { +// return err +// } +// _, err = secretssync.NewAwsParameterStore(ctx, "backend_prod", &secretssync.AwsParameterStoreArgs{ +// Integration: prod.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// Region: pulumi.String("us-east-1"), +// Path: pulumi.String("/backend/"), +// SecureString: pulumi.Bool(true), +// Tags: pulumi.StringMap{ +// "myTag": pulumi.String("enabled"), +// }, +// DeleteBehavior: pulumi.String("leave_in_target"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } // ``` type AwsParameterStore struct { pulumi.CustomResourceState diff --git a/sdk/go/doppler/integration/awsPostgres.go b/sdk/go/doppler/integration/awsPostgres.go new file mode 100644 index 0000000..cd6c721 --- /dev/null +++ b/sdk/go/doppler/integration/awsPostgres.go @@ -0,0 +1,321 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a AWS Postgres Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iAwsPostgres, err := integration.NewAwsPostgres(ctx, "i_aws_postgres", &integration.AwsPostgresArgs{ +// Name: pulumi.String("TF AWS Postgres"), +// AssumeRoleArn: pulumi.String("arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx"), +// LambdaArn: pulumi.String("arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewAwsPostgres(ctx, "rs_aws_postgres", &rotatedsecret.AwsPostgresArgs{ +// Credentials: rotatedsecret.AwsPostgresCredentialArray{ +// &rotatedsecret.AwsPostgresCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxx"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.AwsPostgresCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxx"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iAwsPostgres.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB"), +// RotationPeriodSec: pulumi.Int(2592000), +// Host: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// Port: pulumi.Int(5432), +// Database: pulumi.String("xxxxxxxx"), +// ManagingUserUsername: pulumi.String("xxxxxxxx"), +// ManagingUserPassword: pulumi.String("xxxxxxxxxxxxxxxxxxxx"), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AwsPostgres struct { + pulumi.CustomResourceState + + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringOutput `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn pulumi.StringOutput `pulumi:"lambdaArn"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewAwsPostgres registers a new resource with the given unique name, arguments, and options. +func NewAwsPostgres(ctx *pulumi.Context, + name string, args *AwsPostgresArgs, opts ...pulumi.ResourceOption) (*AwsPostgres, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AssumeRoleArn == nil { + return nil, errors.New("invalid value for required argument 'AssumeRoleArn'") + } + if args.LambdaArn == nil { + return nil, errors.New("invalid value for required argument 'LambdaArn'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsPostgres + err := ctx.RegisterResource("doppler:integration/awsPostgres:AwsPostgres", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsPostgres gets an existing AwsPostgres resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsPostgres(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsPostgresState, opts ...pulumi.ResourceOption) (*AwsPostgres, error) { + var resource AwsPostgres + err := ctx.ReadResource("doppler:integration/awsPostgres:AwsPostgres", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsPostgres resources. +type awsPostgresState struct { + // IAM Role ARN for role assumption + AssumeRoleArn *string `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn *string `pulumi:"lambdaArn"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type AwsPostgresState struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringPtrInput + // The Lambda ARN + LambdaArn pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (AwsPostgresState) ElementType() reflect.Type { + return reflect.TypeOf((*awsPostgresState)(nil)).Elem() +} + +type awsPostgresArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn string `pulumi:"assumeRoleArn"` + // The Lambda ARN + LambdaArn string `pulumi:"lambdaArn"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a AwsPostgres resource. +type AwsPostgresArgs struct { + // IAM Role ARN for role assumption + AssumeRoleArn pulumi.StringInput + // The Lambda ARN + LambdaArn pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (AwsPostgresArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsPostgresArgs)(nil)).Elem() +} + +type AwsPostgresInput interface { + pulumi.Input + + ToAwsPostgresOutput() AwsPostgresOutput + ToAwsPostgresOutputWithContext(ctx context.Context) AwsPostgresOutput +} + +func (*AwsPostgres) ElementType() reflect.Type { + return reflect.TypeOf((**AwsPostgres)(nil)).Elem() +} + +func (i *AwsPostgres) ToAwsPostgresOutput() AwsPostgresOutput { + return i.ToAwsPostgresOutputWithContext(context.Background()) +} + +func (i *AwsPostgres) ToAwsPostgresOutputWithContext(ctx context.Context) AwsPostgresOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresOutput) +} + +// AwsPostgresArrayInput is an input type that accepts AwsPostgresArray and AwsPostgresArrayOutput values. +// You can construct a concrete instance of `AwsPostgresArrayInput` via: +// +// AwsPostgresArray{ AwsPostgresArgs{...} } +type AwsPostgresArrayInput interface { + pulumi.Input + + ToAwsPostgresArrayOutput() AwsPostgresArrayOutput + ToAwsPostgresArrayOutputWithContext(context.Context) AwsPostgresArrayOutput +} + +type AwsPostgresArray []AwsPostgresInput + +func (AwsPostgresArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsPostgres)(nil)).Elem() +} + +func (i AwsPostgresArray) ToAwsPostgresArrayOutput() AwsPostgresArrayOutput { + return i.ToAwsPostgresArrayOutputWithContext(context.Background()) +} + +func (i AwsPostgresArray) ToAwsPostgresArrayOutputWithContext(ctx context.Context) AwsPostgresArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresArrayOutput) +} + +// AwsPostgresMapInput is an input type that accepts AwsPostgresMap and AwsPostgresMapOutput values. +// You can construct a concrete instance of `AwsPostgresMapInput` via: +// +// AwsPostgresMap{ "key": AwsPostgresArgs{...} } +type AwsPostgresMapInput interface { + pulumi.Input + + ToAwsPostgresMapOutput() AwsPostgresMapOutput + ToAwsPostgresMapOutputWithContext(context.Context) AwsPostgresMapOutput +} + +type AwsPostgresMap map[string]AwsPostgresInput + +func (AwsPostgresMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsPostgres)(nil)).Elem() +} + +func (i AwsPostgresMap) ToAwsPostgresMapOutput() AwsPostgresMapOutput { + return i.ToAwsPostgresMapOutputWithContext(context.Background()) +} + +func (i AwsPostgresMap) ToAwsPostgresMapOutputWithContext(ctx context.Context) AwsPostgresMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresMapOutput) +} + +type AwsPostgresOutput struct{ *pulumi.OutputState } + +func (AwsPostgresOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsPostgres)(nil)).Elem() +} + +func (o AwsPostgresOutput) ToAwsPostgresOutput() AwsPostgresOutput { + return o +} + +func (o AwsPostgresOutput) ToAwsPostgresOutputWithContext(ctx context.Context) AwsPostgresOutput { + return o +} + +// IAM Role ARN for role assumption +func (o AwsPostgresOutput) AssumeRoleArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.AssumeRoleArn }).(pulumi.StringOutput) +} + +// The Lambda ARN +func (o AwsPostgresOutput) LambdaArn() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.LambdaArn }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AwsPostgresOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type AwsPostgresArrayOutput struct{ *pulumi.OutputState } + +func (AwsPostgresArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsPostgres)(nil)).Elem() +} + +func (o AwsPostgresArrayOutput) ToAwsPostgresArrayOutput() AwsPostgresArrayOutput { + return o +} + +func (o AwsPostgresArrayOutput) ToAwsPostgresArrayOutputWithContext(ctx context.Context) AwsPostgresArrayOutput { + return o +} + +func (o AwsPostgresArrayOutput) Index(i pulumi.IntInput) AwsPostgresOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsPostgres { + return vs[0].([]*AwsPostgres)[vs[1].(int)] + }).(AwsPostgresOutput) +} + +type AwsPostgresMapOutput struct{ *pulumi.OutputState } + +func (AwsPostgresMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsPostgres)(nil)).Elem() +} + +func (o AwsPostgresMapOutput) ToAwsPostgresMapOutput() AwsPostgresMapOutput { + return o +} + +func (o AwsPostgresMapOutput) ToAwsPostgresMapOutputWithContext(ctx context.Context) AwsPostgresMapOutput { + return o +} + +func (o AwsPostgresMapOutput) MapIndex(k pulumi.StringInput) AwsPostgresOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsPostgres { + return vs[0].(map[string]*AwsPostgres)[vs[1].(string)] + }).(AwsPostgresOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresInput)(nil)).Elem(), &AwsPostgres{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresArrayInput)(nil)).Elem(), AwsPostgresArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresMapInput)(nil)).Elem(), AwsPostgresMap{}) + pulumi.RegisterOutputType(AwsPostgresOutput{}) + pulumi.RegisterOutputType(AwsPostgresArrayOutput{}) + pulumi.RegisterOutputType(AwsPostgresMapOutput{}) +} diff --git a/sdk/go/doppler/integration/awsSecretsManager.go b/sdk/go/doppler/integration/awsSecretsManager.go index b820e84..3ba1c39 100644 --- a/sdk/go/doppler/integration/awsSecretsManager.go +++ b/sdk/go/doppler/integration/awsSecretsManager.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package integration @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage an AWS Secrets Manager Doppler integration. @@ -23,96 +23,51 @@ import ( // // "encoding/json" // -// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" +// "github.com/pulumi/pulumi-aws/sdk/v7/go/aws" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// tmpJSON0, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Effect": "Allow", -// "Action": "sts:AssumeRole", -// "Principal": map[string]interface{}{ -// "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", -// }, -// "Condition": map[string]interface{}{ -// "StringEquals": map[string]interface{}{ -// "sts:ExternalId": "", -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json0 := string(tmpJSON0) -// tmpJSON1, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Action": []string{ -// "secretsmanager:GetSecretValue", -// "secretsmanager:DescribeSecret", -// "secretsmanager:PutSecretValue", -// "secretsmanager:CreateSecret", -// "secretsmanager:DeleteSecret", -// "secretsmanager:TagResource", -// "secretsmanager:UpdateSecret", -// }, -// "Effect": "Allow", -// "Resource": "*", -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json1 := string(tmpJSON1) -// dopplerSecretsManager, err := iam.NewRole(ctx, "doppler_secrets_manager", &iam.RoleArgs{ -// Name: pulumi.String("doppler_secrets_manager"), -// AssumeRolePolicy: pulumi.String(json0), -// InlinePolicies: iam.RoleInlinePolicyArray{ -// &iam.RoleInlinePolicyArgs{ -// Name: pulumi.String("doppler_secret_manager"), -// Policy: pulumi.String(json1), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// prod, err := integration.NewAwsSecretsManager(ctx, "prod", &integration.AwsSecretsManagerArgs{ -// Name: pulumi.String("Production"), -// AssumeRoleArn: dopplerSecretsManager.Arn, -// }) -// if err != nil { -// return err -// } -// _, err = secretsSync.NewAwsSecretsManager(ctx, "backend_prod", &secretsSync.AwsSecretsManagerArgs{ -// Integration: prod.ID(), -// Project: pulumi.String("backend"), -// Config: pulumi.String("prd"), -// Region: pulumi.String("us-east-1"), -// Path: pulumi.String("/backend/"), -// Tags: pulumi.StringMap{ -// "myTag": pulumi.String("enabled"), -// }, -// DeleteBehavior: pulumi.String("leave_in_target"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dopplerSecretsManager, err := aws.NewIamRole(ctx, "doppler_secrets_manager", &aws.IamRoleArgs{ +// InlinePolicy: []map[string]string{ +// { +// "name": "doppler_secret_manager", +// "policy": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }, +// }, +// Name: "doppler_secrets_manager", +// AssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }) +// if err != nil { +// return err +// } +// prod, err := integration.NewAwsSecretsManager(ctx, "prod", &integration.AwsSecretsManagerArgs{ +// Name: pulumi.String("Production"), +// AssumeRoleArn: dopplerSecretsManager.Arn, +// }) +// if err != nil { +// return err +// } +// _, err = secretssync.NewAwsSecretsManager(ctx, "backend_prod", &secretssync.AwsSecretsManagerArgs{ +// Integration: prod.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// Region: pulumi.String("us-east-1"), +// Path: pulumi.String("/backend/"), +// Tags: pulumi.StringMap{ +// "myTag": pulumi.String("enabled"), +// }, +// DeleteBehavior: pulumi.String("leave_in_target"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } // ``` type AwsSecretsManager struct { pulumi.CustomResourceState diff --git a/sdk/go/doppler/integration/azureDynamicServicePrincipal.go b/sdk/go/doppler/integration/azureDynamicServicePrincipal.go new file mode 100644 index 0000000..0dcc385 --- /dev/null +++ b/sdk/go/doppler/integration/azureDynamicServicePrincipal.go @@ -0,0 +1,309 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an Azure Dynamic Service Principal Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := integration.NewAzureDynamicServicePrincipal(ctx, "prod", &integration.AzureDynamicServicePrincipalArgs{ +// Name: pulumi.String("Production"), +// TenantId: pulumi.String("c77d1b3d-6350-4696-b59f-90dae3e0b41e"), +// ClientId: pulumi.String("77ed9112-b7f5-4d1d-a60f-198375e7f265"), +// ClientSecret: pulumi.String("kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AzureDynamicServicePrincipal struct { + pulumi.CustomResourceState + + // The application (client) ID of the managing service principal + ClientId pulumi.StringOutput `pulumi:"clientId"` + // The client secret of the managing service principal + ClientSecret pulumi.StringOutput `pulumi:"clientSecret"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId pulumi.StringOutput `pulumi:"tenantId"` +} + +// NewAzureDynamicServicePrincipal registers a new resource with the given unique name, arguments, and options. +func NewAzureDynamicServicePrincipal(ctx *pulumi.Context, + name string, args *AzureDynamicServicePrincipalArgs, opts ...pulumi.ResourceOption) (*AzureDynamicServicePrincipal, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ClientId == nil { + return nil, errors.New("invalid value for required argument 'ClientId'") + } + if args.ClientSecret == nil { + return nil, errors.New("invalid value for required argument 'ClientSecret'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.TenantId == nil { + return nil, errors.New("invalid value for required argument 'TenantId'") + } + if args.ClientSecret != nil { + args.ClientSecret = pulumi.ToSecret(args.ClientSecret).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "clientSecret", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource AzureDynamicServicePrincipal + err := ctx.RegisterResource("doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAzureDynamicServicePrincipal gets an existing AzureDynamicServicePrincipal resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAzureDynamicServicePrincipal(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AzureDynamicServicePrincipalState, opts ...pulumi.ResourceOption) (*AzureDynamicServicePrincipal, error) { + var resource AzureDynamicServicePrincipal + err := ctx.ReadResource("doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AzureDynamicServicePrincipal resources. +type azureDynamicServicePrincipalState struct { + // The application (client) ID of the managing service principal + ClientId *string `pulumi:"clientId"` + // The client secret of the managing service principal + ClientSecret *string `pulumi:"clientSecret"` + // The name of the integration + Name *string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId *string `pulumi:"tenantId"` +} + +type AzureDynamicServicePrincipalState struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringPtrInput + // The client secret of the managing service principal + ClientSecret pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput + // The Azure directory (tenant) ID + TenantId pulumi.StringPtrInput +} + +func (AzureDynamicServicePrincipalState) ElementType() reflect.Type { + return reflect.TypeOf((*azureDynamicServicePrincipalState)(nil)).Elem() +} + +type azureDynamicServicePrincipalArgs struct { + // The application (client) ID of the managing service principal + ClientId string `pulumi:"clientId"` + // The client secret of the managing service principal + ClientSecret string `pulumi:"clientSecret"` + // The name of the integration + Name string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId string `pulumi:"tenantId"` +} + +// The set of arguments for constructing a AzureDynamicServicePrincipal resource. +type AzureDynamicServicePrincipalArgs struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringInput + // The client secret of the managing service principal + ClientSecret pulumi.StringInput + // The name of the integration + Name pulumi.StringInput + // The Azure directory (tenant) ID + TenantId pulumi.StringInput +} + +func (AzureDynamicServicePrincipalArgs) ElementType() reflect.Type { + return reflect.TypeOf((*azureDynamicServicePrincipalArgs)(nil)).Elem() +} + +type AzureDynamicServicePrincipalInput interface { + pulumi.Input + + ToAzureDynamicServicePrincipalOutput() AzureDynamicServicePrincipalOutput + ToAzureDynamicServicePrincipalOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOutput +} + +func (*AzureDynamicServicePrincipal) ElementType() reflect.Type { + return reflect.TypeOf((**AzureDynamicServicePrincipal)(nil)).Elem() +} + +func (i *AzureDynamicServicePrincipal) ToAzureDynamicServicePrincipalOutput() AzureDynamicServicePrincipalOutput { + return i.ToAzureDynamicServicePrincipalOutputWithContext(context.Background()) +} + +func (i *AzureDynamicServicePrincipal) ToAzureDynamicServicePrincipalOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureDynamicServicePrincipalOutput) +} + +// AzureDynamicServicePrincipalArrayInput is an input type that accepts AzureDynamicServicePrincipalArray and AzureDynamicServicePrincipalArrayOutput values. +// You can construct a concrete instance of `AzureDynamicServicePrincipalArrayInput` via: +// +// AzureDynamicServicePrincipalArray{ AzureDynamicServicePrincipalArgs{...} } +type AzureDynamicServicePrincipalArrayInput interface { + pulumi.Input + + ToAzureDynamicServicePrincipalArrayOutput() AzureDynamicServicePrincipalArrayOutput + ToAzureDynamicServicePrincipalArrayOutputWithContext(context.Context) AzureDynamicServicePrincipalArrayOutput +} + +type AzureDynamicServicePrincipalArray []AzureDynamicServicePrincipalInput + +func (AzureDynamicServicePrincipalArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureDynamicServicePrincipal)(nil)).Elem() +} + +func (i AzureDynamicServicePrincipalArray) ToAzureDynamicServicePrincipalArrayOutput() AzureDynamicServicePrincipalArrayOutput { + return i.ToAzureDynamicServicePrincipalArrayOutputWithContext(context.Background()) +} + +func (i AzureDynamicServicePrincipalArray) ToAzureDynamicServicePrincipalArrayOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureDynamicServicePrincipalArrayOutput) +} + +// AzureDynamicServicePrincipalMapInput is an input type that accepts AzureDynamicServicePrincipalMap and AzureDynamicServicePrincipalMapOutput values. +// You can construct a concrete instance of `AzureDynamicServicePrincipalMapInput` via: +// +// AzureDynamicServicePrincipalMap{ "key": AzureDynamicServicePrincipalArgs{...} } +type AzureDynamicServicePrincipalMapInput interface { + pulumi.Input + + ToAzureDynamicServicePrincipalMapOutput() AzureDynamicServicePrincipalMapOutput + ToAzureDynamicServicePrincipalMapOutputWithContext(context.Context) AzureDynamicServicePrincipalMapOutput +} + +type AzureDynamicServicePrincipalMap map[string]AzureDynamicServicePrincipalInput + +func (AzureDynamicServicePrincipalMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureDynamicServicePrincipal)(nil)).Elem() +} + +func (i AzureDynamicServicePrincipalMap) ToAzureDynamicServicePrincipalMapOutput() AzureDynamicServicePrincipalMapOutput { + return i.ToAzureDynamicServicePrincipalMapOutputWithContext(context.Background()) +} + +func (i AzureDynamicServicePrincipalMap) ToAzureDynamicServicePrincipalMapOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureDynamicServicePrincipalMapOutput) +} + +type AzureDynamicServicePrincipalOutput struct{ *pulumi.OutputState } + +func (AzureDynamicServicePrincipalOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AzureDynamicServicePrincipal)(nil)).Elem() +} + +func (o AzureDynamicServicePrincipalOutput) ToAzureDynamicServicePrincipalOutput() AzureDynamicServicePrincipalOutput { + return o +} + +func (o AzureDynamicServicePrincipalOutput) ToAzureDynamicServicePrincipalOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOutput { + return o +} + +// The application (client) ID of the managing service principal +func (o AzureDynamicServicePrincipalOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipal) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput) +} + +// The client secret of the managing service principal +func (o AzureDynamicServicePrincipalOutput) ClientSecret() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipal) pulumi.StringOutput { return v.ClientSecret }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AzureDynamicServicePrincipalOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipal) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The Azure directory (tenant) ID +func (o AzureDynamicServicePrincipalOutput) TenantId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipal) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) +} + +type AzureDynamicServicePrincipalArrayOutput struct{ *pulumi.OutputState } + +func (AzureDynamicServicePrincipalArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureDynamicServicePrincipal)(nil)).Elem() +} + +func (o AzureDynamicServicePrincipalArrayOutput) ToAzureDynamicServicePrincipalArrayOutput() AzureDynamicServicePrincipalArrayOutput { + return o +} + +func (o AzureDynamicServicePrincipalArrayOutput) ToAzureDynamicServicePrincipalArrayOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalArrayOutput { + return o +} + +func (o AzureDynamicServicePrincipalArrayOutput) Index(i pulumi.IntInput) AzureDynamicServicePrincipalOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureDynamicServicePrincipal { + return vs[0].([]*AzureDynamicServicePrincipal)[vs[1].(int)] + }).(AzureDynamicServicePrincipalOutput) +} + +type AzureDynamicServicePrincipalMapOutput struct{ *pulumi.OutputState } + +func (AzureDynamicServicePrincipalMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureDynamicServicePrincipal)(nil)).Elem() +} + +func (o AzureDynamicServicePrincipalMapOutput) ToAzureDynamicServicePrincipalMapOutput() AzureDynamicServicePrincipalMapOutput { + return o +} + +func (o AzureDynamicServicePrincipalMapOutput) ToAzureDynamicServicePrincipalMapOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalMapOutput { + return o +} + +func (o AzureDynamicServicePrincipalMapOutput) MapIndex(k pulumi.StringInput) AzureDynamicServicePrincipalOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureDynamicServicePrincipal { + return vs[0].(map[string]*AzureDynamicServicePrincipal)[vs[1].(string)] + }).(AzureDynamicServicePrincipalOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AzureDynamicServicePrincipalInput)(nil)).Elem(), &AzureDynamicServicePrincipal{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureDynamicServicePrincipalArrayInput)(nil)).Elem(), AzureDynamicServicePrincipalArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureDynamicServicePrincipalMapInput)(nil)).Elem(), AzureDynamicServicePrincipalMap{}) + pulumi.RegisterOutputType(AzureDynamicServicePrincipalOutput{}) + pulumi.RegisterOutputType(AzureDynamicServicePrincipalArrayOutput{}) + pulumi.RegisterOutputType(AzureDynamicServicePrincipalMapOutput{}) +} diff --git a/sdk/go/doppler/integration/azureDynamicServicePrincipalOidc.go b/sdk/go/doppler/integration/azureDynamicServicePrincipalOidc.go new file mode 100644 index 0000000..ac70aec --- /dev/null +++ b/sdk/go/doppler/integration/azureDynamicServicePrincipalOidc.go @@ -0,0 +1,337 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an Azure Dynamic Service Principal Doppler integration using workload identity federation. +// +// The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi-azuread/sdk/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dopplerManager, err := azuread.Application(ctx, map[string]string{ +// "clientId": "77ed9112-b7f5-4d1d-a60f-198375e7f265", +// }, nil) +// if err != nil { +// return err +// } +// prod, err := integration.NewAzureDynamicServicePrincipalOidc(ctx, "prod", &integration.AzureDynamicServicePrincipalOidcArgs{ +// Name: pulumi.String("Production"), +// TenantId: pulumi.String("c77d1b3d-6350-4696-b59f-90dae3e0b41e"), +// ClientId: pulumi.Any(dopplerManager.ClientId), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewApplicationFederatedIdentityCredential(ctx, "doppler", &azuread.ApplicationFederatedIdentityCredentialArgs{ +// ApplicationId: dopplerManager.Id, +// DisplayName: "doppler-production", +// Issuer: prod.FederationIssuer, +// Subject: prod.FederationSubject, +// Audiences: pulumi.StringArray{ +// prod.FederationAudience, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AzureDynamicServicePrincipalOidc struct { + pulumi.CustomResourceState + + // The application (client) ID of the managing service principal + ClientId pulumi.StringOutput `pulumi:"clientId"` + // The audience to configure on the federated identity credential + FederationAudience pulumi.StringOutput `pulumi:"federationAudience"` + // The issuer of the OIDC tokens Doppler issues for this integration + FederationIssuer pulumi.StringOutput `pulumi:"federationIssuer"` + // The subject of the OIDC tokens Doppler issues for this integration + FederationSubject pulumi.StringOutput `pulumi:"federationSubject"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId pulumi.StringOutput `pulumi:"tenantId"` +} + +// NewAzureDynamicServicePrincipalOidc registers a new resource with the given unique name, arguments, and options. +func NewAzureDynamicServicePrincipalOidc(ctx *pulumi.Context, + name string, args *AzureDynamicServicePrincipalOidcArgs, opts ...pulumi.ResourceOption) (*AzureDynamicServicePrincipalOidc, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ClientId == nil { + return nil, errors.New("invalid value for required argument 'ClientId'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.TenantId == nil { + return nil, errors.New("invalid value for required argument 'TenantId'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AzureDynamicServicePrincipalOidc + err := ctx.RegisterResource("doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAzureDynamicServicePrincipalOidc gets an existing AzureDynamicServicePrincipalOidc resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAzureDynamicServicePrincipalOidc(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AzureDynamicServicePrincipalOidcState, opts ...pulumi.ResourceOption) (*AzureDynamicServicePrincipalOidc, error) { + var resource AzureDynamicServicePrincipalOidc + err := ctx.ReadResource("doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AzureDynamicServicePrincipalOidc resources. +type azureDynamicServicePrincipalOidcState struct { + // The application (client) ID of the managing service principal + ClientId *string `pulumi:"clientId"` + // The audience to configure on the federated identity credential + FederationAudience *string `pulumi:"federationAudience"` + // The issuer of the OIDC tokens Doppler issues for this integration + FederationIssuer *string `pulumi:"federationIssuer"` + // The subject of the OIDC tokens Doppler issues for this integration + FederationSubject *string `pulumi:"federationSubject"` + // The name of the integration + Name *string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId *string `pulumi:"tenantId"` +} + +type AzureDynamicServicePrincipalOidcState struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringPtrInput + // The audience to configure on the federated identity credential + FederationAudience pulumi.StringPtrInput + // The issuer of the OIDC tokens Doppler issues for this integration + FederationIssuer pulumi.StringPtrInput + // The subject of the OIDC tokens Doppler issues for this integration + FederationSubject pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput + // The Azure directory (tenant) ID + TenantId pulumi.StringPtrInput +} + +func (AzureDynamicServicePrincipalOidcState) ElementType() reflect.Type { + return reflect.TypeOf((*azureDynamicServicePrincipalOidcState)(nil)).Elem() +} + +type azureDynamicServicePrincipalOidcArgs struct { + // The application (client) ID of the managing service principal + ClientId string `pulumi:"clientId"` + // The name of the integration + Name string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId string `pulumi:"tenantId"` +} + +// The set of arguments for constructing a AzureDynamicServicePrincipalOidc resource. +type AzureDynamicServicePrincipalOidcArgs struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringInput + // The name of the integration + Name pulumi.StringInput + // The Azure directory (tenant) ID + TenantId pulumi.StringInput +} + +func (AzureDynamicServicePrincipalOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*azureDynamicServicePrincipalOidcArgs)(nil)).Elem() +} + +type AzureDynamicServicePrincipalOidcInput interface { + pulumi.Input + + ToAzureDynamicServicePrincipalOidcOutput() AzureDynamicServicePrincipalOidcOutput + ToAzureDynamicServicePrincipalOidcOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcOutput +} + +func (*AzureDynamicServicePrincipalOidc) ElementType() reflect.Type { + return reflect.TypeOf((**AzureDynamicServicePrincipalOidc)(nil)).Elem() +} + +func (i *AzureDynamicServicePrincipalOidc) ToAzureDynamicServicePrincipalOidcOutput() AzureDynamicServicePrincipalOidcOutput { + return i.ToAzureDynamicServicePrincipalOidcOutputWithContext(context.Background()) +} + +func (i *AzureDynamicServicePrincipalOidc) ToAzureDynamicServicePrincipalOidcOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureDynamicServicePrincipalOidcOutput) +} + +// AzureDynamicServicePrincipalOidcArrayInput is an input type that accepts AzureDynamicServicePrincipalOidcArray and AzureDynamicServicePrincipalOidcArrayOutput values. +// You can construct a concrete instance of `AzureDynamicServicePrincipalOidcArrayInput` via: +// +// AzureDynamicServicePrincipalOidcArray{ AzureDynamicServicePrincipalOidcArgs{...} } +type AzureDynamicServicePrincipalOidcArrayInput interface { + pulumi.Input + + ToAzureDynamicServicePrincipalOidcArrayOutput() AzureDynamicServicePrincipalOidcArrayOutput + ToAzureDynamicServicePrincipalOidcArrayOutputWithContext(context.Context) AzureDynamicServicePrincipalOidcArrayOutput +} + +type AzureDynamicServicePrincipalOidcArray []AzureDynamicServicePrincipalOidcInput + +func (AzureDynamicServicePrincipalOidcArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureDynamicServicePrincipalOidc)(nil)).Elem() +} + +func (i AzureDynamicServicePrincipalOidcArray) ToAzureDynamicServicePrincipalOidcArrayOutput() AzureDynamicServicePrincipalOidcArrayOutput { + return i.ToAzureDynamicServicePrincipalOidcArrayOutputWithContext(context.Background()) +} + +func (i AzureDynamicServicePrincipalOidcArray) ToAzureDynamicServicePrincipalOidcArrayOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureDynamicServicePrincipalOidcArrayOutput) +} + +// AzureDynamicServicePrincipalOidcMapInput is an input type that accepts AzureDynamicServicePrincipalOidcMap and AzureDynamicServicePrincipalOidcMapOutput values. +// You can construct a concrete instance of `AzureDynamicServicePrincipalOidcMapInput` via: +// +// AzureDynamicServicePrincipalOidcMap{ "key": AzureDynamicServicePrincipalOidcArgs{...} } +type AzureDynamicServicePrincipalOidcMapInput interface { + pulumi.Input + + ToAzureDynamicServicePrincipalOidcMapOutput() AzureDynamicServicePrincipalOidcMapOutput + ToAzureDynamicServicePrincipalOidcMapOutputWithContext(context.Context) AzureDynamicServicePrincipalOidcMapOutput +} + +type AzureDynamicServicePrincipalOidcMap map[string]AzureDynamicServicePrincipalOidcInput + +func (AzureDynamicServicePrincipalOidcMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureDynamicServicePrincipalOidc)(nil)).Elem() +} + +func (i AzureDynamicServicePrincipalOidcMap) ToAzureDynamicServicePrincipalOidcMapOutput() AzureDynamicServicePrincipalOidcMapOutput { + return i.ToAzureDynamicServicePrincipalOidcMapOutputWithContext(context.Background()) +} + +func (i AzureDynamicServicePrincipalOidcMap) ToAzureDynamicServicePrincipalOidcMapOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureDynamicServicePrincipalOidcMapOutput) +} + +type AzureDynamicServicePrincipalOidcOutput struct{ *pulumi.OutputState } + +func (AzureDynamicServicePrincipalOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AzureDynamicServicePrincipalOidc)(nil)).Elem() +} + +func (o AzureDynamicServicePrincipalOidcOutput) ToAzureDynamicServicePrincipalOidcOutput() AzureDynamicServicePrincipalOidcOutput { + return o +} + +func (o AzureDynamicServicePrincipalOidcOutput) ToAzureDynamicServicePrincipalOidcOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcOutput { + return o +} + +// The application (client) ID of the managing service principal +func (o AzureDynamicServicePrincipalOidcOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipalOidc) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput) +} + +// The audience to configure on the federated identity credential +func (o AzureDynamicServicePrincipalOidcOutput) FederationAudience() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipalOidc) pulumi.StringOutput { return v.FederationAudience }).(pulumi.StringOutput) +} + +// The issuer of the OIDC tokens Doppler issues for this integration +func (o AzureDynamicServicePrincipalOidcOutput) FederationIssuer() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipalOidc) pulumi.StringOutput { return v.FederationIssuer }).(pulumi.StringOutput) +} + +// The subject of the OIDC tokens Doppler issues for this integration +func (o AzureDynamicServicePrincipalOidcOutput) FederationSubject() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipalOidc) pulumi.StringOutput { return v.FederationSubject }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AzureDynamicServicePrincipalOidcOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipalOidc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The Azure directory (tenant) ID +func (o AzureDynamicServicePrincipalOidcOutput) TenantId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureDynamicServicePrincipalOidc) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) +} + +type AzureDynamicServicePrincipalOidcArrayOutput struct{ *pulumi.OutputState } + +func (AzureDynamicServicePrincipalOidcArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureDynamicServicePrincipalOidc)(nil)).Elem() +} + +func (o AzureDynamicServicePrincipalOidcArrayOutput) ToAzureDynamicServicePrincipalOidcArrayOutput() AzureDynamicServicePrincipalOidcArrayOutput { + return o +} + +func (o AzureDynamicServicePrincipalOidcArrayOutput) ToAzureDynamicServicePrincipalOidcArrayOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcArrayOutput { + return o +} + +func (o AzureDynamicServicePrincipalOidcArrayOutput) Index(i pulumi.IntInput) AzureDynamicServicePrincipalOidcOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureDynamicServicePrincipalOidc { + return vs[0].([]*AzureDynamicServicePrincipalOidc)[vs[1].(int)] + }).(AzureDynamicServicePrincipalOidcOutput) +} + +type AzureDynamicServicePrincipalOidcMapOutput struct{ *pulumi.OutputState } + +func (AzureDynamicServicePrincipalOidcMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureDynamicServicePrincipalOidc)(nil)).Elem() +} + +func (o AzureDynamicServicePrincipalOidcMapOutput) ToAzureDynamicServicePrincipalOidcMapOutput() AzureDynamicServicePrincipalOidcMapOutput { + return o +} + +func (o AzureDynamicServicePrincipalOidcMapOutput) ToAzureDynamicServicePrincipalOidcMapOutputWithContext(ctx context.Context) AzureDynamicServicePrincipalOidcMapOutput { + return o +} + +func (o AzureDynamicServicePrincipalOidcMapOutput) MapIndex(k pulumi.StringInput) AzureDynamicServicePrincipalOidcOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureDynamicServicePrincipalOidc { + return vs[0].(map[string]*AzureDynamicServicePrincipalOidc)[vs[1].(string)] + }).(AzureDynamicServicePrincipalOidcOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AzureDynamicServicePrincipalOidcInput)(nil)).Elem(), &AzureDynamicServicePrincipalOidc{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureDynamicServicePrincipalOidcArrayInput)(nil)).Elem(), AzureDynamicServicePrincipalOidcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureDynamicServicePrincipalOidcMapInput)(nil)).Elem(), AzureDynamicServicePrincipalOidcMap{}) + pulumi.RegisterOutputType(AzureDynamicServicePrincipalOidcOutput{}) + pulumi.RegisterOutputType(AzureDynamicServicePrincipalOidcArrayOutput{}) + pulumi.RegisterOutputType(AzureDynamicServicePrincipalOidcMapOutput{}) +} diff --git a/sdk/go/doppler/integration/azureRotatedServicePrincipal.go b/sdk/go/doppler/integration/azureRotatedServicePrincipal.go new file mode 100644 index 0000000..4e3ab71 --- /dev/null +++ b/sdk/go/doppler/integration/azureRotatedServicePrincipal.go @@ -0,0 +1,309 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an Azure Rotated Service Principal Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := integration.NewAzureRotatedServicePrincipal(ctx, "prod", &integration.AzureRotatedServicePrincipalArgs{ +// Name: pulumi.String("Production"), +// TenantId: pulumi.String("c77d1b3d-6350-4696-b59f-90dae3e0b41e"), +// ClientId: pulumi.String("77ed9112-b7f5-4d1d-a60f-198375e7f265"), +// ClientSecret: pulumi.String("kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AzureRotatedServicePrincipal struct { + pulumi.CustomResourceState + + // The application (client) ID of the managing service principal + ClientId pulumi.StringOutput `pulumi:"clientId"` + // The client secret of the managing service principal + ClientSecret pulumi.StringOutput `pulumi:"clientSecret"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId pulumi.StringOutput `pulumi:"tenantId"` +} + +// NewAzureRotatedServicePrincipal registers a new resource with the given unique name, arguments, and options. +func NewAzureRotatedServicePrincipal(ctx *pulumi.Context, + name string, args *AzureRotatedServicePrincipalArgs, opts ...pulumi.ResourceOption) (*AzureRotatedServicePrincipal, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ClientId == nil { + return nil, errors.New("invalid value for required argument 'ClientId'") + } + if args.ClientSecret == nil { + return nil, errors.New("invalid value for required argument 'ClientSecret'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.TenantId == nil { + return nil, errors.New("invalid value for required argument 'TenantId'") + } + if args.ClientSecret != nil { + args.ClientSecret = pulumi.ToSecret(args.ClientSecret).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "clientSecret", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource AzureRotatedServicePrincipal + err := ctx.RegisterResource("doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAzureRotatedServicePrincipal gets an existing AzureRotatedServicePrincipal resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAzureRotatedServicePrincipal(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AzureRotatedServicePrincipalState, opts ...pulumi.ResourceOption) (*AzureRotatedServicePrincipal, error) { + var resource AzureRotatedServicePrincipal + err := ctx.ReadResource("doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AzureRotatedServicePrincipal resources. +type azureRotatedServicePrincipalState struct { + // The application (client) ID of the managing service principal + ClientId *string `pulumi:"clientId"` + // The client secret of the managing service principal + ClientSecret *string `pulumi:"clientSecret"` + // The name of the integration + Name *string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId *string `pulumi:"tenantId"` +} + +type AzureRotatedServicePrincipalState struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringPtrInput + // The client secret of the managing service principal + ClientSecret pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput + // The Azure directory (tenant) ID + TenantId pulumi.StringPtrInput +} + +func (AzureRotatedServicePrincipalState) ElementType() reflect.Type { + return reflect.TypeOf((*azureRotatedServicePrincipalState)(nil)).Elem() +} + +type azureRotatedServicePrincipalArgs struct { + // The application (client) ID of the managing service principal + ClientId string `pulumi:"clientId"` + // The client secret of the managing service principal + ClientSecret string `pulumi:"clientSecret"` + // The name of the integration + Name string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId string `pulumi:"tenantId"` +} + +// The set of arguments for constructing a AzureRotatedServicePrincipal resource. +type AzureRotatedServicePrincipalArgs struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringInput + // The client secret of the managing service principal + ClientSecret pulumi.StringInput + // The name of the integration + Name pulumi.StringInput + // The Azure directory (tenant) ID + TenantId pulumi.StringInput +} + +func (AzureRotatedServicePrincipalArgs) ElementType() reflect.Type { + return reflect.TypeOf((*azureRotatedServicePrincipalArgs)(nil)).Elem() +} + +type AzureRotatedServicePrincipalInput interface { + pulumi.Input + + ToAzureRotatedServicePrincipalOutput() AzureRotatedServicePrincipalOutput + ToAzureRotatedServicePrincipalOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOutput +} + +func (*AzureRotatedServicePrincipal) ElementType() reflect.Type { + return reflect.TypeOf((**AzureRotatedServicePrincipal)(nil)).Elem() +} + +func (i *AzureRotatedServicePrincipal) ToAzureRotatedServicePrincipalOutput() AzureRotatedServicePrincipalOutput { + return i.ToAzureRotatedServicePrincipalOutputWithContext(context.Background()) +} + +func (i *AzureRotatedServicePrincipal) ToAzureRotatedServicePrincipalOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureRotatedServicePrincipalOutput) +} + +// AzureRotatedServicePrincipalArrayInput is an input type that accepts AzureRotatedServicePrincipalArray and AzureRotatedServicePrincipalArrayOutput values. +// You can construct a concrete instance of `AzureRotatedServicePrincipalArrayInput` via: +// +// AzureRotatedServicePrincipalArray{ AzureRotatedServicePrincipalArgs{...} } +type AzureRotatedServicePrincipalArrayInput interface { + pulumi.Input + + ToAzureRotatedServicePrincipalArrayOutput() AzureRotatedServicePrincipalArrayOutput + ToAzureRotatedServicePrincipalArrayOutputWithContext(context.Context) AzureRotatedServicePrincipalArrayOutput +} + +type AzureRotatedServicePrincipalArray []AzureRotatedServicePrincipalInput + +func (AzureRotatedServicePrincipalArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureRotatedServicePrincipal)(nil)).Elem() +} + +func (i AzureRotatedServicePrincipalArray) ToAzureRotatedServicePrincipalArrayOutput() AzureRotatedServicePrincipalArrayOutput { + return i.ToAzureRotatedServicePrincipalArrayOutputWithContext(context.Background()) +} + +func (i AzureRotatedServicePrincipalArray) ToAzureRotatedServicePrincipalArrayOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureRotatedServicePrincipalArrayOutput) +} + +// AzureRotatedServicePrincipalMapInput is an input type that accepts AzureRotatedServicePrincipalMap and AzureRotatedServicePrincipalMapOutput values. +// You can construct a concrete instance of `AzureRotatedServicePrincipalMapInput` via: +// +// AzureRotatedServicePrincipalMap{ "key": AzureRotatedServicePrincipalArgs{...} } +type AzureRotatedServicePrincipalMapInput interface { + pulumi.Input + + ToAzureRotatedServicePrincipalMapOutput() AzureRotatedServicePrincipalMapOutput + ToAzureRotatedServicePrincipalMapOutputWithContext(context.Context) AzureRotatedServicePrincipalMapOutput +} + +type AzureRotatedServicePrincipalMap map[string]AzureRotatedServicePrincipalInput + +func (AzureRotatedServicePrincipalMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureRotatedServicePrincipal)(nil)).Elem() +} + +func (i AzureRotatedServicePrincipalMap) ToAzureRotatedServicePrincipalMapOutput() AzureRotatedServicePrincipalMapOutput { + return i.ToAzureRotatedServicePrincipalMapOutputWithContext(context.Background()) +} + +func (i AzureRotatedServicePrincipalMap) ToAzureRotatedServicePrincipalMapOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureRotatedServicePrincipalMapOutput) +} + +type AzureRotatedServicePrincipalOutput struct{ *pulumi.OutputState } + +func (AzureRotatedServicePrincipalOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AzureRotatedServicePrincipal)(nil)).Elem() +} + +func (o AzureRotatedServicePrincipalOutput) ToAzureRotatedServicePrincipalOutput() AzureRotatedServicePrincipalOutput { + return o +} + +func (o AzureRotatedServicePrincipalOutput) ToAzureRotatedServicePrincipalOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOutput { + return o +} + +// The application (client) ID of the managing service principal +func (o AzureRotatedServicePrincipalOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipal) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput) +} + +// The client secret of the managing service principal +func (o AzureRotatedServicePrincipalOutput) ClientSecret() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipal) pulumi.StringOutput { return v.ClientSecret }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AzureRotatedServicePrincipalOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipal) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The Azure directory (tenant) ID +func (o AzureRotatedServicePrincipalOutput) TenantId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipal) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) +} + +type AzureRotatedServicePrincipalArrayOutput struct{ *pulumi.OutputState } + +func (AzureRotatedServicePrincipalArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureRotatedServicePrincipal)(nil)).Elem() +} + +func (o AzureRotatedServicePrincipalArrayOutput) ToAzureRotatedServicePrincipalArrayOutput() AzureRotatedServicePrincipalArrayOutput { + return o +} + +func (o AzureRotatedServicePrincipalArrayOutput) ToAzureRotatedServicePrincipalArrayOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalArrayOutput { + return o +} + +func (o AzureRotatedServicePrincipalArrayOutput) Index(i pulumi.IntInput) AzureRotatedServicePrincipalOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureRotatedServicePrincipal { + return vs[0].([]*AzureRotatedServicePrincipal)[vs[1].(int)] + }).(AzureRotatedServicePrincipalOutput) +} + +type AzureRotatedServicePrincipalMapOutput struct{ *pulumi.OutputState } + +func (AzureRotatedServicePrincipalMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureRotatedServicePrincipal)(nil)).Elem() +} + +func (o AzureRotatedServicePrincipalMapOutput) ToAzureRotatedServicePrincipalMapOutput() AzureRotatedServicePrincipalMapOutput { + return o +} + +func (o AzureRotatedServicePrincipalMapOutput) ToAzureRotatedServicePrincipalMapOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalMapOutput { + return o +} + +func (o AzureRotatedServicePrincipalMapOutput) MapIndex(k pulumi.StringInput) AzureRotatedServicePrincipalOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureRotatedServicePrincipal { + return vs[0].(map[string]*AzureRotatedServicePrincipal)[vs[1].(string)] + }).(AzureRotatedServicePrincipalOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AzureRotatedServicePrincipalInput)(nil)).Elem(), &AzureRotatedServicePrincipal{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureRotatedServicePrincipalArrayInput)(nil)).Elem(), AzureRotatedServicePrincipalArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureRotatedServicePrincipalMapInput)(nil)).Elem(), AzureRotatedServicePrincipalMap{}) + pulumi.RegisterOutputType(AzureRotatedServicePrincipalOutput{}) + pulumi.RegisterOutputType(AzureRotatedServicePrincipalArrayOutput{}) + pulumi.RegisterOutputType(AzureRotatedServicePrincipalMapOutput{}) +} diff --git a/sdk/go/doppler/integration/azureRotatedServicePrincipalOidc.go b/sdk/go/doppler/integration/azureRotatedServicePrincipalOidc.go new file mode 100644 index 0000000..96b5d6d --- /dev/null +++ b/sdk/go/doppler/integration/azureRotatedServicePrincipalOidc.go @@ -0,0 +1,337 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an Azure Rotated Service Principal Doppler integration using workload identity federation. +// +// The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi-azuread/sdk/go/azuread" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dopplerManager, err := azuread.Application(ctx, map[string]string{ +// "clientId": "77ed9112-b7f5-4d1d-a60f-198375e7f265", +// }, nil) +// if err != nil { +// return err +// } +// prod, err := integration.NewAzureRotatedServicePrincipalOidc(ctx, "prod", &integration.AzureRotatedServicePrincipalOidcArgs{ +// Name: pulumi.String("Production"), +// TenantId: pulumi.String("c77d1b3d-6350-4696-b59f-90dae3e0b41e"), +// ClientId: pulumi.Any(dopplerManager.ClientId), +// }) +// if err != nil { +// return err +// } +// _, err = azuread.NewApplicationFederatedIdentityCredential(ctx, "doppler", &azuread.ApplicationFederatedIdentityCredentialArgs{ +// ApplicationId: dopplerManager.Id, +// DisplayName: "doppler-production", +// Issuer: prod.FederationIssuer, +// Subject: prod.FederationSubject, +// Audiences: pulumi.StringArray{ +// prod.FederationAudience, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AzureRotatedServicePrincipalOidc struct { + pulumi.CustomResourceState + + // The application (client) ID of the managing service principal + ClientId pulumi.StringOutput `pulumi:"clientId"` + // The audience to configure on the federated identity credential + FederationAudience pulumi.StringOutput `pulumi:"federationAudience"` + // The issuer of the OIDC tokens Doppler issues for this integration + FederationIssuer pulumi.StringOutput `pulumi:"federationIssuer"` + // The subject of the OIDC tokens Doppler issues for this integration + FederationSubject pulumi.StringOutput `pulumi:"federationSubject"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId pulumi.StringOutput `pulumi:"tenantId"` +} + +// NewAzureRotatedServicePrincipalOidc registers a new resource with the given unique name, arguments, and options. +func NewAzureRotatedServicePrincipalOidc(ctx *pulumi.Context, + name string, args *AzureRotatedServicePrincipalOidcArgs, opts ...pulumi.ResourceOption) (*AzureRotatedServicePrincipalOidc, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ClientId == nil { + return nil, errors.New("invalid value for required argument 'ClientId'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.TenantId == nil { + return nil, errors.New("invalid value for required argument 'TenantId'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AzureRotatedServicePrincipalOidc + err := ctx.RegisterResource("doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAzureRotatedServicePrincipalOidc gets an existing AzureRotatedServicePrincipalOidc resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAzureRotatedServicePrincipalOidc(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AzureRotatedServicePrincipalOidcState, opts ...pulumi.ResourceOption) (*AzureRotatedServicePrincipalOidc, error) { + var resource AzureRotatedServicePrincipalOidc + err := ctx.ReadResource("doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AzureRotatedServicePrincipalOidc resources. +type azureRotatedServicePrincipalOidcState struct { + // The application (client) ID of the managing service principal + ClientId *string `pulumi:"clientId"` + // The audience to configure on the federated identity credential + FederationAudience *string `pulumi:"federationAudience"` + // The issuer of the OIDC tokens Doppler issues for this integration + FederationIssuer *string `pulumi:"federationIssuer"` + // The subject of the OIDC tokens Doppler issues for this integration + FederationSubject *string `pulumi:"federationSubject"` + // The name of the integration + Name *string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId *string `pulumi:"tenantId"` +} + +type AzureRotatedServicePrincipalOidcState struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringPtrInput + // The audience to configure on the federated identity credential + FederationAudience pulumi.StringPtrInput + // The issuer of the OIDC tokens Doppler issues for this integration + FederationIssuer pulumi.StringPtrInput + // The subject of the OIDC tokens Doppler issues for this integration + FederationSubject pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput + // The Azure directory (tenant) ID + TenantId pulumi.StringPtrInput +} + +func (AzureRotatedServicePrincipalOidcState) ElementType() reflect.Type { + return reflect.TypeOf((*azureRotatedServicePrincipalOidcState)(nil)).Elem() +} + +type azureRotatedServicePrincipalOidcArgs struct { + // The application (client) ID of the managing service principal + ClientId string `pulumi:"clientId"` + // The name of the integration + Name string `pulumi:"name"` + // The Azure directory (tenant) ID + TenantId string `pulumi:"tenantId"` +} + +// The set of arguments for constructing a AzureRotatedServicePrincipalOidc resource. +type AzureRotatedServicePrincipalOidcArgs struct { + // The application (client) ID of the managing service principal + ClientId pulumi.StringInput + // The name of the integration + Name pulumi.StringInput + // The Azure directory (tenant) ID + TenantId pulumi.StringInput +} + +func (AzureRotatedServicePrincipalOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*azureRotatedServicePrincipalOidcArgs)(nil)).Elem() +} + +type AzureRotatedServicePrincipalOidcInput interface { + pulumi.Input + + ToAzureRotatedServicePrincipalOidcOutput() AzureRotatedServicePrincipalOidcOutput + ToAzureRotatedServicePrincipalOidcOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcOutput +} + +func (*AzureRotatedServicePrincipalOidc) ElementType() reflect.Type { + return reflect.TypeOf((**AzureRotatedServicePrincipalOidc)(nil)).Elem() +} + +func (i *AzureRotatedServicePrincipalOidc) ToAzureRotatedServicePrincipalOidcOutput() AzureRotatedServicePrincipalOidcOutput { + return i.ToAzureRotatedServicePrincipalOidcOutputWithContext(context.Background()) +} + +func (i *AzureRotatedServicePrincipalOidc) ToAzureRotatedServicePrincipalOidcOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureRotatedServicePrincipalOidcOutput) +} + +// AzureRotatedServicePrincipalOidcArrayInput is an input type that accepts AzureRotatedServicePrincipalOidcArray and AzureRotatedServicePrincipalOidcArrayOutput values. +// You can construct a concrete instance of `AzureRotatedServicePrincipalOidcArrayInput` via: +// +// AzureRotatedServicePrincipalOidcArray{ AzureRotatedServicePrincipalOidcArgs{...} } +type AzureRotatedServicePrincipalOidcArrayInput interface { + pulumi.Input + + ToAzureRotatedServicePrincipalOidcArrayOutput() AzureRotatedServicePrincipalOidcArrayOutput + ToAzureRotatedServicePrincipalOidcArrayOutputWithContext(context.Context) AzureRotatedServicePrincipalOidcArrayOutput +} + +type AzureRotatedServicePrincipalOidcArray []AzureRotatedServicePrincipalOidcInput + +func (AzureRotatedServicePrincipalOidcArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureRotatedServicePrincipalOidc)(nil)).Elem() +} + +func (i AzureRotatedServicePrincipalOidcArray) ToAzureRotatedServicePrincipalOidcArrayOutput() AzureRotatedServicePrincipalOidcArrayOutput { + return i.ToAzureRotatedServicePrincipalOidcArrayOutputWithContext(context.Background()) +} + +func (i AzureRotatedServicePrincipalOidcArray) ToAzureRotatedServicePrincipalOidcArrayOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureRotatedServicePrincipalOidcArrayOutput) +} + +// AzureRotatedServicePrincipalOidcMapInput is an input type that accepts AzureRotatedServicePrincipalOidcMap and AzureRotatedServicePrincipalOidcMapOutput values. +// You can construct a concrete instance of `AzureRotatedServicePrincipalOidcMapInput` via: +// +// AzureRotatedServicePrincipalOidcMap{ "key": AzureRotatedServicePrincipalOidcArgs{...} } +type AzureRotatedServicePrincipalOidcMapInput interface { + pulumi.Input + + ToAzureRotatedServicePrincipalOidcMapOutput() AzureRotatedServicePrincipalOidcMapOutput + ToAzureRotatedServicePrincipalOidcMapOutputWithContext(context.Context) AzureRotatedServicePrincipalOidcMapOutput +} + +type AzureRotatedServicePrincipalOidcMap map[string]AzureRotatedServicePrincipalOidcInput + +func (AzureRotatedServicePrincipalOidcMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureRotatedServicePrincipalOidc)(nil)).Elem() +} + +func (i AzureRotatedServicePrincipalOidcMap) ToAzureRotatedServicePrincipalOidcMapOutput() AzureRotatedServicePrincipalOidcMapOutput { + return i.ToAzureRotatedServicePrincipalOidcMapOutputWithContext(context.Background()) +} + +func (i AzureRotatedServicePrincipalOidcMap) ToAzureRotatedServicePrincipalOidcMapOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureRotatedServicePrincipalOidcMapOutput) +} + +type AzureRotatedServicePrincipalOidcOutput struct{ *pulumi.OutputState } + +func (AzureRotatedServicePrincipalOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AzureRotatedServicePrincipalOidc)(nil)).Elem() +} + +func (o AzureRotatedServicePrincipalOidcOutput) ToAzureRotatedServicePrincipalOidcOutput() AzureRotatedServicePrincipalOidcOutput { + return o +} + +func (o AzureRotatedServicePrincipalOidcOutput) ToAzureRotatedServicePrincipalOidcOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcOutput { + return o +} + +// The application (client) ID of the managing service principal +func (o AzureRotatedServicePrincipalOidcOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipalOidc) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput) +} + +// The audience to configure on the federated identity credential +func (o AzureRotatedServicePrincipalOidcOutput) FederationAudience() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipalOidc) pulumi.StringOutput { return v.FederationAudience }).(pulumi.StringOutput) +} + +// The issuer of the OIDC tokens Doppler issues for this integration +func (o AzureRotatedServicePrincipalOidcOutput) FederationIssuer() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipalOidc) pulumi.StringOutput { return v.FederationIssuer }).(pulumi.StringOutput) +} + +// The subject of the OIDC tokens Doppler issues for this integration +func (o AzureRotatedServicePrincipalOidcOutput) FederationSubject() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipalOidc) pulumi.StringOutput { return v.FederationSubject }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AzureRotatedServicePrincipalOidcOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipalOidc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The Azure directory (tenant) ID +func (o AzureRotatedServicePrincipalOidcOutput) TenantId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureRotatedServicePrincipalOidc) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) +} + +type AzureRotatedServicePrincipalOidcArrayOutput struct{ *pulumi.OutputState } + +func (AzureRotatedServicePrincipalOidcArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureRotatedServicePrincipalOidc)(nil)).Elem() +} + +func (o AzureRotatedServicePrincipalOidcArrayOutput) ToAzureRotatedServicePrincipalOidcArrayOutput() AzureRotatedServicePrincipalOidcArrayOutput { + return o +} + +func (o AzureRotatedServicePrincipalOidcArrayOutput) ToAzureRotatedServicePrincipalOidcArrayOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcArrayOutput { + return o +} + +func (o AzureRotatedServicePrincipalOidcArrayOutput) Index(i pulumi.IntInput) AzureRotatedServicePrincipalOidcOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureRotatedServicePrincipalOidc { + return vs[0].([]*AzureRotatedServicePrincipalOidc)[vs[1].(int)] + }).(AzureRotatedServicePrincipalOidcOutput) +} + +type AzureRotatedServicePrincipalOidcMapOutput struct{ *pulumi.OutputState } + +func (AzureRotatedServicePrincipalOidcMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureRotatedServicePrincipalOidc)(nil)).Elem() +} + +func (o AzureRotatedServicePrincipalOidcMapOutput) ToAzureRotatedServicePrincipalOidcMapOutput() AzureRotatedServicePrincipalOidcMapOutput { + return o +} + +func (o AzureRotatedServicePrincipalOidcMapOutput) ToAzureRotatedServicePrincipalOidcMapOutputWithContext(ctx context.Context) AzureRotatedServicePrincipalOidcMapOutput { + return o +} + +func (o AzureRotatedServicePrincipalOidcMapOutput) MapIndex(k pulumi.StringInput) AzureRotatedServicePrincipalOidcOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureRotatedServicePrincipalOidc { + return vs[0].(map[string]*AzureRotatedServicePrincipalOidc)[vs[1].(string)] + }).(AzureRotatedServicePrincipalOidcOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AzureRotatedServicePrincipalOidcInput)(nil)).Elem(), &AzureRotatedServicePrincipalOidc{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureRotatedServicePrincipalOidcArrayInput)(nil)).Elem(), AzureRotatedServicePrincipalOidcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureRotatedServicePrincipalOidcMapInput)(nil)).Elem(), AzureRotatedServicePrincipalOidcMap{}) + pulumi.RegisterOutputType(AzureRotatedServicePrincipalOidcOutput{}) + pulumi.RegisterOutputType(AzureRotatedServicePrincipalOidcArrayOutput{}) + pulumi.RegisterOutputType(AzureRotatedServicePrincipalOidcMapOutput{}) +} diff --git a/sdk/go/doppler/integration/azureVaultServicePrincipal.go b/sdk/go/doppler/integration/azureVaultServicePrincipal.go new file mode 100644 index 0000000..ab00f6c --- /dev/null +++ b/sdk/go/doppler/integration/azureVaultServicePrincipal.go @@ -0,0 +1,309 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an Azure Vault (Service Principal) Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := integration.NewAzureVaultServicePrincipal(ctx, "prod", &integration.AzureVaultServicePrincipalArgs{ +// Name: pulumi.String("prod"), +// ClientId: pulumi.String("77ed9112-b7f5-4d1d-a60f-198375e7f265"), +// ClientSecret: pulumi.String("kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo"), +// TenantId: pulumi.String("c77d1b3d-6350-4696-b59f-90dae3e0b41e"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type AzureVaultServicePrincipal struct { + pulumi.CustomResourceState + + // The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientId pulumi.StringOutput `pulumi:"clientId"` + // The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientSecret pulumi.StringOutput `pulumi:"clientSecret"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` + // The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + TenantId pulumi.StringOutput `pulumi:"tenantId"` +} + +// NewAzureVaultServicePrincipal registers a new resource with the given unique name, arguments, and options. +func NewAzureVaultServicePrincipal(ctx *pulumi.Context, + name string, args *AzureVaultServicePrincipalArgs, opts ...pulumi.ResourceOption) (*AzureVaultServicePrincipal, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ClientId == nil { + return nil, errors.New("invalid value for required argument 'ClientId'") + } + if args.ClientSecret == nil { + return nil, errors.New("invalid value for required argument 'ClientSecret'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.TenantId == nil { + return nil, errors.New("invalid value for required argument 'TenantId'") + } + if args.ClientSecret != nil { + args.ClientSecret = pulumi.ToSecret(args.ClientSecret).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "clientSecret", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource AzureVaultServicePrincipal + err := ctx.RegisterResource("doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAzureVaultServicePrincipal gets an existing AzureVaultServicePrincipal resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAzureVaultServicePrincipal(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AzureVaultServicePrincipalState, opts ...pulumi.ResourceOption) (*AzureVaultServicePrincipal, error) { + var resource AzureVaultServicePrincipal + err := ctx.ReadResource("doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AzureVaultServicePrincipal resources. +type azureVaultServicePrincipalState struct { + // The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientId *string `pulumi:"clientId"` + // The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientSecret *string `pulumi:"clientSecret"` + // The name of the integration + Name *string `pulumi:"name"` + // The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + TenantId *string `pulumi:"tenantId"` +} + +type AzureVaultServicePrincipalState struct { + // The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientId pulumi.StringPtrInput + // The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientSecret pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput + // The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + TenantId pulumi.StringPtrInput +} + +func (AzureVaultServicePrincipalState) ElementType() reflect.Type { + return reflect.TypeOf((*azureVaultServicePrincipalState)(nil)).Elem() +} + +type azureVaultServicePrincipalArgs struct { + // The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientId string `pulumi:"clientId"` + // The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientSecret string `pulumi:"clientSecret"` + // The name of the integration + Name string `pulumi:"name"` + // The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + TenantId string `pulumi:"tenantId"` +} + +// The set of arguments for constructing a AzureVaultServicePrincipal resource. +type AzureVaultServicePrincipalArgs struct { + // The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientId pulumi.StringInput + // The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + ClientSecret pulumi.StringInput + // The name of the integration + Name pulumi.StringInput + // The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + TenantId pulumi.StringInput +} + +func (AzureVaultServicePrincipalArgs) ElementType() reflect.Type { + return reflect.TypeOf((*azureVaultServicePrincipalArgs)(nil)).Elem() +} + +type AzureVaultServicePrincipalInput interface { + pulumi.Input + + ToAzureVaultServicePrincipalOutput() AzureVaultServicePrincipalOutput + ToAzureVaultServicePrincipalOutputWithContext(ctx context.Context) AzureVaultServicePrincipalOutput +} + +func (*AzureVaultServicePrincipal) ElementType() reflect.Type { + return reflect.TypeOf((**AzureVaultServicePrincipal)(nil)).Elem() +} + +func (i *AzureVaultServicePrincipal) ToAzureVaultServicePrincipalOutput() AzureVaultServicePrincipalOutput { + return i.ToAzureVaultServicePrincipalOutputWithContext(context.Background()) +} + +func (i *AzureVaultServicePrincipal) ToAzureVaultServicePrincipalOutputWithContext(ctx context.Context) AzureVaultServicePrincipalOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureVaultServicePrincipalOutput) +} + +// AzureVaultServicePrincipalArrayInput is an input type that accepts AzureVaultServicePrincipalArray and AzureVaultServicePrincipalArrayOutput values. +// You can construct a concrete instance of `AzureVaultServicePrincipalArrayInput` via: +// +// AzureVaultServicePrincipalArray{ AzureVaultServicePrincipalArgs{...} } +type AzureVaultServicePrincipalArrayInput interface { + pulumi.Input + + ToAzureVaultServicePrincipalArrayOutput() AzureVaultServicePrincipalArrayOutput + ToAzureVaultServicePrincipalArrayOutputWithContext(context.Context) AzureVaultServicePrincipalArrayOutput +} + +type AzureVaultServicePrincipalArray []AzureVaultServicePrincipalInput + +func (AzureVaultServicePrincipalArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureVaultServicePrincipal)(nil)).Elem() +} + +func (i AzureVaultServicePrincipalArray) ToAzureVaultServicePrincipalArrayOutput() AzureVaultServicePrincipalArrayOutput { + return i.ToAzureVaultServicePrincipalArrayOutputWithContext(context.Background()) +} + +func (i AzureVaultServicePrincipalArray) ToAzureVaultServicePrincipalArrayOutputWithContext(ctx context.Context) AzureVaultServicePrincipalArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureVaultServicePrincipalArrayOutput) +} + +// AzureVaultServicePrincipalMapInput is an input type that accepts AzureVaultServicePrincipalMap and AzureVaultServicePrincipalMapOutput values. +// You can construct a concrete instance of `AzureVaultServicePrincipalMapInput` via: +// +// AzureVaultServicePrincipalMap{ "key": AzureVaultServicePrincipalArgs{...} } +type AzureVaultServicePrincipalMapInput interface { + pulumi.Input + + ToAzureVaultServicePrincipalMapOutput() AzureVaultServicePrincipalMapOutput + ToAzureVaultServicePrincipalMapOutputWithContext(context.Context) AzureVaultServicePrincipalMapOutput +} + +type AzureVaultServicePrincipalMap map[string]AzureVaultServicePrincipalInput + +func (AzureVaultServicePrincipalMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureVaultServicePrincipal)(nil)).Elem() +} + +func (i AzureVaultServicePrincipalMap) ToAzureVaultServicePrincipalMapOutput() AzureVaultServicePrincipalMapOutput { + return i.ToAzureVaultServicePrincipalMapOutputWithContext(context.Background()) +} + +func (i AzureVaultServicePrincipalMap) ToAzureVaultServicePrincipalMapOutputWithContext(ctx context.Context) AzureVaultServicePrincipalMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureVaultServicePrincipalMapOutput) +} + +type AzureVaultServicePrincipalOutput struct{ *pulumi.OutputState } + +func (AzureVaultServicePrincipalOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AzureVaultServicePrincipal)(nil)).Elem() +} + +func (o AzureVaultServicePrincipalOutput) ToAzureVaultServicePrincipalOutput() AzureVaultServicePrincipalOutput { + return o +} + +func (o AzureVaultServicePrincipalOutput) ToAzureVaultServicePrincipalOutputWithContext(ctx context.Context) AzureVaultServicePrincipalOutput { + return o +} + +// The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. +func (o AzureVaultServicePrincipalOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVaultServicePrincipal) pulumi.StringOutput { return v.ClientId }).(pulumi.StringOutput) +} + +// The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. +func (o AzureVaultServicePrincipalOutput) ClientSecret() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVaultServicePrincipal) pulumi.StringOutput { return v.ClientSecret }).(pulumi.StringOutput) +} + +// The name of the integration +func (o AzureVaultServicePrincipalOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVaultServicePrincipal) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. +func (o AzureVaultServicePrincipalOutput) TenantId() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVaultServicePrincipal) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput) +} + +type AzureVaultServicePrincipalArrayOutput struct{ *pulumi.OutputState } + +func (AzureVaultServicePrincipalArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureVaultServicePrincipal)(nil)).Elem() +} + +func (o AzureVaultServicePrincipalArrayOutput) ToAzureVaultServicePrincipalArrayOutput() AzureVaultServicePrincipalArrayOutput { + return o +} + +func (o AzureVaultServicePrincipalArrayOutput) ToAzureVaultServicePrincipalArrayOutputWithContext(ctx context.Context) AzureVaultServicePrincipalArrayOutput { + return o +} + +func (o AzureVaultServicePrincipalArrayOutput) Index(i pulumi.IntInput) AzureVaultServicePrincipalOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureVaultServicePrincipal { + return vs[0].([]*AzureVaultServicePrincipal)[vs[1].(int)] + }).(AzureVaultServicePrincipalOutput) +} + +type AzureVaultServicePrincipalMapOutput struct{ *pulumi.OutputState } + +func (AzureVaultServicePrincipalMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureVaultServicePrincipal)(nil)).Elem() +} + +func (o AzureVaultServicePrincipalMapOutput) ToAzureVaultServicePrincipalMapOutput() AzureVaultServicePrincipalMapOutput { + return o +} + +func (o AzureVaultServicePrincipalMapOutput) ToAzureVaultServicePrincipalMapOutputWithContext(ctx context.Context) AzureVaultServicePrincipalMapOutput { + return o +} + +func (o AzureVaultServicePrincipalMapOutput) MapIndex(k pulumi.StringInput) AzureVaultServicePrincipalOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureVaultServicePrincipal { + return vs[0].(map[string]*AzureVaultServicePrincipal)[vs[1].(string)] + }).(AzureVaultServicePrincipalOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AzureVaultServicePrincipalInput)(nil)).Elem(), &AzureVaultServicePrincipal{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureVaultServicePrincipalArrayInput)(nil)).Elem(), AzureVaultServicePrincipalArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureVaultServicePrincipalMapInput)(nil)).Elem(), AzureVaultServicePrincipalMap{}) + pulumi.RegisterOutputType(AzureVaultServicePrincipalOutput{}) + pulumi.RegisterOutputType(AzureVaultServicePrincipalArrayOutput{}) + pulumi.RegisterOutputType(AzureVaultServicePrincipalMapOutput{}) +} diff --git a/sdk/go/doppler/integration/circleci.go b/sdk/go/doppler/integration/circleci.go index 33f4ce3..03ce342 100644 --- a/sdk/go/doppler/integration/circleci.go +++ b/sdk/go/doppler/integration/circleci.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package integration @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a CircleCI Doppler integration. @@ -21,9 +21,9 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) // @@ -36,7 +36,7 @@ import ( // if err != nil { // return err // } -// _, err = secretsSync.NewCircleci(ctx, "backend_prod", &secretsSync.CircleciArgs{ +// _, err = secretssync.NewCircleci(ctx, "backend_prod", &secretssync.CircleciArgs{ // Integration: prod.ID(), // Project: pulumi.String("backend"), // Config: pulumi.String("prd"), diff --git a/sdk/go/doppler/integration/cloudflareTokens.go b/sdk/go/doppler/integration/cloudflareTokens.go new file mode 100644 index 0000000..d1f3886 --- /dev/null +++ b/sdk/go/doppler/integration/cloudflareTokens.go @@ -0,0 +1,302 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Cloudflare Tokens Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// key1 := "" +// if param := cfg.Get("key1"); param != "" { +// key1 = param +// } +// key2 := "" +// if param := cfg.Get("key2"); param != "" { +// key2 = param +// } +// iCf, err := integration.NewCloudflareTokens(ctx, "i_cf", &integration.CloudflareTokensArgs{ +// Name: pulumi.String("TF Cloudflare"), +// ApiToken: pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewCloudflareTokens(ctx, "rs_cf", &rotatedsecret.CloudflareTokensArgs{ +// Credentials: rotatedsecret.CloudflareTokensCredentialArray{ +// &rotatedsecret.CloudflareTokensCredentialArgs{ +// Value: pulumi.String(key1), +// }, +// &rotatedsecret.CloudflareTokensCredentialArgs{ +// Value: pulumi.String(key2), +// }, +// }, +// Integration: iCf.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("CLOUDFLARE"), +// RotationPeriodSec: pulumi.Int(2592000), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type CloudflareTokens struct { + pulumi.CustomResourceState + + // The API Token + ApiToken pulumi.StringOutput `pulumi:"apiToken"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewCloudflareTokens registers a new resource with the given unique name, arguments, and options. +func NewCloudflareTokens(ctx *pulumi.Context, + name string, args *CloudflareTokensArgs, opts ...pulumi.ResourceOption) (*CloudflareTokens, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ApiToken == nil { + return nil, errors.New("invalid value for required argument 'ApiToken'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.ApiToken != nil { + args.ApiToken = pulumi.ToSecret(args.ApiToken).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "apiToken", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource CloudflareTokens + err := ctx.RegisterResource("doppler:integration/cloudflareTokens:CloudflareTokens", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetCloudflareTokens gets an existing CloudflareTokens resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetCloudflareTokens(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *CloudflareTokensState, opts ...pulumi.ResourceOption) (*CloudflareTokens, error) { + var resource CloudflareTokens + err := ctx.ReadResource("doppler:integration/cloudflareTokens:CloudflareTokens", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering CloudflareTokens resources. +type cloudflareTokensState struct { + // The API Token + ApiToken *string `pulumi:"apiToken"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type CloudflareTokensState struct { + // The API Token + ApiToken pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (CloudflareTokensState) ElementType() reflect.Type { + return reflect.TypeOf((*cloudflareTokensState)(nil)).Elem() +} + +type cloudflareTokensArgs struct { + // The API Token + ApiToken string `pulumi:"apiToken"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a CloudflareTokens resource. +type CloudflareTokensArgs struct { + // The API Token + ApiToken pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (CloudflareTokensArgs) ElementType() reflect.Type { + return reflect.TypeOf((*cloudflareTokensArgs)(nil)).Elem() +} + +type CloudflareTokensInput interface { + pulumi.Input + + ToCloudflareTokensOutput() CloudflareTokensOutput + ToCloudflareTokensOutputWithContext(ctx context.Context) CloudflareTokensOutput +} + +func (*CloudflareTokens) ElementType() reflect.Type { + return reflect.TypeOf((**CloudflareTokens)(nil)).Elem() +} + +func (i *CloudflareTokens) ToCloudflareTokensOutput() CloudflareTokensOutput { + return i.ToCloudflareTokensOutputWithContext(context.Background()) +} + +func (i *CloudflareTokens) ToCloudflareTokensOutputWithContext(ctx context.Context) CloudflareTokensOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensOutput) +} + +// CloudflareTokensArrayInput is an input type that accepts CloudflareTokensArray and CloudflareTokensArrayOutput values. +// You can construct a concrete instance of `CloudflareTokensArrayInput` via: +// +// CloudflareTokensArray{ CloudflareTokensArgs{...} } +type CloudflareTokensArrayInput interface { + pulumi.Input + + ToCloudflareTokensArrayOutput() CloudflareTokensArrayOutput + ToCloudflareTokensArrayOutputWithContext(context.Context) CloudflareTokensArrayOutput +} + +type CloudflareTokensArray []CloudflareTokensInput + +func (CloudflareTokensArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*CloudflareTokens)(nil)).Elem() +} + +func (i CloudflareTokensArray) ToCloudflareTokensArrayOutput() CloudflareTokensArrayOutput { + return i.ToCloudflareTokensArrayOutputWithContext(context.Background()) +} + +func (i CloudflareTokensArray) ToCloudflareTokensArrayOutputWithContext(ctx context.Context) CloudflareTokensArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensArrayOutput) +} + +// CloudflareTokensMapInput is an input type that accepts CloudflareTokensMap and CloudflareTokensMapOutput values. +// You can construct a concrete instance of `CloudflareTokensMapInput` via: +// +// CloudflareTokensMap{ "key": CloudflareTokensArgs{...} } +type CloudflareTokensMapInput interface { + pulumi.Input + + ToCloudflareTokensMapOutput() CloudflareTokensMapOutput + ToCloudflareTokensMapOutputWithContext(context.Context) CloudflareTokensMapOutput +} + +type CloudflareTokensMap map[string]CloudflareTokensInput + +func (CloudflareTokensMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*CloudflareTokens)(nil)).Elem() +} + +func (i CloudflareTokensMap) ToCloudflareTokensMapOutput() CloudflareTokensMapOutput { + return i.ToCloudflareTokensMapOutputWithContext(context.Background()) +} + +func (i CloudflareTokensMap) ToCloudflareTokensMapOutputWithContext(ctx context.Context) CloudflareTokensMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensMapOutput) +} + +type CloudflareTokensOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensOutput) ElementType() reflect.Type { + return reflect.TypeOf((**CloudflareTokens)(nil)).Elem() +} + +func (o CloudflareTokensOutput) ToCloudflareTokensOutput() CloudflareTokensOutput { + return o +} + +func (o CloudflareTokensOutput) ToCloudflareTokensOutputWithContext(ctx context.Context) CloudflareTokensOutput { + return o +} + +// The API Token +func (o CloudflareTokensOutput) ApiToken() pulumi.StringOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.StringOutput { return v.ApiToken }).(pulumi.StringOutput) +} + +// The name of the integration +func (o CloudflareTokensOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type CloudflareTokensArrayOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*CloudflareTokens)(nil)).Elem() +} + +func (o CloudflareTokensArrayOutput) ToCloudflareTokensArrayOutput() CloudflareTokensArrayOutput { + return o +} + +func (o CloudflareTokensArrayOutput) ToCloudflareTokensArrayOutputWithContext(ctx context.Context) CloudflareTokensArrayOutput { + return o +} + +func (o CloudflareTokensArrayOutput) Index(i pulumi.IntInput) CloudflareTokensOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CloudflareTokens { + return vs[0].([]*CloudflareTokens)[vs[1].(int)] + }).(CloudflareTokensOutput) +} + +type CloudflareTokensMapOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*CloudflareTokens)(nil)).Elem() +} + +func (o CloudflareTokensMapOutput) ToCloudflareTokensMapOutput() CloudflareTokensMapOutput { + return o +} + +func (o CloudflareTokensMapOutput) ToCloudflareTokensMapOutputWithContext(ctx context.Context) CloudflareTokensMapOutput { + return o +} + +func (o CloudflareTokensMapOutput) MapIndex(k pulumi.StringInput) CloudflareTokensOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CloudflareTokens { + return vs[0].(map[string]*CloudflareTokens)[vs[1].(string)] + }).(CloudflareTokensOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensInput)(nil)).Elem(), &CloudflareTokens{}) + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensArrayInput)(nil)).Elem(), CloudflareTokensArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensMapInput)(nil)).Elem(), CloudflareTokensMap{}) + pulumi.RegisterOutputType(CloudflareTokensOutput{}) + pulumi.RegisterOutputType(CloudflareTokensArrayOutput{}) + pulumi.RegisterOutputType(CloudflareTokensMapOutput{}) +} diff --git a/sdk/go/doppler/integration/externalId.go b/sdk/go/doppler/integration/externalId.go new file mode 100644 index 0000000..d76a10f --- /dev/null +++ b/sdk/go/doppler/integration/externalId.go @@ -0,0 +1,218 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type ExternalId struct { + pulumi.CustomResourceState + + // The integration type for the external id + IntegrationType pulumi.StringOutput `pulumi:"integrationType"` +} + +// NewExternalId registers a new resource with the given unique name, arguments, and options. +func NewExternalId(ctx *pulumi.Context, + name string, args *ExternalIdArgs, opts ...pulumi.ResourceOption) (*ExternalId, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.IntegrationType == nil { + return nil, errors.New("invalid value for required argument 'IntegrationType'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource ExternalId + err := ctx.RegisterResource("doppler:integration/externalId:ExternalId", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetExternalId gets an existing ExternalId resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetExternalId(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ExternalIdState, opts ...pulumi.ResourceOption) (*ExternalId, error) { + var resource ExternalId + err := ctx.ReadResource("doppler:integration/externalId:ExternalId", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ExternalId resources. +type externalIdState struct { + // The integration type for the external id + IntegrationType *string `pulumi:"integrationType"` +} + +type ExternalIdState struct { + // The integration type for the external id + IntegrationType pulumi.StringPtrInput +} + +func (ExternalIdState) ElementType() reflect.Type { + return reflect.TypeOf((*externalIdState)(nil)).Elem() +} + +type externalIdArgs struct { + // The integration type for the external id + IntegrationType string `pulumi:"integrationType"` +} + +// The set of arguments for constructing a ExternalId resource. +type ExternalIdArgs struct { + // The integration type for the external id + IntegrationType pulumi.StringInput +} + +func (ExternalIdArgs) ElementType() reflect.Type { + return reflect.TypeOf((*externalIdArgs)(nil)).Elem() +} + +type ExternalIdInput interface { + pulumi.Input + + ToExternalIdOutput() ExternalIdOutput + ToExternalIdOutputWithContext(ctx context.Context) ExternalIdOutput +} + +func (*ExternalId) ElementType() reflect.Type { + return reflect.TypeOf((**ExternalId)(nil)).Elem() +} + +func (i *ExternalId) ToExternalIdOutput() ExternalIdOutput { + return i.ToExternalIdOutputWithContext(context.Background()) +} + +func (i *ExternalId) ToExternalIdOutputWithContext(ctx context.Context) ExternalIdOutput { + return pulumi.ToOutputWithContext(ctx, i).(ExternalIdOutput) +} + +// ExternalIdArrayInput is an input type that accepts ExternalIdArray and ExternalIdArrayOutput values. +// You can construct a concrete instance of `ExternalIdArrayInput` via: +// +// ExternalIdArray{ ExternalIdArgs{...} } +type ExternalIdArrayInput interface { + pulumi.Input + + ToExternalIdArrayOutput() ExternalIdArrayOutput + ToExternalIdArrayOutputWithContext(context.Context) ExternalIdArrayOutput +} + +type ExternalIdArray []ExternalIdInput + +func (ExternalIdArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ExternalId)(nil)).Elem() +} + +func (i ExternalIdArray) ToExternalIdArrayOutput() ExternalIdArrayOutput { + return i.ToExternalIdArrayOutputWithContext(context.Background()) +} + +func (i ExternalIdArray) ToExternalIdArrayOutputWithContext(ctx context.Context) ExternalIdArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ExternalIdArrayOutput) +} + +// ExternalIdMapInput is an input type that accepts ExternalIdMap and ExternalIdMapOutput values. +// You can construct a concrete instance of `ExternalIdMapInput` via: +// +// ExternalIdMap{ "key": ExternalIdArgs{...} } +type ExternalIdMapInput interface { + pulumi.Input + + ToExternalIdMapOutput() ExternalIdMapOutput + ToExternalIdMapOutputWithContext(context.Context) ExternalIdMapOutput +} + +type ExternalIdMap map[string]ExternalIdInput + +func (ExternalIdMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ExternalId)(nil)).Elem() +} + +func (i ExternalIdMap) ToExternalIdMapOutput() ExternalIdMapOutput { + return i.ToExternalIdMapOutputWithContext(context.Background()) +} + +func (i ExternalIdMap) ToExternalIdMapOutputWithContext(ctx context.Context) ExternalIdMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ExternalIdMapOutput) +} + +type ExternalIdOutput struct{ *pulumi.OutputState } + +func (ExternalIdOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ExternalId)(nil)).Elem() +} + +func (o ExternalIdOutput) ToExternalIdOutput() ExternalIdOutput { + return o +} + +func (o ExternalIdOutput) ToExternalIdOutputWithContext(ctx context.Context) ExternalIdOutput { + return o +} + +// The integration type for the external id +func (o ExternalIdOutput) IntegrationType() pulumi.StringOutput { + return o.ApplyT(func(v *ExternalId) pulumi.StringOutput { return v.IntegrationType }).(pulumi.StringOutput) +} + +type ExternalIdArrayOutput struct{ *pulumi.OutputState } + +func (ExternalIdArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ExternalId)(nil)).Elem() +} + +func (o ExternalIdArrayOutput) ToExternalIdArrayOutput() ExternalIdArrayOutput { + return o +} + +func (o ExternalIdArrayOutput) ToExternalIdArrayOutputWithContext(ctx context.Context) ExternalIdArrayOutput { + return o +} + +func (o ExternalIdArrayOutput) Index(i pulumi.IntInput) ExternalIdOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ExternalId { + return vs[0].([]*ExternalId)[vs[1].(int)] + }).(ExternalIdOutput) +} + +type ExternalIdMapOutput struct{ *pulumi.OutputState } + +func (ExternalIdMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ExternalId)(nil)).Elem() +} + +func (o ExternalIdMapOutput) ToExternalIdMapOutput() ExternalIdMapOutput { + return o +} + +func (o ExternalIdMapOutput) ToExternalIdMapOutputWithContext(ctx context.Context) ExternalIdMapOutput { + return o +} + +func (o ExternalIdMapOutput) MapIndex(k pulumi.StringInput) ExternalIdOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ExternalId { + return vs[0].(map[string]*ExternalId)[vs[1].(string)] + }).(ExternalIdOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ExternalIdInput)(nil)).Elem(), &ExternalId{}) + pulumi.RegisterInputType(reflect.TypeOf((*ExternalIdArrayInput)(nil)).Elem(), ExternalIdArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ExternalIdMapInput)(nil)).Elem(), ExternalIdMap{}) + pulumi.RegisterOutputType(ExternalIdOutput{}) + pulumi.RegisterOutputType(ExternalIdArrayOutput{}) + pulumi.RegisterOutputType(ExternalIdMapOutput{}) +} diff --git a/sdk/go/doppler/integration/flyio.go b/sdk/go/doppler/integration/flyio.go index 0109e4b..6f03217 100644 --- a/sdk/go/doppler/integration/flyio.go +++ b/sdk/go/doppler/integration/flyio.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package integration @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Fly.io Doppler integration. @@ -21,9 +21,9 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) // @@ -36,7 +36,7 @@ import ( // if err != nil { // return err // } -// _, err = secretsSync.NewFlyio(ctx, "backend_prod", &secretsSync.FlyioArgs{ +// _, err = secretssync.NewFlyio(ctx, "backend_prod", &secretssync.FlyioArgs{ // Integration: prod.ID(), // Project: pulumi.String("backend"), // Config: pulumi.String("prd"), diff --git a/sdk/go/doppler/integration/gcpCloudsqlMysql.go b/sdk/go/doppler/integration/gcpCloudsqlMysql.go new file mode 100644 index 0000000..fe49e47 --- /dev/null +++ b/sdk/go/doppler/integration/gcpCloudsqlMysql.go @@ -0,0 +1,321 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP CloudSQL MySQL Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// gcpKey := `{ +// "type": "service_account", +// "project_id": "xxxxxxxxxxxxxxxxx", +// "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", +// "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", +// "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", +// "client_id": "xxxxxxxxxxxxxxxxxxxxx" +// } +// +// ` +// +// if param := cfg.Get("gcpKey"); param != "" { +// gcpKey = param +// } +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iGcpMysql, err := integration.NewGcpCloudsqlMysql(ctx, "i_gcp_mysql", &integration.GcpCloudsqlMysqlArgs{ +// Name: pulumi.String("TF GCP MySQL"), +// GcpKey: pulumi.String(gcpKey), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewGcpCloudsql(ctx, "rs_gcp_mysql", &rotatedsecret.GcpCloudsqlArgs{ +// Credentials: rotatedsecret.GcpCloudsqlCredentialArray{ +// &rotatedsecret.GcpCloudsqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxxx"), +// UserHostName: pulumi.String("%"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.GcpCloudsqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxxx"), +// UserHostName: pulumi.String("%"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iGcpMysql.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB"), +// RotationPeriodSec: pulumi.Int(2592000), +// DatabaseInstance: pulumi.String("xxxxxxxxxxxx"), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpCloudsqlMysql struct { + pulumi.CustomResourceState + + // The GCP service account key + GcpKey pulumi.StringOutput `pulumi:"gcpKey"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpCloudsqlMysql registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsqlMysql(ctx *pulumi.Context, + name string, args *GcpCloudsqlMysqlArgs, opts ...pulumi.ResourceOption) (*GcpCloudsqlMysql, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpKey == nil { + return nil, errors.New("invalid value for required argument 'GcpKey'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.GcpKey != nil { + args.GcpKey = pulumi.ToSecret(args.GcpKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "gcpKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsqlMysql + err := ctx.RegisterResource("doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsqlMysql gets an existing GcpCloudsqlMysql resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsqlMysql(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlMysqlState, opts ...pulumi.ResourceOption) (*GcpCloudsqlMysql, error) { + var resource GcpCloudsqlMysql + err := ctx.ReadResource("doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsqlMysql resources. +type gcpCloudsqlMysqlState struct { + // The GCP service account key + GcpKey *string `pulumi:"gcpKey"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpCloudsqlMysqlState struct { + // The GCP service account key + GcpKey pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpCloudsqlMysqlState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlMysqlState)(nil)).Elem() +} + +type gcpCloudsqlMysqlArgs struct { + // The GCP service account key + GcpKey string `pulumi:"gcpKey"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpCloudsqlMysql resource. +type GcpCloudsqlMysqlArgs struct { + // The GCP service account key + GcpKey pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpCloudsqlMysqlArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlMysqlArgs)(nil)).Elem() +} + +type GcpCloudsqlMysqlInput interface { + pulumi.Input + + ToGcpCloudsqlMysqlOutput() GcpCloudsqlMysqlOutput + ToGcpCloudsqlMysqlOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOutput +} + +func (*GcpCloudsqlMysql) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlMysql)(nil)).Elem() +} + +func (i *GcpCloudsqlMysql) ToGcpCloudsqlMysqlOutput() GcpCloudsqlMysqlOutput { + return i.ToGcpCloudsqlMysqlOutputWithContext(context.Background()) +} + +func (i *GcpCloudsqlMysql) ToGcpCloudsqlMysqlOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMysqlOutput) +} + +// GcpCloudsqlMysqlArrayInput is an input type that accepts GcpCloudsqlMysqlArray and GcpCloudsqlMysqlArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlMysqlArrayInput` via: +// +// GcpCloudsqlMysqlArray{ GcpCloudsqlMysqlArgs{...} } +type GcpCloudsqlMysqlArrayInput interface { + pulumi.Input + + ToGcpCloudsqlMysqlArrayOutput() GcpCloudsqlMysqlArrayOutput + ToGcpCloudsqlMysqlArrayOutputWithContext(context.Context) GcpCloudsqlMysqlArrayOutput +} + +type GcpCloudsqlMysqlArray []GcpCloudsqlMysqlInput + +func (GcpCloudsqlMysqlArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlMysql)(nil)).Elem() +} + +func (i GcpCloudsqlMysqlArray) ToGcpCloudsqlMysqlArrayOutput() GcpCloudsqlMysqlArrayOutput { + return i.ToGcpCloudsqlMysqlArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlMysqlArray) ToGcpCloudsqlMysqlArrayOutputWithContext(ctx context.Context) GcpCloudsqlMysqlArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMysqlArrayOutput) +} + +// GcpCloudsqlMysqlMapInput is an input type that accepts GcpCloudsqlMysqlMap and GcpCloudsqlMysqlMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlMysqlMapInput` via: +// +// GcpCloudsqlMysqlMap{ "key": GcpCloudsqlMysqlArgs{...} } +type GcpCloudsqlMysqlMapInput interface { + pulumi.Input + + ToGcpCloudsqlMysqlMapOutput() GcpCloudsqlMysqlMapOutput + ToGcpCloudsqlMysqlMapOutputWithContext(context.Context) GcpCloudsqlMysqlMapOutput +} + +type GcpCloudsqlMysqlMap map[string]GcpCloudsqlMysqlInput + +func (GcpCloudsqlMysqlMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlMysql)(nil)).Elem() +} + +func (i GcpCloudsqlMysqlMap) ToGcpCloudsqlMysqlMapOutput() GcpCloudsqlMysqlMapOutput { + return i.ToGcpCloudsqlMysqlMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlMysqlMap) ToGcpCloudsqlMysqlMapOutputWithContext(ctx context.Context) GcpCloudsqlMysqlMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMysqlMapOutput) +} + +type GcpCloudsqlMysqlOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMysqlOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlMysql)(nil)).Elem() +} + +func (o GcpCloudsqlMysqlOutput) ToGcpCloudsqlMysqlOutput() GcpCloudsqlMysqlOutput { + return o +} + +func (o GcpCloudsqlMysqlOutput) ToGcpCloudsqlMysqlOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOutput { + return o +} + +// The GCP service account key +func (o GcpCloudsqlMysqlOutput) GcpKey() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlMysql) pulumi.StringOutput { return v.GcpKey }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpCloudsqlMysqlOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlMysql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpCloudsqlMysqlArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMysqlArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlMysql)(nil)).Elem() +} + +func (o GcpCloudsqlMysqlArrayOutput) ToGcpCloudsqlMysqlArrayOutput() GcpCloudsqlMysqlArrayOutput { + return o +} + +func (o GcpCloudsqlMysqlArrayOutput) ToGcpCloudsqlMysqlArrayOutputWithContext(ctx context.Context) GcpCloudsqlMysqlArrayOutput { + return o +} + +func (o GcpCloudsqlMysqlArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlMysqlOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsqlMysql { + return vs[0].([]*GcpCloudsqlMysql)[vs[1].(int)] + }).(GcpCloudsqlMysqlOutput) +} + +type GcpCloudsqlMysqlMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMysqlMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlMysql)(nil)).Elem() +} + +func (o GcpCloudsqlMysqlMapOutput) ToGcpCloudsqlMysqlMapOutput() GcpCloudsqlMysqlMapOutput { + return o +} + +func (o GcpCloudsqlMysqlMapOutput) ToGcpCloudsqlMysqlMapOutputWithContext(ctx context.Context) GcpCloudsqlMysqlMapOutput { + return o +} + +func (o GcpCloudsqlMysqlMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlMysqlOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsqlMysql { + return vs[0].(map[string]*GcpCloudsqlMysql)[vs[1].(string)] + }).(GcpCloudsqlMysqlOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMysqlInput)(nil)).Elem(), &GcpCloudsqlMysql{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMysqlArrayInput)(nil)).Elem(), GcpCloudsqlMysqlArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMysqlMapInput)(nil)).Elem(), GcpCloudsqlMysqlMap{}) + pulumi.RegisterOutputType(GcpCloudsqlMysqlOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlMysqlArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlMysqlMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpCloudsqlMysqlOidc.go b/sdk/go/doppler/integration/gcpCloudsqlMysqlOidc.go new file mode 100644 index 0000000..42d298d --- /dev/null +++ b/sdk/go/doppler/integration/gcpCloudsqlMysqlOidc.go @@ -0,0 +1,303 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP CloudSQL MySQL Doppler integration using workload identity federation. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi-google/sdk/go/google" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// prod, err := integration.NewGcpCloudsqlMysqlOidc(ctx, "prod", &integration.GcpCloudsqlMysqlOidcArgs{ +// Name: pulumi.String("Production"), +// GcpWorkloadIdentityProvider: pulumi.String("//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler"), +// GcpProjectId: pulumi.String("your-gcp-project-id"), +// }) +// if err != nil { +// return err +// } +// _, err = google.NewProjectIamMember(ctx, "doppler", &google.ProjectIamMemberArgs{ +// Project: "your-gcp-project-id", +// Role: "roles/cloudsql.admin", +// Member: prod.FederationPrincipal, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpCloudsqlMysqlOidc struct { + pulumi.CustomResourceState + + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringOutput `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringOutput `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringOutput `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpCloudsqlMysqlOidc registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsqlMysqlOidc(ctx *pulumi.Context, + name string, args *GcpCloudsqlMysqlOidcArgs, opts ...pulumi.ResourceOption) (*GcpCloudsqlMysqlOidc, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpProjectId == nil { + return nil, errors.New("invalid value for required argument 'GcpProjectId'") + } + if args.GcpWorkloadIdentityProvider == nil { + return nil, errors.New("invalid value for required argument 'GcpWorkloadIdentityProvider'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsqlMysqlOidc + err := ctx.RegisterResource("doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsqlMysqlOidc gets an existing GcpCloudsqlMysqlOidc resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsqlMysqlOidc(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlMysqlOidcState, opts ...pulumi.ResourceOption) (*GcpCloudsqlMysqlOidc, error) { + var resource GcpCloudsqlMysqlOidc + err := ctx.ReadResource("doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsqlMysqlOidc resources. +type gcpCloudsqlMysqlOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal *string `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId *string `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider *string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpCloudsqlMysqlOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringPtrInput + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringPtrInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpCloudsqlMysqlOidcState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlMysqlOidcState)(nil)).Elem() +} + +type gcpCloudsqlMysqlOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId string `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpCloudsqlMysqlOidc resource. +type GcpCloudsqlMysqlOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpCloudsqlMysqlOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlMysqlOidcArgs)(nil)).Elem() +} + +type GcpCloudsqlMysqlOidcInput interface { + pulumi.Input + + ToGcpCloudsqlMysqlOidcOutput() GcpCloudsqlMysqlOidcOutput + ToGcpCloudsqlMysqlOidcOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcOutput +} + +func (*GcpCloudsqlMysqlOidc) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlMysqlOidc)(nil)).Elem() +} + +func (i *GcpCloudsqlMysqlOidc) ToGcpCloudsqlMysqlOidcOutput() GcpCloudsqlMysqlOidcOutput { + return i.ToGcpCloudsqlMysqlOidcOutputWithContext(context.Background()) +} + +func (i *GcpCloudsqlMysqlOidc) ToGcpCloudsqlMysqlOidcOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMysqlOidcOutput) +} + +// GcpCloudsqlMysqlOidcArrayInput is an input type that accepts GcpCloudsqlMysqlOidcArray and GcpCloudsqlMysqlOidcArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlMysqlOidcArrayInput` via: +// +// GcpCloudsqlMysqlOidcArray{ GcpCloudsqlMysqlOidcArgs{...} } +type GcpCloudsqlMysqlOidcArrayInput interface { + pulumi.Input + + ToGcpCloudsqlMysqlOidcArrayOutput() GcpCloudsqlMysqlOidcArrayOutput + ToGcpCloudsqlMysqlOidcArrayOutputWithContext(context.Context) GcpCloudsqlMysqlOidcArrayOutput +} + +type GcpCloudsqlMysqlOidcArray []GcpCloudsqlMysqlOidcInput + +func (GcpCloudsqlMysqlOidcArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlMysqlOidc)(nil)).Elem() +} + +func (i GcpCloudsqlMysqlOidcArray) ToGcpCloudsqlMysqlOidcArrayOutput() GcpCloudsqlMysqlOidcArrayOutput { + return i.ToGcpCloudsqlMysqlOidcArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlMysqlOidcArray) ToGcpCloudsqlMysqlOidcArrayOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMysqlOidcArrayOutput) +} + +// GcpCloudsqlMysqlOidcMapInput is an input type that accepts GcpCloudsqlMysqlOidcMap and GcpCloudsqlMysqlOidcMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlMysqlOidcMapInput` via: +// +// GcpCloudsqlMysqlOidcMap{ "key": GcpCloudsqlMysqlOidcArgs{...} } +type GcpCloudsqlMysqlOidcMapInput interface { + pulumi.Input + + ToGcpCloudsqlMysqlOidcMapOutput() GcpCloudsqlMysqlOidcMapOutput + ToGcpCloudsqlMysqlOidcMapOutputWithContext(context.Context) GcpCloudsqlMysqlOidcMapOutput +} + +type GcpCloudsqlMysqlOidcMap map[string]GcpCloudsqlMysqlOidcInput + +func (GcpCloudsqlMysqlOidcMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlMysqlOidc)(nil)).Elem() +} + +func (i GcpCloudsqlMysqlOidcMap) ToGcpCloudsqlMysqlOidcMapOutput() GcpCloudsqlMysqlOidcMapOutput { + return i.ToGcpCloudsqlMysqlOidcMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlMysqlOidcMap) ToGcpCloudsqlMysqlOidcMapOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMysqlOidcMapOutput) +} + +type GcpCloudsqlMysqlOidcOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMysqlOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlMysqlOidc)(nil)).Elem() +} + +func (o GcpCloudsqlMysqlOidcOutput) ToGcpCloudsqlMysqlOidcOutput() GcpCloudsqlMysqlOidcOutput { + return o +} + +func (o GcpCloudsqlMysqlOidcOutput) ToGcpCloudsqlMysqlOidcOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcOutput { + return o +} + +// The IAM principal identifier to grant roles to in GCP for this integration +func (o GcpCloudsqlMysqlOidcOutput) FederationPrincipal() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlMysqlOidc) pulumi.StringOutput { return v.FederationPrincipal }).(pulumi.StringOutput) +} + +// The ID of the GCP project the integration operates on +func (o GcpCloudsqlMysqlOidcOutput) GcpProjectId() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlMysqlOidc) pulumi.StringOutput { return v.GcpProjectId }).(pulumi.StringOutput) +} + +// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. +func (o GcpCloudsqlMysqlOidcOutput) GcpWorkloadIdentityProvider() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlMysqlOidc) pulumi.StringOutput { return v.GcpWorkloadIdentityProvider }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpCloudsqlMysqlOidcOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlMysqlOidc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpCloudsqlMysqlOidcArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMysqlOidcArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlMysqlOidc)(nil)).Elem() +} + +func (o GcpCloudsqlMysqlOidcArrayOutput) ToGcpCloudsqlMysqlOidcArrayOutput() GcpCloudsqlMysqlOidcArrayOutput { + return o +} + +func (o GcpCloudsqlMysqlOidcArrayOutput) ToGcpCloudsqlMysqlOidcArrayOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcArrayOutput { + return o +} + +func (o GcpCloudsqlMysqlOidcArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlMysqlOidcOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsqlMysqlOidc { + return vs[0].([]*GcpCloudsqlMysqlOidc)[vs[1].(int)] + }).(GcpCloudsqlMysqlOidcOutput) +} + +type GcpCloudsqlMysqlOidcMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMysqlOidcMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlMysqlOidc)(nil)).Elem() +} + +func (o GcpCloudsqlMysqlOidcMapOutput) ToGcpCloudsqlMysqlOidcMapOutput() GcpCloudsqlMysqlOidcMapOutput { + return o +} + +func (o GcpCloudsqlMysqlOidcMapOutput) ToGcpCloudsqlMysqlOidcMapOutputWithContext(ctx context.Context) GcpCloudsqlMysqlOidcMapOutput { + return o +} + +func (o GcpCloudsqlMysqlOidcMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlMysqlOidcOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsqlMysqlOidc { + return vs[0].(map[string]*GcpCloudsqlMysqlOidc)[vs[1].(string)] + }).(GcpCloudsqlMysqlOidcOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMysqlOidcInput)(nil)).Elem(), &GcpCloudsqlMysqlOidc{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMysqlOidcArrayInput)(nil)).Elem(), GcpCloudsqlMysqlOidcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMysqlOidcMapInput)(nil)).Elem(), GcpCloudsqlMysqlOidcMap{}) + pulumi.RegisterOutputType(GcpCloudsqlMysqlOidcOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlMysqlOidcArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlMysqlOidcMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpCloudsqlPostgres.go b/sdk/go/doppler/integration/gcpCloudsqlPostgres.go new file mode 100644 index 0000000..8b70973 --- /dev/null +++ b/sdk/go/doppler/integration/gcpCloudsqlPostgres.go @@ -0,0 +1,321 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP CloudSQL Postgres Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// gcpKey := `{ +// "type": "service_account", +// "project_id": "xxxxxxxxxxxxxxxxx", +// "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", +// "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", +// "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", +// "client_id": "xxxxxxxxxxxxxxxxxxxxx" +// } +// +// ` +// +// if param := cfg.Get("gcpKey"); param != "" { +// gcpKey = param +// } +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iGcpMysql, err := integration.NewGcpCloudsqlMysql(ctx, "i_gcp_mysql", &integration.GcpCloudsqlMysqlArgs{ +// Name: pulumi.String("TF GCP MySQL"), +// GcpKey: pulumi.String(gcpKey), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewGcpCloudsql(ctx, "rs_gcp_mysql", &rotatedsecret.GcpCloudsqlArgs{ +// Credentials: rotatedsecret.GcpCloudsqlCredentialArray{ +// &rotatedsecret.GcpCloudsqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxxx"), +// UserHostName: pulumi.String("%"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.GcpCloudsqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxxx"), +// UserHostName: pulumi.String("%"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iGcpMysql.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB"), +// RotationPeriodSec: pulumi.Int(2592000), +// DatabaseInstance: pulumi.String("xxxxxxxxxxxx"), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpCloudsqlPostgres struct { + pulumi.CustomResourceState + + // The GCP service account key + GcpKey pulumi.StringOutput `pulumi:"gcpKey"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpCloudsqlPostgres registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsqlPostgres(ctx *pulumi.Context, + name string, args *GcpCloudsqlPostgresArgs, opts ...pulumi.ResourceOption) (*GcpCloudsqlPostgres, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpKey == nil { + return nil, errors.New("invalid value for required argument 'GcpKey'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.GcpKey != nil { + args.GcpKey = pulumi.ToSecret(args.GcpKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "gcpKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsqlPostgres + err := ctx.RegisterResource("doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsqlPostgres gets an existing GcpCloudsqlPostgres resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsqlPostgres(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlPostgresState, opts ...pulumi.ResourceOption) (*GcpCloudsqlPostgres, error) { + var resource GcpCloudsqlPostgres + err := ctx.ReadResource("doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsqlPostgres resources. +type gcpCloudsqlPostgresState struct { + // The GCP service account key + GcpKey *string `pulumi:"gcpKey"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpCloudsqlPostgresState struct { + // The GCP service account key + GcpKey pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpCloudsqlPostgresState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlPostgresState)(nil)).Elem() +} + +type gcpCloudsqlPostgresArgs struct { + // The GCP service account key + GcpKey string `pulumi:"gcpKey"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpCloudsqlPostgres resource. +type GcpCloudsqlPostgresArgs struct { + // The GCP service account key + GcpKey pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpCloudsqlPostgresArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlPostgresArgs)(nil)).Elem() +} + +type GcpCloudsqlPostgresInput interface { + pulumi.Input + + ToGcpCloudsqlPostgresOutput() GcpCloudsqlPostgresOutput + ToGcpCloudsqlPostgresOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOutput +} + +func (*GcpCloudsqlPostgres) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlPostgres)(nil)).Elem() +} + +func (i *GcpCloudsqlPostgres) ToGcpCloudsqlPostgresOutput() GcpCloudsqlPostgresOutput { + return i.ToGcpCloudsqlPostgresOutputWithContext(context.Background()) +} + +func (i *GcpCloudsqlPostgres) ToGcpCloudsqlPostgresOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlPostgresOutput) +} + +// GcpCloudsqlPostgresArrayInput is an input type that accepts GcpCloudsqlPostgresArray and GcpCloudsqlPostgresArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlPostgresArrayInput` via: +// +// GcpCloudsqlPostgresArray{ GcpCloudsqlPostgresArgs{...} } +type GcpCloudsqlPostgresArrayInput interface { + pulumi.Input + + ToGcpCloudsqlPostgresArrayOutput() GcpCloudsqlPostgresArrayOutput + ToGcpCloudsqlPostgresArrayOutputWithContext(context.Context) GcpCloudsqlPostgresArrayOutput +} + +type GcpCloudsqlPostgresArray []GcpCloudsqlPostgresInput + +func (GcpCloudsqlPostgresArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlPostgres)(nil)).Elem() +} + +func (i GcpCloudsqlPostgresArray) ToGcpCloudsqlPostgresArrayOutput() GcpCloudsqlPostgresArrayOutput { + return i.ToGcpCloudsqlPostgresArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlPostgresArray) ToGcpCloudsqlPostgresArrayOutputWithContext(ctx context.Context) GcpCloudsqlPostgresArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlPostgresArrayOutput) +} + +// GcpCloudsqlPostgresMapInput is an input type that accepts GcpCloudsqlPostgresMap and GcpCloudsqlPostgresMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlPostgresMapInput` via: +// +// GcpCloudsqlPostgresMap{ "key": GcpCloudsqlPostgresArgs{...} } +type GcpCloudsqlPostgresMapInput interface { + pulumi.Input + + ToGcpCloudsqlPostgresMapOutput() GcpCloudsqlPostgresMapOutput + ToGcpCloudsqlPostgresMapOutputWithContext(context.Context) GcpCloudsqlPostgresMapOutput +} + +type GcpCloudsqlPostgresMap map[string]GcpCloudsqlPostgresInput + +func (GcpCloudsqlPostgresMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlPostgres)(nil)).Elem() +} + +func (i GcpCloudsqlPostgresMap) ToGcpCloudsqlPostgresMapOutput() GcpCloudsqlPostgresMapOutput { + return i.ToGcpCloudsqlPostgresMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlPostgresMap) ToGcpCloudsqlPostgresMapOutputWithContext(ctx context.Context) GcpCloudsqlPostgresMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlPostgresMapOutput) +} + +type GcpCloudsqlPostgresOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlPostgresOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlPostgres)(nil)).Elem() +} + +func (o GcpCloudsqlPostgresOutput) ToGcpCloudsqlPostgresOutput() GcpCloudsqlPostgresOutput { + return o +} + +func (o GcpCloudsqlPostgresOutput) ToGcpCloudsqlPostgresOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOutput { + return o +} + +// The GCP service account key +func (o GcpCloudsqlPostgresOutput) GcpKey() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlPostgres) pulumi.StringOutput { return v.GcpKey }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpCloudsqlPostgresOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlPostgres) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpCloudsqlPostgresArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlPostgresArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlPostgres)(nil)).Elem() +} + +func (o GcpCloudsqlPostgresArrayOutput) ToGcpCloudsqlPostgresArrayOutput() GcpCloudsqlPostgresArrayOutput { + return o +} + +func (o GcpCloudsqlPostgresArrayOutput) ToGcpCloudsqlPostgresArrayOutputWithContext(ctx context.Context) GcpCloudsqlPostgresArrayOutput { + return o +} + +func (o GcpCloudsqlPostgresArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlPostgresOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsqlPostgres { + return vs[0].([]*GcpCloudsqlPostgres)[vs[1].(int)] + }).(GcpCloudsqlPostgresOutput) +} + +type GcpCloudsqlPostgresMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlPostgresMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlPostgres)(nil)).Elem() +} + +func (o GcpCloudsqlPostgresMapOutput) ToGcpCloudsqlPostgresMapOutput() GcpCloudsqlPostgresMapOutput { + return o +} + +func (o GcpCloudsqlPostgresMapOutput) ToGcpCloudsqlPostgresMapOutputWithContext(ctx context.Context) GcpCloudsqlPostgresMapOutput { + return o +} + +func (o GcpCloudsqlPostgresMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlPostgresOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsqlPostgres { + return vs[0].(map[string]*GcpCloudsqlPostgres)[vs[1].(string)] + }).(GcpCloudsqlPostgresOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlPostgresInput)(nil)).Elem(), &GcpCloudsqlPostgres{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlPostgresArrayInput)(nil)).Elem(), GcpCloudsqlPostgresArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlPostgresMapInput)(nil)).Elem(), GcpCloudsqlPostgresMap{}) + pulumi.RegisterOutputType(GcpCloudsqlPostgresOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlPostgresArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlPostgresMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpCloudsqlPostgresOidc.go b/sdk/go/doppler/integration/gcpCloudsqlPostgresOidc.go new file mode 100644 index 0000000..e7e73f0 --- /dev/null +++ b/sdk/go/doppler/integration/gcpCloudsqlPostgresOidc.go @@ -0,0 +1,303 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP CloudSQL Postgres Doppler integration using workload identity federation. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi-google/sdk/go/google" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// prod, err := integration.NewGcpCloudsqlPostgresOidc(ctx, "prod", &integration.GcpCloudsqlPostgresOidcArgs{ +// Name: pulumi.String("Production"), +// GcpWorkloadIdentityProvider: pulumi.String("//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler"), +// GcpProjectId: pulumi.String("your-gcp-project-id"), +// }) +// if err != nil { +// return err +// } +// _, err = google.NewProjectIamMember(ctx, "doppler", &google.ProjectIamMemberArgs{ +// Project: "your-gcp-project-id", +// Role: "roles/cloudsql.admin", +// Member: prod.FederationPrincipal, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpCloudsqlPostgresOidc struct { + pulumi.CustomResourceState + + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringOutput `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringOutput `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringOutput `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpCloudsqlPostgresOidc registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsqlPostgresOidc(ctx *pulumi.Context, + name string, args *GcpCloudsqlPostgresOidcArgs, opts ...pulumi.ResourceOption) (*GcpCloudsqlPostgresOidc, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpProjectId == nil { + return nil, errors.New("invalid value for required argument 'GcpProjectId'") + } + if args.GcpWorkloadIdentityProvider == nil { + return nil, errors.New("invalid value for required argument 'GcpWorkloadIdentityProvider'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsqlPostgresOidc + err := ctx.RegisterResource("doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsqlPostgresOidc gets an existing GcpCloudsqlPostgresOidc resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsqlPostgresOidc(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlPostgresOidcState, opts ...pulumi.ResourceOption) (*GcpCloudsqlPostgresOidc, error) { + var resource GcpCloudsqlPostgresOidc + err := ctx.ReadResource("doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsqlPostgresOidc resources. +type gcpCloudsqlPostgresOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal *string `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId *string `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider *string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpCloudsqlPostgresOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringPtrInput + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringPtrInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpCloudsqlPostgresOidcState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlPostgresOidcState)(nil)).Elem() +} + +type gcpCloudsqlPostgresOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId string `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpCloudsqlPostgresOidc resource. +type GcpCloudsqlPostgresOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpCloudsqlPostgresOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlPostgresOidcArgs)(nil)).Elem() +} + +type GcpCloudsqlPostgresOidcInput interface { + pulumi.Input + + ToGcpCloudsqlPostgresOidcOutput() GcpCloudsqlPostgresOidcOutput + ToGcpCloudsqlPostgresOidcOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcOutput +} + +func (*GcpCloudsqlPostgresOidc) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlPostgresOidc)(nil)).Elem() +} + +func (i *GcpCloudsqlPostgresOidc) ToGcpCloudsqlPostgresOidcOutput() GcpCloudsqlPostgresOidcOutput { + return i.ToGcpCloudsqlPostgresOidcOutputWithContext(context.Background()) +} + +func (i *GcpCloudsqlPostgresOidc) ToGcpCloudsqlPostgresOidcOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlPostgresOidcOutput) +} + +// GcpCloudsqlPostgresOidcArrayInput is an input type that accepts GcpCloudsqlPostgresOidcArray and GcpCloudsqlPostgresOidcArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlPostgresOidcArrayInput` via: +// +// GcpCloudsqlPostgresOidcArray{ GcpCloudsqlPostgresOidcArgs{...} } +type GcpCloudsqlPostgresOidcArrayInput interface { + pulumi.Input + + ToGcpCloudsqlPostgresOidcArrayOutput() GcpCloudsqlPostgresOidcArrayOutput + ToGcpCloudsqlPostgresOidcArrayOutputWithContext(context.Context) GcpCloudsqlPostgresOidcArrayOutput +} + +type GcpCloudsqlPostgresOidcArray []GcpCloudsqlPostgresOidcInput + +func (GcpCloudsqlPostgresOidcArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlPostgresOidc)(nil)).Elem() +} + +func (i GcpCloudsqlPostgresOidcArray) ToGcpCloudsqlPostgresOidcArrayOutput() GcpCloudsqlPostgresOidcArrayOutput { + return i.ToGcpCloudsqlPostgresOidcArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlPostgresOidcArray) ToGcpCloudsqlPostgresOidcArrayOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlPostgresOidcArrayOutput) +} + +// GcpCloudsqlPostgresOidcMapInput is an input type that accepts GcpCloudsqlPostgresOidcMap and GcpCloudsqlPostgresOidcMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlPostgresOidcMapInput` via: +// +// GcpCloudsqlPostgresOidcMap{ "key": GcpCloudsqlPostgresOidcArgs{...} } +type GcpCloudsqlPostgresOidcMapInput interface { + pulumi.Input + + ToGcpCloudsqlPostgresOidcMapOutput() GcpCloudsqlPostgresOidcMapOutput + ToGcpCloudsqlPostgresOidcMapOutputWithContext(context.Context) GcpCloudsqlPostgresOidcMapOutput +} + +type GcpCloudsqlPostgresOidcMap map[string]GcpCloudsqlPostgresOidcInput + +func (GcpCloudsqlPostgresOidcMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlPostgresOidc)(nil)).Elem() +} + +func (i GcpCloudsqlPostgresOidcMap) ToGcpCloudsqlPostgresOidcMapOutput() GcpCloudsqlPostgresOidcMapOutput { + return i.ToGcpCloudsqlPostgresOidcMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlPostgresOidcMap) ToGcpCloudsqlPostgresOidcMapOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlPostgresOidcMapOutput) +} + +type GcpCloudsqlPostgresOidcOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlPostgresOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlPostgresOidc)(nil)).Elem() +} + +func (o GcpCloudsqlPostgresOidcOutput) ToGcpCloudsqlPostgresOidcOutput() GcpCloudsqlPostgresOidcOutput { + return o +} + +func (o GcpCloudsqlPostgresOidcOutput) ToGcpCloudsqlPostgresOidcOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcOutput { + return o +} + +// The IAM principal identifier to grant roles to in GCP for this integration +func (o GcpCloudsqlPostgresOidcOutput) FederationPrincipal() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlPostgresOidc) pulumi.StringOutput { return v.FederationPrincipal }).(pulumi.StringOutput) +} + +// The ID of the GCP project the integration operates on +func (o GcpCloudsqlPostgresOidcOutput) GcpProjectId() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlPostgresOidc) pulumi.StringOutput { return v.GcpProjectId }).(pulumi.StringOutput) +} + +// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. +func (o GcpCloudsqlPostgresOidcOutput) GcpWorkloadIdentityProvider() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlPostgresOidc) pulumi.StringOutput { return v.GcpWorkloadIdentityProvider }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpCloudsqlPostgresOidcOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlPostgresOidc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpCloudsqlPostgresOidcArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlPostgresOidcArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlPostgresOidc)(nil)).Elem() +} + +func (o GcpCloudsqlPostgresOidcArrayOutput) ToGcpCloudsqlPostgresOidcArrayOutput() GcpCloudsqlPostgresOidcArrayOutput { + return o +} + +func (o GcpCloudsqlPostgresOidcArrayOutput) ToGcpCloudsqlPostgresOidcArrayOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcArrayOutput { + return o +} + +func (o GcpCloudsqlPostgresOidcArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlPostgresOidcOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsqlPostgresOidc { + return vs[0].([]*GcpCloudsqlPostgresOidc)[vs[1].(int)] + }).(GcpCloudsqlPostgresOidcOutput) +} + +type GcpCloudsqlPostgresOidcMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlPostgresOidcMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlPostgresOidc)(nil)).Elem() +} + +func (o GcpCloudsqlPostgresOidcMapOutput) ToGcpCloudsqlPostgresOidcMapOutput() GcpCloudsqlPostgresOidcMapOutput { + return o +} + +func (o GcpCloudsqlPostgresOidcMapOutput) ToGcpCloudsqlPostgresOidcMapOutputWithContext(ctx context.Context) GcpCloudsqlPostgresOidcMapOutput { + return o +} + +func (o GcpCloudsqlPostgresOidcMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlPostgresOidcOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsqlPostgresOidc { + return vs[0].(map[string]*GcpCloudsqlPostgresOidc)[vs[1].(string)] + }).(GcpCloudsqlPostgresOidcOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlPostgresOidcInput)(nil)).Elem(), &GcpCloudsqlPostgresOidc{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlPostgresOidcArrayInput)(nil)).Elem(), GcpCloudsqlPostgresOidcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlPostgresOidcMapInput)(nil)).Elem(), GcpCloudsqlPostgresOidcMap{}) + pulumi.RegisterOutputType(GcpCloudsqlPostgresOidcOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlPostgresOidcArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlPostgresOidcMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpCloudsqlSqlserver.go b/sdk/go/doppler/integration/gcpCloudsqlSqlserver.go new file mode 100644 index 0000000..05da9f5 --- /dev/null +++ b/sdk/go/doppler/integration/gcpCloudsqlSqlserver.go @@ -0,0 +1,321 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP CloudSQL SQL Server Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// gcpKey := `{ +// "type": "service_account", +// "project_id": "xxxxxxxxxxxxxxxxx", +// "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", +// "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", +// "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", +// "client_id": "xxxxxxxxxxxxxxxxxxxxx" +// } +// +// ` +// +// if param := cfg.Get("gcpKey"); param != "" { +// gcpKey = param +// } +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iGcpMysql, err := integration.NewGcpCloudsqlMysql(ctx, "i_gcp_mysql", &integration.GcpCloudsqlMysqlArgs{ +// Name: pulumi.String("TF GCP MySQL"), +// GcpKey: pulumi.String(gcpKey), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewGcpCloudsql(ctx, "rs_gcp_mysql", &rotatedsecret.GcpCloudsqlArgs{ +// Credentials: rotatedsecret.GcpCloudsqlCredentialArray{ +// &rotatedsecret.GcpCloudsqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxxx"), +// UserHostName: pulumi.String("%"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.GcpCloudsqlCredentialArgs{ +// Username: pulumi.String("xxxxxxxxxxxx"), +// UserHostName: pulumi.String("%"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iGcpMysql.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB"), +// RotationPeriodSec: pulumi.Int(2592000), +// DatabaseInstance: pulumi.String("xxxxxxxxxxxx"), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpCloudsqlSqlserver struct { + pulumi.CustomResourceState + + // The GCP service account key + GcpKey pulumi.StringOutput `pulumi:"gcpKey"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpCloudsqlSqlserver registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsqlSqlserver(ctx *pulumi.Context, + name string, args *GcpCloudsqlSqlserverArgs, opts ...pulumi.ResourceOption) (*GcpCloudsqlSqlserver, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpKey == nil { + return nil, errors.New("invalid value for required argument 'GcpKey'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.GcpKey != nil { + args.GcpKey = pulumi.ToSecret(args.GcpKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "gcpKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsqlSqlserver + err := ctx.RegisterResource("doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsqlSqlserver gets an existing GcpCloudsqlSqlserver resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsqlSqlserver(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlSqlserverState, opts ...pulumi.ResourceOption) (*GcpCloudsqlSqlserver, error) { + var resource GcpCloudsqlSqlserver + err := ctx.ReadResource("doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsqlSqlserver resources. +type gcpCloudsqlSqlserverState struct { + // The GCP service account key + GcpKey *string `pulumi:"gcpKey"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpCloudsqlSqlserverState struct { + // The GCP service account key + GcpKey pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpCloudsqlSqlserverState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlSqlserverState)(nil)).Elem() +} + +type gcpCloudsqlSqlserverArgs struct { + // The GCP service account key + GcpKey string `pulumi:"gcpKey"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpCloudsqlSqlserver resource. +type GcpCloudsqlSqlserverArgs struct { + // The GCP service account key + GcpKey pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpCloudsqlSqlserverArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlSqlserverArgs)(nil)).Elem() +} + +type GcpCloudsqlSqlserverInput interface { + pulumi.Input + + ToGcpCloudsqlSqlserverOutput() GcpCloudsqlSqlserverOutput + ToGcpCloudsqlSqlserverOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOutput +} + +func (*GcpCloudsqlSqlserver) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlSqlserver)(nil)).Elem() +} + +func (i *GcpCloudsqlSqlserver) ToGcpCloudsqlSqlserverOutput() GcpCloudsqlSqlserverOutput { + return i.ToGcpCloudsqlSqlserverOutputWithContext(context.Background()) +} + +func (i *GcpCloudsqlSqlserver) ToGcpCloudsqlSqlserverOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlSqlserverOutput) +} + +// GcpCloudsqlSqlserverArrayInput is an input type that accepts GcpCloudsqlSqlserverArray and GcpCloudsqlSqlserverArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlSqlserverArrayInput` via: +// +// GcpCloudsqlSqlserverArray{ GcpCloudsqlSqlserverArgs{...} } +type GcpCloudsqlSqlserverArrayInput interface { + pulumi.Input + + ToGcpCloudsqlSqlserverArrayOutput() GcpCloudsqlSqlserverArrayOutput + ToGcpCloudsqlSqlserverArrayOutputWithContext(context.Context) GcpCloudsqlSqlserverArrayOutput +} + +type GcpCloudsqlSqlserverArray []GcpCloudsqlSqlserverInput + +func (GcpCloudsqlSqlserverArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlSqlserver)(nil)).Elem() +} + +func (i GcpCloudsqlSqlserverArray) ToGcpCloudsqlSqlserverArrayOutput() GcpCloudsqlSqlserverArrayOutput { + return i.ToGcpCloudsqlSqlserverArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlSqlserverArray) ToGcpCloudsqlSqlserverArrayOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlSqlserverArrayOutput) +} + +// GcpCloudsqlSqlserverMapInput is an input type that accepts GcpCloudsqlSqlserverMap and GcpCloudsqlSqlserverMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlSqlserverMapInput` via: +// +// GcpCloudsqlSqlserverMap{ "key": GcpCloudsqlSqlserverArgs{...} } +type GcpCloudsqlSqlserverMapInput interface { + pulumi.Input + + ToGcpCloudsqlSqlserverMapOutput() GcpCloudsqlSqlserverMapOutput + ToGcpCloudsqlSqlserverMapOutputWithContext(context.Context) GcpCloudsqlSqlserverMapOutput +} + +type GcpCloudsqlSqlserverMap map[string]GcpCloudsqlSqlserverInput + +func (GcpCloudsqlSqlserverMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlSqlserver)(nil)).Elem() +} + +func (i GcpCloudsqlSqlserverMap) ToGcpCloudsqlSqlserverMapOutput() GcpCloudsqlSqlserverMapOutput { + return i.ToGcpCloudsqlSqlserverMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlSqlserverMap) ToGcpCloudsqlSqlserverMapOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlSqlserverMapOutput) +} + +type GcpCloudsqlSqlserverOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlSqlserverOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlSqlserver)(nil)).Elem() +} + +func (o GcpCloudsqlSqlserverOutput) ToGcpCloudsqlSqlserverOutput() GcpCloudsqlSqlserverOutput { + return o +} + +func (o GcpCloudsqlSqlserverOutput) ToGcpCloudsqlSqlserverOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOutput { + return o +} + +// The GCP service account key +func (o GcpCloudsqlSqlserverOutput) GcpKey() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlSqlserver) pulumi.StringOutput { return v.GcpKey }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpCloudsqlSqlserverOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlSqlserver) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpCloudsqlSqlserverArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlSqlserverArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlSqlserver)(nil)).Elem() +} + +func (o GcpCloudsqlSqlserverArrayOutput) ToGcpCloudsqlSqlserverArrayOutput() GcpCloudsqlSqlserverArrayOutput { + return o +} + +func (o GcpCloudsqlSqlserverArrayOutput) ToGcpCloudsqlSqlserverArrayOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverArrayOutput { + return o +} + +func (o GcpCloudsqlSqlserverArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlSqlserverOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsqlSqlserver { + return vs[0].([]*GcpCloudsqlSqlserver)[vs[1].(int)] + }).(GcpCloudsqlSqlserverOutput) +} + +type GcpCloudsqlSqlserverMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlSqlserverMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlSqlserver)(nil)).Elem() +} + +func (o GcpCloudsqlSqlserverMapOutput) ToGcpCloudsqlSqlserverMapOutput() GcpCloudsqlSqlserverMapOutput { + return o +} + +func (o GcpCloudsqlSqlserverMapOutput) ToGcpCloudsqlSqlserverMapOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverMapOutput { + return o +} + +func (o GcpCloudsqlSqlserverMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlSqlserverOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsqlSqlserver { + return vs[0].(map[string]*GcpCloudsqlSqlserver)[vs[1].(string)] + }).(GcpCloudsqlSqlserverOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlSqlserverInput)(nil)).Elem(), &GcpCloudsqlSqlserver{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlSqlserverArrayInput)(nil)).Elem(), GcpCloudsqlSqlserverArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlSqlserverMapInput)(nil)).Elem(), GcpCloudsqlSqlserverMap{}) + pulumi.RegisterOutputType(GcpCloudsqlSqlserverOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlSqlserverArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlSqlserverMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpCloudsqlSqlserverOidc.go b/sdk/go/doppler/integration/gcpCloudsqlSqlserverOidc.go new file mode 100644 index 0000000..6998610 --- /dev/null +++ b/sdk/go/doppler/integration/gcpCloudsqlSqlserverOidc.go @@ -0,0 +1,303 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP CloudSQL SQL Server Doppler integration using workload identity federation. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi-google/sdk/go/google" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// prod, err := integration.NewGcpCloudsqlSqlserverOidc(ctx, "prod", &integration.GcpCloudsqlSqlserverOidcArgs{ +// Name: pulumi.String("Production"), +// GcpWorkloadIdentityProvider: pulumi.String("//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler"), +// GcpProjectId: pulumi.String("your-gcp-project-id"), +// }) +// if err != nil { +// return err +// } +// _, err = google.NewProjectIamMember(ctx, "doppler", &google.ProjectIamMemberArgs{ +// Project: "your-gcp-project-id", +// Role: "roles/cloudsql.admin", +// Member: prod.FederationPrincipal, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpCloudsqlSqlserverOidc struct { + pulumi.CustomResourceState + + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringOutput `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringOutput `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringOutput `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpCloudsqlSqlserverOidc registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsqlSqlserverOidc(ctx *pulumi.Context, + name string, args *GcpCloudsqlSqlserverOidcArgs, opts ...pulumi.ResourceOption) (*GcpCloudsqlSqlserverOidc, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpProjectId == nil { + return nil, errors.New("invalid value for required argument 'GcpProjectId'") + } + if args.GcpWorkloadIdentityProvider == nil { + return nil, errors.New("invalid value for required argument 'GcpWorkloadIdentityProvider'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsqlSqlserverOidc + err := ctx.RegisterResource("doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsqlSqlserverOidc gets an existing GcpCloudsqlSqlserverOidc resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsqlSqlserverOidc(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlSqlserverOidcState, opts ...pulumi.ResourceOption) (*GcpCloudsqlSqlserverOidc, error) { + var resource GcpCloudsqlSqlserverOidc + err := ctx.ReadResource("doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsqlSqlserverOidc resources. +type gcpCloudsqlSqlserverOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal *string `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId *string `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider *string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpCloudsqlSqlserverOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringPtrInput + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringPtrInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpCloudsqlSqlserverOidcState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlSqlserverOidcState)(nil)).Elem() +} + +type gcpCloudsqlSqlserverOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId string `pulumi:"gcpProjectId"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpCloudsqlSqlserverOidc resource. +type GcpCloudsqlSqlserverOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpCloudsqlSqlserverOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlSqlserverOidcArgs)(nil)).Elem() +} + +type GcpCloudsqlSqlserverOidcInput interface { + pulumi.Input + + ToGcpCloudsqlSqlserverOidcOutput() GcpCloudsqlSqlserverOidcOutput + ToGcpCloudsqlSqlserverOidcOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcOutput +} + +func (*GcpCloudsqlSqlserverOidc) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlSqlserverOidc)(nil)).Elem() +} + +func (i *GcpCloudsqlSqlserverOidc) ToGcpCloudsqlSqlserverOidcOutput() GcpCloudsqlSqlserverOidcOutput { + return i.ToGcpCloudsqlSqlserverOidcOutputWithContext(context.Background()) +} + +func (i *GcpCloudsqlSqlserverOidc) ToGcpCloudsqlSqlserverOidcOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlSqlserverOidcOutput) +} + +// GcpCloudsqlSqlserverOidcArrayInput is an input type that accepts GcpCloudsqlSqlserverOidcArray and GcpCloudsqlSqlserverOidcArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlSqlserverOidcArrayInput` via: +// +// GcpCloudsqlSqlserverOidcArray{ GcpCloudsqlSqlserverOidcArgs{...} } +type GcpCloudsqlSqlserverOidcArrayInput interface { + pulumi.Input + + ToGcpCloudsqlSqlserverOidcArrayOutput() GcpCloudsqlSqlserverOidcArrayOutput + ToGcpCloudsqlSqlserverOidcArrayOutputWithContext(context.Context) GcpCloudsqlSqlserverOidcArrayOutput +} + +type GcpCloudsqlSqlserverOidcArray []GcpCloudsqlSqlserverOidcInput + +func (GcpCloudsqlSqlserverOidcArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlSqlserverOidc)(nil)).Elem() +} + +func (i GcpCloudsqlSqlserverOidcArray) ToGcpCloudsqlSqlserverOidcArrayOutput() GcpCloudsqlSqlserverOidcArrayOutput { + return i.ToGcpCloudsqlSqlserverOidcArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlSqlserverOidcArray) ToGcpCloudsqlSqlserverOidcArrayOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlSqlserverOidcArrayOutput) +} + +// GcpCloudsqlSqlserverOidcMapInput is an input type that accepts GcpCloudsqlSqlserverOidcMap and GcpCloudsqlSqlserverOidcMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlSqlserverOidcMapInput` via: +// +// GcpCloudsqlSqlserverOidcMap{ "key": GcpCloudsqlSqlserverOidcArgs{...} } +type GcpCloudsqlSqlserverOidcMapInput interface { + pulumi.Input + + ToGcpCloudsqlSqlserverOidcMapOutput() GcpCloudsqlSqlserverOidcMapOutput + ToGcpCloudsqlSqlserverOidcMapOutputWithContext(context.Context) GcpCloudsqlSqlserverOidcMapOutput +} + +type GcpCloudsqlSqlserverOidcMap map[string]GcpCloudsqlSqlserverOidcInput + +func (GcpCloudsqlSqlserverOidcMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlSqlserverOidc)(nil)).Elem() +} + +func (i GcpCloudsqlSqlserverOidcMap) ToGcpCloudsqlSqlserverOidcMapOutput() GcpCloudsqlSqlserverOidcMapOutput { + return i.ToGcpCloudsqlSqlserverOidcMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlSqlserverOidcMap) ToGcpCloudsqlSqlserverOidcMapOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlSqlserverOidcMapOutput) +} + +type GcpCloudsqlSqlserverOidcOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlSqlserverOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsqlSqlserverOidc)(nil)).Elem() +} + +func (o GcpCloudsqlSqlserverOidcOutput) ToGcpCloudsqlSqlserverOidcOutput() GcpCloudsqlSqlserverOidcOutput { + return o +} + +func (o GcpCloudsqlSqlserverOidcOutput) ToGcpCloudsqlSqlserverOidcOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcOutput { + return o +} + +// The IAM principal identifier to grant roles to in GCP for this integration +func (o GcpCloudsqlSqlserverOidcOutput) FederationPrincipal() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlSqlserverOidc) pulumi.StringOutput { return v.FederationPrincipal }).(pulumi.StringOutput) +} + +// The ID of the GCP project the integration operates on +func (o GcpCloudsqlSqlserverOidcOutput) GcpProjectId() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlSqlserverOidc) pulumi.StringOutput { return v.GcpProjectId }).(pulumi.StringOutput) +} + +// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. +func (o GcpCloudsqlSqlserverOidcOutput) GcpWorkloadIdentityProvider() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlSqlserverOidc) pulumi.StringOutput { return v.GcpWorkloadIdentityProvider }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpCloudsqlSqlserverOidcOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsqlSqlserverOidc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpCloudsqlSqlserverOidcArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlSqlserverOidcArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsqlSqlserverOidc)(nil)).Elem() +} + +func (o GcpCloudsqlSqlserverOidcArrayOutput) ToGcpCloudsqlSqlserverOidcArrayOutput() GcpCloudsqlSqlserverOidcArrayOutput { + return o +} + +func (o GcpCloudsqlSqlserverOidcArrayOutput) ToGcpCloudsqlSqlserverOidcArrayOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcArrayOutput { + return o +} + +func (o GcpCloudsqlSqlserverOidcArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlSqlserverOidcOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsqlSqlserverOidc { + return vs[0].([]*GcpCloudsqlSqlserverOidc)[vs[1].(int)] + }).(GcpCloudsqlSqlserverOidcOutput) +} + +type GcpCloudsqlSqlserverOidcMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlSqlserverOidcMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsqlSqlserverOidc)(nil)).Elem() +} + +func (o GcpCloudsqlSqlserverOidcMapOutput) ToGcpCloudsqlSqlserverOidcMapOutput() GcpCloudsqlSqlserverOidcMapOutput { + return o +} + +func (o GcpCloudsqlSqlserverOidcMapOutput) ToGcpCloudsqlSqlserverOidcMapOutputWithContext(ctx context.Context) GcpCloudsqlSqlserverOidcMapOutput { + return o +} + +func (o GcpCloudsqlSqlserverOidcMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlSqlserverOidcOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsqlSqlserverOidc { + return vs[0].(map[string]*GcpCloudsqlSqlserverOidc)[vs[1].(string)] + }).(GcpCloudsqlSqlserverOidcOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlSqlserverOidcInput)(nil)).Elem(), &GcpCloudsqlSqlserverOidc{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlSqlserverOidcArrayInput)(nil)).Elem(), GcpCloudsqlSqlserverOidcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlSqlserverOidcMapInput)(nil)).Elem(), GcpCloudsqlSqlserverOidcMap{}) + pulumi.RegisterOutputType(GcpCloudsqlSqlserverOidcOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlSqlserverOidcArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlSqlserverOidcMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpSecretManager.go b/sdk/go/doppler/integration/gcpSecretManager.go new file mode 100644 index 0000000..1d7dcf0 --- /dev/null +++ b/sdk/go/doppler/integration/gcpSecretManager.go @@ -0,0 +1,311 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP Secret Manager Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// gcpKey := `{ +// "type": "service_account", +// "project_id": "your-gcp-project-id", +// "private_key_id": "...", +// "private_key": "-----BEGIN PRIVATE KEY-----\n ... \n-----END PRIVATE KEY-----\n", +// "client_email": "doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com", +// "client_id": "12345678901234567890", +// "auth_uri": "https://accounts.google.com/o/oauth2/auth", +// "token_uri": "https://oauth2.googleapis.com/token", +// "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", +// "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com", +// "universe_domain": "googleapis.com" +// } +// +// ` +// +// if param := cfg.Get("gcpKey"); param != "" { +// gcpKey = param +// } +// _, err := integration.NewGcpSecretManager(ctx, "prod", &integration.GcpSecretManagerArgs{ +// Name: pulumi.String("prod"), +// GcpKey: pulumi.String(gcpKey), +// GcpSecretPrefix: pulumi.String("doppler-"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpSecretManager struct { + pulumi.CustomResourceState + + // The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpKey pulumi.StringOutput `pulumi:"gcpKey"` + // The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpSecretPrefix pulumi.StringOutput `pulumi:"gcpSecretPrefix"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpSecretManager registers a new resource with the given unique name, arguments, and options. +func NewGcpSecretManager(ctx *pulumi.Context, + name string, args *GcpSecretManagerArgs, opts ...pulumi.ResourceOption) (*GcpSecretManager, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpKey == nil { + return nil, errors.New("invalid value for required argument 'GcpKey'") + } + if args.GcpSecretPrefix == nil { + return nil, errors.New("invalid value for required argument 'GcpSecretPrefix'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.GcpKey != nil { + args.GcpKey = pulumi.ToSecret(args.GcpKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "gcpKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpSecretManager + err := ctx.RegisterResource("doppler:integration/gcpSecretManager:GcpSecretManager", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpSecretManager gets an existing GcpSecretManager resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpSecretManager(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpSecretManagerState, opts ...pulumi.ResourceOption) (*GcpSecretManager, error) { + var resource GcpSecretManager + err := ctx.ReadResource("doppler:integration/gcpSecretManager:GcpSecretManager", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpSecretManager resources. +type gcpSecretManagerState struct { + // The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpKey *string `pulumi:"gcpKey"` + // The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpSecretPrefix *string `pulumi:"gcpSecretPrefix"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpSecretManagerState struct { + // The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpKey pulumi.StringPtrInput + // The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpSecretPrefix pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpSecretManagerState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpSecretManagerState)(nil)).Elem() +} + +type gcpSecretManagerArgs struct { + // The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpKey string `pulumi:"gcpKey"` + // The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpSecretPrefix string `pulumi:"gcpSecretPrefix"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpSecretManager resource. +type GcpSecretManagerArgs struct { + // The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpKey pulumi.StringInput + // The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + GcpSecretPrefix pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpSecretManagerArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpSecretManagerArgs)(nil)).Elem() +} + +type GcpSecretManagerInput interface { + pulumi.Input + + ToGcpSecretManagerOutput() GcpSecretManagerOutput + ToGcpSecretManagerOutputWithContext(ctx context.Context) GcpSecretManagerOutput +} + +func (*GcpSecretManager) ElementType() reflect.Type { + return reflect.TypeOf((**GcpSecretManager)(nil)).Elem() +} + +func (i *GcpSecretManager) ToGcpSecretManagerOutput() GcpSecretManagerOutput { + return i.ToGcpSecretManagerOutputWithContext(context.Background()) +} + +func (i *GcpSecretManager) ToGcpSecretManagerOutputWithContext(ctx context.Context) GcpSecretManagerOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerOutput) +} + +// GcpSecretManagerArrayInput is an input type that accepts GcpSecretManagerArray and GcpSecretManagerArrayOutput values. +// You can construct a concrete instance of `GcpSecretManagerArrayInput` via: +// +// GcpSecretManagerArray{ GcpSecretManagerArgs{...} } +type GcpSecretManagerArrayInput interface { + pulumi.Input + + ToGcpSecretManagerArrayOutput() GcpSecretManagerArrayOutput + ToGcpSecretManagerArrayOutputWithContext(context.Context) GcpSecretManagerArrayOutput +} + +type GcpSecretManagerArray []GcpSecretManagerInput + +func (GcpSecretManagerArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpSecretManager)(nil)).Elem() +} + +func (i GcpSecretManagerArray) ToGcpSecretManagerArrayOutput() GcpSecretManagerArrayOutput { + return i.ToGcpSecretManagerArrayOutputWithContext(context.Background()) +} + +func (i GcpSecretManagerArray) ToGcpSecretManagerArrayOutputWithContext(ctx context.Context) GcpSecretManagerArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerArrayOutput) +} + +// GcpSecretManagerMapInput is an input type that accepts GcpSecretManagerMap and GcpSecretManagerMapOutput values. +// You can construct a concrete instance of `GcpSecretManagerMapInput` via: +// +// GcpSecretManagerMap{ "key": GcpSecretManagerArgs{...} } +type GcpSecretManagerMapInput interface { + pulumi.Input + + ToGcpSecretManagerMapOutput() GcpSecretManagerMapOutput + ToGcpSecretManagerMapOutputWithContext(context.Context) GcpSecretManagerMapOutput +} + +type GcpSecretManagerMap map[string]GcpSecretManagerInput + +func (GcpSecretManagerMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpSecretManager)(nil)).Elem() +} + +func (i GcpSecretManagerMap) ToGcpSecretManagerMapOutput() GcpSecretManagerMapOutput { + return i.ToGcpSecretManagerMapOutputWithContext(context.Background()) +} + +func (i GcpSecretManagerMap) ToGcpSecretManagerMapOutputWithContext(ctx context.Context) GcpSecretManagerMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerMapOutput) +} + +type GcpSecretManagerOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpSecretManager)(nil)).Elem() +} + +func (o GcpSecretManagerOutput) ToGcpSecretManagerOutput() GcpSecretManagerOutput { + return o +} + +func (o GcpSecretManagerOutput) ToGcpSecretManagerOutputWithContext(ctx context.Context) GcpSecretManagerOutput { + return o +} + +// The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. +func (o GcpSecretManagerOutput) GcpKey() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.GcpKey }).(pulumi.StringOutput) +} + +// The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. +func (o GcpSecretManagerOutput) GcpSecretPrefix() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.GcpSecretPrefix }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpSecretManagerOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpSecretManagerArrayOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpSecretManager)(nil)).Elem() +} + +func (o GcpSecretManagerArrayOutput) ToGcpSecretManagerArrayOutput() GcpSecretManagerArrayOutput { + return o +} + +func (o GcpSecretManagerArrayOutput) ToGcpSecretManagerArrayOutputWithContext(ctx context.Context) GcpSecretManagerArrayOutput { + return o +} + +func (o GcpSecretManagerArrayOutput) Index(i pulumi.IntInput) GcpSecretManagerOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpSecretManager { + return vs[0].([]*GcpSecretManager)[vs[1].(int)] + }).(GcpSecretManagerOutput) +} + +type GcpSecretManagerMapOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpSecretManager)(nil)).Elem() +} + +func (o GcpSecretManagerMapOutput) ToGcpSecretManagerMapOutput() GcpSecretManagerMapOutput { + return o +} + +func (o GcpSecretManagerMapOutput) ToGcpSecretManagerMapOutputWithContext(ctx context.Context) GcpSecretManagerMapOutput { + return o +} + +func (o GcpSecretManagerMapOutput) MapIndex(k pulumi.StringInput) GcpSecretManagerOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpSecretManager { + return vs[0].(map[string]*GcpSecretManager)[vs[1].(string)] + }).(GcpSecretManagerOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerInput)(nil)).Elem(), &GcpSecretManager{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerArrayInput)(nil)).Elem(), GcpSecretManagerArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerMapInput)(nil)).Elem(), GcpSecretManagerMap{}) + pulumi.RegisterOutputType(GcpSecretManagerOutput{}) + pulumi.RegisterOutputType(GcpSecretManagerArrayOutput{}) + pulumi.RegisterOutputType(GcpSecretManagerMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpSecretManagerOidc.go b/sdk/go/doppler/integration/gcpSecretManagerOidc.go new file mode 100644 index 0000000..cd90273 --- /dev/null +++ b/sdk/go/doppler/integration/gcpSecretManagerOidc.go @@ -0,0 +1,347 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP Secret Manager Doppler integration using workload identity federation. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi-google/sdk/go/google" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// doppler, err := google.NewIamWorkloadIdentityPool(ctx, "doppler", &google.IamWorkloadIdentityPoolArgs{ +// WorkloadIdentityPoolId: "doppler-pool", +// }) +// if err != nil { +// return err +// } +// dopplerIamWorkloadIdentityPoolProvider, err := google.NewIamWorkloadIdentityPoolProvider(ctx, "doppler", &google.IamWorkloadIdentityPoolProviderArgs{ +// Oidc: []map[string]string{ +// { +// "issuerUri": "https://api.doppler.com", +// }, +// }, +// WorkloadIdentityPoolId: doppler.WorkloadIdentityPoolId, +// WorkloadIdentityPoolProviderId: "doppler", +// AttributeMapping: map[string]string{ +// "google.subject": "assertion.sub", +// }, +// AttributeCondition: "assertion.workplace == ''", +// }) +// if err != nil { +// return err +// } +// prod, err := integration.NewGcpSecretManagerOidc(ctx, "prod", &integration.GcpSecretManagerOidcArgs{ +// Name: pulumi.String("Production"), +// GcpWorkloadIdentityProvider: pulumi.Sprintf("//iam.googleapis.com/%v", dopplerIamWorkloadIdentityPoolProvider.Name), +// GcpProjectId: pulumi.String("your-gcp-project-id"), +// GcpSecretPrefix: pulumi.String("doppler-"), +// }) +// if err != nil { +// return err +// } +// _, err = google.NewProjectIamMember(ctx, "doppler", &google.ProjectIamMemberArgs{ +// Condition: []map[string]string{ +// { +// "title": "doppler-prefix-only", +// "expression": "resource.name.startsWith(\"projects//secrets/doppler-\")", +// }, +// }, +// Project: "your-gcp-project-id", +// Role: "roles/secretmanager.admin", +// Member: prod.FederationPrincipal, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpSecretManagerOidc struct { + pulumi.CustomResourceState + + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringOutput `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringOutput `pulumi:"gcpProjectId"` + // The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + GcpSecretPrefix pulumi.StringPtrOutput `pulumi:"gcpSecretPrefix"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringOutput `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpSecretManagerOidc registers a new resource with the given unique name, arguments, and options. +func NewGcpSecretManagerOidc(ctx *pulumi.Context, + name string, args *GcpSecretManagerOidcArgs, opts ...pulumi.ResourceOption) (*GcpSecretManagerOidc, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GcpProjectId == nil { + return nil, errors.New("invalid value for required argument 'GcpProjectId'") + } + if args.GcpWorkloadIdentityProvider == nil { + return nil, errors.New("invalid value for required argument 'GcpWorkloadIdentityProvider'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpSecretManagerOidc + err := ctx.RegisterResource("doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpSecretManagerOidc gets an existing GcpSecretManagerOidc resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpSecretManagerOidc(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpSecretManagerOidcState, opts ...pulumi.ResourceOption) (*GcpSecretManagerOidc, error) { + var resource GcpSecretManagerOidc + err := ctx.ReadResource("doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpSecretManagerOidc resources. +type gcpSecretManagerOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal *string `pulumi:"federationPrincipal"` + // The ID of the GCP project the integration operates on + GcpProjectId *string `pulumi:"gcpProjectId"` + // The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + GcpSecretPrefix *string `pulumi:"gcpSecretPrefix"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider *string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpSecretManagerOidcState struct { + // The IAM principal identifier to grant roles to in GCP for this integration + FederationPrincipal pulumi.StringPtrInput + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringPtrInput + // The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + GcpSecretPrefix pulumi.StringPtrInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpSecretManagerOidcState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpSecretManagerOidcState)(nil)).Elem() +} + +type gcpSecretManagerOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId string `pulumi:"gcpProjectId"` + // The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + GcpSecretPrefix *string `pulumi:"gcpSecretPrefix"` + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider string `pulumi:"gcpWorkloadIdentityProvider"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpSecretManagerOidc resource. +type GcpSecretManagerOidcArgs struct { + // The ID of the GCP project the integration operates on + GcpProjectId pulumi.StringInput + // The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + GcpSecretPrefix pulumi.StringPtrInput + // The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + GcpWorkloadIdentityProvider pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpSecretManagerOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpSecretManagerOidcArgs)(nil)).Elem() +} + +type GcpSecretManagerOidcInput interface { + pulumi.Input + + ToGcpSecretManagerOidcOutput() GcpSecretManagerOidcOutput + ToGcpSecretManagerOidcOutputWithContext(ctx context.Context) GcpSecretManagerOidcOutput +} + +func (*GcpSecretManagerOidc) ElementType() reflect.Type { + return reflect.TypeOf((**GcpSecretManagerOidc)(nil)).Elem() +} + +func (i *GcpSecretManagerOidc) ToGcpSecretManagerOidcOutput() GcpSecretManagerOidcOutput { + return i.ToGcpSecretManagerOidcOutputWithContext(context.Background()) +} + +func (i *GcpSecretManagerOidc) ToGcpSecretManagerOidcOutputWithContext(ctx context.Context) GcpSecretManagerOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerOidcOutput) +} + +// GcpSecretManagerOidcArrayInput is an input type that accepts GcpSecretManagerOidcArray and GcpSecretManagerOidcArrayOutput values. +// You can construct a concrete instance of `GcpSecretManagerOidcArrayInput` via: +// +// GcpSecretManagerOidcArray{ GcpSecretManagerOidcArgs{...} } +type GcpSecretManagerOidcArrayInput interface { + pulumi.Input + + ToGcpSecretManagerOidcArrayOutput() GcpSecretManagerOidcArrayOutput + ToGcpSecretManagerOidcArrayOutputWithContext(context.Context) GcpSecretManagerOidcArrayOutput +} + +type GcpSecretManagerOidcArray []GcpSecretManagerOidcInput + +func (GcpSecretManagerOidcArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpSecretManagerOidc)(nil)).Elem() +} + +func (i GcpSecretManagerOidcArray) ToGcpSecretManagerOidcArrayOutput() GcpSecretManagerOidcArrayOutput { + return i.ToGcpSecretManagerOidcArrayOutputWithContext(context.Background()) +} + +func (i GcpSecretManagerOidcArray) ToGcpSecretManagerOidcArrayOutputWithContext(ctx context.Context) GcpSecretManagerOidcArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerOidcArrayOutput) +} + +// GcpSecretManagerOidcMapInput is an input type that accepts GcpSecretManagerOidcMap and GcpSecretManagerOidcMapOutput values. +// You can construct a concrete instance of `GcpSecretManagerOidcMapInput` via: +// +// GcpSecretManagerOidcMap{ "key": GcpSecretManagerOidcArgs{...} } +type GcpSecretManagerOidcMapInput interface { + pulumi.Input + + ToGcpSecretManagerOidcMapOutput() GcpSecretManagerOidcMapOutput + ToGcpSecretManagerOidcMapOutputWithContext(context.Context) GcpSecretManagerOidcMapOutput +} + +type GcpSecretManagerOidcMap map[string]GcpSecretManagerOidcInput + +func (GcpSecretManagerOidcMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpSecretManagerOidc)(nil)).Elem() +} + +func (i GcpSecretManagerOidcMap) ToGcpSecretManagerOidcMapOutput() GcpSecretManagerOidcMapOutput { + return i.ToGcpSecretManagerOidcMapOutputWithContext(context.Background()) +} + +func (i GcpSecretManagerOidcMap) ToGcpSecretManagerOidcMapOutputWithContext(ctx context.Context) GcpSecretManagerOidcMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerOidcMapOutput) +} + +type GcpSecretManagerOidcOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpSecretManagerOidc)(nil)).Elem() +} + +func (o GcpSecretManagerOidcOutput) ToGcpSecretManagerOidcOutput() GcpSecretManagerOidcOutput { + return o +} + +func (o GcpSecretManagerOidcOutput) ToGcpSecretManagerOidcOutputWithContext(ctx context.Context) GcpSecretManagerOidcOutput { + return o +} + +// The IAM principal identifier to grant roles to in GCP for this integration +func (o GcpSecretManagerOidcOutput) FederationPrincipal() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManagerOidc) pulumi.StringOutput { return v.FederationPrincipal }).(pulumi.StringOutput) +} + +// The ID of the GCP project the integration operates on +func (o GcpSecretManagerOidcOutput) GcpProjectId() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManagerOidc) pulumi.StringOutput { return v.GcpProjectId }).(pulumi.StringOutput) +} + +// The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. +func (o GcpSecretManagerOidcOutput) GcpSecretPrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GcpSecretManagerOidc) pulumi.StringPtrOutput { return v.GcpSecretPrefix }).(pulumi.StringPtrOutput) +} + +// The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. +func (o GcpSecretManagerOidcOutput) GcpWorkloadIdentityProvider() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManagerOidc) pulumi.StringOutput { return v.GcpWorkloadIdentityProvider }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpSecretManagerOidcOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManagerOidc) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpSecretManagerOidcArrayOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerOidcArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpSecretManagerOidc)(nil)).Elem() +} + +func (o GcpSecretManagerOidcArrayOutput) ToGcpSecretManagerOidcArrayOutput() GcpSecretManagerOidcArrayOutput { + return o +} + +func (o GcpSecretManagerOidcArrayOutput) ToGcpSecretManagerOidcArrayOutputWithContext(ctx context.Context) GcpSecretManagerOidcArrayOutput { + return o +} + +func (o GcpSecretManagerOidcArrayOutput) Index(i pulumi.IntInput) GcpSecretManagerOidcOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpSecretManagerOidc { + return vs[0].([]*GcpSecretManagerOidc)[vs[1].(int)] + }).(GcpSecretManagerOidcOutput) +} + +type GcpSecretManagerOidcMapOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerOidcMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpSecretManagerOidc)(nil)).Elem() +} + +func (o GcpSecretManagerOidcMapOutput) ToGcpSecretManagerOidcMapOutput() GcpSecretManagerOidcMapOutput { + return o +} + +func (o GcpSecretManagerOidcMapOutput) ToGcpSecretManagerOidcMapOutputWithContext(ctx context.Context) GcpSecretManagerOidcMapOutput { + return o +} + +func (o GcpSecretManagerOidcMapOutput) MapIndex(k pulumi.StringInput) GcpSecretManagerOidcOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpSecretManagerOidc { + return vs[0].(map[string]*GcpSecretManagerOidc)[vs[1].(string)] + }).(GcpSecretManagerOidcOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerOidcInput)(nil)).Elem(), &GcpSecretManagerOidc{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerOidcArrayInput)(nil)).Elem(), GcpSecretManagerOidcArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerOidcMapInput)(nil)).Elem(), GcpSecretManagerOidcMap{}) + pulumi.RegisterOutputType(GcpSecretManagerOidcOutput{}) + pulumi.RegisterOutputType(GcpSecretManagerOidcArrayOutput{}) + pulumi.RegisterOutputType(GcpSecretManagerOidcMapOutput{}) +} diff --git a/sdk/go/doppler/integration/gcpServiceAccountKeys.go b/sdk/go/doppler/integration/gcpServiceAccountKeys.go new file mode 100644 index 0000000..7e1eb00 --- /dev/null +++ b/sdk/go/doppler/integration/gcpServiceAccountKeys.go @@ -0,0 +1,370 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP Service Account Keys Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi-google/sdk/go/google" +// "github.com/pulumi/pulumi-std/sdk/go/std" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// iGcpSakExtid, err := integration.NewExternalId(ctx, "i_gcp_sak_extid", &integration.ExternalIdArgs{ +// IntegrationType: pulumi.String("gcp_service_account_keys"), +// }) +// if err != nil { +// return err +// } +// gcpsaDopplerImpersonate, err := google.NewServiceAccount(ctx, "gcpsa_doppler_impersonate", &google.ServiceAccountArgs{ +// AccountId: "xxxxxxxxxxx", +// Description: std.Format(ctx, map[string]interface{}{ +// "input": "doppler_impersonate:%s", +// "args": pulumi.IDArray{ +// iGcpSakExtid.ID(), +// }, +// }, nil).Result, +// DisplayName: "xxxxxxxxxx", +// }) +// if err != nil { +// return err +// } +// dopplerRotationImpersonatePolicy, err := google.IamPolicy(ctx, map[string][]interface{}{ +// "binding": []interface{}{ +// map[string]interface{}{ +// "role": "roles/iam.serviceAccountViewer", +// "members": []interface{}{ +// gcpsaDopplerImpersonate.Member, +// "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", +// }, +// }, +// map[string]interface{}{ +// "role": "roles/iam.serviceAccountTokenCreator", +// "members": []string{ +// "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", +// }, +// }, +// }, +// }, nil) +// if err != nil { +// return err +// } +// _, err = google.NewServiceAccountIamPolicy(ctx, "gcp_policy_impersonate", &google.ServiceAccountIamPolicyArgs{ +// ServiceAccountId: gcpsaDopplerImpersonate.Name, +// PolicyData: dopplerRotationImpersonatePolicy.PolicyData, +// }) +// if err != nil { +// return err +// } +// gcpsaRotated, err := google.NewServiceAccount(ctx, "gcpsa_rotated", &google.ServiceAccountArgs{ +// AccountId: "xxxxxxxxxxxxxxxxxx", +// DisplayName: "xxxxxxxxxxxxxxxxxx", +// }) +// if err != nil { +// return err +// } +// dopplerRotatedUserPolicy, err := google.IamPolicy(ctx, map[string][]map[string]interface{}{ +// "binding": []map[string]interface{}{ +// map[string]interface{}{ +// "role": "roles/iam.serviceAccountKeyAdmin", +// "members": []interface{}{ +// gcpsaDopplerImpersonate.Member, +// }, +// }, +// }, +// }, nil) +// if err != nil { +// return err +// } +// _, err = google.NewServiceAccountIamPolicy(ctx, "gcp_policy_rotated", &google.ServiceAccountIamPolicyArgs{ +// ServiceAccountId: gcpsaRotated.Name, +// PolicyData: dopplerRotatedUserPolicy.PolicyData, +// }) +// if err != nil { +// return err +// } +// iGcpSak, err := integration.NewGcpServiceAccountKeys(ctx, "i_gcp_sak", &integration.GcpServiceAccountKeysArgs{ +// Name: pulumi.String("TF GCP Service Account Keys"), +// ImpersonatedServiceAccount: gcpsaDopplerImpersonate.Email, +// ExternalId: iGcpSakExtid.ID(), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewGcpServiceAccountKeys(ctx, "rs_gcpsak", &rotatedsecret.GcpServiceAccountKeysArgs{ +// Integration: iGcpSak.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("GCP_SERVICE_ACCOUNT"), +// RotationPeriodSec: pulumi.Int(2592000), +// ServiceAccount: gcpsaRotated.Email, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type GcpServiceAccountKeys struct { + pulumi.CustomResourceState + + // The Doppler-generated external id (placed in the service account description field) + ExternalId pulumi.StringOutput `pulumi:"externalId"` + // The service account email of the account to be impersonated + ImpersonatedServiceAccount pulumi.StringOutput `pulumi:"impersonatedServiceAccount"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewGcpServiceAccountKeys registers a new resource with the given unique name, arguments, and options. +func NewGcpServiceAccountKeys(ctx *pulumi.Context, + name string, args *GcpServiceAccountKeysArgs, opts ...pulumi.ResourceOption) (*GcpServiceAccountKeys, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ExternalId == nil { + return nil, errors.New("invalid value for required argument 'ExternalId'") + } + if args.ImpersonatedServiceAccount == nil { + return nil, errors.New("invalid value for required argument 'ImpersonatedServiceAccount'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpServiceAccountKeys + err := ctx.RegisterResource("doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpServiceAccountKeys gets an existing GcpServiceAccountKeys resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpServiceAccountKeys(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpServiceAccountKeysState, opts ...pulumi.ResourceOption) (*GcpServiceAccountKeys, error) { + var resource GcpServiceAccountKeys + err := ctx.ReadResource("doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpServiceAccountKeys resources. +type gcpServiceAccountKeysState struct { + // The Doppler-generated external id (placed in the service account description field) + ExternalId *string `pulumi:"externalId"` + // The service account email of the account to be impersonated + ImpersonatedServiceAccount *string `pulumi:"impersonatedServiceAccount"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type GcpServiceAccountKeysState struct { + // The Doppler-generated external id (placed in the service account description field) + ExternalId pulumi.StringPtrInput + // The service account email of the account to be impersonated + ImpersonatedServiceAccount pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (GcpServiceAccountKeysState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpServiceAccountKeysState)(nil)).Elem() +} + +type gcpServiceAccountKeysArgs struct { + // The Doppler-generated external id (placed in the service account description field) + ExternalId string `pulumi:"externalId"` + // The service account email of the account to be impersonated + ImpersonatedServiceAccount string `pulumi:"impersonatedServiceAccount"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a GcpServiceAccountKeys resource. +type GcpServiceAccountKeysArgs struct { + // The Doppler-generated external id (placed in the service account description field) + ExternalId pulumi.StringInput + // The service account email of the account to be impersonated + ImpersonatedServiceAccount pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (GcpServiceAccountKeysArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpServiceAccountKeysArgs)(nil)).Elem() +} + +type GcpServiceAccountKeysInput interface { + pulumi.Input + + ToGcpServiceAccountKeysOutput() GcpServiceAccountKeysOutput + ToGcpServiceAccountKeysOutputWithContext(ctx context.Context) GcpServiceAccountKeysOutput +} + +func (*GcpServiceAccountKeys) ElementType() reflect.Type { + return reflect.TypeOf((**GcpServiceAccountKeys)(nil)).Elem() +} + +func (i *GcpServiceAccountKeys) ToGcpServiceAccountKeysOutput() GcpServiceAccountKeysOutput { + return i.ToGcpServiceAccountKeysOutputWithContext(context.Background()) +} + +func (i *GcpServiceAccountKeys) ToGcpServiceAccountKeysOutputWithContext(ctx context.Context) GcpServiceAccountKeysOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpServiceAccountKeysOutput) +} + +// GcpServiceAccountKeysArrayInput is an input type that accepts GcpServiceAccountKeysArray and GcpServiceAccountKeysArrayOutput values. +// You can construct a concrete instance of `GcpServiceAccountKeysArrayInput` via: +// +// GcpServiceAccountKeysArray{ GcpServiceAccountKeysArgs{...} } +type GcpServiceAccountKeysArrayInput interface { + pulumi.Input + + ToGcpServiceAccountKeysArrayOutput() GcpServiceAccountKeysArrayOutput + ToGcpServiceAccountKeysArrayOutputWithContext(context.Context) GcpServiceAccountKeysArrayOutput +} + +type GcpServiceAccountKeysArray []GcpServiceAccountKeysInput + +func (GcpServiceAccountKeysArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (i GcpServiceAccountKeysArray) ToGcpServiceAccountKeysArrayOutput() GcpServiceAccountKeysArrayOutput { + return i.ToGcpServiceAccountKeysArrayOutputWithContext(context.Background()) +} + +func (i GcpServiceAccountKeysArray) ToGcpServiceAccountKeysArrayOutputWithContext(ctx context.Context) GcpServiceAccountKeysArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpServiceAccountKeysArrayOutput) +} + +// GcpServiceAccountKeysMapInput is an input type that accepts GcpServiceAccountKeysMap and GcpServiceAccountKeysMapOutput values. +// You can construct a concrete instance of `GcpServiceAccountKeysMapInput` via: +// +// GcpServiceAccountKeysMap{ "key": GcpServiceAccountKeysArgs{...} } +type GcpServiceAccountKeysMapInput interface { + pulumi.Input + + ToGcpServiceAccountKeysMapOutput() GcpServiceAccountKeysMapOutput + ToGcpServiceAccountKeysMapOutputWithContext(context.Context) GcpServiceAccountKeysMapOutput +} + +type GcpServiceAccountKeysMap map[string]GcpServiceAccountKeysInput + +func (GcpServiceAccountKeysMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (i GcpServiceAccountKeysMap) ToGcpServiceAccountKeysMapOutput() GcpServiceAccountKeysMapOutput { + return i.ToGcpServiceAccountKeysMapOutputWithContext(context.Background()) +} + +func (i GcpServiceAccountKeysMap) ToGcpServiceAccountKeysMapOutputWithContext(ctx context.Context) GcpServiceAccountKeysMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpServiceAccountKeysMapOutput) +} + +type GcpServiceAccountKeysOutput struct{ *pulumi.OutputState } + +func (GcpServiceAccountKeysOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpServiceAccountKeys)(nil)).Elem() +} + +func (o GcpServiceAccountKeysOutput) ToGcpServiceAccountKeysOutput() GcpServiceAccountKeysOutput { + return o +} + +func (o GcpServiceAccountKeysOutput) ToGcpServiceAccountKeysOutputWithContext(ctx context.Context) GcpServiceAccountKeysOutput { + return o +} + +// The Doppler-generated external id (placed in the service account description field) +func (o GcpServiceAccountKeysOutput) ExternalId() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.ExternalId }).(pulumi.StringOutput) +} + +// The service account email of the account to be impersonated +func (o GcpServiceAccountKeysOutput) ImpersonatedServiceAccount() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.ImpersonatedServiceAccount }).(pulumi.StringOutput) +} + +// The name of the integration +func (o GcpServiceAccountKeysOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type GcpServiceAccountKeysArrayOutput struct{ *pulumi.OutputState } + +func (GcpServiceAccountKeysArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (o GcpServiceAccountKeysArrayOutput) ToGcpServiceAccountKeysArrayOutput() GcpServiceAccountKeysArrayOutput { + return o +} + +func (o GcpServiceAccountKeysArrayOutput) ToGcpServiceAccountKeysArrayOutputWithContext(ctx context.Context) GcpServiceAccountKeysArrayOutput { + return o +} + +func (o GcpServiceAccountKeysArrayOutput) Index(i pulumi.IntInput) GcpServiceAccountKeysOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpServiceAccountKeys { + return vs[0].([]*GcpServiceAccountKeys)[vs[1].(int)] + }).(GcpServiceAccountKeysOutput) +} + +type GcpServiceAccountKeysMapOutput struct{ *pulumi.OutputState } + +func (GcpServiceAccountKeysMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (o GcpServiceAccountKeysMapOutput) ToGcpServiceAccountKeysMapOutput() GcpServiceAccountKeysMapOutput { + return o +} + +func (o GcpServiceAccountKeysMapOutput) ToGcpServiceAccountKeysMapOutputWithContext(ctx context.Context) GcpServiceAccountKeysMapOutput { + return o +} + +func (o GcpServiceAccountKeysMapOutput) MapIndex(k pulumi.StringInput) GcpServiceAccountKeysOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpServiceAccountKeys { + return vs[0].(map[string]*GcpServiceAccountKeys)[vs[1].(string)] + }).(GcpServiceAccountKeysOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpServiceAccountKeysInput)(nil)).Elem(), &GcpServiceAccountKeys{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpServiceAccountKeysArrayInput)(nil)).Elem(), GcpServiceAccountKeysArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpServiceAccountKeysMapInput)(nil)).Elem(), GcpServiceAccountKeysMap{}) + pulumi.RegisterOutputType(GcpServiceAccountKeysOutput{}) + pulumi.RegisterOutputType(GcpServiceAccountKeysArrayOutput{}) + pulumi.RegisterOutputType(GcpServiceAccountKeysMapOutput{}) +} diff --git a/sdk/go/doppler/integration/init.go b/sdk/go/doppler/integration/init.go index b601c14..03be8e8 100644 --- a/sdk/go/doppler/integration/init.go +++ b/sdk/go/doppler/integration/init.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package integration @@ -6,9 +6,9 @@ package integration import ( "fmt" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/blang/semver" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) type module struct { @@ -21,16 +21,70 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { + case "doppler:integration/awsIamUserKeys:AwsIamUserKeys": + r = &AwsIamUserKeys{} + case "doppler:integration/awsMssql:AwsMssql": + r = &AwsMssql{} + case "doppler:integration/awsMysql:AwsMysql": + r = &AwsMysql{} case "doppler:integration/awsParameterStore:AwsParameterStore": r = &AwsParameterStore{} + case "doppler:integration/awsPostgres:AwsPostgres": + r = &AwsPostgres{} case "doppler:integration/awsSecretsManager:AwsSecretsManager": r = &AwsSecretsManager{} + case "doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal": + r = &AzureDynamicServicePrincipal{} + case "doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc": + r = &AzureDynamicServicePrincipalOidc{} + case "doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal": + r = &AzureRotatedServicePrincipal{} + case "doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc": + r = &AzureRotatedServicePrincipalOidc{} + case "doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal": + r = &AzureVaultServicePrincipal{} case "doppler:integration/circleci:Circleci": r = &Circleci{} + case "doppler:integration/cloudflareTokens:CloudflareTokens": + r = &CloudflareTokens{} + case "doppler:integration/externalId:ExternalId": + r = &ExternalId{} case "doppler:integration/flyio:Flyio": r = &Flyio{} + case "doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql": + r = &GcpCloudsqlMysql{} + case "doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc": + r = &GcpCloudsqlMysqlOidc{} + case "doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres": + r = &GcpCloudsqlPostgres{} + case "doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc": + r = &GcpCloudsqlPostgresOidc{} + case "doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver": + r = &GcpCloudsqlSqlserver{} + case "doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc": + r = &GcpCloudsqlSqlserverOidc{} + case "doppler:integration/gcpSecretManager:GcpSecretManager": + r = &GcpSecretManager{} + case "doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc": + r = &GcpSecretManagerOidc{} + case "doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys": + r = &GcpServiceAccountKeys{} + case "doppler:integration/memberGroup:MemberGroup": + r = &MemberGroup{} + case "doppler:integration/memberServiceAccount:MemberServiceAccount": + r = &MemberServiceAccount{} + case "doppler:integration/memberUser:MemberUser": + r = &MemberUser{} + case "doppler:integration/mongodbAtlas:MongodbAtlas": + r = &MongodbAtlas{} + case "doppler:integration/openai:Openai": + r = &Openai{} + case "doppler:integration/sendgrid:Sendgrid": + r = &Sendgrid{} case "doppler:integration/terraformCloud:TerraformCloud": r = &TerraformCloud{} + case "doppler:integration/twilio:Twilio": + r = &Twilio{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -44,29 +98,164 @@ func init() { if err != nil { version = semver.Version{Major: 1} } + pulumi.RegisterResourceModule( + "doppler", + "integration/awsIamUserKeys", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/awsMssql", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/awsMysql", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "integration/awsParameterStore", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "integration/awsPostgres", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "integration/awsSecretsManager", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "integration/azureDynamicServicePrincipal", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/azureDynamicServicePrincipalOidc", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/azureRotatedServicePrincipal", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/azureRotatedServicePrincipalOidc", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/azureVaultServicePrincipal", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "integration/circleci", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "integration/cloudflareTokens", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/externalId", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "integration/flyio", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpCloudsqlMysql", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpCloudsqlMysqlOidc", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpCloudsqlPostgres", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpCloudsqlPostgresOidc", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpCloudsqlSqlserver", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpCloudsqlSqlserverOidc", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpSecretManager", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpSecretManagerOidc", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/gcpServiceAccountKeys", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/memberGroup", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/memberServiceAccount", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/memberUser", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/mongodbAtlas", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/openai", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "integration/sendgrid", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "integration/terraformCloud", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "integration/twilio", + &module{version}, + ) } diff --git a/sdk/go/doppler/integration/memberGroup.go b/sdk/go/doppler/integration/memberGroup.go new file mode 100644 index 0000000..f8228ae --- /dev/null +++ b/sdk/go/doppler/integration/memberGroup.go @@ -0,0 +1,283 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler integration group member. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := integration.NewMemberGroup(ctx, "aws_engineering", &integration.MemberGroupArgs{ +// Integration: pulumi.Any(prod.Slug), +// GroupSlug: pulumi.Any(engineering.Slug), +// Role: pulumi.String("consumer"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type MemberGroup struct { + pulumi.CustomResourceState + + // The slug of the Doppler group + GroupSlug pulumi.StringOutput `pulumi:"groupSlug"` + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringOutput `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringOutput `pulumi:"role"` +} + +// NewMemberGroup registers a new resource with the given unique name, arguments, and options. +func NewMemberGroup(ctx *pulumi.Context, + name string, args *MemberGroupArgs, opts ...pulumi.ResourceOption) (*MemberGroup, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.GroupSlug == nil { + return nil, errors.New("invalid value for required argument 'GroupSlug'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Role == nil { + return nil, errors.New("invalid value for required argument 'Role'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource MemberGroup + err := ctx.RegisterResource("doppler:integration/memberGroup:MemberGroup", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetMemberGroup gets an existing MemberGroup resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetMemberGroup(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *MemberGroupState, opts ...pulumi.ResourceOption) (*MemberGroup, error) { + var resource MemberGroup + err := ctx.ReadResource("doppler:integration/memberGroup:MemberGroup", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering MemberGroup resources. +type memberGroupState struct { + // The slug of the Doppler group + GroupSlug *string `pulumi:"groupSlug"` + // The slug of the Doppler integration where the access is applied + Integration *string `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role *string `pulumi:"role"` +} + +type MemberGroupState struct { + // The slug of the Doppler group + GroupSlug pulumi.StringPtrInput + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringPtrInput + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringPtrInput +} + +func (MemberGroupState) ElementType() reflect.Type { + return reflect.TypeOf((*memberGroupState)(nil)).Elem() +} + +type memberGroupArgs struct { + // The slug of the Doppler group + GroupSlug string `pulumi:"groupSlug"` + // The slug of the Doppler integration where the access is applied + Integration string `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role string `pulumi:"role"` +} + +// The set of arguments for constructing a MemberGroup resource. +type MemberGroupArgs struct { + // The slug of the Doppler group + GroupSlug pulumi.StringInput + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringInput + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringInput +} + +func (MemberGroupArgs) ElementType() reflect.Type { + return reflect.TypeOf((*memberGroupArgs)(nil)).Elem() +} + +type MemberGroupInput interface { + pulumi.Input + + ToMemberGroupOutput() MemberGroupOutput + ToMemberGroupOutputWithContext(ctx context.Context) MemberGroupOutput +} + +func (*MemberGroup) ElementType() reflect.Type { + return reflect.TypeOf((**MemberGroup)(nil)).Elem() +} + +func (i *MemberGroup) ToMemberGroupOutput() MemberGroupOutput { + return i.ToMemberGroupOutputWithContext(context.Background()) +} + +func (i *MemberGroup) ToMemberGroupOutputWithContext(ctx context.Context) MemberGroupOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberGroupOutput) +} + +// MemberGroupArrayInput is an input type that accepts MemberGroupArray and MemberGroupArrayOutput values. +// You can construct a concrete instance of `MemberGroupArrayInput` via: +// +// MemberGroupArray{ MemberGroupArgs{...} } +type MemberGroupArrayInput interface { + pulumi.Input + + ToMemberGroupArrayOutput() MemberGroupArrayOutput + ToMemberGroupArrayOutputWithContext(context.Context) MemberGroupArrayOutput +} + +type MemberGroupArray []MemberGroupInput + +func (MemberGroupArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MemberGroup)(nil)).Elem() +} + +func (i MemberGroupArray) ToMemberGroupArrayOutput() MemberGroupArrayOutput { + return i.ToMemberGroupArrayOutputWithContext(context.Background()) +} + +func (i MemberGroupArray) ToMemberGroupArrayOutputWithContext(ctx context.Context) MemberGroupArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberGroupArrayOutput) +} + +// MemberGroupMapInput is an input type that accepts MemberGroupMap and MemberGroupMapOutput values. +// You can construct a concrete instance of `MemberGroupMapInput` via: +// +// MemberGroupMap{ "key": MemberGroupArgs{...} } +type MemberGroupMapInput interface { + pulumi.Input + + ToMemberGroupMapOutput() MemberGroupMapOutput + ToMemberGroupMapOutputWithContext(context.Context) MemberGroupMapOutput +} + +type MemberGroupMap map[string]MemberGroupInput + +func (MemberGroupMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MemberGroup)(nil)).Elem() +} + +func (i MemberGroupMap) ToMemberGroupMapOutput() MemberGroupMapOutput { + return i.ToMemberGroupMapOutputWithContext(context.Background()) +} + +func (i MemberGroupMap) ToMemberGroupMapOutputWithContext(ctx context.Context) MemberGroupMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberGroupMapOutput) +} + +type MemberGroupOutput struct{ *pulumi.OutputState } + +func (MemberGroupOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MemberGroup)(nil)).Elem() +} + +func (o MemberGroupOutput) ToMemberGroupOutput() MemberGroupOutput { + return o +} + +func (o MemberGroupOutput) ToMemberGroupOutputWithContext(ctx context.Context) MemberGroupOutput { + return o +} + +// The slug of the Doppler group +func (o MemberGroupOutput) GroupSlug() pulumi.StringOutput { + return o.ApplyT(func(v *MemberGroup) pulumi.StringOutput { return v.GroupSlug }).(pulumi.StringOutput) +} + +// The slug of the Doppler integration where the access is applied +func (o MemberGroupOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *MemberGroup) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. +func (o MemberGroupOutput) Role() pulumi.StringOutput { + return o.ApplyT(func(v *MemberGroup) pulumi.StringOutput { return v.Role }).(pulumi.StringOutput) +} + +type MemberGroupArrayOutput struct{ *pulumi.OutputState } + +func (MemberGroupArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MemberGroup)(nil)).Elem() +} + +func (o MemberGroupArrayOutput) ToMemberGroupArrayOutput() MemberGroupArrayOutput { + return o +} + +func (o MemberGroupArrayOutput) ToMemberGroupArrayOutputWithContext(ctx context.Context) MemberGroupArrayOutput { + return o +} + +func (o MemberGroupArrayOutput) Index(i pulumi.IntInput) MemberGroupOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MemberGroup { + return vs[0].([]*MemberGroup)[vs[1].(int)] + }).(MemberGroupOutput) +} + +type MemberGroupMapOutput struct{ *pulumi.OutputState } + +func (MemberGroupMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MemberGroup)(nil)).Elem() +} + +func (o MemberGroupMapOutput) ToMemberGroupMapOutput() MemberGroupMapOutput { + return o +} + +func (o MemberGroupMapOutput) ToMemberGroupMapOutputWithContext(ctx context.Context) MemberGroupMapOutput { + return o +} + +func (o MemberGroupMapOutput) MapIndex(k pulumi.StringInput) MemberGroupOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MemberGroup { + return vs[0].(map[string]*MemberGroup)[vs[1].(string)] + }).(MemberGroupOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*MemberGroupInput)(nil)).Elem(), &MemberGroup{}) + pulumi.RegisterInputType(reflect.TypeOf((*MemberGroupArrayInput)(nil)).Elem(), MemberGroupArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*MemberGroupMapInput)(nil)).Elem(), MemberGroupMap{}) + pulumi.RegisterOutputType(MemberGroupOutput{}) + pulumi.RegisterOutputType(MemberGroupArrayOutput{}) + pulumi.RegisterOutputType(MemberGroupMapOutput{}) +} diff --git a/sdk/go/doppler/integration/memberServiceAccount.go b/sdk/go/doppler/integration/memberServiceAccount.go new file mode 100644 index 0000000..8893ba7 --- /dev/null +++ b/sdk/go/doppler/integration/memberServiceAccount.go @@ -0,0 +1,283 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler integration service account member. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := integration.NewMemberServiceAccount(ctx, "aws_ci", &integration.MemberServiceAccountArgs{ +// Integration: pulumi.Any(prod.Slug), +// ServiceAccountSlug: pulumi.Any(ci.Slug), +// Role: pulumi.String("consumer"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type MemberServiceAccount struct { + pulumi.CustomResourceState + + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringOutput `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringOutput `pulumi:"role"` + // The slug of the Doppler service account + ServiceAccountSlug pulumi.StringOutput `pulumi:"serviceAccountSlug"` +} + +// NewMemberServiceAccount registers a new resource with the given unique name, arguments, and options. +func NewMemberServiceAccount(ctx *pulumi.Context, + name string, args *MemberServiceAccountArgs, opts ...pulumi.ResourceOption) (*MemberServiceAccount, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Role == nil { + return nil, errors.New("invalid value for required argument 'Role'") + } + if args.ServiceAccountSlug == nil { + return nil, errors.New("invalid value for required argument 'ServiceAccountSlug'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource MemberServiceAccount + err := ctx.RegisterResource("doppler:integration/memberServiceAccount:MemberServiceAccount", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetMemberServiceAccount gets an existing MemberServiceAccount resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetMemberServiceAccount(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *MemberServiceAccountState, opts ...pulumi.ResourceOption) (*MemberServiceAccount, error) { + var resource MemberServiceAccount + err := ctx.ReadResource("doppler:integration/memberServiceAccount:MemberServiceAccount", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering MemberServiceAccount resources. +type memberServiceAccountState struct { + // The slug of the Doppler integration where the access is applied + Integration *string `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role *string `pulumi:"role"` + // The slug of the Doppler service account + ServiceAccountSlug *string `pulumi:"serviceAccountSlug"` +} + +type MemberServiceAccountState struct { + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringPtrInput + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringPtrInput + // The slug of the Doppler service account + ServiceAccountSlug pulumi.StringPtrInput +} + +func (MemberServiceAccountState) ElementType() reflect.Type { + return reflect.TypeOf((*memberServiceAccountState)(nil)).Elem() +} + +type memberServiceAccountArgs struct { + // The slug of the Doppler integration where the access is applied + Integration string `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role string `pulumi:"role"` + // The slug of the Doppler service account + ServiceAccountSlug string `pulumi:"serviceAccountSlug"` +} + +// The set of arguments for constructing a MemberServiceAccount resource. +type MemberServiceAccountArgs struct { + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringInput + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringInput + // The slug of the Doppler service account + ServiceAccountSlug pulumi.StringInput +} + +func (MemberServiceAccountArgs) ElementType() reflect.Type { + return reflect.TypeOf((*memberServiceAccountArgs)(nil)).Elem() +} + +type MemberServiceAccountInput interface { + pulumi.Input + + ToMemberServiceAccountOutput() MemberServiceAccountOutput + ToMemberServiceAccountOutputWithContext(ctx context.Context) MemberServiceAccountOutput +} + +func (*MemberServiceAccount) ElementType() reflect.Type { + return reflect.TypeOf((**MemberServiceAccount)(nil)).Elem() +} + +func (i *MemberServiceAccount) ToMemberServiceAccountOutput() MemberServiceAccountOutput { + return i.ToMemberServiceAccountOutputWithContext(context.Background()) +} + +func (i *MemberServiceAccount) ToMemberServiceAccountOutputWithContext(ctx context.Context) MemberServiceAccountOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberServiceAccountOutput) +} + +// MemberServiceAccountArrayInput is an input type that accepts MemberServiceAccountArray and MemberServiceAccountArrayOutput values. +// You can construct a concrete instance of `MemberServiceAccountArrayInput` via: +// +// MemberServiceAccountArray{ MemberServiceAccountArgs{...} } +type MemberServiceAccountArrayInput interface { + pulumi.Input + + ToMemberServiceAccountArrayOutput() MemberServiceAccountArrayOutput + ToMemberServiceAccountArrayOutputWithContext(context.Context) MemberServiceAccountArrayOutput +} + +type MemberServiceAccountArray []MemberServiceAccountInput + +func (MemberServiceAccountArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MemberServiceAccount)(nil)).Elem() +} + +func (i MemberServiceAccountArray) ToMemberServiceAccountArrayOutput() MemberServiceAccountArrayOutput { + return i.ToMemberServiceAccountArrayOutputWithContext(context.Background()) +} + +func (i MemberServiceAccountArray) ToMemberServiceAccountArrayOutputWithContext(ctx context.Context) MemberServiceAccountArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberServiceAccountArrayOutput) +} + +// MemberServiceAccountMapInput is an input type that accepts MemberServiceAccountMap and MemberServiceAccountMapOutput values. +// You can construct a concrete instance of `MemberServiceAccountMapInput` via: +// +// MemberServiceAccountMap{ "key": MemberServiceAccountArgs{...} } +type MemberServiceAccountMapInput interface { + pulumi.Input + + ToMemberServiceAccountMapOutput() MemberServiceAccountMapOutput + ToMemberServiceAccountMapOutputWithContext(context.Context) MemberServiceAccountMapOutput +} + +type MemberServiceAccountMap map[string]MemberServiceAccountInput + +func (MemberServiceAccountMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MemberServiceAccount)(nil)).Elem() +} + +func (i MemberServiceAccountMap) ToMemberServiceAccountMapOutput() MemberServiceAccountMapOutput { + return i.ToMemberServiceAccountMapOutputWithContext(context.Background()) +} + +func (i MemberServiceAccountMap) ToMemberServiceAccountMapOutputWithContext(ctx context.Context) MemberServiceAccountMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberServiceAccountMapOutput) +} + +type MemberServiceAccountOutput struct{ *pulumi.OutputState } + +func (MemberServiceAccountOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MemberServiceAccount)(nil)).Elem() +} + +func (o MemberServiceAccountOutput) ToMemberServiceAccountOutput() MemberServiceAccountOutput { + return o +} + +func (o MemberServiceAccountOutput) ToMemberServiceAccountOutputWithContext(ctx context.Context) MemberServiceAccountOutput { + return o +} + +// The slug of the Doppler integration where the access is applied +func (o MemberServiceAccountOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *MemberServiceAccount) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. +func (o MemberServiceAccountOutput) Role() pulumi.StringOutput { + return o.ApplyT(func(v *MemberServiceAccount) pulumi.StringOutput { return v.Role }).(pulumi.StringOutput) +} + +// The slug of the Doppler service account +func (o MemberServiceAccountOutput) ServiceAccountSlug() pulumi.StringOutput { + return o.ApplyT(func(v *MemberServiceAccount) pulumi.StringOutput { return v.ServiceAccountSlug }).(pulumi.StringOutput) +} + +type MemberServiceAccountArrayOutput struct{ *pulumi.OutputState } + +func (MemberServiceAccountArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MemberServiceAccount)(nil)).Elem() +} + +func (o MemberServiceAccountArrayOutput) ToMemberServiceAccountArrayOutput() MemberServiceAccountArrayOutput { + return o +} + +func (o MemberServiceAccountArrayOutput) ToMemberServiceAccountArrayOutputWithContext(ctx context.Context) MemberServiceAccountArrayOutput { + return o +} + +func (o MemberServiceAccountArrayOutput) Index(i pulumi.IntInput) MemberServiceAccountOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MemberServiceAccount { + return vs[0].([]*MemberServiceAccount)[vs[1].(int)] + }).(MemberServiceAccountOutput) +} + +type MemberServiceAccountMapOutput struct{ *pulumi.OutputState } + +func (MemberServiceAccountMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MemberServiceAccount)(nil)).Elem() +} + +func (o MemberServiceAccountMapOutput) ToMemberServiceAccountMapOutput() MemberServiceAccountMapOutput { + return o +} + +func (o MemberServiceAccountMapOutput) ToMemberServiceAccountMapOutputWithContext(ctx context.Context) MemberServiceAccountMapOutput { + return o +} + +func (o MemberServiceAccountMapOutput) MapIndex(k pulumi.StringInput) MemberServiceAccountOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MemberServiceAccount { + return vs[0].(map[string]*MemberServiceAccount)[vs[1].(string)] + }).(MemberServiceAccountOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*MemberServiceAccountInput)(nil)).Elem(), &MemberServiceAccount{}) + pulumi.RegisterInputType(reflect.TypeOf((*MemberServiceAccountArrayInput)(nil)).Elem(), MemberServiceAccountArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*MemberServiceAccountMapInput)(nil)).Elem(), MemberServiceAccountMap{}) + pulumi.RegisterOutputType(MemberServiceAccountOutput{}) + pulumi.RegisterOutputType(MemberServiceAccountArrayOutput{}) + pulumi.RegisterOutputType(MemberServiceAccountMapOutput{}) +} diff --git a/sdk/go/doppler/integration/memberUser.go b/sdk/go/doppler/integration/memberUser.go new file mode 100644 index 0000000..c686bc1 --- /dev/null +++ b/sdk/go/doppler/integration/memberUser.go @@ -0,0 +1,290 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler integration user member. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// brian, err := doppler.GetUser(ctx, &doppler.GetUserArgs{ +// Email: "brian@doppler.com", +// }, nil) +// if err != nil { +// return err +// } +// _, err = integration.NewMemberUser(ctx, "aws_brian", &integration.MemberUserArgs{ +// Integration: pulumi.Any(prod.Slug), +// UserSlug: pulumi.String(brian.Slug), +// Role: pulumi.String("consumer"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type MemberUser struct { + pulumi.CustomResourceState + + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringOutput `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringOutput `pulumi:"role"` + // The slug of the Doppler workplace user + UserSlug pulumi.StringOutput `pulumi:"userSlug"` +} + +// NewMemberUser registers a new resource with the given unique name, arguments, and options. +func NewMemberUser(ctx *pulumi.Context, + name string, args *MemberUserArgs, opts ...pulumi.ResourceOption) (*MemberUser, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Role == nil { + return nil, errors.New("invalid value for required argument 'Role'") + } + if args.UserSlug == nil { + return nil, errors.New("invalid value for required argument 'UserSlug'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource MemberUser + err := ctx.RegisterResource("doppler:integration/memberUser:MemberUser", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetMemberUser gets an existing MemberUser resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetMemberUser(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *MemberUserState, opts ...pulumi.ResourceOption) (*MemberUser, error) { + var resource MemberUser + err := ctx.ReadResource("doppler:integration/memberUser:MemberUser", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering MemberUser resources. +type memberUserState struct { + // The slug of the Doppler integration where the access is applied + Integration *string `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role *string `pulumi:"role"` + // The slug of the Doppler workplace user + UserSlug *string `pulumi:"userSlug"` +} + +type MemberUserState struct { + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringPtrInput + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringPtrInput + // The slug of the Doppler workplace user + UserSlug pulumi.StringPtrInput +} + +func (MemberUserState) ElementType() reflect.Type { + return reflect.TypeOf((*memberUserState)(nil)).Elem() +} + +type memberUserArgs struct { + // The slug of the Doppler integration where the access is applied + Integration string `pulumi:"integration"` + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role string `pulumi:"role"` + // The slug of the Doppler workplace user + UserSlug string `pulumi:"userSlug"` +} + +// The set of arguments for constructing a MemberUser resource. +type MemberUserArgs struct { + // The slug of the Doppler integration where the access is applied + Integration pulumi.StringInput + // The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + Role pulumi.StringInput + // The slug of the Doppler workplace user + UserSlug pulumi.StringInput +} + +func (MemberUserArgs) ElementType() reflect.Type { + return reflect.TypeOf((*memberUserArgs)(nil)).Elem() +} + +type MemberUserInput interface { + pulumi.Input + + ToMemberUserOutput() MemberUserOutput + ToMemberUserOutputWithContext(ctx context.Context) MemberUserOutput +} + +func (*MemberUser) ElementType() reflect.Type { + return reflect.TypeOf((**MemberUser)(nil)).Elem() +} + +func (i *MemberUser) ToMemberUserOutput() MemberUserOutput { + return i.ToMemberUserOutputWithContext(context.Background()) +} + +func (i *MemberUser) ToMemberUserOutputWithContext(ctx context.Context) MemberUserOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberUserOutput) +} + +// MemberUserArrayInput is an input type that accepts MemberUserArray and MemberUserArrayOutput values. +// You can construct a concrete instance of `MemberUserArrayInput` via: +// +// MemberUserArray{ MemberUserArgs{...} } +type MemberUserArrayInput interface { + pulumi.Input + + ToMemberUserArrayOutput() MemberUserArrayOutput + ToMemberUserArrayOutputWithContext(context.Context) MemberUserArrayOutput +} + +type MemberUserArray []MemberUserInput + +func (MemberUserArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MemberUser)(nil)).Elem() +} + +func (i MemberUserArray) ToMemberUserArrayOutput() MemberUserArrayOutput { + return i.ToMemberUserArrayOutputWithContext(context.Background()) +} + +func (i MemberUserArray) ToMemberUserArrayOutputWithContext(ctx context.Context) MemberUserArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberUserArrayOutput) +} + +// MemberUserMapInput is an input type that accepts MemberUserMap and MemberUserMapOutput values. +// You can construct a concrete instance of `MemberUserMapInput` via: +// +// MemberUserMap{ "key": MemberUserArgs{...} } +type MemberUserMapInput interface { + pulumi.Input + + ToMemberUserMapOutput() MemberUserMapOutput + ToMemberUserMapOutputWithContext(context.Context) MemberUserMapOutput +} + +type MemberUserMap map[string]MemberUserInput + +func (MemberUserMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MemberUser)(nil)).Elem() +} + +func (i MemberUserMap) ToMemberUserMapOutput() MemberUserMapOutput { + return i.ToMemberUserMapOutputWithContext(context.Background()) +} + +func (i MemberUserMap) ToMemberUserMapOutputWithContext(ctx context.Context) MemberUserMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(MemberUserMapOutput) +} + +type MemberUserOutput struct{ *pulumi.OutputState } + +func (MemberUserOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MemberUser)(nil)).Elem() +} + +func (o MemberUserOutput) ToMemberUserOutput() MemberUserOutput { + return o +} + +func (o MemberUserOutput) ToMemberUserOutputWithContext(ctx context.Context) MemberUserOutput { + return o +} + +// The slug of the Doppler integration where the access is applied +func (o MemberUserOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *MemberUser) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. +func (o MemberUserOutput) Role() pulumi.StringOutput { + return o.ApplyT(func(v *MemberUser) pulumi.StringOutput { return v.Role }).(pulumi.StringOutput) +} + +// The slug of the Doppler workplace user +func (o MemberUserOutput) UserSlug() pulumi.StringOutput { + return o.ApplyT(func(v *MemberUser) pulumi.StringOutput { return v.UserSlug }).(pulumi.StringOutput) +} + +type MemberUserArrayOutput struct{ *pulumi.OutputState } + +func (MemberUserArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MemberUser)(nil)).Elem() +} + +func (o MemberUserArrayOutput) ToMemberUserArrayOutput() MemberUserArrayOutput { + return o +} + +func (o MemberUserArrayOutput) ToMemberUserArrayOutputWithContext(ctx context.Context) MemberUserArrayOutput { + return o +} + +func (o MemberUserArrayOutput) Index(i pulumi.IntInput) MemberUserOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MemberUser { + return vs[0].([]*MemberUser)[vs[1].(int)] + }).(MemberUserOutput) +} + +type MemberUserMapOutput struct{ *pulumi.OutputState } + +func (MemberUserMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MemberUser)(nil)).Elem() +} + +func (o MemberUserMapOutput) ToMemberUserMapOutput() MemberUserMapOutput { + return o +} + +func (o MemberUserMapOutput) ToMemberUserMapOutputWithContext(ctx context.Context) MemberUserMapOutput { + return o +} + +func (o MemberUserMapOutput) MapIndex(k pulumi.StringInput) MemberUserOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MemberUser { + return vs[0].(map[string]*MemberUser)[vs[1].(string)] + }).(MemberUserOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*MemberUserInput)(nil)).Elem(), &MemberUser{}) + pulumi.RegisterInputType(reflect.TypeOf((*MemberUserArrayInput)(nil)).Elem(), MemberUserArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*MemberUserMapInput)(nil)).Elem(), MemberUserMap{}) + pulumi.RegisterOutputType(MemberUserOutput{}) + pulumi.RegisterOutputType(MemberUserArrayOutput{}) + pulumi.RegisterOutputType(MemberUserMapOutput{}) +} diff --git a/sdk/go/doppler/integration/mongodbAtlas.go b/sdk/go/doppler/integration/mongodbAtlas.go new file mode 100644 index 0000000..38e50bc --- /dev/null +++ b/sdk/go/doppler/integration/mongodbAtlas.go @@ -0,0 +1,324 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a MongoDB Atlas Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// dbPassword1 := "" +// if param := cfg.Get("dbPassword1"); param != "" { +// dbPassword1 = param +// } +// dbPassword2 := "" +// if param := cfg.Get("dbPassword2"); param != "" { +// dbPassword2 = param +// } +// iMongodbAtlas, err := integration.NewMongodbAtlas(ctx, "i_mongodb_atlas", &integration.MongodbAtlasArgs{ +// Name: pulumi.String("TF MongoDB Atlas"), +// PublicKey: pulumi.String("xxxxxxxx"), +// PrivateKey: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewMongodbAtlas(ctx, "rs_mongodb_atlas", &rotatedsecret.MongodbAtlasArgs{ +// Credentials: rotatedsecret.MongodbAtlasCredentialArray{ +// &rotatedsecret.MongodbAtlasCredentialArgs{ +// Username: pulumi.String("xxxxxxxxx"), +// Password: pulumi.String(dbPassword1), +// }, +// &rotatedsecret.MongodbAtlasCredentialArgs{ +// Username: pulumi.String("xxxxxxxxx"), +// Password: pulumi.String(dbPassword2), +// }, +// }, +// Integration: iMongodbAtlas.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("MONGODB"), +// RotationPeriodSec: pulumi.Int(2592000), +// ProjectId: pulumi.String("xxxxxxxxxxxxxxxxx"), +// }, pulumi.IgnoreChanges([]string{ +// "credentials", +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type MongodbAtlas struct { + pulumi.CustomResourceState + + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` + // The Private Key + PrivateKey pulumi.StringOutput `pulumi:"privateKey"` + // The Public Key + PublicKey pulumi.StringOutput `pulumi:"publicKey"` +} + +// NewMongodbAtlas registers a new resource with the given unique name, arguments, and options. +func NewMongodbAtlas(ctx *pulumi.Context, + name string, args *MongodbAtlasArgs, opts ...pulumi.ResourceOption) (*MongodbAtlas, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.PrivateKey == nil { + return nil, errors.New("invalid value for required argument 'PrivateKey'") + } + if args.PublicKey == nil { + return nil, errors.New("invalid value for required argument 'PublicKey'") + } + if args.PrivateKey != nil { + args.PrivateKey = pulumi.ToSecret(args.PrivateKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "privateKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource MongodbAtlas + err := ctx.RegisterResource("doppler:integration/mongodbAtlas:MongodbAtlas", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetMongodbAtlas gets an existing MongodbAtlas resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetMongodbAtlas(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *MongodbAtlasState, opts ...pulumi.ResourceOption) (*MongodbAtlas, error) { + var resource MongodbAtlas + err := ctx.ReadResource("doppler:integration/mongodbAtlas:MongodbAtlas", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering MongodbAtlas resources. +type mongodbAtlasState struct { + // The name of the integration + Name *string `pulumi:"name"` + // The Private Key + PrivateKey *string `pulumi:"privateKey"` + // The Public Key + PublicKey *string `pulumi:"publicKey"` +} + +type MongodbAtlasState struct { + // The name of the integration + Name pulumi.StringPtrInput + // The Private Key + PrivateKey pulumi.StringPtrInput + // The Public Key + PublicKey pulumi.StringPtrInput +} + +func (MongodbAtlasState) ElementType() reflect.Type { + return reflect.TypeOf((*mongodbAtlasState)(nil)).Elem() +} + +type mongodbAtlasArgs struct { + // The name of the integration + Name string `pulumi:"name"` + // The Private Key + PrivateKey string `pulumi:"privateKey"` + // The Public Key + PublicKey string `pulumi:"publicKey"` +} + +// The set of arguments for constructing a MongodbAtlas resource. +type MongodbAtlasArgs struct { + // The name of the integration + Name pulumi.StringInput + // The Private Key + PrivateKey pulumi.StringInput + // The Public Key + PublicKey pulumi.StringInput +} + +func (MongodbAtlasArgs) ElementType() reflect.Type { + return reflect.TypeOf((*mongodbAtlasArgs)(nil)).Elem() +} + +type MongodbAtlasInput interface { + pulumi.Input + + ToMongodbAtlasOutput() MongodbAtlasOutput + ToMongodbAtlasOutputWithContext(ctx context.Context) MongodbAtlasOutput +} + +func (*MongodbAtlas) ElementType() reflect.Type { + return reflect.TypeOf((**MongodbAtlas)(nil)).Elem() +} + +func (i *MongodbAtlas) ToMongodbAtlasOutput() MongodbAtlasOutput { + return i.ToMongodbAtlasOutputWithContext(context.Background()) +} + +func (i *MongodbAtlas) ToMongodbAtlasOutputWithContext(ctx context.Context) MongodbAtlasOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasOutput) +} + +// MongodbAtlasArrayInput is an input type that accepts MongodbAtlasArray and MongodbAtlasArrayOutput values. +// You can construct a concrete instance of `MongodbAtlasArrayInput` via: +// +// MongodbAtlasArray{ MongodbAtlasArgs{...} } +type MongodbAtlasArrayInput interface { + pulumi.Input + + ToMongodbAtlasArrayOutput() MongodbAtlasArrayOutput + ToMongodbAtlasArrayOutputWithContext(context.Context) MongodbAtlasArrayOutput +} + +type MongodbAtlasArray []MongodbAtlasInput + +func (MongodbAtlasArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MongodbAtlas)(nil)).Elem() +} + +func (i MongodbAtlasArray) ToMongodbAtlasArrayOutput() MongodbAtlasArrayOutput { + return i.ToMongodbAtlasArrayOutputWithContext(context.Background()) +} + +func (i MongodbAtlasArray) ToMongodbAtlasArrayOutputWithContext(ctx context.Context) MongodbAtlasArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasArrayOutput) +} + +// MongodbAtlasMapInput is an input type that accepts MongodbAtlasMap and MongodbAtlasMapOutput values. +// You can construct a concrete instance of `MongodbAtlasMapInput` via: +// +// MongodbAtlasMap{ "key": MongodbAtlasArgs{...} } +type MongodbAtlasMapInput interface { + pulumi.Input + + ToMongodbAtlasMapOutput() MongodbAtlasMapOutput + ToMongodbAtlasMapOutputWithContext(context.Context) MongodbAtlasMapOutput +} + +type MongodbAtlasMap map[string]MongodbAtlasInput + +func (MongodbAtlasMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MongodbAtlas)(nil)).Elem() +} + +func (i MongodbAtlasMap) ToMongodbAtlasMapOutput() MongodbAtlasMapOutput { + return i.ToMongodbAtlasMapOutputWithContext(context.Background()) +} + +func (i MongodbAtlasMap) ToMongodbAtlasMapOutputWithContext(ctx context.Context) MongodbAtlasMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasMapOutput) +} + +type MongodbAtlasOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MongodbAtlas)(nil)).Elem() +} + +func (o MongodbAtlasOutput) ToMongodbAtlasOutput() MongodbAtlasOutput { + return o +} + +func (o MongodbAtlasOutput) ToMongodbAtlasOutputWithContext(ctx context.Context) MongodbAtlasOutput { + return o +} + +// The name of the integration +func (o MongodbAtlasOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The Private Key +func (o MongodbAtlasOutput) PrivateKey() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.PrivateKey }).(pulumi.StringOutput) +} + +// The Public Key +func (o MongodbAtlasOutput) PublicKey() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.PublicKey }).(pulumi.StringOutput) +} + +type MongodbAtlasArrayOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MongodbAtlas)(nil)).Elem() +} + +func (o MongodbAtlasArrayOutput) ToMongodbAtlasArrayOutput() MongodbAtlasArrayOutput { + return o +} + +func (o MongodbAtlasArrayOutput) ToMongodbAtlasArrayOutputWithContext(ctx context.Context) MongodbAtlasArrayOutput { + return o +} + +func (o MongodbAtlasArrayOutput) Index(i pulumi.IntInput) MongodbAtlasOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MongodbAtlas { + return vs[0].([]*MongodbAtlas)[vs[1].(int)] + }).(MongodbAtlasOutput) +} + +type MongodbAtlasMapOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MongodbAtlas)(nil)).Elem() +} + +func (o MongodbAtlasMapOutput) ToMongodbAtlasMapOutput() MongodbAtlasMapOutput { + return o +} + +func (o MongodbAtlasMapOutput) ToMongodbAtlasMapOutputWithContext(ctx context.Context) MongodbAtlasMapOutput { + return o +} + +func (o MongodbAtlasMapOutput) MapIndex(k pulumi.StringInput) MongodbAtlasOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MongodbAtlas { + return vs[0].(map[string]*MongodbAtlas)[vs[1].(string)] + }).(MongodbAtlasOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasInput)(nil)).Elem(), &MongodbAtlas{}) + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasArrayInput)(nil)).Elem(), MongodbAtlasArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasMapInput)(nil)).Elem(), MongodbAtlasMap{}) + pulumi.RegisterOutputType(MongodbAtlasOutput{}) + pulumi.RegisterOutputType(MongodbAtlasArrayOutput{}) + pulumi.RegisterOutputType(MongodbAtlasMapOutput{}) +} diff --git a/sdk/go/doppler/integration/openai.go b/sdk/go/doppler/integration/openai.go new file mode 100644 index 0000000..0300fbf --- /dev/null +++ b/sdk/go/doppler/integration/openai.go @@ -0,0 +1,283 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an OpenAI Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// iOpenai, err := integration.NewOpenai(ctx, "i_openai", &integration.OpenaiArgs{ +// Name: pulumi.String("TF OpenAI"), +// AdminKey: pulumi.String("sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewOpenai(ctx, "rs_openai", &rotatedsecret.OpenaiArgs{ +// Integration: iOpenai.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("OPENAI"), +// RotationPeriodSec: pulumi.Int(2592000), +// ProjectId: pulumi.String("proj_xxxxxxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type Openai struct { + pulumi.CustomResourceState + + // The OpenAI admin key + AdminKey pulumi.StringOutput `pulumi:"adminKey"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewOpenai registers a new resource with the given unique name, arguments, and options. +func NewOpenai(ctx *pulumi.Context, + name string, args *OpenaiArgs, opts ...pulumi.ResourceOption) (*Openai, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AdminKey == nil { + return nil, errors.New("invalid value for required argument 'AdminKey'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.AdminKey != nil { + args.AdminKey = pulumi.ToSecret(args.AdminKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "adminKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource Openai + err := ctx.RegisterResource("doppler:integration/openai:Openai", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetOpenai gets an existing Openai resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetOpenai(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *OpenaiState, opts ...pulumi.ResourceOption) (*Openai, error) { + var resource Openai + err := ctx.ReadResource("doppler:integration/openai:Openai", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Openai resources. +type openaiState struct { + // The OpenAI admin key + AdminKey *string `pulumi:"adminKey"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type OpenaiState struct { + // The OpenAI admin key + AdminKey pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (OpenaiState) ElementType() reflect.Type { + return reflect.TypeOf((*openaiState)(nil)).Elem() +} + +type openaiArgs struct { + // The OpenAI admin key + AdminKey string `pulumi:"adminKey"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a Openai resource. +type OpenaiArgs struct { + // The OpenAI admin key + AdminKey pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (OpenaiArgs) ElementType() reflect.Type { + return reflect.TypeOf((*openaiArgs)(nil)).Elem() +} + +type OpenaiInput interface { + pulumi.Input + + ToOpenaiOutput() OpenaiOutput + ToOpenaiOutputWithContext(ctx context.Context) OpenaiOutput +} + +func (*Openai) ElementType() reflect.Type { + return reflect.TypeOf((**Openai)(nil)).Elem() +} + +func (i *Openai) ToOpenaiOutput() OpenaiOutput { + return i.ToOpenaiOutputWithContext(context.Background()) +} + +func (i *Openai) ToOpenaiOutputWithContext(ctx context.Context) OpenaiOutput { + return pulumi.ToOutputWithContext(ctx, i).(OpenaiOutput) +} + +// OpenaiArrayInput is an input type that accepts OpenaiArray and OpenaiArrayOutput values. +// You can construct a concrete instance of `OpenaiArrayInput` via: +// +// OpenaiArray{ OpenaiArgs{...} } +type OpenaiArrayInput interface { + pulumi.Input + + ToOpenaiArrayOutput() OpenaiArrayOutput + ToOpenaiArrayOutputWithContext(context.Context) OpenaiArrayOutput +} + +type OpenaiArray []OpenaiInput + +func (OpenaiArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Openai)(nil)).Elem() +} + +func (i OpenaiArray) ToOpenaiArrayOutput() OpenaiArrayOutput { + return i.ToOpenaiArrayOutputWithContext(context.Background()) +} + +func (i OpenaiArray) ToOpenaiArrayOutputWithContext(ctx context.Context) OpenaiArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(OpenaiArrayOutput) +} + +// OpenaiMapInput is an input type that accepts OpenaiMap and OpenaiMapOutput values. +// You can construct a concrete instance of `OpenaiMapInput` via: +// +// OpenaiMap{ "key": OpenaiArgs{...} } +type OpenaiMapInput interface { + pulumi.Input + + ToOpenaiMapOutput() OpenaiMapOutput + ToOpenaiMapOutputWithContext(context.Context) OpenaiMapOutput +} + +type OpenaiMap map[string]OpenaiInput + +func (OpenaiMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Openai)(nil)).Elem() +} + +func (i OpenaiMap) ToOpenaiMapOutput() OpenaiMapOutput { + return i.ToOpenaiMapOutputWithContext(context.Background()) +} + +func (i OpenaiMap) ToOpenaiMapOutputWithContext(ctx context.Context) OpenaiMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(OpenaiMapOutput) +} + +type OpenaiOutput struct{ *pulumi.OutputState } + +func (OpenaiOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Openai)(nil)).Elem() +} + +func (o OpenaiOutput) ToOpenaiOutput() OpenaiOutput { + return o +} + +func (o OpenaiOutput) ToOpenaiOutputWithContext(ctx context.Context) OpenaiOutput { + return o +} + +// The OpenAI admin key +func (o OpenaiOutput) AdminKey() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.AdminKey }).(pulumi.StringOutput) +} + +// The name of the integration +func (o OpenaiOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type OpenaiArrayOutput struct{ *pulumi.OutputState } + +func (OpenaiArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Openai)(nil)).Elem() +} + +func (o OpenaiArrayOutput) ToOpenaiArrayOutput() OpenaiArrayOutput { + return o +} + +func (o OpenaiArrayOutput) ToOpenaiArrayOutputWithContext(ctx context.Context) OpenaiArrayOutput { + return o +} + +func (o OpenaiArrayOutput) Index(i pulumi.IntInput) OpenaiOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Openai { + return vs[0].([]*Openai)[vs[1].(int)] + }).(OpenaiOutput) +} + +type OpenaiMapOutput struct{ *pulumi.OutputState } + +func (OpenaiMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Openai)(nil)).Elem() +} + +func (o OpenaiMapOutput) ToOpenaiMapOutput() OpenaiMapOutput { + return o +} + +func (o OpenaiMapOutput) ToOpenaiMapOutputWithContext(ctx context.Context) OpenaiMapOutput { + return o +} + +func (o OpenaiMapOutput) MapIndex(k pulumi.StringInput) OpenaiOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Openai { + return vs[0].(map[string]*Openai)[vs[1].(string)] + }).(OpenaiOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*OpenaiInput)(nil)).Elem(), &Openai{}) + pulumi.RegisterInputType(reflect.TypeOf((*OpenaiArrayInput)(nil)).Elem(), OpenaiArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*OpenaiMapInput)(nil)).Elem(), OpenaiMap{}) + pulumi.RegisterOutputType(OpenaiOutput{}) + pulumi.RegisterOutputType(OpenaiArrayOutput{}) + pulumi.RegisterOutputType(OpenaiMapOutput{}) +} diff --git a/sdk/go/doppler/integration/sendgrid.go b/sdk/go/doppler/integration/sendgrid.go new file mode 100644 index 0000000..bbb11fe --- /dev/null +++ b/sdk/go/doppler/integration/sendgrid.go @@ -0,0 +1,286 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a SendGrid Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// iSendgrid, err := integration.NewSendgrid(ctx, "i_sendgrid", &integration.SendgridArgs{ +// Name: pulumi.String("TF SendGrid"), +// ApiKey: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewSendgrid(ctx, "rs_sendgrid", &rotatedsecret.SendgridArgs{ +// Integration: iSendgrid.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("SENDGRID"), +// RotationPeriodSec: pulumi.Int(2592000), +// Scopes: pulumi.StringArray{ +// pulumi.String("alerts.create"), +// pulumi.String("alerts.read"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type Sendgrid struct { + pulumi.CustomResourceState + + // The API Key + ApiKey pulumi.StringOutput `pulumi:"apiKey"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewSendgrid registers a new resource with the given unique name, arguments, and options. +func NewSendgrid(ctx *pulumi.Context, + name string, args *SendgridArgs, opts ...pulumi.ResourceOption) (*Sendgrid, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ApiKey == nil { + return nil, errors.New("invalid value for required argument 'ApiKey'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.ApiKey != nil { + args.ApiKey = pulumi.ToSecret(args.ApiKey).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "apiKey", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource Sendgrid + err := ctx.RegisterResource("doppler:integration/sendgrid:Sendgrid", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetSendgrid gets an existing Sendgrid resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetSendgrid(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SendgridState, opts ...pulumi.ResourceOption) (*Sendgrid, error) { + var resource Sendgrid + err := ctx.ReadResource("doppler:integration/sendgrid:Sendgrid", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Sendgrid resources. +type sendgridState struct { + // The API Key + ApiKey *string `pulumi:"apiKey"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type SendgridState struct { + // The API Key + ApiKey pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (SendgridState) ElementType() reflect.Type { + return reflect.TypeOf((*sendgridState)(nil)).Elem() +} + +type sendgridArgs struct { + // The API Key + ApiKey string `pulumi:"apiKey"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a Sendgrid resource. +type SendgridArgs struct { + // The API Key + ApiKey pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (SendgridArgs) ElementType() reflect.Type { + return reflect.TypeOf((*sendgridArgs)(nil)).Elem() +} + +type SendgridInput interface { + pulumi.Input + + ToSendgridOutput() SendgridOutput + ToSendgridOutputWithContext(ctx context.Context) SendgridOutput +} + +func (*Sendgrid) ElementType() reflect.Type { + return reflect.TypeOf((**Sendgrid)(nil)).Elem() +} + +func (i *Sendgrid) ToSendgridOutput() SendgridOutput { + return i.ToSendgridOutputWithContext(context.Background()) +} + +func (i *Sendgrid) ToSendgridOutputWithContext(ctx context.Context) SendgridOutput { + return pulumi.ToOutputWithContext(ctx, i).(SendgridOutput) +} + +// SendgridArrayInput is an input type that accepts SendgridArray and SendgridArrayOutput values. +// You can construct a concrete instance of `SendgridArrayInput` via: +// +// SendgridArray{ SendgridArgs{...} } +type SendgridArrayInput interface { + pulumi.Input + + ToSendgridArrayOutput() SendgridArrayOutput + ToSendgridArrayOutputWithContext(context.Context) SendgridArrayOutput +} + +type SendgridArray []SendgridInput + +func (SendgridArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Sendgrid)(nil)).Elem() +} + +func (i SendgridArray) ToSendgridArrayOutput() SendgridArrayOutput { + return i.ToSendgridArrayOutputWithContext(context.Background()) +} + +func (i SendgridArray) ToSendgridArrayOutputWithContext(ctx context.Context) SendgridArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SendgridArrayOutput) +} + +// SendgridMapInput is an input type that accepts SendgridMap and SendgridMapOutput values. +// You can construct a concrete instance of `SendgridMapInput` via: +// +// SendgridMap{ "key": SendgridArgs{...} } +type SendgridMapInput interface { + pulumi.Input + + ToSendgridMapOutput() SendgridMapOutput + ToSendgridMapOutputWithContext(context.Context) SendgridMapOutput +} + +type SendgridMap map[string]SendgridInput + +func (SendgridMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Sendgrid)(nil)).Elem() +} + +func (i SendgridMap) ToSendgridMapOutput() SendgridMapOutput { + return i.ToSendgridMapOutputWithContext(context.Background()) +} + +func (i SendgridMap) ToSendgridMapOutputWithContext(ctx context.Context) SendgridMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SendgridMapOutput) +} + +type SendgridOutput struct{ *pulumi.OutputState } + +func (SendgridOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Sendgrid)(nil)).Elem() +} + +func (o SendgridOutput) ToSendgridOutput() SendgridOutput { + return o +} + +func (o SendgridOutput) ToSendgridOutputWithContext(ctx context.Context) SendgridOutput { + return o +} + +// The API Key +func (o SendgridOutput) ApiKey() pulumi.StringOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringOutput { return v.ApiKey }).(pulumi.StringOutput) +} + +// The name of the integration +func (o SendgridOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type SendgridArrayOutput struct{ *pulumi.OutputState } + +func (SendgridArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Sendgrid)(nil)).Elem() +} + +func (o SendgridArrayOutput) ToSendgridArrayOutput() SendgridArrayOutput { + return o +} + +func (o SendgridArrayOutput) ToSendgridArrayOutputWithContext(ctx context.Context) SendgridArrayOutput { + return o +} + +func (o SendgridArrayOutput) Index(i pulumi.IntInput) SendgridOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Sendgrid { + return vs[0].([]*Sendgrid)[vs[1].(int)] + }).(SendgridOutput) +} + +type SendgridMapOutput struct{ *pulumi.OutputState } + +func (SendgridMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Sendgrid)(nil)).Elem() +} + +func (o SendgridMapOutput) ToSendgridMapOutput() SendgridMapOutput { + return o +} + +func (o SendgridMapOutput) ToSendgridMapOutputWithContext(ctx context.Context) SendgridMapOutput { + return o +} + +func (o SendgridMapOutput) MapIndex(k pulumi.StringInput) SendgridOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Sendgrid { + return vs[0].(map[string]*Sendgrid)[vs[1].(string)] + }).(SendgridOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*SendgridInput)(nil)).Elem(), &Sendgrid{}) + pulumi.RegisterInputType(reflect.TypeOf((*SendgridArrayInput)(nil)).Elem(), SendgridArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SendgridMapInput)(nil)).Elem(), SendgridMap{}) + pulumi.RegisterOutputType(SendgridOutput{}) + pulumi.RegisterOutputType(SendgridArrayOutput{}) + pulumi.RegisterOutputType(SendgridMapOutput{}) +} diff --git a/sdk/go/doppler/integration/terraformCloud.go b/sdk/go/doppler/integration/terraformCloud.go index 3db59d7..bfb7d16 100644 --- a/sdk/go/doppler/integration/terraformCloud.go +++ b/sdk/go/doppler/integration/terraformCloud.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package integration @@ -8,14 +8,64 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) +// Manage a Terraform Cloud Doppler integration. +// // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" +// "github.com/pulumi/pulumi-tfe/sdk/go/tfe" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// prod, err := tfe.Workspace(ctx, map[string]string{ +// "name": "my-workspace-name", +// "organization": "my-org-name", +// }, nil) +// if err != nil { +// return err +// } +// prodTerraformCloud, err := integration.NewTerraformCloud(ctx, "prod", &integration.TerraformCloudArgs{ +// Name: pulumi.String("Production"), +// ApiKey: pulumi.String("my_api_key"), +// }) +// if err != nil { +// return err +// } +// _, err = secretssync.NewTerraformCloud(ctx, "backend_prod", &secretssync.TerraformCloudArgs{ +// Integration: prodTerraformCloud.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// SyncTarget: pulumi.String("workspace"), +// WorkspaceId: pulumi.Any(prod.Id), +// VariableSyncType: pulumi.String("terraform"), +// NameTransform: pulumi.String("lowercase"), +// DeleteBehavior: pulumi.String("leave_in_target"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type TerraformCloud struct { pulumi.CustomResourceState + // A Terraform Cloud API key. ApiKey pulumi.StringOutput `pulumi:"apiKey"` // The name of the integration Name pulumi.StringOutput `pulumi:"name"` @@ -64,12 +114,14 @@ func GetTerraformCloud(ctx *pulumi.Context, // Input properties used for looking up and filtering TerraformCloud resources. type terraformCloudState struct { + // A Terraform Cloud API key. ApiKey *string `pulumi:"apiKey"` // The name of the integration Name *string `pulumi:"name"` } type TerraformCloudState struct { + // A Terraform Cloud API key. ApiKey pulumi.StringPtrInput // The name of the integration Name pulumi.StringPtrInput @@ -80,6 +132,7 @@ func (TerraformCloudState) ElementType() reflect.Type { } type terraformCloudArgs struct { + // A Terraform Cloud API key. ApiKey string `pulumi:"apiKey"` // The name of the integration Name string `pulumi:"name"` @@ -87,6 +140,7 @@ type terraformCloudArgs struct { // The set of arguments for constructing a TerraformCloud resource. type TerraformCloudArgs struct { + // A Terraform Cloud API key. ApiKey pulumi.StringInput // The name of the integration Name pulumi.StringInput @@ -179,6 +233,7 @@ func (o TerraformCloudOutput) ToTerraformCloudOutputWithContext(ctx context.Cont return o } +// A Terraform Cloud API key. func (o TerraformCloudOutput) ApiKey() pulumi.StringOutput { return o.ApplyT(func(v *TerraformCloud) pulumi.StringOutput { return v.ApiKey }).(pulumi.StringOutput) } diff --git a/sdk/go/doppler/integration/twilio.go b/sdk/go/doppler/integration/twilio.go new file mode 100644 index 0000000..660c357 --- /dev/null +++ b/sdk/go/doppler/integration/twilio.go @@ -0,0 +1,320 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package integration + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Twilio Doppler integration. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/rotatedsecret" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// iTwilio, err := integration.NewTwilio(ctx, "i_twilio", &integration.TwilioArgs{ +// Name: pulumi.String("TF Twilio"), +// AccountSid: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// KeySid: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// KeySecret: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"), +// }) +// if err != nil { +// return err +// } +// _, err = rotatedsecret.NewTwilio(ctx, "rs_twilio", &rotatedsecret.TwilioArgs{ +// Integration: iTwilio.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("TWILIO"), +// RotationPeriodSec: pulumi.Int(2592000), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type Twilio struct { + pulumi.CustomResourceState + + // The Account SID + AccountSid pulumi.StringOutput `pulumi:"accountSid"` + // The Key Secret + KeySecret pulumi.StringOutput `pulumi:"keySecret"` + // The Key SID (cannot equal accountSID) + KeySid pulumi.StringOutput `pulumi:"keySid"` + // The name of the integration + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewTwilio registers a new resource with the given unique name, arguments, and options. +func NewTwilio(ctx *pulumi.Context, + name string, args *TwilioArgs, opts ...pulumi.ResourceOption) (*Twilio, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AccountSid == nil { + return nil, errors.New("invalid value for required argument 'AccountSid'") + } + if args.KeySecret == nil { + return nil, errors.New("invalid value for required argument 'KeySecret'") + } + if args.KeySid == nil { + return nil, errors.New("invalid value for required argument 'KeySid'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.KeySecret != nil { + args.KeySecret = pulumi.ToSecret(args.KeySecret).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "keySecret", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource Twilio + err := ctx.RegisterResource("doppler:integration/twilio:Twilio", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetTwilio gets an existing Twilio resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetTwilio(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *TwilioState, opts ...pulumi.ResourceOption) (*Twilio, error) { + var resource Twilio + err := ctx.ReadResource("doppler:integration/twilio:Twilio", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Twilio resources. +type twilioState struct { + // The Account SID + AccountSid *string `pulumi:"accountSid"` + // The Key Secret + KeySecret *string `pulumi:"keySecret"` + // The Key SID (cannot equal accountSID) + KeySid *string `pulumi:"keySid"` + // The name of the integration + Name *string `pulumi:"name"` +} + +type TwilioState struct { + // The Account SID + AccountSid pulumi.StringPtrInput + // The Key Secret + KeySecret pulumi.StringPtrInput + // The Key SID (cannot equal accountSID) + KeySid pulumi.StringPtrInput + // The name of the integration + Name pulumi.StringPtrInput +} + +func (TwilioState) ElementType() reflect.Type { + return reflect.TypeOf((*twilioState)(nil)).Elem() +} + +type twilioArgs struct { + // The Account SID + AccountSid string `pulumi:"accountSid"` + // The Key Secret + KeySecret string `pulumi:"keySecret"` + // The Key SID (cannot equal accountSID) + KeySid string `pulumi:"keySid"` + // The name of the integration + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a Twilio resource. +type TwilioArgs struct { + // The Account SID + AccountSid pulumi.StringInput + // The Key Secret + KeySecret pulumi.StringInput + // The Key SID (cannot equal accountSID) + KeySid pulumi.StringInput + // The name of the integration + Name pulumi.StringInput +} + +func (TwilioArgs) ElementType() reflect.Type { + return reflect.TypeOf((*twilioArgs)(nil)).Elem() +} + +type TwilioInput interface { + pulumi.Input + + ToTwilioOutput() TwilioOutput + ToTwilioOutputWithContext(ctx context.Context) TwilioOutput +} + +func (*Twilio) ElementType() reflect.Type { + return reflect.TypeOf((**Twilio)(nil)).Elem() +} + +func (i *Twilio) ToTwilioOutput() TwilioOutput { + return i.ToTwilioOutputWithContext(context.Background()) +} + +func (i *Twilio) ToTwilioOutputWithContext(ctx context.Context) TwilioOutput { + return pulumi.ToOutputWithContext(ctx, i).(TwilioOutput) +} + +// TwilioArrayInput is an input type that accepts TwilioArray and TwilioArrayOutput values. +// You can construct a concrete instance of `TwilioArrayInput` via: +// +// TwilioArray{ TwilioArgs{...} } +type TwilioArrayInput interface { + pulumi.Input + + ToTwilioArrayOutput() TwilioArrayOutput + ToTwilioArrayOutputWithContext(context.Context) TwilioArrayOutput +} + +type TwilioArray []TwilioInput + +func (TwilioArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Twilio)(nil)).Elem() +} + +func (i TwilioArray) ToTwilioArrayOutput() TwilioArrayOutput { + return i.ToTwilioArrayOutputWithContext(context.Background()) +} + +func (i TwilioArray) ToTwilioArrayOutputWithContext(ctx context.Context) TwilioArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(TwilioArrayOutput) +} + +// TwilioMapInput is an input type that accepts TwilioMap and TwilioMapOutput values. +// You can construct a concrete instance of `TwilioMapInput` via: +// +// TwilioMap{ "key": TwilioArgs{...} } +type TwilioMapInput interface { + pulumi.Input + + ToTwilioMapOutput() TwilioMapOutput + ToTwilioMapOutputWithContext(context.Context) TwilioMapOutput +} + +type TwilioMap map[string]TwilioInput + +func (TwilioMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Twilio)(nil)).Elem() +} + +func (i TwilioMap) ToTwilioMapOutput() TwilioMapOutput { + return i.ToTwilioMapOutputWithContext(context.Background()) +} + +func (i TwilioMap) ToTwilioMapOutputWithContext(ctx context.Context) TwilioMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(TwilioMapOutput) +} + +type TwilioOutput struct{ *pulumi.OutputState } + +func (TwilioOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Twilio)(nil)).Elem() +} + +func (o TwilioOutput) ToTwilioOutput() TwilioOutput { + return o +} + +func (o TwilioOutput) ToTwilioOutputWithContext(ctx context.Context) TwilioOutput { + return o +} + +// The Account SID +func (o TwilioOutput) AccountSid() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.AccountSid }).(pulumi.StringOutput) +} + +// The Key Secret +func (o TwilioOutput) KeySecret() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.KeySecret }).(pulumi.StringOutput) +} + +// The Key SID (cannot equal accountSID) +func (o TwilioOutput) KeySid() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.KeySid }).(pulumi.StringOutput) +} + +// The name of the integration +func (o TwilioOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type TwilioArrayOutput struct{ *pulumi.OutputState } + +func (TwilioArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Twilio)(nil)).Elem() +} + +func (o TwilioArrayOutput) ToTwilioArrayOutput() TwilioArrayOutput { + return o +} + +func (o TwilioArrayOutput) ToTwilioArrayOutputWithContext(ctx context.Context) TwilioArrayOutput { + return o +} + +func (o TwilioArrayOutput) Index(i pulumi.IntInput) TwilioOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Twilio { + return vs[0].([]*Twilio)[vs[1].(int)] + }).(TwilioOutput) +} + +type TwilioMapOutput struct{ *pulumi.OutputState } + +func (TwilioMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Twilio)(nil)).Elem() +} + +func (o TwilioMapOutput) ToTwilioMapOutput() TwilioMapOutput { + return o +} + +func (o TwilioMapOutput) ToTwilioMapOutputWithContext(ctx context.Context) TwilioMapOutput { + return o +} + +func (o TwilioMapOutput) MapIndex(k pulumi.StringInput) TwilioOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Twilio { + return vs[0].(map[string]*Twilio)[vs[1].(string)] + }).(TwilioOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*TwilioInput)(nil)).Elem(), &Twilio{}) + pulumi.RegisterInputType(reflect.TypeOf((*TwilioArrayInput)(nil)).Elem(), TwilioArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*TwilioMapInput)(nil)).Elem(), TwilioMap{}) + pulumi.RegisterOutputType(TwilioOutput{}) + pulumi.RegisterOutputType(TwilioArrayOutput{}) + pulumi.RegisterOutputType(TwilioMapOutput{}) +} diff --git a/sdk/go/doppler/internal/pulumiUtilities.go b/sdk/go/doppler/internal/pulumiUtilities.go index 6a05cd1..d945eb8 100644 --- a/sdk/go/doppler/internal/pulumiUtilities.go +++ b/sdk/go/doppler/internal/pulumiUtilities.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package internal @@ -164,8 +164,8 @@ func callPlainInner( // PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource. func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption { defaults := []pulumi.ResourceOption{} - defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse")) - version := SdkVersion + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/DopplerHQ")) + version := semver.MustParse("0.0.0-alpha.0+dev") if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) } @@ -175,8 +175,8 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio // PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke. func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption { defaults := []pulumi.InvokeOption{} - defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse")) - version := SdkVersion + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/DopplerHQ")) + version := semver.MustParse("0.0.0-alpha.0+dev") if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) } diff --git a/sdk/go/doppler/internal/pulumiVersion.go b/sdk/go/doppler/internal/pulumiVersion.go index d591687..4ad7cb8 100644 --- a/sdk/go/doppler/internal/pulumiVersion.go +++ b/sdk/go/doppler/internal/pulumiVersion.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package internal diff --git a/sdk/go/doppler/project.go b/sdk/go/doppler/project.go index 37a3d02..bae363f 100644 --- a/sdk/go/doppler/project.go +++ b/sdk/go/doppler/project.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler project. @@ -21,8 +21,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // diff --git a/sdk/go/doppler/projectRole.go b/sdk/go/doppler/projectRole.go index 916acff..7dd53a0 100644 --- a/sdk/go/doppler/projectRole.go +++ b/sdk/go/doppler/projectRole.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler project_role. @@ -21,8 +21,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // diff --git a/sdk/go/doppler/projectTag.go b/sdk/go/doppler/projectTag.go new file mode 100644 index 0000000..fd24b10 --- /dev/null +++ b/sdk/go/doppler/projectTag.go @@ -0,0 +1,276 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler tag assigned to a project. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// backend, err := doppler.NewTag(ctx, "backend", &doppler.TagArgs{ +// Name: pulumi.String("Backend"), +// }) +// if err != nil { +// return err +// } +// _, err = doppler.NewProjectTag(ctx, "backend", &doppler.ProjectTagArgs{ +// Project: pulumi.String("backend"), +// TagSlug: backend.Slug, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// ```sh +// $ pulumi import doppler:index/projectTag:ProjectTag default . +// ``` +type ProjectTag struct { + pulumi.CustomResourceState + + // The name of the Doppler project the tag is assigned to + Project pulumi.StringOutput `pulumi:"project"` + // The slug of the Doppler tag + TagSlug pulumi.StringOutput `pulumi:"tagSlug"` +} + +// NewProjectTag registers a new resource with the given unique name, arguments, and options. +func NewProjectTag(ctx *pulumi.Context, + name string, args *ProjectTagArgs, opts ...pulumi.ResourceOption) (*ProjectTag, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.TagSlug == nil { + return nil, errors.New("invalid value for required argument 'TagSlug'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource ProjectTag + err := ctx.RegisterResource("doppler:index/projectTag:ProjectTag", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetProjectTag gets an existing ProjectTag resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetProjectTag(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ProjectTagState, opts ...pulumi.ResourceOption) (*ProjectTag, error) { + var resource ProjectTag + err := ctx.ReadResource("doppler:index/projectTag:ProjectTag", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ProjectTag resources. +type projectTagState struct { + // The name of the Doppler project the tag is assigned to + Project *string `pulumi:"project"` + // The slug of the Doppler tag + TagSlug *string `pulumi:"tagSlug"` +} + +type ProjectTagState struct { + // The name of the Doppler project the tag is assigned to + Project pulumi.StringPtrInput + // The slug of the Doppler tag + TagSlug pulumi.StringPtrInput +} + +func (ProjectTagState) ElementType() reflect.Type { + return reflect.TypeOf((*projectTagState)(nil)).Elem() +} + +type projectTagArgs struct { + // The name of the Doppler project the tag is assigned to + Project string `pulumi:"project"` + // The slug of the Doppler tag + TagSlug string `pulumi:"tagSlug"` +} + +// The set of arguments for constructing a ProjectTag resource. +type ProjectTagArgs struct { + // The name of the Doppler project the tag is assigned to + Project pulumi.StringInput + // The slug of the Doppler tag + TagSlug pulumi.StringInput +} + +func (ProjectTagArgs) ElementType() reflect.Type { + return reflect.TypeOf((*projectTagArgs)(nil)).Elem() +} + +type ProjectTagInput interface { + pulumi.Input + + ToProjectTagOutput() ProjectTagOutput + ToProjectTagOutputWithContext(ctx context.Context) ProjectTagOutput +} + +func (*ProjectTag) ElementType() reflect.Type { + return reflect.TypeOf((**ProjectTag)(nil)).Elem() +} + +func (i *ProjectTag) ToProjectTagOutput() ProjectTagOutput { + return i.ToProjectTagOutputWithContext(context.Background()) +} + +func (i *ProjectTag) ToProjectTagOutputWithContext(ctx context.Context) ProjectTagOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProjectTagOutput) +} + +// ProjectTagArrayInput is an input type that accepts ProjectTagArray and ProjectTagArrayOutput values. +// You can construct a concrete instance of `ProjectTagArrayInput` via: +// +// ProjectTagArray{ ProjectTagArgs{...} } +type ProjectTagArrayInput interface { + pulumi.Input + + ToProjectTagArrayOutput() ProjectTagArrayOutput + ToProjectTagArrayOutputWithContext(context.Context) ProjectTagArrayOutput +} + +type ProjectTagArray []ProjectTagInput + +func (ProjectTagArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ProjectTag)(nil)).Elem() +} + +func (i ProjectTagArray) ToProjectTagArrayOutput() ProjectTagArrayOutput { + return i.ToProjectTagArrayOutputWithContext(context.Background()) +} + +func (i ProjectTagArray) ToProjectTagArrayOutputWithContext(ctx context.Context) ProjectTagArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProjectTagArrayOutput) +} + +// ProjectTagMapInput is an input type that accepts ProjectTagMap and ProjectTagMapOutput values. +// You can construct a concrete instance of `ProjectTagMapInput` via: +// +// ProjectTagMap{ "key": ProjectTagArgs{...} } +type ProjectTagMapInput interface { + pulumi.Input + + ToProjectTagMapOutput() ProjectTagMapOutput + ToProjectTagMapOutputWithContext(context.Context) ProjectTagMapOutput +} + +type ProjectTagMap map[string]ProjectTagInput + +func (ProjectTagMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ProjectTag)(nil)).Elem() +} + +func (i ProjectTagMap) ToProjectTagMapOutput() ProjectTagMapOutput { + return i.ToProjectTagMapOutputWithContext(context.Background()) +} + +func (i ProjectTagMap) ToProjectTagMapOutputWithContext(ctx context.Context) ProjectTagMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProjectTagMapOutput) +} + +type ProjectTagOutput struct{ *pulumi.OutputState } + +func (ProjectTagOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ProjectTag)(nil)).Elem() +} + +func (o ProjectTagOutput) ToProjectTagOutput() ProjectTagOutput { + return o +} + +func (o ProjectTagOutput) ToProjectTagOutputWithContext(ctx context.Context) ProjectTagOutput { + return o +} + +// The name of the Doppler project the tag is assigned to +func (o ProjectTagOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *ProjectTag) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The slug of the Doppler tag +func (o ProjectTagOutput) TagSlug() pulumi.StringOutput { + return o.ApplyT(func(v *ProjectTag) pulumi.StringOutput { return v.TagSlug }).(pulumi.StringOutput) +} + +type ProjectTagArrayOutput struct{ *pulumi.OutputState } + +func (ProjectTagArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ProjectTag)(nil)).Elem() +} + +func (o ProjectTagArrayOutput) ToProjectTagArrayOutput() ProjectTagArrayOutput { + return o +} + +func (o ProjectTagArrayOutput) ToProjectTagArrayOutputWithContext(ctx context.Context) ProjectTagArrayOutput { + return o +} + +func (o ProjectTagArrayOutput) Index(i pulumi.IntInput) ProjectTagOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ProjectTag { + return vs[0].([]*ProjectTag)[vs[1].(int)] + }).(ProjectTagOutput) +} + +type ProjectTagMapOutput struct{ *pulumi.OutputState } + +func (ProjectTagMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ProjectTag)(nil)).Elem() +} + +func (o ProjectTagMapOutput) ToProjectTagMapOutput() ProjectTagMapOutput { + return o +} + +func (o ProjectTagMapOutput) ToProjectTagMapOutputWithContext(ctx context.Context) ProjectTagMapOutput { + return o +} + +func (o ProjectTagMapOutput) MapIndex(k pulumi.StringInput) ProjectTagOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ProjectTag { + return vs[0].(map[string]*ProjectTag)[vs[1].(string)] + }).(ProjectTagOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ProjectTagInput)(nil)).Elem(), &ProjectTag{}) + pulumi.RegisterInputType(reflect.TypeOf((*ProjectTagArrayInput)(nil)).Elem(), ProjectTagArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ProjectTagMapInput)(nil)).Elem(), ProjectTagMap{}) + pulumi.RegisterOutputType(ProjectTagOutput{}) + pulumi.RegisterOutputType(ProjectTagArrayOutput{}) + pulumi.RegisterOutputType(ProjectTagMapOutput{}) +} diff --git a/sdk/go/doppler/projectmember/group.go b/sdk/go/doppler/projectmember/group.go index 1f8518a..972f79f 100644 --- a/sdk/go/doppler/projectmember/group.go +++ b/sdk/go/doppler/projectmember/group.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package projectmember @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler project group member. @@ -21,14 +21,14 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/projectMember" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := projectMember.NewGroup(ctx, "backend_engineering", &projectMember.GroupArgs{ +// _, err := projectmember.NewGroup(ctx, "backend_engineering", &projectmember.GroupArgs{ // Project: pulumi.String("backend"), // GroupSlug: pulumi.Any(engineering.Slug), // Role: pulumi.String("collaborator"), @@ -54,7 +54,7 @@ type Group struct { GroupSlug pulumi.StringOutput `pulumi:"groupSlug"` // The name of the Doppler project where the access is applied Project pulumi.StringOutput `pulumi:"project"` - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role pulumi.StringOutput `pulumi:"role"` } @@ -103,7 +103,7 @@ type groupState struct { GroupSlug *string `pulumi:"groupSlug"` // The name of the Doppler project where the access is applied Project *string `pulumi:"project"` - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role *string `pulumi:"role"` } @@ -114,7 +114,7 @@ type GroupState struct { GroupSlug pulumi.StringPtrInput // The name of the Doppler project where the access is applied Project pulumi.StringPtrInput - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role pulumi.StringPtrInput } @@ -129,7 +129,7 @@ type groupArgs struct { GroupSlug string `pulumi:"groupSlug"` // The name of the Doppler project where the access is applied Project string `pulumi:"project"` - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role string `pulumi:"role"` } @@ -141,7 +141,7 @@ type GroupArgs struct { GroupSlug pulumi.StringInput // The name of the Doppler project where the access is applied Project pulumi.StringInput - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role pulumi.StringInput } @@ -247,7 +247,7 @@ func (o GroupOutput) Project() pulumi.StringOutput { return o.ApplyT(func(v *Group) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) } -// The project role identifier for the access +// The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. func (o GroupOutput) Role() pulumi.StringOutput { return o.ApplyT(func(v *Group) pulumi.StringOutput { return v.Role }).(pulumi.StringOutput) } diff --git a/sdk/go/doppler/projectmember/init.go b/sdk/go/doppler/projectmember/init.go index dbef881..dd00c1c 100644 --- a/sdk/go/doppler/projectmember/init.go +++ b/sdk/go/doppler/projectmember/init.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package projectmember @@ -6,9 +6,9 @@ package projectmember import ( "fmt" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/blang/semver" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) type module struct { @@ -25,6 +25,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &Group{} case "doppler:projectMember/serviceAccount:ServiceAccount": r = &ServiceAccount{} + case "doppler:projectMember/user:User": + r = &User{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -48,4 +50,9 @@ func init() { "projectMember/serviceAccount", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "projectMember/user", + &module{version}, + ) } diff --git a/sdk/go/doppler/projectmember/serviceAccount.go b/sdk/go/doppler/projectmember/serviceAccount.go index 63eb6f1..c60106c 100644 --- a/sdk/go/doppler/projectmember/serviceAccount.go +++ b/sdk/go/doppler/projectmember/serviceAccount.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package projectmember @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler project service account member. @@ -21,14 +21,14 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/projectMember" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := projectMember.NewServiceAccount(ctx, "backend_ci", &projectMember.ServiceAccountArgs{ +// _, err := projectmember.NewServiceAccount(ctx, "backend_ci", &projectmember.ServiceAccountArgs{ // Project: pulumi.String("backend"), // ServiceAccountSlug: pulumi.Any(ci.Slug), // Role: pulumi.String("viewer"), @@ -53,7 +53,7 @@ type ServiceAccount struct { Environments pulumi.StringArrayOutput `pulumi:"environments"` // The name of the Doppler project where the access is applied Project pulumi.StringOutput `pulumi:"project"` - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role pulumi.StringOutput `pulumi:"role"` // The slug of the Doppler service account ServiceAccountSlug pulumi.StringOutput `pulumi:"serviceAccountSlug"` @@ -102,7 +102,7 @@ type serviceAccountState struct { Environments []string `pulumi:"environments"` // The name of the Doppler project where the access is applied Project *string `pulumi:"project"` - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role *string `pulumi:"role"` // The slug of the Doppler service account ServiceAccountSlug *string `pulumi:"serviceAccountSlug"` @@ -113,7 +113,7 @@ type ServiceAccountState struct { Environments pulumi.StringArrayInput // The name of the Doppler project where the access is applied Project pulumi.StringPtrInput - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role pulumi.StringPtrInput // The slug of the Doppler service account ServiceAccountSlug pulumi.StringPtrInput @@ -128,7 +128,7 @@ type serviceAccountArgs struct { Environments []string `pulumi:"environments"` // The name of the Doppler project where the access is applied Project string `pulumi:"project"` - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role string `pulumi:"role"` // The slug of the Doppler service account ServiceAccountSlug string `pulumi:"serviceAccountSlug"` @@ -140,7 +140,7 @@ type ServiceAccountArgs struct { Environments pulumi.StringArrayInput // The name of the Doppler project where the access is applied Project pulumi.StringInput - // The project role identifier for the access + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. Role pulumi.StringInput // The slug of the Doppler service account ServiceAccountSlug pulumi.StringInput @@ -243,7 +243,7 @@ func (o ServiceAccountOutput) Project() pulumi.StringOutput { return o.ApplyT(func(v *ServiceAccount) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) } -// The project role identifier for the access +// The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. func (o ServiceAccountOutput) Role() pulumi.StringOutput { return o.ApplyT(func(v *ServiceAccount) pulumi.StringOutput { return v.Role }).(pulumi.StringOutput) } diff --git a/sdk/go/doppler/projectmember/user.go b/sdk/go/doppler/projectmember/user.go new file mode 100644 index 0000000..4fcb3e3 --- /dev/null +++ b/sdk/go/doppler/projectmember/user.go @@ -0,0 +1,309 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package projectmember + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler project user member. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/projectmember" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// brian, err := doppler.GetUser(ctx, &doppler.GetUserArgs{ +// Email: "brian@doppler.com", +// }, nil) +// if err != nil { +// return err +// } +// _, err = projectmember.NewUser(ctx, "backend_brian", &projectmember.UserArgs{ +// Project: pulumi.String("backend"), +// UserSlug: pulumi.String(brian.Slug), +// Role: pulumi.String("collaborator"), +// Environments: pulumi.StringArray{ +// pulumi.String("dev"), +// pulumi.String("stg"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type User struct { + pulumi.CustomResourceState + + // The environments in the project where this access will apply (null or omitted for roles with access to all environments) + Environments pulumi.StringArrayOutput `pulumi:"environments"` + // The name of the Doppler project where the access is applied + Project pulumi.StringOutput `pulumi:"project"` + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + Role pulumi.StringOutput `pulumi:"role"` + // The slug of the Doppler workplace user + UserSlug pulumi.StringOutput `pulumi:"userSlug"` +} + +// NewUser registers a new resource with the given unique name, arguments, and options. +func NewUser(ctx *pulumi.Context, + name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.Role == nil { + return nil, errors.New("invalid value for required argument 'Role'") + } + if args.UserSlug == nil { + return nil, errors.New("invalid value for required argument 'UserSlug'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource User + err := ctx.RegisterResource("doppler:projectMember/user:User", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetUser gets an existing User resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetUser(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error) { + var resource User + err := ctx.ReadResource("doppler:projectMember/user:User", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering User resources. +type userState struct { + // The environments in the project where this access will apply (null or omitted for roles with access to all environments) + Environments []string `pulumi:"environments"` + // The name of the Doppler project where the access is applied + Project *string `pulumi:"project"` + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + Role *string `pulumi:"role"` + // The slug of the Doppler workplace user + UserSlug *string `pulumi:"userSlug"` +} + +type UserState struct { + // The environments in the project where this access will apply (null or omitted for roles with access to all environments) + Environments pulumi.StringArrayInput + // The name of the Doppler project where the access is applied + Project pulumi.StringPtrInput + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + Role pulumi.StringPtrInput + // The slug of the Doppler workplace user + UserSlug pulumi.StringPtrInput +} + +func (UserState) ElementType() reflect.Type { + return reflect.TypeOf((*userState)(nil)).Elem() +} + +type userArgs struct { + // The environments in the project where this access will apply (null or omitted for roles with access to all environments) + Environments []string `pulumi:"environments"` + // The name of the Doppler project where the access is applied + Project string `pulumi:"project"` + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + Role string `pulumi:"role"` + // The slug of the Doppler workplace user + UserSlug string `pulumi:"userSlug"` +} + +// The set of arguments for constructing a User resource. +type UserArgs struct { + // The environments in the project where this access will apply (null or omitted for roles with access to all environments) + Environments pulumi.StringArrayInput + // The name of the Doppler project where the access is applied + Project pulumi.StringInput + // The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + Role pulumi.StringInput + // The slug of the Doppler workplace user + UserSlug pulumi.StringInput +} + +func (UserArgs) ElementType() reflect.Type { + return reflect.TypeOf((*userArgs)(nil)).Elem() +} + +type UserInput interface { + pulumi.Input + + ToUserOutput() UserOutput + ToUserOutputWithContext(ctx context.Context) UserOutput +} + +func (*User) ElementType() reflect.Type { + return reflect.TypeOf((**User)(nil)).Elem() +} + +func (i *User) ToUserOutput() UserOutput { + return i.ToUserOutputWithContext(context.Background()) +} + +func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput { + return pulumi.ToOutputWithContext(ctx, i).(UserOutput) +} + +// UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. +// You can construct a concrete instance of `UserArrayInput` via: +// +// UserArray{ UserArgs{...} } +type UserArrayInput interface { + pulumi.Input + + ToUserArrayOutput() UserArrayOutput + ToUserArrayOutputWithContext(context.Context) UserArrayOutput +} + +type UserArray []UserInput + +func (UserArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*User)(nil)).Elem() +} + +func (i UserArray) ToUserArrayOutput() UserArrayOutput { + return i.ToUserArrayOutputWithContext(context.Background()) +} + +func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(UserArrayOutput) +} + +// UserMapInput is an input type that accepts UserMap and UserMapOutput values. +// You can construct a concrete instance of `UserMapInput` via: +// +// UserMap{ "key": UserArgs{...} } +type UserMapInput interface { + pulumi.Input + + ToUserMapOutput() UserMapOutput + ToUserMapOutputWithContext(context.Context) UserMapOutput +} + +type UserMap map[string]UserInput + +func (UserMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*User)(nil)).Elem() +} + +func (i UserMap) ToUserMapOutput() UserMapOutput { + return i.ToUserMapOutputWithContext(context.Background()) +} + +func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(UserMapOutput) +} + +type UserOutput struct{ *pulumi.OutputState } + +func (UserOutput) ElementType() reflect.Type { + return reflect.TypeOf((**User)(nil)).Elem() +} + +func (o UserOutput) ToUserOutput() UserOutput { + return o +} + +func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput { + return o +} + +// The environments in the project where this access will apply (null or omitted for roles with access to all environments) +func (o UserOutput) Environments() pulumi.StringArrayOutput { + return o.ApplyT(func(v *User) pulumi.StringArrayOutput { return v.Environments }).(pulumi.StringArrayOutput) +} + +// The name of the Doppler project where the access is applied +func (o UserOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *User) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. +func (o UserOutput) Role() pulumi.StringOutput { + return o.ApplyT(func(v *User) pulumi.StringOutput { return v.Role }).(pulumi.StringOutput) +} + +// The slug of the Doppler workplace user +func (o UserOutput) UserSlug() pulumi.StringOutput { + return o.ApplyT(func(v *User) pulumi.StringOutput { return v.UserSlug }).(pulumi.StringOutput) +} + +type UserArrayOutput struct{ *pulumi.OutputState } + +func (UserArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*User)(nil)).Elem() +} + +func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput { + return o +} + +func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput { + return o +} + +func (o UserArrayOutput) Index(i pulumi.IntInput) UserOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *User { + return vs[0].([]*User)[vs[1].(int)] + }).(UserOutput) +} + +type UserMapOutput struct{ *pulumi.OutputState } + +func (UserMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*User)(nil)).Elem() +} + +func (o UserMapOutput) ToUserMapOutput() UserMapOutput { + return o +} + +func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput { + return o +} + +func (o UserMapOutput) MapIndex(k pulumi.StringInput) UserOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *User { + return vs[0].(map[string]*User)[vs[1].(string)] + }).(UserOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*UserInput)(nil)).Elem(), &User{}) + pulumi.RegisterInputType(reflect.TypeOf((*UserArrayInput)(nil)).Elem(), UserArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*UserMapInput)(nil)).Elem(), UserMap{}) + pulumi.RegisterOutputType(UserOutput{}) + pulumi.RegisterOutputType(UserArrayOutput{}) + pulumi.RegisterOutputType(UserMapOutput{}) +} diff --git a/sdk/go/doppler/provider.go b/sdk/go/doppler/provider.go index 377dabf..6bfe653 100644 --- a/sdk/go/doppler/provider.go +++ b/sdk/go/doppler/provider.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -7,9 +7,8 @@ import ( "context" "reflect" - "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // The provider type for the doppler package. By default, resources use package-wide configuration @@ -19,22 +18,36 @@ import ( type Provider struct { pulumi.ProviderResourceState - // A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - DopplerToken pulumi.StringOutput `pulumi:"dopplerToken"` + // A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. + DopplerToken pulumi.StringPtrOutput `pulumi:"dopplerToken"` // The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. Host pulumi.StringPtrOutput `pulumi:"host"` + // The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + OidcIdentity pulumi.StringPtrOutput `pulumi:"oidcIdentity"` + // A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + OidcToken pulumi.StringPtrOutput `pulumi:"oidcToken"` + // A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + OidcTokenFile pulumi.StringPtrOutput `pulumi:"oidcTokenFile"` } // NewProvider registers a new resource with the given unique name, arguments, and options. func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error) { if args == nil { - return nil, errors.New("missing one or more required arguments") + args = &ProviderArgs{} } - if args.DopplerToken == nil { - return nil, errors.New("invalid value for required argument 'DopplerToken'") + if args.DopplerToken != nil { + args.DopplerToken = pulumi.ToSecret(args.DopplerToken).(pulumi.StringPtrInput) } + if args.OidcToken != nil { + args.OidcToken = pulumi.ToSecret(args.OidcToken).(pulumi.StringPtrInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "dopplerToken", + "oidcToken", + }) + opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) var resource Provider err := ctx.RegisterResource("pulumi:providers:doppler", name, args, &resource, opts...) @@ -45,20 +58,32 @@ func NewProvider(ctx *pulumi.Context, } type providerArgs struct { - // A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - DopplerToken string `pulumi:"dopplerToken"` + // A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. + DopplerToken *string `pulumi:"dopplerToken"` // The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. Host *string `pulumi:"host"` + // The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + OidcIdentity *string `pulumi:"oidcIdentity"` + // A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + OidcToken *string `pulumi:"oidcToken"` + // A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + OidcTokenFile *string `pulumi:"oidcTokenFile"` // Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. VerifyTls *bool `pulumi:"verifyTls"` } // The set of arguments for constructing a Provider resource. type ProviderArgs struct { - // A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - DopplerToken pulumi.StringInput + // A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. + DopplerToken pulumi.StringPtrInput // The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. Host pulumi.StringPtrInput + // The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + OidcIdentity pulumi.StringPtrInput + // A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + OidcToken pulumi.StringPtrInput + // A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + OidcTokenFile pulumi.StringPtrInput // Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. VerifyTls pulumi.BoolPtrInput } @@ -67,6 +92,29 @@ func (ProviderArgs) ElementType() reflect.Type { return reflect.TypeOf((*providerArgs)(nil)).Elem() } +// This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider. +func (r *Provider) TerraformConfig(ctx *pulumi.Context) (ProviderTerraformConfigResultOutput, error) { + out, err := ctx.Call("pulumi:providers:doppler/terraformConfig", nil, ProviderTerraformConfigResultOutput{}, r) + if err != nil { + return ProviderTerraformConfigResultOutput{}, err + } + return out.(ProviderTerraformConfigResultOutput), nil +} + +type ProviderTerraformConfigResult struct { + Result map[string]interface{} `pulumi:"result"` +} + +type ProviderTerraformConfigResultOutput struct{ *pulumi.OutputState } + +func (ProviderTerraformConfigResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ProviderTerraformConfigResult)(nil)).Elem() +} + +func (o ProviderTerraformConfigResultOutput) Result() pulumi.MapOutput { + return o.ApplyT(func(v ProviderTerraformConfigResult) map[string]interface{} { return v.Result }).(pulumi.MapOutput) +} + type ProviderInput interface { pulumi.Input @@ -100,9 +148,9 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide return o } -// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. -func (o ProviderOutput) DopplerToken() pulumi.StringOutput { - return o.ApplyT(func(v *Provider) pulumi.StringOutput { return v.DopplerToken }).(pulumi.StringOutput) +// A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. +func (o ProviderOutput) DopplerToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.DopplerToken }).(pulumi.StringPtrOutput) } // The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. @@ -110,7 +158,23 @@ func (o ProviderOutput) Host() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Host }).(pulumi.StringPtrOutput) } +// The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. +func (o ProviderOutput) OidcIdentity() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.OidcIdentity }).(pulumi.StringPtrOutput) +} + +// A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. +func (o ProviderOutput) OidcToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.OidcToken }).(pulumi.StringPtrOutput) +} + +// A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. +func (o ProviderOutput) OidcTokenFile() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.OidcTokenFile }).(pulumi.StringPtrOutput) +} + func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{}) pulumi.RegisterOutputType(ProviderOutput{}) + pulumi.RegisterOutputType(ProviderTerraformConfigResultOutput{}) } diff --git a/sdk/go/doppler/pulumi-plugin.json b/sdk/go/doppler/pulumi-plugin.json index eda4744..5b514fc 100644 --- a/sdk/go/doppler/pulumi-plugin.json +++ b/sdk/go/doppler/pulumi-plugin.json @@ -1,5 +1,6 @@ { "resource": true, "name": "doppler", - "server": "github://api.github.com/pulumiverse" + "version": "0.0.0-alpha.0+dev", + "server": "github://api.github.com/DopplerHQ" } diff --git a/sdk/go/doppler/pulumiTypes.go b/sdk/go/doppler/pulumiTypes.go index cf12b75..36b7e4c 100644 --- a/sdk/go/doppler/pulumiTypes.go +++ b/sdk/go/doppler/pulumiTypes.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -7,12 +7,865 @@ import ( "context" "reflect" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) var _ = internal.GetEnvOrDefault +type ChangeRequestPolicyRules struct { + // If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + AutoAssignReviewers *string `pulumi:"autoAssignReviewers"` + // If true, approvals from the author of a change request will be excluded when evaluating this policy + DisallowSelfReview *bool `pulumi:"disallowSelfReview"` + // Enforces that a specific number of users approve a change request before it can be applied + RequiredReviewers []ChangeRequestPolicyRulesRequiredReviewer `pulumi:"requiredReviewers"` +} + +// ChangeRequestPolicyRulesInput is an input type that accepts ChangeRequestPolicyRulesArgs and ChangeRequestPolicyRulesOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyRulesInput` via: +// +// ChangeRequestPolicyRulesArgs{...} +type ChangeRequestPolicyRulesInput interface { + pulumi.Input + + ToChangeRequestPolicyRulesOutput() ChangeRequestPolicyRulesOutput + ToChangeRequestPolicyRulesOutputWithContext(context.Context) ChangeRequestPolicyRulesOutput +} + +type ChangeRequestPolicyRulesArgs struct { + // If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + AutoAssignReviewers pulumi.StringPtrInput `pulumi:"autoAssignReviewers"` + // If true, approvals from the author of a change request will be excluded when evaluating this policy + DisallowSelfReview pulumi.BoolPtrInput `pulumi:"disallowSelfReview"` + // Enforces that a specific number of users approve a change request before it can be applied + RequiredReviewers ChangeRequestPolicyRulesRequiredReviewerArrayInput `pulumi:"requiredReviewers"` +} + +func (ChangeRequestPolicyRulesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyRules)(nil)).Elem() +} + +func (i ChangeRequestPolicyRulesArgs) ToChangeRequestPolicyRulesOutput() ChangeRequestPolicyRulesOutput { + return i.ToChangeRequestPolicyRulesOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyRulesArgs) ToChangeRequestPolicyRulesOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyRulesOutput) +} + +func (i ChangeRequestPolicyRulesArgs) ToChangeRequestPolicyRulesPtrOutput() ChangeRequestPolicyRulesPtrOutput { + return i.ToChangeRequestPolicyRulesPtrOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyRulesArgs) ToChangeRequestPolicyRulesPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyRulesOutput).ToChangeRequestPolicyRulesPtrOutputWithContext(ctx) +} + +// ChangeRequestPolicyRulesPtrInput is an input type that accepts ChangeRequestPolicyRulesArgs, ChangeRequestPolicyRulesPtr and ChangeRequestPolicyRulesPtrOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyRulesPtrInput` via: +// +// ChangeRequestPolicyRulesArgs{...} +// +// or: +// +// nil +type ChangeRequestPolicyRulesPtrInput interface { + pulumi.Input + + ToChangeRequestPolicyRulesPtrOutput() ChangeRequestPolicyRulesPtrOutput + ToChangeRequestPolicyRulesPtrOutputWithContext(context.Context) ChangeRequestPolicyRulesPtrOutput +} + +type changeRequestPolicyRulesPtrType ChangeRequestPolicyRulesArgs + +func ChangeRequestPolicyRulesPtr(v *ChangeRequestPolicyRulesArgs) ChangeRequestPolicyRulesPtrInput { + return (*changeRequestPolicyRulesPtrType)(v) +} + +func (*changeRequestPolicyRulesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ChangeRequestPolicyRules)(nil)).Elem() +} + +func (i *changeRequestPolicyRulesPtrType) ToChangeRequestPolicyRulesPtrOutput() ChangeRequestPolicyRulesPtrOutput { + return i.ToChangeRequestPolicyRulesPtrOutputWithContext(context.Background()) +} + +func (i *changeRequestPolicyRulesPtrType) ToChangeRequestPolicyRulesPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyRulesPtrOutput) +} + +type ChangeRequestPolicyRulesOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyRulesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyRules)(nil)).Elem() +} + +func (o ChangeRequestPolicyRulesOutput) ToChangeRequestPolicyRulesOutput() ChangeRequestPolicyRulesOutput { + return o +} + +func (o ChangeRequestPolicyRulesOutput) ToChangeRequestPolicyRulesOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesOutput { + return o +} + +func (o ChangeRequestPolicyRulesOutput) ToChangeRequestPolicyRulesPtrOutput() ChangeRequestPolicyRulesPtrOutput { + return o.ToChangeRequestPolicyRulesPtrOutputWithContext(context.Background()) +} + +func (o ChangeRequestPolicyRulesOutput) ToChangeRequestPolicyRulesPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ChangeRequestPolicyRules) *ChangeRequestPolicyRules { + return &v + }).(ChangeRequestPolicyRulesPtrOutput) +} + +// If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) +func (o ChangeRequestPolicyRulesOutput) AutoAssignReviewers() pulumi.StringPtrOutput { + return o.ApplyT(func(v ChangeRequestPolicyRules) *string { return v.AutoAssignReviewers }).(pulumi.StringPtrOutput) +} + +// If true, approvals from the author of a change request will be excluded when evaluating this policy +func (o ChangeRequestPolicyRulesOutput) DisallowSelfReview() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ChangeRequestPolicyRules) *bool { return v.DisallowSelfReview }).(pulumi.BoolPtrOutput) +} + +// Enforces that a specific number of users approve a change request before it can be applied +func (o ChangeRequestPolicyRulesOutput) RequiredReviewers() ChangeRequestPolicyRulesRequiredReviewerArrayOutput { + return o.ApplyT(func(v ChangeRequestPolicyRules) []ChangeRequestPolicyRulesRequiredReviewer { + return v.RequiredReviewers + }).(ChangeRequestPolicyRulesRequiredReviewerArrayOutput) +} + +type ChangeRequestPolicyRulesPtrOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyRulesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ChangeRequestPolicyRules)(nil)).Elem() +} + +func (o ChangeRequestPolicyRulesPtrOutput) ToChangeRequestPolicyRulesPtrOutput() ChangeRequestPolicyRulesPtrOutput { + return o +} + +func (o ChangeRequestPolicyRulesPtrOutput) ToChangeRequestPolicyRulesPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesPtrOutput { + return o +} + +func (o ChangeRequestPolicyRulesPtrOutput) Elem() ChangeRequestPolicyRulesOutput { + return o.ApplyT(func(v *ChangeRequestPolicyRules) ChangeRequestPolicyRules { + if v != nil { + return *v + } + var ret ChangeRequestPolicyRules + return ret + }).(ChangeRequestPolicyRulesOutput) +} + +// If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) +func (o ChangeRequestPolicyRulesPtrOutput) AutoAssignReviewers() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ChangeRequestPolicyRules) *string { + if v == nil { + return nil + } + return v.AutoAssignReviewers + }).(pulumi.StringPtrOutput) +} + +// If true, approvals from the author of a change request will be excluded when evaluating this policy +func (o ChangeRequestPolicyRulesPtrOutput) DisallowSelfReview() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ChangeRequestPolicyRules) *bool { + if v == nil { + return nil + } + return v.DisallowSelfReview + }).(pulumi.BoolPtrOutput) +} + +// Enforces that a specific number of users approve a change request before it can be applied +func (o ChangeRequestPolicyRulesPtrOutput) RequiredReviewers() ChangeRequestPolicyRulesRequiredReviewerArrayOutput { + return o.ApplyT(func(v *ChangeRequestPolicyRules) []ChangeRequestPolicyRulesRequiredReviewer { + if v == nil { + return nil + } + return v.RequiredReviewers + }).(ChangeRequestPolicyRulesRequiredReviewerArrayOutput) +} + +type ChangeRequestPolicyRulesRequiredReviewer struct { + // The number of approvals a change request must receive before it can be applied + Count int `pulumi:"count"` + // If set, only approvals from members of these groups will satisfy this rule + GroupSlugs []string `pulumi:"groupSlugs"` + // If set, only approvals from these users will satisfy this rule + UserSlugs []string `pulumi:"userSlugs"` +} + +// ChangeRequestPolicyRulesRequiredReviewerInput is an input type that accepts ChangeRequestPolicyRulesRequiredReviewerArgs and ChangeRequestPolicyRulesRequiredReviewerOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyRulesRequiredReviewerInput` via: +// +// ChangeRequestPolicyRulesRequiredReviewerArgs{...} +type ChangeRequestPolicyRulesRequiredReviewerInput interface { + pulumi.Input + + ToChangeRequestPolicyRulesRequiredReviewerOutput() ChangeRequestPolicyRulesRequiredReviewerOutput + ToChangeRequestPolicyRulesRequiredReviewerOutputWithContext(context.Context) ChangeRequestPolicyRulesRequiredReviewerOutput +} + +type ChangeRequestPolicyRulesRequiredReviewerArgs struct { + // The number of approvals a change request must receive before it can be applied + Count pulumi.IntInput `pulumi:"count"` + // If set, only approvals from members of these groups will satisfy this rule + GroupSlugs pulumi.StringArrayInput `pulumi:"groupSlugs"` + // If set, only approvals from these users will satisfy this rule + UserSlugs pulumi.StringArrayInput `pulumi:"userSlugs"` +} + +func (ChangeRequestPolicyRulesRequiredReviewerArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyRulesRequiredReviewer)(nil)).Elem() +} + +func (i ChangeRequestPolicyRulesRequiredReviewerArgs) ToChangeRequestPolicyRulesRequiredReviewerOutput() ChangeRequestPolicyRulesRequiredReviewerOutput { + return i.ToChangeRequestPolicyRulesRequiredReviewerOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyRulesRequiredReviewerArgs) ToChangeRequestPolicyRulesRequiredReviewerOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesRequiredReviewerOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyRulesRequiredReviewerOutput) +} + +// ChangeRequestPolicyRulesRequiredReviewerArrayInput is an input type that accepts ChangeRequestPolicyRulesRequiredReviewerArray and ChangeRequestPolicyRulesRequiredReviewerArrayOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyRulesRequiredReviewerArrayInput` via: +// +// ChangeRequestPolicyRulesRequiredReviewerArray{ ChangeRequestPolicyRulesRequiredReviewerArgs{...} } +type ChangeRequestPolicyRulesRequiredReviewerArrayInput interface { + pulumi.Input + + ToChangeRequestPolicyRulesRequiredReviewerArrayOutput() ChangeRequestPolicyRulesRequiredReviewerArrayOutput + ToChangeRequestPolicyRulesRequiredReviewerArrayOutputWithContext(context.Context) ChangeRequestPolicyRulesRequiredReviewerArrayOutput +} + +type ChangeRequestPolicyRulesRequiredReviewerArray []ChangeRequestPolicyRulesRequiredReviewerInput + +func (ChangeRequestPolicyRulesRequiredReviewerArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ChangeRequestPolicyRulesRequiredReviewer)(nil)).Elem() +} + +func (i ChangeRequestPolicyRulesRequiredReviewerArray) ToChangeRequestPolicyRulesRequiredReviewerArrayOutput() ChangeRequestPolicyRulesRequiredReviewerArrayOutput { + return i.ToChangeRequestPolicyRulesRequiredReviewerArrayOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyRulesRequiredReviewerArray) ToChangeRequestPolicyRulesRequiredReviewerArrayOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesRequiredReviewerArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyRulesRequiredReviewerArrayOutput) +} + +type ChangeRequestPolicyRulesRequiredReviewerOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyRulesRequiredReviewerOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyRulesRequiredReviewer)(nil)).Elem() +} + +func (o ChangeRequestPolicyRulesRequiredReviewerOutput) ToChangeRequestPolicyRulesRequiredReviewerOutput() ChangeRequestPolicyRulesRequiredReviewerOutput { + return o +} + +func (o ChangeRequestPolicyRulesRequiredReviewerOutput) ToChangeRequestPolicyRulesRequiredReviewerOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesRequiredReviewerOutput { + return o +} + +// The number of approvals a change request must receive before it can be applied +func (o ChangeRequestPolicyRulesRequiredReviewerOutput) Count() pulumi.IntOutput { + return o.ApplyT(func(v ChangeRequestPolicyRulesRequiredReviewer) int { return v.Count }).(pulumi.IntOutput) +} + +// If set, only approvals from members of these groups will satisfy this rule +func (o ChangeRequestPolicyRulesRequiredReviewerOutput) GroupSlugs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ChangeRequestPolicyRulesRequiredReviewer) []string { return v.GroupSlugs }).(pulumi.StringArrayOutput) +} + +// If set, only approvals from these users will satisfy this rule +func (o ChangeRequestPolicyRulesRequiredReviewerOutput) UserSlugs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ChangeRequestPolicyRulesRequiredReviewer) []string { return v.UserSlugs }).(pulumi.StringArrayOutput) +} + +type ChangeRequestPolicyRulesRequiredReviewerArrayOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyRulesRequiredReviewerArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ChangeRequestPolicyRulesRequiredReviewer)(nil)).Elem() +} + +func (o ChangeRequestPolicyRulesRequiredReviewerArrayOutput) ToChangeRequestPolicyRulesRequiredReviewerArrayOutput() ChangeRequestPolicyRulesRequiredReviewerArrayOutput { + return o +} + +func (o ChangeRequestPolicyRulesRequiredReviewerArrayOutput) ToChangeRequestPolicyRulesRequiredReviewerArrayOutputWithContext(ctx context.Context) ChangeRequestPolicyRulesRequiredReviewerArrayOutput { + return o +} + +func (o ChangeRequestPolicyRulesRequiredReviewerArrayOutput) Index(i pulumi.IntInput) ChangeRequestPolicyRulesRequiredReviewerOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ChangeRequestPolicyRulesRequiredReviewer { + return vs[0].([]ChangeRequestPolicyRulesRequiredReviewer)[vs[1].(int)] + }).(ChangeRequestPolicyRulesRequiredReviewerOutput) +} + +type ChangeRequestPolicyTargets struct { + // Whether or not the policy applies to all projects in the workplace + AllProjects *bool `pulumi:"allProjects"` + // A project that the policy will apply to + Projects []ChangeRequestPolicyTargetsProject `pulumi:"projects"` +} + +// ChangeRequestPolicyTargetsInput is an input type that accepts ChangeRequestPolicyTargetsArgs and ChangeRequestPolicyTargetsOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyTargetsInput` via: +// +// ChangeRequestPolicyTargetsArgs{...} +type ChangeRequestPolicyTargetsInput interface { + pulumi.Input + + ToChangeRequestPolicyTargetsOutput() ChangeRequestPolicyTargetsOutput + ToChangeRequestPolicyTargetsOutputWithContext(context.Context) ChangeRequestPolicyTargetsOutput +} + +type ChangeRequestPolicyTargetsArgs struct { + // Whether or not the policy applies to all projects in the workplace + AllProjects pulumi.BoolPtrInput `pulumi:"allProjects"` + // A project that the policy will apply to + Projects ChangeRequestPolicyTargetsProjectArrayInput `pulumi:"projects"` +} + +func (ChangeRequestPolicyTargetsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyTargets)(nil)).Elem() +} + +func (i ChangeRequestPolicyTargetsArgs) ToChangeRequestPolicyTargetsOutput() ChangeRequestPolicyTargetsOutput { + return i.ToChangeRequestPolicyTargetsOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyTargetsArgs) ToChangeRequestPolicyTargetsOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyTargetsOutput) +} + +func (i ChangeRequestPolicyTargetsArgs) ToChangeRequestPolicyTargetsPtrOutput() ChangeRequestPolicyTargetsPtrOutput { + return i.ToChangeRequestPolicyTargetsPtrOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyTargetsArgs) ToChangeRequestPolicyTargetsPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyTargetsOutput).ToChangeRequestPolicyTargetsPtrOutputWithContext(ctx) +} + +// ChangeRequestPolicyTargetsPtrInput is an input type that accepts ChangeRequestPolicyTargetsArgs, ChangeRequestPolicyTargetsPtr and ChangeRequestPolicyTargetsPtrOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyTargetsPtrInput` via: +// +// ChangeRequestPolicyTargetsArgs{...} +// +// or: +// +// nil +type ChangeRequestPolicyTargetsPtrInput interface { + pulumi.Input + + ToChangeRequestPolicyTargetsPtrOutput() ChangeRequestPolicyTargetsPtrOutput + ToChangeRequestPolicyTargetsPtrOutputWithContext(context.Context) ChangeRequestPolicyTargetsPtrOutput +} + +type changeRequestPolicyTargetsPtrType ChangeRequestPolicyTargetsArgs + +func ChangeRequestPolicyTargetsPtr(v *ChangeRequestPolicyTargetsArgs) ChangeRequestPolicyTargetsPtrInput { + return (*changeRequestPolicyTargetsPtrType)(v) +} + +func (*changeRequestPolicyTargetsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ChangeRequestPolicyTargets)(nil)).Elem() +} + +func (i *changeRequestPolicyTargetsPtrType) ToChangeRequestPolicyTargetsPtrOutput() ChangeRequestPolicyTargetsPtrOutput { + return i.ToChangeRequestPolicyTargetsPtrOutputWithContext(context.Background()) +} + +func (i *changeRequestPolicyTargetsPtrType) ToChangeRequestPolicyTargetsPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyTargetsPtrOutput) +} + +type ChangeRequestPolicyTargetsOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyTargetsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyTargets)(nil)).Elem() +} + +func (o ChangeRequestPolicyTargetsOutput) ToChangeRequestPolicyTargetsOutput() ChangeRequestPolicyTargetsOutput { + return o +} + +func (o ChangeRequestPolicyTargetsOutput) ToChangeRequestPolicyTargetsOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsOutput { + return o +} + +func (o ChangeRequestPolicyTargetsOutput) ToChangeRequestPolicyTargetsPtrOutput() ChangeRequestPolicyTargetsPtrOutput { + return o.ToChangeRequestPolicyTargetsPtrOutputWithContext(context.Background()) +} + +func (o ChangeRequestPolicyTargetsOutput) ToChangeRequestPolicyTargetsPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ChangeRequestPolicyTargets) *ChangeRequestPolicyTargets { + return &v + }).(ChangeRequestPolicyTargetsPtrOutput) +} + +// Whether or not the policy applies to all projects in the workplace +func (o ChangeRequestPolicyTargetsOutput) AllProjects() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ChangeRequestPolicyTargets) *bool { return v.AllProjects }).(pulumi.BoolPtrOutput) +} + +// A project that the policy will apply to +func (o ChangeRequestPolicyTargetsOutput) Projects() ChangeRequestPolicyTargetsProjectArrayOutput { + return o.ApplyT(func(v ChangeRequestPolicyTargets) []ChangeRequestPolicyTargetsProject { return v.Projects }).(ChangeRequestPolicyTargetsProjectArrayOutput) +} + +type ChangeRequestPolicyTargetsPtrOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyTargetsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ChangeRequestPolicyTargets)(nil)).Elem() +} + +func (o ChangeRequestPolicyTargetsPtrOutput) ToChangeRequestPolicyTargetsPtrOutput() ChangeRequestPolicyTargetsPtrOutput { + return o +} + +func (o ChangeRequestPolicyTargetsPtrOutput) ToChangeRequestPolicyTargetsPtrOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsPtrOutput { + return o +} + +func (o ChangeRequestPolicyTargetsPtrOutput) Elem() ChangeRequestPolicyTargetsOutput { + return o.ApplyT(func(v *ChangeRequestPolicyTargets) ChangeRequestPolicyTargets { + if v != nil { + return *v + } + var ret ChangeRequestPolicyTargets + return ret + }).(ChangeRequestPolicyTargetsOutput) +} + +// Whether or not the policy applies to all projects in the workplace +func (o ChangeRequestPolicyTargetsPtrOutput) AllProjects() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ChangeRequestPolicyTargets) *bool { + if v == nil { + return nil + } + return v.AllProjects + }).(pulumi.BoolPtrOutput) +} + +// A project that the policy will apply to +func (o ChangeRequestPolicyTargetsPtrOutput) Projects() ChangeRequestPolicyTargetsProjectArrayOutput { + return o.ApplyT(func(v *ChangeRequestPolicyTargets) []ChangeRequestPolicyTargetsProject { + if v == nil { + return nil + } + return v.Projects + }).(ChangeRequestPolicyTargetsProjectArrayOutput) +} + +type ChangeRequestPolicyTargetsProject struct { + // Whether or not the policy applies to all configs in the project + All *bool `pulumi:"all"` + // Specific configs the policy applies to + ConfigNames []string `pulumi:"configNames"` + // Entire environments the policy applies to + EnvironmentSlugs []string `pulumi:"environmentSlugs"` + // The name of the project to apply the policy to + ProjectName string `pulumi:"projectName"` +} + +// ChangeRequestPolicyTargetsProjectInput is an input type that accepts ChangeRequestPolicyTargetsProjectArgs and ChangeRequestPolicyTargetsProjectOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyTargetsProjectInput` via: +// +// ChangeRequestPolicyTargetsProjectArgs{...} +type ChangeRequestPolicyTargetsProjectInput interface { + pulumi.Input + + ToChangeRequestPolicyTargetsProjectOutput() ChangeRequestPolicyTargetsProjectOutput + ToChangeRequestPolicyTargetsProjectOutputWithContext(context.Context) ChangeRequestPolicyTargetsProjectOutput +} + +type ChangeRequestPolicyTargetsProjectArgs struct { + // Whether or not the policy applies to all configs in the project + All pulumi.BoolPtrInput `pulumi:"all"` + // Specific configs the policy applies to + ConfigNames pulumi.StringArrayInput `pulumi:"configNames"` + // Entire environments the policy applies to + EnvironmentSlugs pulumi.StringArrayInput `pulumi:"environmentSlugs"` + // The name of the project to apply the policy to + ProjectName pulumi.StringInput `pulumi:"projectName"` +} + +func (ChangeRequestPolicyTargetsProjectArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyTargetsProject)(nil)).Elem() +} + +func (i ChangeRequestPolicyTargetsProjectArgs) ToChangeRequestPolicyTargetsProjectOutput() ChangeRequestPolicyTargetsProjectOutput { + return i.ToChangeRequestPolicyTargetsProjectOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyTargetsProjectArgs) ToChangeRequestPolicyTargetsProjectOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsProjectOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyTargetsProjectOutput) +} + +// ChangeRequestPolicyTargetsProjectArrayInput is an input type that accepts ChangeRequestPolicyTargetsProjectArray and ChangeRequestPolicyTargetsProjectArrayOutput values. +// You can construct a concrete instance of `ChangeRequestPolicyTargetsProjectArrayInput` via: +// +// ChangeRequestPolicyTargetsProjectArray{ ChangeRequestPolicyTargetsProjectArgs{...} } +type ChangeRequestPolicyTargetsProjectArrayInput interface { + pulumi.Input + + ToChangeRequestPolicyTargetsProjectArrayOutput() ChangeRequestPolicyTargetsProjectArrayOutput + ToChangeRequestPolicyTargetsProjectArrayOutputWithContext(context.Context) ChangeRequestPolicyTargetsProjectArrayOutput +} + +type ChangeRequestPolicyTargetsProjectArray []ChangeRequestPolicyTargetsProjectInput + +func (ChangeRequestPolicyTargetsProjectArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ChangeRequestPolicyTargetsProject)(nil)).Elem() +} + +func (i ChangeRequestPolicyTargetsProjectArray) ToChangeRequestPolicyTargetsProjectArrayOutput() ChangeRequestPolicyTargetsProjectArrayOutput { + return i.ToChangeRequestPolicyTargetsProjectArrayOutputWithContext(context.Background()) +} + +func (i ChangeRequestPolicyTargetsProjectArray) ToChangeRequestPolicyTargetsProjectArrayOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsProjectArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ChangeRequestPolicyTargetsProjectArrayOutput) +} + +type ChangeRequestPolicyTargetsProjectOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyTargetsProjectOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ChangeRequestPolicyTargetsProject)(nil)).Elem() +} + +func (o ChangeRequestPolicyTargetsProjectOutput) ToChangeRequestPolicyTargetsProjectOutput() ChangeRequestPolicyTargetsProjectOutput { + return o +} + +func (o ChangeRequestPolicyTargetsProjectOutput) ToChangeRequestPolicyTargetsProjectOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsProjectOutput { + return o +} + +// Whether or not the policy applies to all configs in the project +func (o ChangeRequestPolicyTargetsProjectOutput) All() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ChangeRequestPolicyTargetsProject) *bool { return v.All }).(pulumi.BoolPtrOutput) +} + +// Specific configs the policy applies to +func (o ChangeRequestPolicyTargetsProjectOutput) ConfigNames() pulumi.StringArrayOutput { + return o.ApplyT(func(v ChangeRequestPolicyTargetsProject) []string { return v.ConfigNames }).(pulumi.StringArrayOutput) +} + +// Entire environments the policy applies to +func (o ChangeRequestPolicyTargetsProjectOutput) EnvironmentSlugs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ChangeRequestPolicyTargetsProject) []string { return v.EnvironmentSlugs }).(pulumi.StringArrayOutput) +} + +// The name of the project to apply the policy to +func (o ChangeRequestPolicyTargetsProjectOutput) ProjectName() pulumi.StringOutput { + return o.ApplyT(func(v ChangeRequestPolicyTargetsProject) string { return v.ProjectName }).(pulumi.StringOutput) +} + +type ChangeRequestPolicyTargetsProjectArrayOutput struct{ *pulumi.OutputState } + +func (ChangeRequestPolicyTargetsProjectArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ChangeRequestPolicyTargetsProject)(nil)).Elem() +} + +func (o ChangeRequestPolicyTargetsProjectArrayOutput) ToChangeRequestPolicyTargetsProjectArrayOutput() ChangeRequestPolicyTargetsProjectArrayOutput { + return o +} + +func (o ChangeRequestPolicyTargetsProjectArrayOutput) ToChangeRequestPolicyTargetsProjectArrayOutputWithContext(ctx context.Context) ChangeRequestPolicyTargetsProjectArrayOutput { + return o +} + +func (o ChangeRequestPolicyTargetsProjectArrayOutput) Index(i pulumi.IntInput) ChangeRequestPolicyTargetsProjectOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ChangeRequestPolicyTargetsProject { + return vs[0].([]ChangeRequestPolicyTargetsProject)[vs[1].(int)] + }).(ChangeRequestPolicyTargetsProjectOutput) +} + +type ServiceAccountIdentityConfigOidc struct { + // A set of valid values for a specific claim. At least "aud" and "sub" must be provided + Claims []ServiceAccountIdentityConfigOidcClaim `pulumi:"claims"` + // If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + ClaimsType *string `pulumi:"claimsType"` + // The public URL of the OpenID discovery service + DiscoveryUrl string `pulumi:"discoveryUrl"` +} + +// ServiceAccountIdentityConfigOidcInput is an input type that accepts ServiceAccountIdentityConfigOidcArgs and ServiceAccountIdentityConfigOidcOutput values. +// You can construct a concrete instance of `ServiceAccountIdentityConfigOidcInput` via: +// +// ServiceAccountIdentityConfigOidcArgs{...} +type ServiceAccountIdentityConfigOidcInput interface { + pulumi.Input + + ToServiceAccountIdentityConfigOidcOutput() ServiceAccountIdentityConfigOidcOutput + ToServiceAccountIdentityConfigOidcOutputWithContext(context.Context) ServiceAccountIdentityConfigOidcOutput +} + +type ServiceAccountIdentityConfigOidcArgs struct { + // A set of valid values for a specific claim. At least "aud" and "sub" must be provided + Claims ServiceAccountIdentityConfigOidcClaimArrayInput `pulumi:"claims"` + // If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + ClaimsType pulumi.StringPtrInput `pulumi:"claimsType"` + // The public URL of the OpenID discovery service + DiscoveryUrl pulumi.StringInput `pulumi:"discoveryUrl"` +} + +func (ServiceAccountIdentityConfigOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceAccountIdentityConfigOidc)(nil)).Elem() +} + +func (i ServiceAccountIdentityConfigOidcArgs) ToServiceAccountIdentityConfigOidcOutput() ServiceAccountIdentityConfigOidcOutput { + return i.ToServiceAccountIdentityConfigOidcOutputWithContext(context.Background()) +} + +func (i ServiceAccountIdentityConfigOidcArgs) ToServiceAccountIdentityConfigOidcOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityConfigOidcOutput) +} + +func (i ServiceAccountIdentityConfigOidcArgs) ToServiceAccountIdentityConfigOidcPtrOutput() ServiceAccountIdentityConfigOidcPtrOutput { + return i.ToServiceAccountIdentityConfigOidcPtrOutputWithContext(context.Background()) +} + +func (i ServiceAccountIdentityConfigOidcArgs) ToServiceAccountIdentityConfigOidcPtrOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityConfigOidcOutput).ToServiceAccountIdentityConfigOidcPtrOutputWithContext(ctx) +} + +// ServiceAccountIdentityConfigOidcPtrInput is an input type that accepts ServiceAccountIdentityConfigOidcArgs, ServiceAccountIdentityConfigOidcPtr and ServiceAccountIdentityConfigOidcPtrOutput values. +// You can construct a concrete instance of `ServiceAccountIdentityConfigOidcPtrInput` via: +// +// ServiceAccountIdentityConfigOidcArgs{...} +// +// or: +// +// nil +type ServiceAccountIdentityConfigOidcPtrInput interface { + pulumi.Input + + ToServiceAccountIdentityConfigOidcPtrOutput() ServiceAccountIdentityConfigOidcPtrOutput + ToServiceAccountIdentityConfigOidcPtrOutputWithContext(context.Context) ServiceAccountIdentityConfigOidcPtrOutput +} + +type serviceAccountIdentityConfigOidcPtrType ServiceAccountIdentityConfigOidcArgs + +func ServiceAccountIdentityConfigOidcPtr(v *ServiceAccountIdentityConfigOidcArgs) ServiceAccountIdentityConfigOidcPtrInput { + return (*serviceAccountIdentityConfigOidcPtrType)(v) +} + +func (*serviceAccountIdentityConfigOidcPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ServiceAccountIdentityConfigOidc)(nil)).Elem() +} + +func (i *serviceAccountIdentityConfigOidcPtrType) ToServiceAccountIdentityConfigOidcPtrOutput() ServiceAccountIdentityConfigOidcPtrOutput { + return i.ToServiceAccountIdentityConfigOidcPtrOutputWithContext(context.Background()) +} + +func (i *serviceAccountIdentityConfigOidcPtrType) ToServiceAccountIdentityConfigOidcPtrOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityConfigOidcPtrOutput) +} + +type ServiceAccountIdentityConfigOidcOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityConfigOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceAccountIdentityConfigOidc)(nil)).Elem() +} + +func (o ServiceAccountIdentityConfigOidcOutput) ToServiceAccountIdentityConfigOidcOutput() ServiceAccountIdentityConfigOidcOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcOutput) ToServiceAccountIdentityConfigOidcOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcOutput) ToServiceAccountIdentityConfigOidcPtrOutput() ServiceAccountIdentityConfigOidcPtrOutput { + return o.ToServiceAccountIdentityConfigOidcPtrOutputWithContext(context.Background()) +} + +func (o ServiceAccountIdentityConfigOidcOutput) ToServiceAccountIdentityConfigOidcPtrOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceAccountIdentityConfigOidc) *ServiceAccountIdentityConfigOidc { + return &v + }).(ServiceAccountIdentityConfigOidcPtrOutput) +} + +// A set of valid values for a specific claim. At least "aud" and "sub" must be provided +func (o ServiceAccountIdentityConfigOidcOutput) Claims() ServiceAccountIdentityConfigOidcClaimArrayOutput { + return o.ApplyT(func(v ServiceAccountIdentityConfigOidc) []ServiceAccountIdentityConfigOidcClaim { return v.Claims }).(ServiceAccountIdentityConfigOidcClaimArrayOutput) +} + +// If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" +func (o ServiceAccountIdentityConfigOidcOutput) ClaimsType() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceAccountIdentityConfigOidc) *string { return v.ClaimsType }).(pulumi.StringPtrOutput) +} + +// The public URL of the OpenID discovery service +func (o ServiceAccountIdentityConfigOidcOutput) DiscoveryUrl() pulumi.StringOutput { + return o.ApplyT(func(v ServiceAccountIdentityConfigOidc) string { return v.DiscoveryUrl }).(pulumi.StringOutput) +} + +type ServiceAccountIdentityConfigOidcPtrOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityConfigOidcPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ServiceAccountIdentityConfigOidc)(nil)).Elem() +} + +func (o ServiceAccountIdentityConfigOidcPtrOutput) ToServiceAccountIdentityConfigOidcPtrOutput() ServiceAccountIdentityConfigOidcPtrOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcPtrOutput) ToServiceAccountIdentityConfigOidcPtrOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcPtrOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcPtrOutput) Elem() ServiceAccountIdentityConfigOidcOutput { + return o.ApplyT(func(v *ServiceAccountIdentityConfigOidc) ServiceAccountIdentityConfigOidc { + if v != nil { + return *v + } + var ret ServiceAccountIdentityConfigOidc + return ret + }).(ServiceAccountIdentityConfigOidcOutput) +} + +// A set of valid values for a specific claim. At least "aud" and "sub" must be provided +func (o ServiceAccountIdentityConfigOidcPtrOutput) Claims() ServiceAccountIdentityConfigOidcClaimArrayOutput { + return o.ApplyT(func(v *ServiceAccountIdentityConfigOidc) []ServiceAccountIdentityConfigOidcClaim { + if v == nil { + return nil + } + return v.Claims + }).(ServiceAccountIdentityConfigOidcClaimArrayOutput) +} + +// If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" +func (o ServiceAccountIdentityConfigOidcPtrOutput) ClaimsType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceAccountIdentityConfigOidc) *string { + if v == nil { + return nil + } + return v.ClaimsType + }).(pulumi.StringPtrOutput) +} + +// The public URL of the OpenID discovery service +func (o ServiceAccountIdentityConfigOidcPtrOutput) DiscoveryUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceAccountIdentityConfigOidc) *string { + if v == nil { + return nil + } + return &v.DiscoveryUrl + }).(pulumi.StringPtrOutput) +} + +type ServiceAccountIdentityConfigOidcClaim struct { + // The key of the claim to validate + Key string `pulumi:"key"` + // The set of valid values for this claim + Values []string `pulumi:"values"` +} + +// ServiceAccountIdentityConfigOidcClaimInput is an input type that accepts ServiceAccountIdentityConfigOidcClaimArgs and ServiceAccountIdentityConfigOidcClaimOutput values. +// You can construct a concrete instance of `ServiceAccountIdentityConfigOidcClaimInput` via: +// +// ServiceAccountIdentityConfigOidcClaimArgs{...} +type ServiceAccountIdentityConfigOidcClaimInput interface { + pulumi.Input + + ToServiceAccountIdentityConfigOidcClaimOutput() ServiceAccountIdentityConfigOidcClaimOutput + ToServiceAccountIdentityConfigOidcClaimOutputWithContext(context.Context) ServiceAccountIdentityConfigOidcClaimOutput +} + +type ServiceAccountIdentityConfigOidcClaimArgs struct { + // The key of the claim to validate + Key pulumi.StringInput `pulumi:"key"` + // The set of valid values for this claim + Values pulumi.StringArrayInput `pulumi:"values"` +} + +func (ServiceAccountIdentityConfigOidcClaimArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceAccountIdentityConfigOidcClaim)(nil)).Elem() +} + +func (i ServiceAccountIdentityConfigOidcClaimArgs) ToServiceAccountIdentityConfigOidcClaimOutput() ServiceAccountIdentityConfigOidcClaimOutput { + return i.ToServiceAccountIdentityConfigOidcClaimOutputWithContext(context.Background()) +} + +func (i ServiceAccountIdentityConfigOidcClaimArgs) ToServiceAccountIdentityConfigOidcClaimOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcClaimOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityConfigOidcClaimOutput) +} + +// ServiceAccountIdentityConfigOidcClaimArrayInput is an input type that accepts ServiceAccountIdentityConfigOidcClaimArray and ServiceAccountIdentityConfigOidcClaimArrayOutput values. +// You can construct a concrete instance of `ServiceAccountIdentityConfigOidcClaimArrayInput` via: +// +// ServiceAccountIdentityConfigOidcClaimArray{ ServiceAccountIdentityConfigOidcClaimArgs{...} } +type ServiceAccountIdentityConfigOidcClaimArrayInput interface { + pulumi.Input + + ToServiceAccountIdentityConfigOidcClaimArrayOutput() ServiceAccountIdentityConfigOidcClaimArrayOutput + ToServiceAccountIdentityConfigOidcClaimArrayOutputWithContext(context.Context) ServiceAccountIdentityConfigOidcClaimArrayOutput +} + +type ServiceAccountIdentityConfigOidcClaimArray []ServiceAccountIdentityConfigOidcClaimInput + +func (ServiceAccountIdentityConfigOidcClaimArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ServiceAccountIdentityConfigOidcClaim)(nil)).Elem() +} + +func (i ServiceAccountIdentityConfigOidcClaimArray) ToServiceAccountIdentityConfigOidcClaimArrayOutput() ServiceAccountIdentityConfigOidcClaimArrayOutput { + return i.ToServiceAccountIdentityConfigOidcClaimArrayOutputWithContext(context.Background()) +} + +func (i ServiceAccountIdentityConfigOidcClaimArray) ToServiceAccountIdentityConfigOidcClaimArrayOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcClaimArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityConfigOidcClaimArrayOutput) +} + +type ServiceAccountIdentityConfigOidcClaimOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityConfigOidcClaimOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceAccountIdentityConfigOidcClaim)(nil)).Elem() +} + +func (o ServiceAccountIdentityConfigOidcClaimOutput) ToServiceAccountIdentityConfigOidcClaimOutput() ServiceAccountIdentityConfigOidcClaimOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcClaimOutput) ToServiceAccountIdentityConfigOidcClaimOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcClaimOutput { + return o +} + +// The key of the claim to validate +func (o ServiceAccountIdentityConfigOidcClaimOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ServiceAccountIdentityConfigOidcClaim) string { return v.Key }).(pulumi.StringOutput) +} + +// The set of valid values for this claim +func (o ServiceAccountIdentityConfigOidcClaimOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v ServiceAccountIdentityConfigOidcClaim) []string { return v.Values }).(pulumi.StringArrayOutput) +} + +type ServiceAccountIdentityConfigOidcClaimArrayOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityConfigOidcClaimArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ServiceAccountIdentityConfigOidcClaim)(nil)).Elem() +} + +func (o ServiceAccountIdentityConfigOidcClaimArrayOutput) ToServiceAccountIdentityConfigOidcClaimArrayOutput() ServiceAccountIdentityConfigOidcClaimArrayOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcClaimArrayOutput) ToServiceAccountIdentityConfigOidcClaimArrayOutputWithContext(ctx context.Context) ServiceAccountIdentityConfigOidcClaimArrayOutput { + return o +} + +func (o ServiceAccountIdentityConfigOidcClaimArrayOutput) Index(i pulumi.IntInput) ServiceAccountIdentityConfigOidcClaimOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServiceAccountIdentityConfigOidcClaim { + return vs[0].([]ServiceAccountIdentityConfigOidcClaim)[vs[1].(int)] + }).(ServiceAccountIdentityConfigOidcClaimOutput) +} + type WebhookAuthentication struct { Password *string `pulumi:"password"` Token *string `pulumi:"token"` @@ -191,9 +1044,161 @@ func (o WebhookAuthenticationPtrOutput) Username() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +type GetEnvironmentsEnvironment struct { + // When the environment was created + CreatedAt string `pulumi:"createdAt"` + // The name of the environment + Name string `pulumi:"name"` + // The project the environment belongs to + Project string `pulumi:"project"` + // The slug of the environment + Slug string `pulumi:"slug"` +} + +// GetEnvironmentsEnvironmentInput is an input type that accepts GetEnvironmentsEnvironmentArgs and GetEnvironmentsEnvironmentOutput values. +// You can construct a concrete instance of `GetEnvironmentsEnvironmentInput` via: +// +// GetEnvironmentsEnvironmentArgs{...} +type GetEnvironmentsEnvironmentInput interface { + pulumi.Input + + ToGetEnvironmentsEnvironmentOutput() GetEnvironmentsEnvironmentOutput + ToGetEnvironmentsEnvironmentOutputWithContext(context.Context) GetEnvironmentsEnvironmentOutput +} + +type GetEnvironmentsEnvironmentArgs struct { + // When the environment was created + CreatedAt pulumi.StringInput `pulumi:"createdAt"` + // The name of the environment + Name pulumi.StringInput `pulumi:"name"` + // The project the environment belongs to + Project pulumi.StringInput `pulumi:"project"` + // The slug of the environment + Slug pulumi.StringInput `pulumi:"slug"` +} + +func (GetEnvironmentsEnvironmentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetEnvironmentsEnvironment)(nil)).Elem() +} + +func (i GetEnvironmentsEnvironmentArgs) ToGetEnvironmentsEnvironmentOutput() GetEnvironmentsEnvironmentOutput { + return i.ToGetEnvironmentsEnvironmentOutputWithContext(context.Background()) +} + +func (i GetEnvironmentsEnvironmentArgs) ToGetEnvironmentsEnvironmentOutputWithContext(ctx context.Context) GetEnvironmentsEnvironmentOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetEnvironmentsEnvironmentOutput) +} + +// GetEnvironmentsEnvironmentArrayInput is an input type that accepts GetEnvironmentsEnvironmentArray and GetEnvironmentsEnvironmentArrayOutput values. +// You can construct a concrete instance of `GetEnvironmentsEnvironmentArrayInput` via: +// +// GetEnvironmentsEnvironmentArray{ GetEnvironmentsEnvironmentArgs{...} } +type GetEnvironmentsEnvironmentArrayInput interface { + pulumi.Input + + ToGetEnvironmentsEnvironmentArrayOutput() GetEnvironmentsEnvironmentArrayOutput + ToGetEnvironmentsEnvironmentArrayOutputWithContext(context.Context) GetEnvironmentsEnvironmentArrayOutput +} + +type GetEnvironmentsEnvironmentArray []GetEnvironmentsEnvironmentInput + +func (GetEnvironmentsEnvironmentArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetEnvironmentsEnvironment)(nil)).Elem() +} + +func (i GetEnvironmentsEnvironmentArray) ToGetEnvironmentsEnvironmentArrayOutput() GetEnvironmentsEnvironmentArrayOutput { + return i.ToGetEnvironmentsEnvironmentArrayOutputWithContext(context.Background()) +} + +func (i GetEnvironmentsEnvironmentArray) ToGetEnvironmentsEnvironmentArrayOutputWithContext(ctx context.Context) GetEnvironmentsEnvironmentArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetEnvironmentsEnvironmentArrayOutput) +} + +type GetEnvironmentsEnvironmentOutput struct{ *pulumi.OutputState } + +func (GetEnvironmentsEnvironmentOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetEnvironmentsEnvironment)(nil)).Elem() +} + +func (o GetEnvironmentsEnvironmentOutput) ToGetEnvironmentsEnvironmentOutput() GetEnvironmentsEnvironmentOutput { + return o +} + +func (o GetEnvironmentsEnvironmentOutput) ToGetEnvironmentsEnvironmentOutputWithContext(ctx context.Context) GetEnvironmentsEnvironmentOutput { + return o +} + +// When the environment was created +func (o GetEnvironmentsEnvironmentOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetEnvironmentsEnvironment) string { return v.CreatedAt }).(pulumi.StringOutput) +} + +// The name of the environment +func (o GetEnvironmentsEnvironmentOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetEnvironmentsEnvironment) string { return v.Name }).(pulumi.StringOutput) +} + +// The project the environment belongs to +func (o GetEnvironmentsEnvironmentOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v GetEnvironmentsEnvironment) string { return v.Project }).(pulumi.StringOutput) +} + +// The slug of the environment +func (o GetEnvironmentsEnvironmentOutput) Slug() pulumi.StringOutput { + return o.ApplyT(func(v GetEnvironmentsEnvironment) string { return v.Slug }).(pulumi.StringOutput) +} + +type GetEnvironmentsEnvironmentArrayOutput struct{ *pulumi.OutputState } + +func (GetEnvironmentsEnvironmentArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetEnvironmentsEnvironment)(nil)).Elem() +} + +func (o GetEnvironmentsEnvironmentArrayOutput) ToGetEnvironmentsEnvironmentArrayOutput() GetEnvironmentsEnvironmentArrayOutput { + return o +} + +func (o GetEnvironmentsEnvironmentArrayOutput) ToGetEnvironmentsEnvironmentArrayOutputWithContext(ctx context.Context) GetEnvironmentsEnvironmentArrayOutput { + return o +} + +func (o GetEnvironmentsEnvironmentArrayOutput) Index(i pulumi.IntInput) GetEnvironmentsEnvironmentOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetEnvironmentsEnvironment { + return vs[0].([]GetEnvironmentsEnvironment)[vs[1].(int)] + }).(GetEnvironmentsEnvironmentOutput) +} + func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyRulesInput)(nil)).Elem(), ChangeRequestPolicyRulesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyRulesPtrInput)(nil)).Elem(), ChangeRequestPolicyRulesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyRulesRequiredReviewerInput)(nil)).Elem(), ChangeRequestPolicyRulesRequiredReviewerArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyRulesRequiredReviewerArrayInput)(nil)).Elem(), ChangeRequestPolicyRulesRequiredReviewerArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyTargetsInput)(nil)).Elem(), ChangeRequestPolicyTargetsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyTargetsPtrInput)(nil)).Elem(), ChangeRequestPolicyTargetsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyTargetsProjectInput)(nil)).Elem(), ChangeRequestPolicyTargetsProjectArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ChangeRequestPolicyTargetsProjectArrayInput)(nil)).Elem(), ChangeRequestPolicyTargetsProjectArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityConfigOidcInput)(nil)).Elem(), ServiceAccountIdentityConfigOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityConfigOidcPtrInput)(nil)).Elem(), ServiceAccountIdentityConfigOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityConfigOidcClaimInput)(nil)).Elem(), ServiceAccountIdentityConfigOidcClaimArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityConfigOidcClaimArrayInput)(nil)).Elem(), ServiceAccountIdentityConfigOidcClaimArray{}) pulumi.RegisterInputType(reflect.TypeOf((*WebhookAuthenticationInput)(nil)).Elem(), WebhookAuthenticationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*WebhookAuthenticationPtrInput)(nil)).Elem(), WebhookAuthenticationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetEnvironmentsEnvironmentInput)(nil)).Elem(), GetEnvironmentsEnvironmentArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetEnvironmentsEnvironmentArrayInput)(nil)).Elem(), GetEnvironmentsEnvironmentArray{}) + pulumi.RegisterOutputType(ChangeRequestPolicyRulesOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyRulesPtrOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyRulesRequiredReviewerOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyRulesRequiredReviewerArrayOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyTargetsOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyTargetsPtrOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyTargetsProjectOutput{}) + pulumi.RegisterOutputType(ChangeRequestPolicyTargetsProjectArrayOutput{}) + pulumi.RegisterOutputType(ServiceAccountIdentityConfigOidcOutput{}) + pulumi.RegisterOutputType(ServiceAccountIdentityConfigOidcPtrOutput{}) + pulumi.RegisterOutputType(ServiceAccountIdentityConfigOidcClaimOutput{}) + pulumi.RegisterOutputType(ServiceAccountIdentityConfigOidcClaimArrayOutput{}) pulumi.RegisterOutputType(WebhookAuthenticationOutput{}) pulumi.RegisterOutputType(WebhookAuthenticationPtrOutput{}) + pulumi.RegisterOutputType(GetEnvironmentsEnvironmentOutput{}) + pulumi.RegisterOutputType(GetEnvironmentsEnvironmentArrayOutput{}) } diff --git a/sdk/go/doppler/rotatedsecret/awsIamUserKeys.go b/sdk/go/doppler/rotatedsecret/awsIamUserKeys.go new file mode 100644 index 0000000..4d192a4 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/awsIamUserKeys.go @@ -0,0 +1,308 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type AwsIamUserKeys struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` + // The IAM username (excluding ARN and scope prefix) + Username pulumi.StringOutput `pulumi:"username"` +} + +// NewAwsIamUserKeys registers a new resource with the given unique name, arguments, and options. +func NewAwsIamUserKeys(ctx *pulumi.Context, + name string, args *AwsIamUserKeysArgs, opts ...pulumi.ResourceOption) (*AwsIamUserKeys, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + if args.Username == nil { + return nil, errors.New("invalid value for required argument 'Username'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsIamUserKeys + err := ctx.RegisterResource("doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsIamUserKeys gets an existing AwsIamUserKeys resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsIamUserKeys(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsIamUserKeysState, opts ...pulumi.ResourceOption) (*AwsIamUserKeys, error) { + var resource AwsIamUserKeys + err := ctx.ReadResource("doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsIamUserKeys resources. +type awsIamUserKeysState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` + // The IAM username (excluding ARN and scope prefix) + Username *string `pulumi:"username"` +} + +type AwsIamUserKeysState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput + // The IAM username (excluding ARN and scope prefix) + Username pulumi.StringPtrInput +} + +func (AwsIamUserKeysState) ElementType() reflect.Type { + return reflect.TypeOf((*awsIamUserKeysState)(nil)).Elem() +} + +type awsIamUserKeysArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` + // The IAM username (excluding ARN and scope prefix) + Username string `pulumi:"username"` +} + +// The set of arguments for constructing a AwsIamUserKeys resource. +type AwsIamUserKeysArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput + // The IAM username (excluding ARN and scope prefix) + Username pulumi.StringInput +} + +func (AwsIamUserKeysArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsIamUserKeysArgs)(nil)).Elem() +} + +type AwsIamUserKeysInput interface { + pulumi.Input + + ToAwsIamUserKeysOutput() AwsIamUserKeysOutput + ToAwsIamUserKeysOutputWithContext(ctx context.Context) AwsIamUserKeysOutput +} + +func (*AwsIamUserKeys) ElementType() reflect.Type { + return reflect.TypeOf((**AwsIamUserKeys)(nil)).Elem() +} + +func (i *AwsIamUserKeys) ToAwsIamUserKeysOutput() AwsIamUserKeysOutput { + return i.ToAwsIamUserKeysOutputWithContext(context.Background()) +} + +func (i *AwsIamUserKeys) ToAwsIamUserKeysOutputWithContext(ctx context.Context) AwsIamUserKeysOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsIamUserKeysOutput) +} + +// AwsIamUserKeysArrayInput is an input type that accepts AwsIamUserKeysArray and AwsIamUserKeysArrayOutput values. +// You can construct a concrete instance of `AwsIamUserKeysArrayInput` via: +// +// AwsIamUserKeysArray{ AwsIamUserKeysArgs{...} } +type AwsIamUserKeysArrayInput interface { + pulumi.Input + + ToAwsIamUserKeysArrayOutput() AwsIamUserKeysArrayOutput + ToAwsIamUserKeysArrayOutputWithContext(context.Context) AwsIamUserKeysArrayOutput +} + +type AwsIamUserKeysArray []AwsIamUserKeysInput + +func (AwsIamUserKeysArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsIamUserKeys)(nil)).Elem() +} + +func (i AwsIamUserKeysArray) ToAwsIamUserKeysArrayOutput() AwsIamUserKeysArrayOutput { + return i.ToAwsIamUserKeysArrayOutputWithContext(context.Background()) +} + +func (i AwsIamUserKeysArray) ToAwsIamUserKeysArrayOutputWithContext(ctx context.Context) AwsIamUserKeysArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsIamUserKeysArrayOutput) +} + +// AwsIamUserKeysMapInput is an input type that accepts AwsIamUserKeysMap and AwsIamUserKeysMapOutput values. +// You can construct a concrete instance of `AwsIamUserKeysMapInput` via: +// +// AwsIamUserKeysMap{ "key": AwsIamUserKeysArgs{...} } +type AwsIamUserKeysMapInput interface { + pulumi.Input + + ToAwsIamUserKeysMapOutput() AwsIamUserKeysMapOutput + ToAwsIamUserKeysMapOutputWithContext(context.Context) AwsIamUserKeysMapOutput +} + +type AwsIamUserKeysMap map[string]AwsIamUserKeysInput + +func (AwsIamUserKeysMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsIamUserKeys)(nil)).Elem() +} + +func (i AwsIamUserKeysMap) ToAwsIamUserKeysMapOutput() AwsIamUserKeysMapOutput { + return i.ToAwsIamUserKeysMapOutputWithContext(context.Background()) +} + +func (i AwsIamUserKeysMap) ToAwsIamUserKeysMapOutputWithContext(ctx context.Context) AwsIamUserKeysMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsIamUserKeysMapOutput) +} + +type AwsIamUserKeysOutput struct{ *pulumi.OutputState } + +func (AwsIamUserKeysOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsIamUserKeys)(nil)).Elem() +} + +func (o AwsIamUserKeysOutput) ToAwsIamUserKeysOutput() AwsIamUserKeysOutput { + return o +} + +func (o AwsIamUserKeysOutput) ToAwsIamUserKeysOutputWithContext(ctx context.Context) AwsIamUserKeysOutput { + return o +} + +// The name of the Doppler config +func (o AwsIamUserKeysOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o AwsIamUserKeysOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o AwsIamUserKeysOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o AwsIamUserKeysOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o AwsIamUserKeysOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +// The IAM username (excluding ARN and scope prefix) +func (o AwsIamUserKeysOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v *AwsIamUserKeys) pulumi.StringOutput { return v.Username }).(pulumi.StringOutput) +} + +type AwsIamUserKeysArrayOutput struct{ *pulumi.OutputState } + +func (AwsIamUserKeysArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsIamUserKeys)(nil)).Elem() +} + +func (o AwsIamUserKeysArrayOutput) ToAwsIamUserKeysArrayOutput() AwsIamUserKeysArrayOutput { + return o +} + +func (o AwsIamUserKeysArrayOutput) ToAwsIamUserKeysArrayOutputWithContext(ctx context.Context) AwsIamUserKeysArrayOutput { + return o +} + +func (o AwsIamUserKeysArrayOutput) Index(i pulumi.IntInput) AwsIamUserKeysOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsIamUserKeys { + return vs[0].([]*AwsIamUserKeys)[vs[1].(int)] + }).(AwsIamUserKeysOutput) +} + +type AwsIamUserKeysMapOutput struct{ *pulumi.OutputState } + +func (AwsIamUserKeysMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsIamUserKeys)(nil)).Elem() +} + +func (o AwsIamUserKeysMapOutput) ToAwsIamUserKeysMapOutput() AwsIamUserKeysMapOutput { + return o +} + +func (o AwsIamUserKeysMapOutput) ToAwsIamUserKeysMapOutputWithContext(ctx context.Context) AwsIamUserKeysMapOutput { + return o +} + +func (o AwsIamUserKeysMapOutput) MapIndex(k pulumi.StringInput) AwsIamUserKeysOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsIamUserKeys { + return vs[0].(map[string]*AwsIamUserKeys)[vs[1].(string)] + }).(AwsIamUserKeysOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsIamUserKeysInput)(nil)).Elem(), &AwsIamUserKeys{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsIamUserKeysArrayInput)(nil)).Elem(), AwsIamUserKeysArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsIamUserKeysMapInput)(nil)).Elem(), AwsIamUserKeysMap{}) + pulumi.RegisterOutputType(AwsIamUserKeysOutput{}) + pulumi.RegisterOutputType(AwsIamUserKeysArrayOutput{}) + pulumi.RegisterOutputType(AwsIamUserKeysMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/awsMssql.go b/sdk/go/doppler/rotatedsecret/awsMssql.go new file mode 100644 index 0000000..863f0ab --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/awsMssql.go @@ -0,0 +1,362 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type AwsMssql struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // Rotated secret credentials + Credentials AwsMssqlCredentialArrayOutput `pulumi:"credentials"` + // The DB database + Database pulumi.StringOutput `pulumi:"database"` + // The DB Host + Host pulumi.StringOutput `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The DB Port + Port pulumi.IntOutput `pulumi:"port"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewAwsMssql registers a new resource with the given unique name, arguments, and options. +func NewAwsMssql(ctx *pulumi.Context, + name string, args *AwsMssqlArgs, opts ...pulumi.ResourceOption) (*AwsMssql, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Credentials == nil { + return nil, errors.New("invalid value for required argument 'Credentials'") + } + if args.Database == nil { + return nil, errors.New("invalid value for required argument 'Database'") + } + if args.Host == nil { + return nil, errors.New("invalid value for required argument 'Host'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Port == nil { + return nil, errors.New("invalid value for required argument 'Port'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsMssql + err := ctx.RegisterResource("doppler:rotatedSecret/awsMssql:AwsMssql", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsMssql gets an existing AwsMssql resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsMssql(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsMssqlState, opts ...pulumi.ResourceOption) (*AwsMssql, error) { + var resource AwsMssql + err := ctx.ReadResource("doppler:rotatedSecret/awsMssql:AwsMssql", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsMssql resources. +type awsMssqlState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // Rotated secret credentials + Credentials []AwsMssqlCredential `pulumi:"credentials"` + // The DB database + Database *string `pulumi:"database"` + // The DB Host + Host *string `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The DB Port + Port *int `pulumi:"port"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type AwsMssqlState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // Rotated secret credentials + Credentials AwsMssqlCredentialArrayInput + // The DB database + Database pulumi.StringPtrInput + // The DB Host + Host pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The DB Port + Port pulumi.IntPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (AwsMssqlState) ElementType() reflect.Type { + return reflect.TypeOf((*awsMssqlState)(nil)).Elem() +} + +type awsMssqlArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // Rotated secret credentials + Credentials []AwsMssqlCredential `pulumi:"credentials"` + // The DB database + Database string `pulumi:"database"` + // The DB Host + Host string `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The DB Port + Port int `pulumi:"port"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a AwsMssql resource. +type AwsMssqlArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // Rotated secret credentials + Credentials AwsMssqlCredentialArrayInput + // The DB database + Database pulumi.StringInput + // The DB Host + Host pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The DB Port + Port pulumi.IntInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (AwsMssqlArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsMssqlArgs)(nil)).Elem() +} + +type AwsMssqlInput interface { + pulumi.Input + + ToAwsMssqlOutput() AwsMssqlOutput + ToAwsMssqlOutputWithContext(ctx context.Context) AwsMssqlOutput +} + +func (*AwsMssql) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMssql)(nil)).Elem() +} + +func (i *AwsMssql) ToAwsMssqlOutput() AwsMssqlOutput { + return i.ToAwsMssqlOutputWithContext(context.Background()) +} + +func (i *AwsMssql) ToAwsMssqlOutputWithContext(ctx context.Context) AwsMssqlOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlOutput) +} + +// AwsMssqlArrayInput is an input type that accepts AwsMssqlArray and AwsMssqlArrayOutput values. +// You can construct a concrete instance of `AwsMssqlArrayInput` via: +// +// AwsMssqlArray{ AwsMssqlArgs{...} } +type AwsMssqlArrayInput interface { + pulumi.Input + + ToAwsMssqlArrayOutput() AwsMssqlArrayOutput + ToAwsMssqlArrayOutputWithContext(context.Context) AwsMssqlArrayOutput +} + +type AwsMssqlArray []AwsMssqlInput + +func (AwsMssqlArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMssql)(nil)).Elem() +} + +func (i AwsMssqlArray) ToAwsMssqlArrayOutput() AwsMssqlArrayOutput { + return i.ToAwsMssqlArrayOutputWithContext(context.Background()) +} + +func (i AwsMssqlArray) ToAwsMssqlArrayOutputWithContext(ctx context.Context) AwsMssqlArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlArrayOutput) +} + +// AwsMssqlMapInput is an input type that accepts AwsMssqlMap and AwsMssqlMapOutput values. +// You can construct a concrete instance of `AwsMssqlMapInput` via: +// +// AwsMssqlMap{ "key": AwsMssqlArgs{...} } +type AwsMssqlMapInput interface { + pulumi.Input + + ToAwsMssqlMapOutput() AwsMssqlMapOutput + ToAwsMssqlMapOutputWithContext(context.Context) AwsMssqlMapOutput +} + +type AwsMssqlMap map[string]AwsMssqlInput + +func (AwsMssqlMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMssql)(nil)).Elem() +} + +func (i AwsMssqlMap) ToAwsMssqlMapOutput() AwsMssqlMapOutput { + return i.ToAwsMssqlMapOutputWithContext(context.Background()) +} + +func (i AwsMssqlMap) ToAwsMssqlMapOutputWithContext(ctx context.Context) AwsMssqlMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlMapOutput) +} + +type AwsMssqlOutput struct{ *pulumi.OutputState } + +func (AwsMssqlOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMssql)(nil)).Elem() +} + +func (o AwsMssqlOutput) ToAwsMssqlOutput() AwsMssqlOutput { + return o +} + +func (o AwsMssqlOutput) ToAwsMssqlOutputWithContext(ctx context.Context) AwsMssqlOutput { + return o +} + +// The name of the Doppler config +func (o AwsMssqlOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// Rotated secret credentials +func (o AwsMssqlOutput) Credentials() AwsMssqlCredentialArrayOutput { + return o.ApplyT(func(v *AwsMssql) AwsMssqlCredentialArrayOutput { return v.Credentials }).(AwsMssqlCredentialArrayOutput) +} + +// The DB database +func (o AwsMssqlOutput) Database() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Database }).(pulumi.StringOutput) +} + +// The DB Host +func (o AwsMssqlOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Host }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o AwsMssqlOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o AwsMssqlOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The DB Port +func (o AwsMssqlOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) +} + +// The name of the Doppler project +func (o AwsMssqlOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o AwsMssqlOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *AwsMssql) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type AwsMssqlArrayOutput struct{ *pulumi.OutputState } + +func (AwsMssqlArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMssql)(nil)).Elem() +} + +func (o AwsMssqlArrayOutput) ToAwsMssqlArrayOutput() AwsMssqlArrayOutput { + return o +} + +func (o AwsMssqlArrayOutput) ToAwsMssqlArrayOutputWithContext(ctx context.Context) AwsMssqlArrayOutput { + return o +} + +func (o AwsMssqlArrayOutput) Index(i pulumi.IntInput) AwsMssqlOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsMssql { + return vs[0].([]*AwsMssql)[vs[1].(int)] + }).(AwsMssqlOutput) +} + +type AwsMssqlMapOutput struct{ *pulumi.OutputState } + +func (AwsMssqlMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMssql)(nil)).Elem() +} + +func (o AwsMssqlMapOutput) ToAwsMssqlMapOutput() AwsMssqlMapOutput { + return o +} + +func (o AwsMssqlMapOutput) ToAwsMssqlMapOutputWithContext(ctx context.Context) AwsMssqlMapOutput { + return o +} + +func (o AwsMssqlMapOutput) MapIndex(k pulumi.StringInput) AwsMssqlOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsMssql { + return vs[0].(map[string]*AwsMssql)[vs[1].(string)] + }).(AwsMssqlOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlInput)(nil)).Elem(), &AwsMssql{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlArrayInput)(nil)).Elem(), AwsMssqlArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlMapInput)(nil)).Elem(), AwsMssqlMap{}) + pulumi.RegisterOutputType(AwsMssqlOutput{}) + pulumi.RegisterOutputType(AwsMssqlArrayOutput{}) + pulumi.RegisterOutputType(AwsMssqlMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/awsMysql.go b/sdk/go/doppler/rotatedsecret/awsMysql.go new file mode 100644 index 0000000..b760a19 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/awsMysql.go @@ -0,0 +1,402 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type AwsMysql struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // Rotated secret credentials + Credentials AwsMysqlCredentialArrayOutput `pulumi:"credentials"` + // The DB database + Database pulumi.StringPtrOutput `pulumi:"database"` + // The DB Host + Host pulumi.StringOutput `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The managing user password + ManagingUserPassword pulumi.StringOutput `pulumi:"managingUserPassword"` + // The managing user username + ManagingUserUsername pulumi.StringOutput `pulumi:"managingUserUsername"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The DB Port + Port pulumi.IntOutput `pulumi:"port"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewAwsMysql registers a new resource with the given unique name, arguments, and options. +func NewAwsMysql(ctx *pulumi.Context, + name string, args *AwsMysqlArgs, opts ...pulumi.ResourceOption) (*AwsMysql, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Credentials == nil { + return nil, errors.New("invalid value for required argument 'Credentials'") + } + if args.Host == nil { + return nil, errors.New("invalid value for required argument 'Host'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.ManagingUserPassword == nil { + return nil, errors.New("invalid value for required argument 'ManagingUserPassword'") + } + if args.ManagingUserUsername == nil { + return nil, errors.New("invalid value for required argument 'ManagingUserUsername'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Port == nil { + return nil, errors.New("invalid value for required argument 'Port'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + if args.ManagingUserPassword != nil { + args.ManagingUserPassword = pulumi.ToSecret(args.ManagingUserPassword).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "managingUserPassword", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsMysql + err := ctx.RegisterResource("doppler:rotatedSecret/awsMysql:AwsMysql", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsMysql gets an existing AwsMysql resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsMysql(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsMysqlState, opts ...pulumi.ResourceOption) (*AwsMysql, error) { + var resource AwsMysql + err := ctx.ReadResource("doppler:rotatedSecret/awsMysql:AwsMysql", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsMysql resources. +type awsMysqlState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // Rotated secret credentials + Credentials []AwsMysqlCredential `pulumi:"credentials"` + // The DB database + Database *string `pulumi:"database"` + // The DB Host + Host *string `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The managing user password + ManagingUserPassword *string `pulumi:"managingUserPassword"` + // The managing user username + ManagingUserUsername *string `pulumi:"managingUserUsername"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The DB Port + Port *int `pulumi:"port"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type AwsMysqlState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // Rotated secret credentials + Credentials AwsMysqlCredentialArrayInput + // The DB database + Database pulumi.StringPtrInput + // The DB Host + Host pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The managing user password + ManagingUserPassword pulumi.StringPtrInput + // The managing user username + ManagingUserUsername pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The DB Port + Port pulumi.IntPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (AwsMysqlState) ElementType() reflect.Type { + return reflect.TypeOf((*awsMysqlState)(nil)).Elem() +} + +type awsMysqlArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // Rotated secret credentials + Credentials []AwsMysqlCredential `pulumi:"credentials"` + // The DB database + Database *string `pulumi:"database"` + // The DB Host + Host string `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The managing user password + ManagingUserPassword string `pulumi:"managingUserPassword"` + // The managing user username + ManagingUserUsername string `pulumi:"managingUserUsername"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The DB Port + Port int `pulumi:"port"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a AwsMysql resource. +type AwsMysqlArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // Rotated secret credentials + Credentials AwsMysqlCredentialArrayInput + // The DB database + Database pulumi.StringPtrInput + // The DB Host + Host pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The managing user password + ManagingUserPassword pulumi.StringInput + // The managing user username + ManagingUserUsername pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The DB Port + Port pulumi.IntInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (AwsMysqlArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsMysqlArgs)(nil)).Elem() +} + +type AwsMysqlInput interface { + pulumi.Input + + ToAwsMysqlOutput() AwsMysqlOutput + ToAwsMysqlOutputWithContext(ctx context.Context) AwsMysqlOutput +} + +func (*AwsMysql) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMysql)(nil)).Elem() +} + +func (i *AwsMysql) ToAwsMysqlOutput() AwsMysqlOutput { + return i.ToAwsMysqlOutputWithContext(context.Background()) +} + +func (i *AwsMysql) ToAwsMysqlOutputWithContext(ctx context.Context) AwsMysqlOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlOutput) +} + +// AwsMysqlArrayInput is an input type that accepts AwsMysqlArray and AwsMysqlArrayOutput values. +// You can construct a concrete instance of `AwsMysqlArrayInput` via: +// +// AwsMysqlArray{ AwsMysqlArgs{...} } +type AwsMysqlArrayInput interface { + pulumi.Input + + ToAwsMysqlArrayOutput() AwsMysqlArrayOutput + ToAwsMysqlArrayOutputWithContext(context.Context) AwsMysqlArrayOutput +} + +type AwsMysqlArray []AwsMysqlInput + +func (AwsMysqlArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMysql)(nil)).Elem() +} + +func (i AwsMysqlArray) ToAwsMysqlArrayOutput() AwsMysqlArrayOutput { + return i.ToAwsMysqlArrayOutputWithContext(context.Background()) +} + +func (i AwsMysqlArray) ToAwsMysqlArrayOutputWithContext(ctx context.Context) AwsMysqlArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlArrayOutput) +} + +// AwsMysqlMapInput is an input type that accepts AwsMysqlMap and AwsMysqlMapOutput values. +// You can construct a concrete instance of `AwsMysqlMapInput` via: +// +// AwsMysqlMap{ "key": AwsMysqlArgs{...} } +type AwsMysqlMapInput interface { + pulumi.Input + + ToAwsMysqlMapOutput() AwsMysqlMapOutput + ToAwsMysqlMapOutputWithContext(context.Context) AwsMysqlMapOutput +} + +type AwsMysqlMap map[string]AwsMysqlInput + +func (AwsMysqlMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMysql)(nil)).Elem() +} + +func (i AwsMysqlMap) ToAwsMysqlMapOutput() AwsMysqlMapOutput { + return i.ToAwsMysqlMapOutputWithContext(context.Background()) +} + +func (i AwsMysqlMap) ToAwsMysqlMapOutputWithContext(ctx context.Context) AwsMysqlMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlMapOutput) +} + +type AwsMysqlOutput struct{ *pulumi.OutputState } + +func (AwsMysqlOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsMysql)(nil)).Elem() +} + +func (o AwsMysqlOutput) ToAwsMysqlOutput() AwsMysqlOutput { + return o +} + +func (o AwsMysqlOutput) ToAwsMysqlOutputWithContext(ctx context.Context) AwsMysqlOutput { + return o +} + +// The name of the Doppler config +func (o AwsMysqlOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// Rotated secret credentials +func (o AwsMysqlOutput) Credentials() AwsMysqlCredentialArrayOutput { + return o.ApplyT(func(v *AwsMysql) AwsMysqlCredentialArrayOutput { return v.Credentials }).(AwsMysqlCredentialArrayOutput) +} + +// The DB database +func (o AwsMysqlOutput) Database() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringPtrOutput { return v.Database }).(pulumi.StringPtrOutput) +} + +// The DB Host +func (o AwsMysqlOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.Host }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o AwsMysqlOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The managing user password +func (o AwsMysqlOutput) ManagingUserPassword() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.ManagingUserPassword }).(pulumi.StringOutput) +} + +// The managing user username +func (o AwsMysqlOutput) ManagingUserUsername() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.ManagingUserUsername }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o AwsMysqlOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The DB Port +func (o AwsMysqlOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) +} + +// The name of the Doppler project +func (o AwsMysqlOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o AwsMysqlOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *AwsMysql) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type AwsMysqlArrayOutput struct{ *pulumi.OutputState } + +func (AwsMysqlArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsMysql)(nil)).Elem() +} + +func (o AwsMysqlArrayOutput) ToAwsMysqlArrayOutput() AwsMysqlArrayOutput { + return o +} + +func (o AwsMysqlArrayOutput) ToAwsMysqlArrayOutputWithContext(ctx context.Context) AwsMysqlArrayOutput { + return o +} + +func (o AwsMysqlArrayOutput) Index(i pulumi.IntInput) AwsMysqlOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsMysql { + return vs[0].([]*AwsMysql)[vs[1].(int)] + }).(AwsMysqlOutput) +} + +type AwsMysqlMapOutput struct{ *pulumi.OutputState } + +func (AwsMysqlMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsMysql)(nil)).Elem() +} + +func (o AwsMysqlMapOutput) ToAwsMysqlMapOutput() AwsMysqlMapOutput { + return o +} + +func (o AwsMysqlMapOutput) ToAwsMysqlMapOutputWithContext(ctx context.Context) AwsMysqlMapOutput { + return o +} + +func (o AwsMysqlMapOutput) MapIndex(k pulumi.StringInput) AwsMysqlOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsMysql { + return vs[0].(map[string]*AwsMysql)[vs[1].(string)] + }).(AwsMysqlOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlInput)(nil)).Elem(), &AwsMysql{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlArrayInput)(nil)).Elem(), AwsMysqlArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlMapInput)(nil)).Elem(), AwsMysqlMap{}) + pulumi.RegisterOutputType(AwsMysqlOutput{}) + pulumi.RegisterOutputType(AwsMysqlArrayOutput{}) + pulumi.RegisterOutputType(AwsMysqlMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/awsPostgres.go b/sdk/go/doppler/rotatedsecret/awsPostgres.go new file mode 100644 index 0000000..7174e39 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/awsPostgres.go @@ -0,0 +1,420 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type AwsPostgres struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // Rotated secret credentials + Credentials AwsPostgresCredentialArrayOutput `pulumi:"credentials"` + // The DB database + Database pulumi.StringOutput `pulumi:"database"` + // The DB Host + Host pulumi.StringOutput `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The managing user password + ManagingUserPassword pulumi.StringOutput `pulumi:"managingUserPassword"` + // The managing user username + ManagingUserUsername pulumi.StringOutput `pulumi:"managingUserUsername"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The DB Port + Port pulumi.IntOutput `pulumi:"port"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` + // An optional SSL CA for the AWS region the DB is in + SslCa pulumi.StringPtrOutput `pulumi:"sslCa"` +} + +// NewAwsPostgres registers a new resource with the given unique name, arguments, and options. +func NewAwsPostgres(ctx *pulumi.Context, + name string, args *AwsPostgresArgs, opts ...pulumi.ResourceOption) (*AwsPostgres, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Credentials == nil { + return nil, errors.New("invalid value for required argument 'Credentials'") + } + if args.Database == nil { + return nil, errors.New("invalid value for required argument 'Database'") + } + if args.Host == nil { + return nil, errors.New("invalid value for required argument 'Host'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.ManagingUserPassword == nil { + return nil, errors.New("invalid value for required argument 'ManagingUserPassword'") + } + if args.ManagingUserUsername == nil { + return nil, errors.New("invalid value for required argument 'ManagingUserUsername'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Port == nil { + return nil, errors.New("invalid value for required argument 'Port'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + if args.ManagingUserPassword != nil { + args.ManagingUserPassword = pulumi.ToSecret(args.ManagingUserPassword).(pulumi.StringInput) + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "managingUserPassword", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource AwsPostgres + err := ctx.RegisterResource("doppler:rotatedSecret/awsPostgres:AwsPostgres", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAwsPostgres gets an existing AwsPostgres resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAwsPostgres(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AwsPostgresState, opts ...pulumi.ResourceOption) (*AwsPostgres, error) { + var resource AwsPostgres + err := ctx.ReadResource("doppler:rotatedSecret/awsPostgres:AwsPostgres", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AwsPostgres resources. +type awsPostgresState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // Rotated secret credentials + Credentials []AwsPostgresCredential `pulumi:"credentials"` + // The DB database + Database *string `pulumi:"database"` + // The DB Host + Host *string `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The managing user password + ManagingUserPassword *string `pulumi:"managingUserPassword"` + // The managing user username + ManagingUserUsername *string `pulumi:"managingUserUsername"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The DB Port + Port *int `pulumi:"port"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` + // An optional SSL CA for the AWS region the DB is in + SslCa *string `pulumi:"sslCa"` +} + +type AwsPostgresState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // Rotated secret credentials + Credentials AwsPostgresCredentialArrayInput + // The DB database + Database pulumi.StringPtrInput + // The DB Host + Host pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The managing user password + ManagingUserPassword pulumi.StringPtrInput + // The managing user username + ManagingUserUsername pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The DB Port + Port pulumi.IntPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput + // An optional SSL CA for the AWS region the DB is in + SslCa pulumi.StringPtrInput +} + +func (AwsPostgresState) ElementType() reflect.Type { + return reflect.TypeOf((*awsPostgresState)(nil)).Elem() +} + +type awsPostgresArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // Rotated secret credentials + Credentials []AwsPostgresCredential `pulumi:"credentials"` + // The DB database + Database string `pulumi:"database"` + // The DB Host + Host string `pulumi:"host"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The managing user password + ManagingUserPassword string `pulumi:"managingUserPassword"` + // The managing user username + ManagingUserUsername string `pulumi:"managingUserUsername"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The DB Port + Port int `pulumi:"port"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` + // An optional SSL CA for the AWS region the DB is in + SslCa *string `pulumi:"sslCa"` +} + +// The set of arguments for constructing a AwsPostgres resource. +type AwsPostgresArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // Rotated secret credentials + Credentials AwsPostgresCredentialArrayInput + // The DB database + Database pulumi.StringInput + // The DB Host + Host pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The managing user password + ManagingUserPassword pulumi.StringInput + // The managing user username + ManagingUserUsername pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The DB Port + Port pulumi.IntInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput + // An optional SSL CA for the AWS region the DB is in + SslCa pulumi.StringPtrInput +} + +func (AwsPostgresArgs) ElementType() reflect.Type { + return reflect.TypeOf((*awsPostgresArgs)(nil)).Elem() +} + +type AwsPostgresInput interface { + pulumi.Input + + ToAwsPostgresOutput() AwsPostgresOutput + ToAwsPostgresOutputWithContext(ctx context.Context) AwsPostgresOutput +} + +func (*AwsPostgres) ElementType() reflect.Type { + return reflect.TypeOf((**AwsPostgres)(nil)).Elem() +} + +func (i *AwsPostgres) ToAwsPostgresOutput() AwsPostgresOutput { + return i.ToAwsPostgresOutputWithContext(context.Background()) +} + +func (i *AwsPostgres) ToAwsPostgresOutputWithContext(ctx context.Context) AwsPostgresOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresOutput) +} + +// AwsPostgresArrayInput is an input type that accepts AwsPostgresArray and AwsPostgresArrayOutput values. +// You can construct a concrete instance of `AwsPostgresArrayInput` via: +// +// AwsPostgresArray{ AwsPostgresArgs{...} } +type AwsPostgresArrayInput interface { + pulumi.Input + + ToAwsPostgresArrayOutput() AwsPostgresArrayOutput + ToAwsPostgresArrayOutputWithContext(context.Context) AwsPostgresArrayOutput +} + +type AwsPostgresArray []AwsPostgresInput + +func (AwsPostgresArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsPostgres)(nil)).Elem() +} + +func (i AwsPostgresArray) ToAwsPostgresArrayOutput() AwsPostgresArrayOutput { + return i.ToAwsPostgresArrayOutputWithContext(context.Background()) +} + +func (i AwsPostgresArray) ToAwsPostgresArrayOutputWithContext(ctx context.Context) AwsPostgresArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresArrayOutput) +} + +// AwsPostgresMapInput is an input type that accepts AwsPostgresMap and AwsPostgresMapOutput values. +// You can construct a concrete instance of `AwsPostgresMapInput` via: +// +// AwsPostgresMap{ "key": AwsPostgresArgs{...} } +type AwsPostgresMapInput interface { + pulumi.Input + + ToAwsPostgresMapOutput() AwsPostgresMapOutput + ToAwsPostgresMapOutputWithContext(context.Context) AwsPostgresMapOutput +} + +type AwsPostgresMap map[string]AwsPostgresInput + +func (AwsPostgresMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsPostgres)(nil)).Elem() +} + +func (i AwsPostgresMap) ToAwsPostgresMapOutput() AwsPostgresMapOutput { + return i.ToAwsPostgresMapOutputWithContext(context.Background()) +} + +func (i AwsPostgresMap) ToAwsPostgresMapOutputWithContext(ctx context.Context) AwsPostgresMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresMapOutput) +} + +type AwsPostgresOutput struct{ *pulumi.OutputState } + +func (AwsPostgresOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AwsPostgres)(nil)).Elem() +} + +func (o AwsPostgresOutput) ToAwsPostgresOutput() AwsPostgresOutput { + return o +} + +func (o AwsPostgresOutput) ToAwsPostgresOutputWithContext(ctx context.Context) AwsPostgresOutput { + return o +} + +// The name of the Doppler config +func (o AwsPostgresOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// Rotated secret credentials +func (o AwsPostgresOutput) Credentials() AwsPostgresCredentialArrayOutput { + return o.ApplyT(func(v *AwsPostgres) AwsPostgresCredentialArrayOutput { return v.Credentials }).(AwsPostgresCredentialArrayOutput) +} + +// The DB database +func (o AwsPostgresOutput) Database() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Database }).(pulumi.StringOutput) +} + +// The DB Host +func (o AwsPostgresOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Host }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o AwsPostgresOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The managing user password +func (o AwsPostgresOutput) ManagingUserPassword() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.ManagingUserPassword }).(pulumi.StringOutput) +} + +// The managing user username +func (o AwsPostgresOutput) ManagingUserUsername() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.ManagingUserUsername }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o AwsPostgresOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The DB Port +func (o AwsPostgresOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) +} + +// The name of the Doppler project +func (o AwsPostgresOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o AwsPostgresOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +// An optional SSL CA for the AWS region the DB is in +func (o AwsPostgresOutput) SslCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsPostgres) pulumi.StringPtrOutput { return v.SslCa }).(pulumi.StringPtrOutput) +} + +type AwsPostgresArrayOutput struct{ *pulumi.OutputState } + +func (AwsPostgresArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AwsPostgres)(nil)).Elem() +} + +func (o AwsPostgresArrayOutput) ToAwsPostgresArrayOutput() AwsPostgresArrayOutput { + return o +} + +func (o AwsPostgresArrayOutput) ToAwsPostgresArrayOutputWithContext(ctx context.Context) AwsPostgresArrayOutput { + return o +} + +func (o AwsPostgresArrayOutput) Index(i pulumi.IntInput) AwsPostgresOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AwsPostgres { + return vs[0].([]*AwsPostgres)[vs[1].(int)] + }).(AwsPostgresOutput) +} + +type AwsPostgresMapOutput struct{ *pulumi.OutputState } + +func (AwsPostgresMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AwsPostgres)(nil)).Elem() +} + +func (o AwsPostgresMapOutput) ToAwsPostgresMapOutput() AwsPostgresMapOutput { + return o +} + +func (o AwsPostgresMapOutput) ToAwsPostgresMapOutputWithContext(ctx context.Context) AwsPostgresMapOutput { + return o +} + +func (o AwsPostgresMapOutput) MapIndex(k pulumi.StringInput) AwsPostgresOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AwsPostgres { + return vs[0].(map[string]*AwsPostgres)[vs[1].(string)] + }).(AwsPostgresOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresInput)(nil)).Elem(), &AwsPostgres{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresArrayInput)(nil)).Elem(), AwsPostgresArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresMapInput)(nil)).Elem(), AwsPostgresMap{}) + pulumi.RegisterOutputType(AwsPostgresOutput{}) + pulumi.RegisterOutputType(AwsPostgresArrayOutput{}) + pulumi.RegisterOutputType(AwsPostgresMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/cloudflareTokens.go b/sdk/go/doppler/rotatedsecret/cloudflareTokens.go new file mode 100644 index 0000000..0c43177 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/cloudflareTokens.go @@ -0,0 +1,308 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type CloudflareTokens struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // Rotated secret credentials + Credentials CloudflareTokensCredentialArrayOutput `pulumi:"credentials"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewCloudflareTokens registers a new resource with the given unique name, arguments, and options. +func NewCloudflareTokens(ctx *pulumi.Context, + name string, args *CloudflareTokensArgs, opts ...pulumi.ResourceOption) (*CloudflareTokens, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Credentials == nil { + return nil, errors.New("invalid value for required argument 'Credentials'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource CloudflareTokens + err := ctx.RegisterResource("doppler:rotatedSecret/cloudflareTokens:CloudflareTokens", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetCloudflareTokens gets an existing CloudflareTokens resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetCloudflareTokens(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *CloudflareTokensState, opts ...pulumi.ResourceOption) (*CloudflareTokens, error) { + var resource CloudflareTokens + err := ctx.ReadResource("doppler:rotatedSecret/cloudflareTokens:CloudflareTokens", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering CloudflareTokens resources. +type cloudflareTokensState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // Rotated secret credentials + Credentials []CloudflareTokensCredential `pulumi:"credentials"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type CloudflareTokensState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // Rotated secret credentials + Credentials CloudflareTokensCredentialArrayInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (CloudflareTokensState) ElementType() reflect.Type { + return reflect.TypeOf((*cloudflareTokensState)(nil)).Elem() +} + +type cloudflareTokensArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // Rotated secret credentials + Credentials []CloudflareTokensCredential `pulumi:"credentials"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a CloudflareTokens resource. +type CloudflareTokensArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // Rotated secret credentials + Credentials CloudflareTokensCredentialArrayInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (CloudflareTokensArgs) ElementType() reflect.Type { + return reflect.TypeOf((*cloudflareTokensArgs)(nil)).Elem() +} + +type CloudflareTokensInput interface { + pulumi.Input + + ToCloudflareTokensOutput() CloudflareTokensOutput + ToCloudflareTokensOutputWithContext(ctx context.Context) CloudflareTokensOutput +} + +func (*CloudflareTokens) ElementType() reflect.Type { + return reflect.TypeOf((**CloudflareTokens)(nil)).Elem() +} + +func (i *CloudflareTokens) ToCloudflareTokensOutput() CloudflareTokensOutput { + return i.ToCloudflareTokensOutputWithContext(context.Background()) +} + +func (i *CloudflareTokens) ToCloudflareTokensOutputWithContext(ctx context.Context) CloudflareTokensOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensOutput) +} + +// CloudflareTokensArrayInput is an input type that accepts CloudflareTokensArray and CloudflareTokensArrayOutput values. +// You can construct a concrete instance of `CloudflareTokensArrayInput` via: +// +// CloudflareTokensArray{ CloudflareTokensArgs{...} } +type CloudflareTokensArrayInput interface { + pulumi.Input + + ToCloudflareTokensArrayOutput() CloudflareTokensArrayOutput + ToCloudflareTokensArrayOutputWithContext(context.Context) CloudflareTokensArrayOutput +} + +type CloudflareTokensArray []CloudflareTokensInput + +func (CloudflareTokensArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*CloudflareTokens)(nil)).Elem() +} + +func (i CloudflareTokensArray) ToCloudflareTokensArrayOutput() CloudflareTokensArrayOutput { + return i.ToCloudflareTokensArrayOutputWithContext(context.Background()) +} + +func (i CloudflareTokensArray) ToCloudflareTokensArrayOutputWithContext(ctx context.Context) CloudflareTokensArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensArrayOutput) +} + +// CloudflareTokensMapInput is an input type that accepts CloudflareTokensMap and CloudflareTokensMapOutput values. +// You can construct a concrete instance of `CloudflareTokensMapInput` via: +// +// CloudflareTokensMap{ "key": CloudflareTokensArgs{...} } +type CloudflareTokensMapInput interface { + pulumi.Input + + ToCloudflareTokensMapOutput() CloudflareTokensMapOutput + ToCloudflareTokensMapOutputWithContext(context.Context) CloudflareTokensMapOutput +} + +type CloudflareTokensMap map[string]CloudflareTokensInput + +func (CloudflareTokensMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*CloudflareTokens)(nil)).Elem() +} + +func (i CloudflareTokensMap) ToCloudflareTokensMapOutput() CloudflareTokensMapOutput { + return i.ToCloudflareTokensMapOutputWithContext(context.Background()) +} + +func (i CloudflareTokensMap) ToCloudflareTokensMapOutputWithContext(ctx context.Context) CloudflareTokensMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensMapOutput) +} + +type CloudflareTokensOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensOutput) ElementType() reflect.Type { + return reflect.TypeOf((**CloudflareTokens)(nil)).Elem() +} + +func (o CloudflareTokensOutput) ToCloudflareTokensOutput() CloudflareTokensOutput { + return o +} + +func (o CloudflareTokensOutput) ToCloudflareTokensOutputWithContext(ctx context.Context) CloudflareTokensOutput { + return o +} + +// The name of the Doppler config +func (o CloudflareTokensOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// Rotated secret credentials +func (o CloudflareTokensOutput) Credentials() CloudflareTokensCredentialArrayOutput { + return o.ApplyT(func(v *CloudflareTokens) CloudflareTokensCredentialArrayOutput { return v.Credentials }).(CloudflareTokensCredentialArrayOutput) +} + +// The slug of the integration to use for this rotated secret +func (o CloudflareTokensOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o CloudflareTokensOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o CloudflareTokensOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o CloudflareTokensOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *CloudflareTokens) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type CloudflareTokensArrayOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*CloudflareTokens)(nil)).Elem() +} + +func (o CloudflareTokensArrayOutput) ToCloudflareTokensArrayOutput() CloudflareTokensArrayOutput { + return o +} + +func (o CloudflareTokensArrayOutput) ToCloudflareTokensArrayOutputWithContext(ctx context.Context) CloudflareTokensArrayOutput { + return o +} + +func (o CloudflareTokensArrayOutput) Index(i pulumi.IntInput) CloudflareTokensOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *CloudflareTokens { + return vs[0].([]*CloudflareTokens)[vs[1].(int)] + }).(CloudflareTokensOutput) +} + +type CloudflareTokensMapOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*CloudflareTokens)(nil)).Elem() +} + +func (o CloudflareTokensMapOutput) ToCloudflareTokensMapOutput() CloudflareTokensMapOutput { + return o +} + +func (o CloudflareTokensMapOutput) ToCloudflareTokensMapOutputWithContext(ctx context.Context) CloudflareTokensMapOutput { + return o +} + +func (o CloudflareTokensMapOutput) MapIndex(k pulumi.StringInput) CloudflareTokensOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *CloudflareTokens { + return vs[0].(map[string]*CloudflareTokens)[vs[1].(string)] + }).(CloudflareTokensOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensInput)(nil)).Elem(), &CloudflareTokens{}) + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensArrayInput)(nil)).Elem(), CloudflareTokensArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensMapInput)(nil)).Elem(), CloudflareTokensMap{}) + pulumi.RegisterOutputType(CloudflareTokensOutput{}) + pulumi.RegisterOutputType(CloudflareTokensArrayOutput{}) + pulumi.RegisterOutputType(CloudflareTokensMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/gcpCloudsql.go b/sdk/go/doppler/rotatedsecret/gcpCloudsql.go new file mode 100644 index 0000000..509c84f --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/gcpCloudsql.go @@ -0,0 +1,326 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type GcpCloudsql struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // Rotated secret credentials + Credentials GcpCloudsqlCredentialArrayOutput `pulumi:"credentials"` + // Cloud SQL database instance name + DatabaseInstance pulumi.StringOutput `pulumi:"databaseInstance"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewGcpCloudsql registers a new resource with the given unique name, arguments, and options. +func NewGcpCloudsql(ctx *pulumi.Context, + name string, args *GcpCloudsqlArgs, opts ...pulumi.ResourceOption) (*GcpCloudsql, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Credentials == nil { + return nil, errors.New("invalid value for required argument 'Credentials'") + } + if args.DatabaseInstance == nil { + return nil, errors.New("invalid value for required argument 'DatabaseInstance'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpCloudsql + err := ctx.RegisterResource("doppler:rotatedSecret/gcpCloudsql:GcpCloudsql", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpCloudsql gets an existing GcpCloudsql resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpCloudsql(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpCloudsqlState, opts ...pulumi.ResourceOption) (*GcpCloudsql, error) { + var resource GcpCloudsql + err := ctx.ReadResource("doppler:rotatedSecret/gcpCloudsql:GcpCloudsql", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpCloudsql resources. +type gcpCloudsqlState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // Rotated secret credentials + Credentials []GcpCloudsqlCredential `pulumi:"credentials"` + // Cloud SQL database instance name + DatabaseInstance *string `pulumi:"databaseInstance"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type GcpCloudsqlState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // Rotated secret credentials + Credentials GcpCloudsqlCredentialArrayInput + // Cloud SQL database instance name + DatabaseInstance pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (GcpCloudsqlState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlState)(nil)).Elem() +} + +type gcpCloudsqlArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // Rotated secret credentials + Credentials []GcpCloudsqlCredential `pulumi:"credentials"` + // Cloud SQL database instance name + DatabaseInstance string `pulumi:"databaseInstance"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a GcpCloudsql resource. +type GcpCloudsqlArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // Rotated secret credentials + Credentials GcpCloudsqlCredentialArrayInput + // Cloud SQL database instance name + DatabaseInstance pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (GcpCloudsqlArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpCloudsqlArgs)(nil)).Elem() +} + +type GcpCloudsqlInput interface { + pulumi.Input + + ToGcpCloudsqlOutput() GcpCloudsqlOutput + ToGcpCloudsqlOutputWithContext(ctx context.Context) GcpCloudsqlOutput +} + +func (*GcpCloudsql) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsql)(nil)).Elem() +} + +func (i *GcpCloudsql) ToGcpCloudsqlOutput() GcpCloudsqlOutput { + return i.ToGcpCloudsqlOutputWithContext(context.Background()) +} + +func (i *GcpCloudsql) ToGcpCloudsqlOutputWithContext(ctx context.Context) GcpCloudsqlOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlOutput) +} + +// GcpCloudsqlArrayInput is an input type that accepts GcpCloudsqlArray and GcpCloudsqlArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlArrayInput` via: +// +// GcpCloudsqlArray{ GcpCloudsqlArgs{...} } +type GcpCloudsqlArrayInput interface { + pulumi.Input + + ToGcpCloudsqlArrayOutput() GcpCloudsqlArrayOutput + ToGcpCloudsqlArrayOutputWithContext(context.Context) GcpCloudsqlArrayOutput +} + +type GcpCloudsqlArray []GcpCloudsqlInput + +func (GcpCloudsqlArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsql)(nil)).Elem() +} + +func (i GcpCloudsqlArray) ToGcpCloudsqlArrayOutput() GcpCloudsqlArrayOutput { + return i.ToGcpCloudsqlArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlArray) ToGcpCloudsqlArrayOutputWithContext(ctx context.Context) GcpCloudsqlArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlArrayOutput) +} + +// GcpCloudsqlMapInput is an input type that accepts GcpCloudsqlMap and GcpCloudsqlMapOutput values. +// You can construct a concrete instance of `GcpCloudsqlMapInput` via: +// +// GcpCloudsqlMap{ "key": GcpCloudsqlArgs{...} } +type GcpCloudsqlMapInput interface { + pulumi.Input + + ToGcpCloudsqlMapOutput() GcpCloudsqlMapOutput + ToGcpCloudsqlMapOutputWithContext(context.Context) GcpCloudsqlMapOutput +} + +type GcpCloudsqlMap map[string]GcpCloudsqlInput + +func (GcpCloudsqlMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsql)(nil)).Elem() +} + +func (i GcpCloudsqlMap) ToGcpCloudsqlMapOutput() GcpCloudsqlMapOutput { + return i.ToGcpCloudsqlMapOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlMap) ToGcpCloudsqlMapOutputWithContext(ctx context.Context) GcpCloudsqlMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlMapOutput) +} + +type GcpCloudsqlOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpCloudsql)(nil)).Elem() +} + +func (o GcpCloudsqlOutput) ToGcpCloudsqlOutput() GcpCloudsqlOutput { + return o +} + +func (o GcpCloudsqlOutput) ToGcpCloudsqlOutputWithContext(ctx context.Context) GcpCloudsqlOutput { + return o +} + +// The name of the Doppler config +func (o GcpCloudsqlOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsql) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// Rotated secret credentials +func (o GcpCloudsqlOutput) Credentials() GcpCloudsqlCredentialArrayOutput { + return o.ApplyT(func(v *GcpCloudsql) GcpCloudsqlCredentialArrayOutput { return v.Credentials }).(GcpCloudsqlCredentialArrayOutput) +} + +// Cloud SQL database instance name +func (o GcpCloudsqlOutput) DatabaseInstance() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsql) pulumi.StringOutput { return v.DatabaseInstance }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o GcpCloudsqlOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsql) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o GcpCloudsqlOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsql) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o GcpCloudsqlOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *GcpCloudsql) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o GcpCloudsqlOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *GcpCloudsql) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type GcpCloudsqlArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpCloudsql)(nil)).Elem() +} + +func (o GcpCloudsqlArrayOutput) ToGcpCloudsqlArrayOutput() GcpCloudsqlArrayOutput { + return o +} + +func (o GcpCloudsqlArrayOutput) ToGcpCloudsqlArrayOutputWithContext(ctx context.Context) GcpCloudsqlArrayOutput { + return o +} + +func (o GcpCloudsqlArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpCloudsql { + return vs[0].([]*GcpCloudsql)[vs[1].(int)] + }).(GcpCloudsqlOutput) +} + +type GcpCloudsqlMapOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpCloudsql)(nil)).Elem() +} + +func (o GcpCloudsqlMapOutput) ToGcpCloudsqlMapOutput() GcpCloudsqlMapOutput { + return o +} + +func (o GcpCloudsqlMapOutput) ToGcpCloudsqlMapOutputWithContext(ctx context.Context) GcpCloudsqlMapOutput { + return o +} + +func (o GcpCloudsqlMapOutput) MapIndex(k pulumi.StringInput) GcpCloudsqlOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpCloudsql { + return vs[0].(map[string]*GcpCloudsql)[vs[1].(string)] + }).(GcpCloudsqlOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlInput)(nil)).Elem(), &GcpCloudsql{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlArrayInput)(nil)).Elem(), GcpCloudsqlArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlMapInput)(nil)).Elem(), GcpCloudsqlMap{}) + pulumi.RegisterOutputType(GcpCloudsqlOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/gcpServiceAccountKeys.go b/sdk/go/doppler/rotatedsecret/gcpServiceAccountKeys.go new file mode 100644 index 0000000..cb874a8 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/gcpServiceAccountKeys.go @@ -0,0 +1,308 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type GcpServiceAccountKeys struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` + // The Service Account Email whose keys should be rotated + ServiceAccount pulumi.StringOutput `pulumi:"serviceAccount"` +} + +// NewGcpServiceAccountKeys registers a new resource with the given unique name, arguments, and options. +func NewGcpServiceAccountKeys(ctx *pulumi.Context, + name string, args *GcpServiceAccountKeysArgs, opts ...pulumi.ResourceOption) (*GcpServiceAccountKeys, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + if args.ServiceAccount == nil { + return nil, errors.New("invalid value for required argument 'ServiceAccount'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpServiceAccountKeys + err := ctx.RegisterResource("doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpServiceAccountKeys gets an existing GcpServiceAccountKeys resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpServiceAccountKeys(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpServiceAccountKeysState, opts ...pulumi.ResourceOption) (*GcpServiceAccountKeys, error) { + var resource GcpServiceAccountKeys + err := ctx.ReadResource("doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpServiceAccountKeys resources. +type gcpServiceAccountKeysState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` + // The Service Account Email whose keys should be rotated + ServiceAccount *string `pulumi:"serviceAccount"` +} + +type GcpServiceAccountKeysState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput + // The Service Account Email whose keys should be rotated + ServiceAccount pulumi.StringPtrInput +} + +func (GcpServiceAccountKeysState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpServiceAccountKeysState)(nil)).Elem() +} + +type gcpServiceAccountKeysArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` + // The Service Account Email whose keys should be rotated + ServiceAccount string `pulumi:"serviceAccount"` +} + +// The set of arguments for constructing a GcpServiceAccountKeys resource. +type GcpServiceAccountKeysArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput + // The Service Account Email whose keys should be rotated + ServiceAccount pulumi.StringInput +} + +func (GcpServiceAccountKeysArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpServiceAccountKeysArgs)(nil)).Elem() +} + +type GcpServiceAccountKeysInput interface { + pulumi.Input + + ToGcpServiceAccountKeysOutput() GcpServiceAccountKeysOutput + ToGcpServiceAccountKeysOutputWithContext(ctx context.Context) GcpServiceAccountKeysOutput +} + +func (*GcpServiceAccountKeys) ElementType() reflect.Type { + return reflect.TypeOf((**GcpServiceAccountKeys)(nil)).Elem() +} + +func (i *GcpServiceAccountKeys) ToGcpServiceAccountKeysOutput() GcpServiceAccountKeysOutput { + return i.ToGcpServiceAccountKeysOutputWithContext(context.Background()) +} + +func (i *GcpServiceAccountKeys) ToGcpServiceAccountKeysOutputWithContext(ctx context.Context) GcpServiceAccountKeysOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpServiceAccountKeysOutput) +} + +// GcpServiceAccountKeysArrayInput is an input type that accepts GcpServiceAccountKeysArray and GcpServiceAccountKeysArrayOutput values. +// You can construct a concrete instance of `GcpServiceAccountKeysArrayInput` via: +// +// GcpServiceAccountKeysArray{ GcpServiceAccountKeysArgs{...} } +type GcpServiceAccountKeysArrayInput interface { + pulumi.Input + + ToGcpServiceAccountKeysArrayOutput() GcpServiceAccountKeysArrayOutput + ToGcpServiceAccountKeysArrayOutputWithContext(context.Context) GcpServiceAccountKeysArrayOutput +} + +type GcpServiceAccountKeysArray []GcpServiceAccountKeysInput + +func (GcpServiceAccountKeysArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (i GcpServiceAccountKeysArray) ToGcpServiceAccountKeysArrayOutput() GcpServiceAccountKeysArrayOutput { + return i.ToGcpServiceAccountKeysArrayOutputWithContext(context.Background()) +} + +func (i GcpServiceAccountKeysArray) ToGcpServiceAccountKeysArrayOutputWithContext(ctx context.Context) GcpServiceAccountKeysArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpServiceAccountKeysArrayOutput) +} + +// GcpServiceAccountKeysMapInput is an input type that accepts GcpServiceAccountKeysMap and GcpServiceAccountKeysMapOutput values. +// You can construct a concrete instance of `GcpServiceAccountKeysMapInput` via: +// +// GcpServiceAccountKeysMap{ "key": GcpServiceAccountKeysArgs{...} } +type GcpServiceAccountKeysMapInput interface { + pulumi.Input + + ToGcpServiceAccountKeysMapOutput() GcpServiceAccountKeysMapOutput + ToGcpServiceAccountKeysMapOutputWithContext(context.Context) GcpServiceAccountKeysMapOutput +} + +type GcpServiceAccountKeysMap map[string]GcpServiceAccountKeysInput + +func (GcpServiceAccountKeysMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (i GcpServiceAccountKeysMap) ToGcpServiceAccountKeysMapOutput() GcpServiceAccountKeysMapOutput { + return i.ToGcpServiceAccountKeysMapOutputWithContext(context.Background()) +} + +func (i GcpServiceAccountKeysMap) ToGcpServiceAccountKeysMapOutputWithContext(ctx context.Context) GcpServiceAccountKeysMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpServiceAccountKeysMapOutput) +} + +type GcpServiceAccountKeysOutput struct{ *pulumi.OutputState } + +func (GcpServiceAccountKeysOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpServiceAccountKeys)(nil)).Elem() +} + +func (o GcpServiceAccountKeysOutput) ToGcpServiceAccountKeysOutput() GcpServiceAccountKeysOutput { + return o +} + +func (o GcpServiceAccountKeysOutput) ToGcpServiceAccountKeysOutputWithContext(ctx context.Context) GcpServiceAccountKeysOutput { + return o +} + +// The name of the Doppler config +func (o GcpServiceAccountKeysOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o GcpServiceAccountKeysOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o GcpServiceAccountKeysOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o GcpServiceAccountKeysOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o GcpServiceAccountKeysOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +// The Service Account Email whose keys should be rotated +func (o GcpServiceAccountKeysOutput) ServiceAccount() pulumi.StringOutput { + return o.ApplyT(func(v *GcpServiceAccountKeys) pulumi.StringOutput { return v.ServiceAccount }).(pulumi.StringOutput) +} + +type GcpServiceAccountKeysArrayOutput struct{ *pulumi.OutputState } + +func (GcpServiceAccountKeysArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (o GcpServiceAccountKeysArrayOutput) ToGcpServiceAccountKeysArrayOutput() GcpServiceAccountKeysArrayOutput { + return o +} + +func (o GcpServiceAccountKeysArrayOutput) ToGcpServiceAccountKeysArrayOutputWithContext(ctx context.Context) GcpServiceAccountKeysArrayOutput { + return o +} + +func (o GcpServiceAccountKeysArrayOutput) Index(i pulumi.IntInput) GcpServiceAccountKeysOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpServiceAccountKeys { + return vs[0].([]*GcpServiceAccountKeys)[vs[1].(int)] + }).(GcpServiceAccountKeysOutput) +} + +type GcpServiceAccountKeysMapOutput struct{ *pulumi.OutputState } + +func (GcpServiceAccountKeysMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpServiceAccountKeys)(nil)).Elem() +} + +func (o GcpServiceAccountKeysMapOutput) ToGcpServiceAccountKeysMapOutput() GcpServiceAccountKeysMapOutput { + return o +} + +func (o GcpServiceAccountKeysMapOutput) ToGcpServiceAccountKeysMapOutputWithContext(ctx context.Context) GcpServiceAccountKeysMapOutput { + return o +} + +func (o GcpServiceAccountKeysMapOutput) MapIndex(k pulumi.StringInput) GcpServiceAccountKeysOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpServiceAccountKeys { + return vs[0].(map[string]*GcpServiceAccountKeys)[vs[1].(string)] + }).(GcpServiceAccountKeysOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpServiceAccountKeysInput)(nil)).Elem(), &GcpServiceAccountKeys{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpServiceAccountKeysArrayInput)(nil)).Elem(), GcpServiceAccountKeysArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpServiceAccountKeysMapInput)(nil)).Elem(), GcpServiceAccountKeysMap{}) + pulumi.RegisterOutputType(GcpServiceAccountKeysOutput{}) + pulumi.RegisterOutputType(GcpServiceAccountKeysArrayOutput{}) + pulumi.RegisterOutputType(GcpServiceAccountKeysMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/init.go b/sdk/go/doppler/rotatedsecret/init.go new file mode 100644 index 0000000..a95ebf7 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/init.go @@ -0,0 +1,114 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "fmt" + + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/blang/semver" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type module struct { + version semver.Version +} + +func (m *module) Version() semver.Version { + return m.version +} + +func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { + switch typ { + case "doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys": + r = &AwsIamUserKeys{} + case "doppler:rotatedSecret/awsMssql:AwsMssql": + r = &AwsMssql{} + case "doppler:rotatedSecret/awsMysql:AwsMysql": + r = &AwsMysql{} + case "doppler:rotatedSecret/awsPostgres:AwsPostgres": + r = &AwsPostgres{} + case "doppler:rotatedSecret/cloudflareTokens:CloudflareTokens": + r = &CloudflareTokens{} + case "doppler:rotatedSecret/gcpCloudsql:GcpCloudsql": + r = &GcpCloudsql{} + case "doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys": + r = &GcpServiceAccountKeys{} + case "doppler:rotatedSecret/mongodbAtlas:MongodbAtlas": + r = &MongodbAtlas{} + case "doppler:rotatedSecret/openai:Openai": + r = &Openai{} + case "doppler:rotatedSecret/sendgrid:Sendgrid": + r = &Sendgrid{} + case "doppler:rotatedSecret/twilio:Twilio": + r = &Twilio{} + default: + return nil, fmt.Errorf("unknown resource type: %s", typ) + } + + err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) + return +} + +func init() { + version, err := internal.PkgVersion() + if err != nil { + version = semver.Version{Major: 1} + } + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/awsIamUserKeys", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/awsMssql", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/awsMysql", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/awsPostgres", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/cloudflareTokens", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/gcpCloudsql", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/gcpServiceAccountKeys", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/mongodbAtlas", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/openai", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/sendgrid", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "rotatedSecret/twilio", + &module{version}, + ) +} diff --git a/sdk/go/doppler/rotatedsecret/mongodbAtlas.go b/sdk/go/doppler/rotatedsecret/mongodbAtlas.go new file mode 100644 index 0000000..cd55d7e --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/mongodbAtlas.go @@ -0,0 +1,326 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type MongodbAtlas struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // Rotated secret credentials + Credentials MongodbAtlasCredentialArrayOutput `pulumi:"credentials"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The Mongo DB Atlas Project ID + ProjectId pulumi.StringOutput `pulumi:"projectId"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewMongodbAtlas registers a new resource with the given unique name, arguments, and options. +func NewMongodbAtlas(ctx *pulumi.Context, + name string, args *MongodbAtlasArgs, opts ...pulumi.ResourceOption) (*MongodbAtlas, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Credentials == nil { + return nil, errors.New("invalid value for required argument 'Credentials'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.ProjectId == nil { + return nil, errors.New("invalid value for required argument 'ProjectId'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource MongodbAtlas + err := ctx.RegisterResource("doppler:rotatedSecret/mongodbAtlas:MongodbAtlas", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetMongodbAtlas gets an existing MongodbAtlas resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetMongodbAtlas(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *MongodbAtlasState, opts ...pulumi.ResourceOption) (*MongodbAtlas, error) { + var resource MongodbAtlas + err := ctx.ReadResource("doppler:rotatedSecret/mongodbAtlas:MongodbAtlas", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering MongodbAtlas resources. +type mongodbAtlasState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // Rotated secret credentials + Credentials []MongodbAtlasCredential `pulumi:"credentials"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The Mongo DB Atlas Project ID + ProjectId *string `pulumi:"projectId"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type MongodbAtlasState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // Rotated secret credentials + Credentials MongodbAtlasCredentialArrayInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The Mongo DB Atlas Project ID + ProjectId pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (MongodbAtlasState) ElementType() reflect.Type { + return reflect.TypeOf((*mongodbAtlasState)(nil)).Elem() +} + +type mongodbAtlasArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // Rotated secret credentials + Credentials []MongodbAtlasCredential `pulumi:"credentials"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The Mongo DB Atlas Project ID + ProjectId string `pulumi:"projectId"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a MongodbAtlas resource. +type MongodbAtlasArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // Rotated secret credentials + Credentials MongodbAtlasCredentialArrayInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // The Mongo DB Atlas Project ID + ProjectId pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (MongodbAtlasArgs) ElementType() reflect.Type { + return reflect.TypeOf((*mongodbAtlasArgs)(nil)).Elem() +} + +type MongodbAtlasInput interface { + pulumi.Input + + ToMongodbAtlasOutput() MongodbAtlasOutput + ToMongodbAtlasOutputWithContext(ctx context.Context) MongodbAtlasOutput +} + +func (*MongodbAtlas) ElementType() reflect.Type { + return reflect.TypeOf((**MongodbAtlas)(nil)).Elem() +} + +func (i *MongodbAtlas) ToMongodbAtlasOutput() MongodbAtlasOutput { + return i.ToMongodbAtlasOutputWithContext(context.Background()) +} + +func (i *MongodbAtlas) ToMongodbAtlasOutputWithContext(ctx context.Context) MongodbAtlasOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasOutput) +} + +// MongodbAtlasArrayInput is an input type that accepts MongodbAtlasArray and MongodbAtlasArrayOutput values. +// You can construct a concrete instance of `MongodbAtlasArrayInput` via: +// +// MongodbAtlasArray{ MongodbAtlasArgs{...} } +type MongodbAtlasArrayInput interface { + pulumi.Input + + ToMongodbAtlasArrayOutput() MongodbAtlasArrayOutput + ToMongodbAtlasArrayOutputWithContext(context.Context) MongodbAtlasArrayOutput +} + +type MongodbAtlasArray []MongodbAtlasInput + +func (MongodbAtlasArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MongodbAtlas)(nil)).Elem() +} + +func (i MongodbAtlasArray) ToMongodbAtlasArrayOutput() MongodbAtlasArrayOutput { + return i.ToMongodbAtlasArrayOutputWithContext(context.Background()) +} + +func (i MongodbAtlasArray) ToMongodbAtlasArrayOutputWithContext(ctx context.Context) MongodbAtlasArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasArrayOutput) +} + +// MongodbAtlasMapInput is an input type that accepts MongodbAtlasMap and MongodbAtlasMapOutput values. +// You can construct a concrete instance of `MongodbAtlasMapInput` via: +// +// MongodbAtlasMap{ "key": MongodbAtlasArgs{...} } +type MongodbAtlasMapInput interface { + pulumi.Input + + ToMongodbAtlasMapOutput() MongodbAtlasMapOutput + ToMongodbAtlasMapOutputWithContext(context.Context) MongodbAtlasMapOutput +} + +type MongodbAtlasMap map[string]MongodbAtlasInput + +func (MongodbAtlasMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MongodbAtlas)(nil)).Elem() +} + +func (i MongodbAtlasMap) ToMongodbAtlasMapOutput() MongodbAtlasMapOutput { + return i.ToMongodbAtlasMapOutputWithContext(context.Background()) +} + +func (i MongodbAtlasMap) ToMongodbAtlasMapOutputWithContext(ctx context.Context) MongodbAtlasMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasMapOutput) +} + +type MongodbAtlasOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MongodbAtlas)(nil)).Elem() +} + +func (o MongodbAtlasOutput) ToMongodbAtlasOutput() MongodbAtlasOutput { + return o +} + +func (o MongodbAtlasOutput) ToMongodbAtlasOutputWithContext(ctx context.Context) MongodbAtlasOutput { + return o +} + +// The name of the Doppler config +func (o MongodbAtlasOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// Rotated secret credentials +func (o MongodbAtlasOutput) Credentials() MongodbAtlasCredentialArrayOutput { + return o.ApplyT(func(v *MongodbAtlas) MongodbAtlasCredentialArrayOutput { return v.Credentials }).(MongodbAtlasCredentialArrayOutput) +} + +// The slug of the integration to use for this rotated secret +func (o MongodbAtlasOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o MongodbAtlasOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o MongodbAtlasOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The Mongo DB Atlas Project ID +func (o MongodbAtlasOutput) ProjectId() pulumi.StringOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.StringOutput { return v.ProjectId }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o MongodbAtlasOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *MongodbAtlas) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type MongodbAtlasArrayOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*MongodbAtlas)(nil)).Elem() +} + +func (o MongodbAtlasArrayOutput) ToMongodbAtlasArrayOutput() MongodbAtlasArrayOutput { + return o +} + +func (o MongodbAtlasArrayOutput) ToMongodbAtlasArrayOutputWithContext(ctx context.Context) MongodbAtlasArrayOutput { + return o +} + +func (o MongodbAtlasArrayOutput) Index(i pulumi.IntInput) MongodbAtlasOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *MongodbAtlas { + return vs[0].([]*MongodbAtlas)[vs[1].(int)] + }).(MongodbAtlasOutput) +} + +type MongodbAtlasMapOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*MongodbAtlas)(nil)).Elem() +} + +func (o MongodbAtlasMapOutput) ToMongodbAtlasMapOutput() MongodbAtlasMapOutput { + return o +} + +func (o MongodbAtlasMapOutput) ToMongodbAtlasMapOutputWithContext(ctx context.Context) MongodbAtlasMapOutput { + return o +} + +func (o MongodbAtlasMapOutput) MapIndex(k pulumi.StringInput) MongodbAtlasOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *MongodbAtlas { + return vs[0].(map[string]*MongodbAtlas)[vs[1].(string)] + }).(MongodbAtlasOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasInput)(nil)).Elem(), &MongodbAtlas{}) + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasArrayInput)(nil)).Elem(), MongodbAtlasArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasMapInput)(nil)).Elem(), MongodbAtlasMap{}) + pulumi.RegisterOutputType(MongodbAtlasOutput{}) + pulumi.RegisterOutputType(MongodbAtlasArrayOutput{}) + pulumi.RegisterOutputType(MongodbAtlasMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/openai.go b/sdk/go/doppler/rotatedsecret/openai.go new file mode 100644 index 0000000..3157d78 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/openai.go @@ -0,0 +1,308 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type Openai struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The OpenAI project ID to create service accounts in + ProjectId pulumi.StringOutput `pulumi:"projectId"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewOpenai registers a new resource with the given unique name, arguments, and options. +func NewOpenai(ctx *pulumi.Context, + name string, args *OpenaiArgs, opts ...pulumi.ResourceOption) (*Openai, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.ProjectId == nil { + return nil, errors.New("invalid value for required argument 'ProjectId'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource Openai + err := ctx.RegisterResource("doppler:rotatedSecret/openai:Openai", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetOpenai gets an existing Openai resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetOpenai(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *OpenaiState, opts ...pulumi.ResourceOption) (*Openai, error) { + var resource Openai + err := ctx.ReadResource("doppler:rotatedSecret/openai:Openai", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Openai resources. +type openaiState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The OpenAI project ID to create service accounts in + ProjectId *string `pulumi:"projectId"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type OpenaiState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The OpenAI project ID to create service accounts in + ProjectId pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (OpenaiState) ElementType() reflect.Type { + return reflect.TypeOf((*openaiState)(nil)).Elem() +} + +type openaiArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The OpenAI project ID to create service accounts in + ProjectId string `pulumi:"projectId"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a Openai resource. +type OpenaiArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // The OpenAI project ID to create service accounts in + ProjectId pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (OpenaiArgs) ElementType() reflect.Type { + return reflect.TypeOf((*openaiArgs)(nil)).Elem() +} + +type OpenaiInput interface { + pulumi.Input + + ToOpenaiOutput() OpenaiOutput + ToOpenaiOutputWithContext(ctx context.Context) OpenaiOutput +} + +func (*Openai) ElementType() reflect.Type { + return reflect.TypeOf((**Openai)(nil)).Elem() +} + +func (i *Openai) ToOpenaiOutput() OpenaiOutput { + return i.ToOpenaiOutputWithContext(context.Background()) +} + +func (i *Openai) ToOpenaiOutputWithContext(ctx context.Context) OpenaiOutput { + return pulumi.ToOutputWithContext(ctx, i).(OpenaiOutput) +} + +// OpenaiArrayInput is an input type that accepts OpenaiArray and OpenaiArrayOutput values. +// You can construct a concrete instance of `OpenaiArrayInput` via: +// +// OpenaiArray{ OpenaiArgs{...} } +type OpenaiArrayInput interface { + pulumi.Input + + ToOpenaiArrayOutput() OpenaiArrayOutput + ToOpenaiArrayOutputWithContext(context.Context) OpenaiArrayOutput +} + +type OpenaiArray []OpenaiInput + +func (OpenaiArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Openai)(nil)).Elem() +} + +func (i OpenaiArray) ToOpenaiArrayOutput() OpenaiArrayOutput { + return i.ToOpenaiArrayOutputWithContext(context.Background()) +} + +func (i OpenaiArray) ToOpenaiArrayOutputWithContext(ctx context.Context) OpenaiArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(OpenaiArrayOutput) +} + +// OpenaiMapInput is an input type that accepts OpenaiMap and OpenaiMapOutput values. +// You can construct a concrete instance of `OpenaiMapInput` via: +// +// OpenaiMap{ "key": OpenaiArgs{...} } +type OpenaiMapInput interface { + pulumi.Input + + ToOpenaiMapOutput() OpenaiMapOutput + ToOpenaiMapOutputWithContext(context.Context) OpenaiMapOutput +} + +type OpenaiMap map[string]OpenaiInput + +func (OpenaiMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Openai)(nil)).Elem() +} + +func (i OpenaiMap) ToOpenaiMapOutput() OpenaiMapOutput { + return i.ToOpenaiMapOutputWithContext(context.Background()) +} + +func (i OpenaiMap) ToOpenaiMapOutputWithContext(ctx context.Context) OpenaiMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(OpenaiMapOutput) +} + +type OpenaiOutput struct{ *pulumi.OutputState } + +func (OpenaiOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Openai)(nil)).Elem() +} + +func (o OpenaiOutput) ToOpenaiOutput() OpenaiOutput { + return o +} + +func (o OpenaiOutput) ToOpenaiOutputWithContext(ctx context.Context) OpenaiOutput { + return o +} + +// The name of the Doppler config +func (o OpenaiOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o OpenaiOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o OpenaiOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o OpenaiOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The OpenAI project ID to create service accounts in +func (o OpenaiOutput) ProjectId() pulumi.StringOutput { + return o.ApplyT(func(v *Openai) pulumi.StringOutput { return v.ProjectId }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o OpenaiOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *Openai) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type OpenaiArrayOutput struct{ *pulumi.OutputState } + +func (OpenaiArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Openai)(nil)).Elem() +} + +func (o OpenaiArrayOutput) ToOpenaiArrayOutput() OpenaiArrayOutput { + return o +} + +func (o OpenaiArrayOutput) ToOpenaiArrayOutputWithContext(ctx context.Context) OpenaiArrayOutput { + return o +} + +func (o OpenaiArrayOutput) Index(i pulumi.IntInput) OpenaiOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Openai { + return vs[0].([]*Openai)[vs[1].(int)] + }).(OpenaiOutput) +} + +type OpenaiMapOutput struct{ *pulumi.OutputState } + +func (OpenaiMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Openai)(nil)).Elem() +} + +func (o OpenaiMapOutput) ToOpenaiMapOutput() OpenaiMapOutput { + return o +} + +func (o OpenaiMapOutput) ToOpenaiMapOutputWithContext(ctx context.Context) OpenaiMapOutput { + return o +} + +func (o OpenaiMapOutput) MapIndex(k pulumi.StringInput) OpenaiOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Openai { + return vs[0].(map[string]*Openai)[vs[1].(string)] + }).(OpenaiOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*OpenaiInput)(nil)).Elem(), &Openai{}) + pulumi.RegisterInputType(reflect.TypeOf((*OpenaiArrayInput)(nil)).Elem(), OpenaiArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*OpenaiMapInput)(nil)).Elem(), OpenaiMap{}) + pulumi.RegisterOutputType(OpenaiOutput{}) + pulumi.RegisterOutputType(OpenaiArrayOutput{}) + pulumi.RegisterOutputType(OpenaiMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/pulumiTypes.go b/sdk/go/doppler/rotatedsecret/pulumiTypes.go new file mode 100644 index 0000000..ebbb3e8 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/pulumiTypes.go @@ -0,0 +1,641 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +var _ = internal.GetEnvOrDefault + +type AwsMssqlCredential struct { + Password string `pulumi:"password"` + Username string `pulumi:"username"` +} + +// AwsMssqlCredentialInput is an input type that accepts AwsMssqlCredentialArgs and AwsMssqlCredentialOutput values. +// You can construct a concrete instance of `AwsMssqlCredentialInput` via: +// +// AwsMssqlCredentialArgs{...} +type AwsMssqlCredentialInput interface { + pulumi.Input + + ToAwsMssqlCredentialOutput() AwsMssqlCredentialOutput + ToAwsMssqlCredentialOutputWithContext(context.Context) AwsMssqlCredentialOutput +} + +type AwsMssqlCredentialArgs struct { + Password pulumi.StringInput `pulumi:"password"` + Username pulumi.StringInput `pulumi:"username"` +} + +func (AwsMssqlCredentialArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AwsMssqlCredential)(nil)).Elem() +} + +func (i AwsMssqlCredentialArgs) ToAwsMssqlCredentialOutput() AwsMssqlCredentialOutput { + return i.ToAwsMssqlCredentialOutputWithContext(context.Background()) +} + +func (i AwsMssqlCredentialArgs) ToAwsMssqlCredentialOutputWithContext(ctx context.Context) AwsMssqlCredentialOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlCredentialOutput) +} + +// AwsMssqlCredentialArrayInput is an input type that accepts AwsMssqlCredentialArray and AwsMssqlCredentialArrayOutput values. +// You can construct a concrete instance of `AwsMssqlCredentialArrayInput` via: +// +// AwsMssqlCredentialArray{ AwsMssqlCredentialArgs{...} } +type AwsMssqlCredentialArrayInput interface { + pulumi.Input + + ToAwsMssqlCredentialArrayOutput() AwsMssqlCredentialArrayOutput + ToAwsMssqlCredentialArrayOutputWithContext(context.Context) AwsMssqlCredentialArrayOutput +} + +type AwsMssqlCredentialArray []AwsMssqlCredentialInput + +func (AwsMssqlCredentialArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]AwsMssqlCredential)(nil)).Elem() +} + +func (i AwsMssqlCredentialArray) ToAwsMssqlCredentialArrayOutput() AwsMssqlCredentialArrayOutput { + return i.ToAwsMssqlCredentialArrayOutputWithContext(context.Background()) +} + +func (i AwsMssqlCredentialArray) ToAwsMssqlCredentialArrayOutputWithContext(ctx context.Context) AwsMssqlCredentialArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMssqlCredentialArrayOutput) +} + +type AwsMssqlCredentialOutput struct{ *pulumi.OutputState } + +func (AwsMssqlCredentialOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AwsMssqlCredential)(nil)).Elem() +} + +func (o AwsMssqlCredentialOutput) ToAwsMssqlCredentialOutput() AwsMssqlCredentialOutput { + return o +} + +func (o AwsMssqlCredentialOutput) ToAwsMssqlCredentialOutputWithContext(ctx context.Context) AwsMssqlCredentialOutput { + return o +} + +func (o AwsMssqlCredentialOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v AwsMssqlCredential) string { return v.Password }).(pulumi.StringOutput) +} + +func (o AwsMssqlCredentialOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v AwsMssqlCredential) string { return v.Username }).(pulumi.StringOutput) +} + +type AwsMssqlCredentialArrayOutput struct{ *pulumi.OutputState } + +func (AwsMssqlCredentialArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]AwsMssqlCredential)(nil)).Elem() +} + +func (o AwsMssqlCredentialArrayOutput) ToAwsMssqlCredentialArrayOutput() AwsMssqlCredentialArrayOutput { + return o +} + +func (o AwsMssqlCredentialArrayOutput) ToAwsMssqlCredentialArrayOutputWithContext(ctx context.Context) AwsMssqlCredentialArrayOutput { + return o +} + +func (o AwsMssqlCredentialArrayOutput) Index(i pulumi.IntInput) AwsMssqlCredentialOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) AwsMssqlCredential { + return vs[0].([]AwsMssqlCredential)[vs[1].(int)] + }).(AwsMssqlCredentialOutput) +} + +type AwsMysqlCredential struct { + Password string `pulumi:"password"` + Username string `pulumi:"username"` +} + +// AwsMysqlCredentialInput is an input type that accepts AwsMysqlCredentialArgs and AwsMysqlCredentialOutput values. +// You can construct a concrete instance of `AwsMysqlCredentialInput` via: +// +// AwsMysqlCredentialArgs{...} +type AwsMysqlCredentialInput interface { + pulumi.Input + + ToAwsMysqlCredentialOutput() AwsMysqlCredentialOutput + ToAwsMysqlCredentialOutputWithContext(context.Context) AwsMysqlCredentialOutput +} + +type AwsMysqlCredentialArgs struct { + Password pulumi.StringInput `pulumi:"password"` + Username pulumi.StringInput `pulumi:"username"` +} + +func (AwsMysqlCredentialArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AwsMysqlCredential)(nil)).Elem() +} + +func (i AwsMysqlCredentialArgs) ToAwsMysqlCredentialOutput() AwsMysqlCredentialOutput { + return i.ToAwsMysqlCredentialOutputWithContext(context.Background()) +} + +func (i AwsMysqlCredentialArgs) ToAwsMysqlCredentialOutputWithContext(ctx context.Context) AwsMysqlCredentialOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlCredentialOutput) +} + +// AwsMysqlCredentialArrayInput is an input type that accepts AwsMysqlCredentialArray and AwsMysqlCredentialArrayOutput values. +// You can construct a concrete instance of `AwsMysqlCredentialArrayInput` via: +// +// AwsMysqlCredentialArray{ AwsMysqlCredentialArgs{...} } +type AwsMysqlCredentialArrayInput interface { + pulumi.Input + + ToAwsMysqlCredentialArrayOutput() AwsMysqlCredentialArrayOutput + ToAwsMysqlCredentialArrayOutputWithContext(context.Context) AwsMysqlCredentialArrayOutput +} + +type AwsMysqlCredentialArray []AwsMysqlCredentialInput + +func (AwsMysqlCredentialArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]AwsMysqlCredential)(nil)).Elem() +} + +func (i AwsMysqlCredentialArray) ToAwsMysqlCredentialArrayOutput() AwsMysqlCredentialArrayOutput { + return i.ToAwsMysqlCredentialArrayOutputWithContext(context.Background()) +} + +func (i AwsMysqlCredentialArray) ToAwsMysqlCredentialArrayOutputWithContext(ctx context.Context) AwsMysqlCredentialArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsMysqlCredentialArrayOutput) +} + +type AwsMysqlCredentialOutput struct{ *pulumi.OutputState } + +func (AwsMysqlCredentialOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AwsMysqlCredential)(nil)).Elem() +} + +func (o AwsMysqlCredentialOutput) ToAwsMysqlCredentialOutput() AwsMysqlCredentialOutput { + return o +} + +func (o AwsMysqlCredentialOutput) ToAwsMysqlCredentialOutputWithContext(ctx context.Context) AwsMysqlCredentialOutput { + return o +} + +func (o AwsMysqlCredentialOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v AwsMysqlCredential) string { return v.Password }).(pulumi.StringOutput) +} + +func (o AwsMysqlCredentialOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v AwsMysqlCredential) string { return v.Username }).(pulumi.StringOutput) +} + +type AwsMysqlCredentialArrayOutput struct{ *pulumi.OutputState } + +func (AwsMysqlCredentialArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]AwsMysqlCredential)(nil)).Elem() +} + +func (o AwsMysqlCredentialArrayOutput) ToAwsMysqlCredentialArrayOutput() AwsMysqlCredentialArrayOutput { + return o +} + +func (o AwsMysqlCredentialArrayOutput) ToAwsMysqlCredentialArrayOutputWithContext(ctx context.Context) AwsMysqlCredentialArrayOutput { + return o +} + +func (o AwsMysqlCredentialArrayOutput) Index(i pulumi.IntInput) AwsMysqlCredentialOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) AwsMysqlCredential { + return vs[0].([]AwsMysqlCredential)[vs[1].(int)] + }).(AwsMysqlCredentialOutput) +} + +type AwsPostgresCredential struct { + Password string `pulumi:"password"` + Username string `pulumi:"username"` +} + +// AwsPostgresCredentialInput is an input type that accepts AwsPostgresCredentialArgs and AwsPostgresCredentialOutput values. +// You can construct a concrete instance of `AwsPostgresCredentialInput` via: +// +// AwsPostgresCredentialArgs{...} +type AwsPostgresCredentialInput interface { + pulumi.Input + + ToAwsPostgresCredentialOutput() AwsPostgresCredentialOutput + ToAwsPostgresCredentialOutputWithContext(context.Context) AwsPostgresCredentialOutput +} + +type AwsPostgresCredentialArgs struct { + Password pulumi.StringInput `pulumi:"password"` + Username pulumi.StringInput `pulumi:"username"` +} + +func (AwsPostgresCredentialArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AwsPostgresCredential)(nil)).Elem() +} + +func (i AwsPostgresCredentialArgs) ToAwsPostgresCredentialOutput() AwsPostgresCredentialOutput { + return i.ToAwsPostgresCredentialOutputWithContext(context.Background()) +} + +func (i AwsPostgresCredentialArgs) ToAwsPostgresCredentialOutputWithContext(ctx context.Context) AwsPostgresCredentialOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresCredentialOutput) +} + +// AwsPostgresCredentialArrayInput is an input type that accepts AwsPostgresCredentialArray and AwsPostgresCredentialArrayOutput values. +// You can construct a concrete instance of `AwsPostgresCredentialArrayInput` via: +// +// AwsPostgresCredentialArray{ AwsPostgresCredentialArgs{...} } +type AwsPostgresCredentialArrayInput interface { + pulumi.Input + + ToAwsPostgresCredentialArrayOutput() AwsPostgresCredentialArrayOutput + ToAwsPostgresCredentialArrayOutputWithContext(context.Context) AwsPostgresCredentialArrayOutput +} + +type AwsPostgresCredentialArray []AwsPostgresCredentialInput + +func (AwsPostgresCredentialArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]AwsPostgresCredential)(nil)).Elem() +} + +func (i AwsPostgresCredentialArray) ToAwsPostgresCredentialArrayOutput() AwsPostgresCredentialArrayOutput { + return i.ToAwsPostgresCredentialArrayOutputWithContext(context.Background()) +} + +func (i AwsPostgresCredentialArray) ToAwsPostgresCredentialArrayOutputWithContext(ctx context.Context) AwsPostgresCredentialArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AwsPostgresCredentialArrayOutput) +} + +type AwsPostgresCredentialOutput struct{ *pulumi.OutputState } + +func (AwsPostgresCredentialOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AwsPostgresCredential)(nil)).Elem() +} + +func (o AwsPostgresCredentialOutput) ToAwsPostgresCredentialOutput() AwsPostgresCredentialOutput { + return o +} + +func (o AwsPostgresCredentialOutput) ToAwsPostgresCredentialOutputWithContext(ctx context.Context) AwsPostgresCredentialOutput { + return o +} + +func (o AwsPostgresCredentialOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v AwsPostgresCredential) string { return v.Password }).(pulumi.StringOutput) +} + +func (o AwsPostgresCredentialOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v AwsPostgresCredential) string { return v.Username }).(pulumi.StringOutput) +} + +type AwsPostgresCredentialArrayOutput struct{ *pulumi.OutputState } + +func (AwsPostgresCredentialArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]AwsPostgresCredential)(nil)).Elem() +} + +func (o AwsPostgresCredentialArrayOutput) ToAwsPostgresCredentialArrayOutput() AwsPostgresCredentialArrayOutput { + return o +} + +func (o AwsPostgresCredentialArrayOutput) ToAwsPostgresCredentialArrayOutputWithContext(ctx context.Context) AwsPostgresCredentialArrayOutput { + return o +} + +func (o AwsPostgresCredentialArrayOutput) Index(i pulumi.IntInput) AwsPostgresCredentialOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) AwsPostgresCredential { + return vs[0].([]AwsPostgresCredential)[vs[1].(int)] + }).(AwsPostgresCredentialOutput) +} + +type CloudflareTokensCredential struct { + Value string `pulumi:"value"` +} + +// CloudflareTokensCredentialInput is an input type that accepts CloudflareTokensCredentialArgs and CloudflareTokensCredentialOutput values. +// You can construct a concrete instance of `CloudflareTokensCredentialInput` via: +// +// CloudflareTokensCredentialArgs{...} +type CloudflareTokensCredentialInput interface { + pulumi.Input + + ToCloudflareTokensCredentialOutput() CloudflareTokensCredentialOutput + ToCloudflareTokensCredentialOutputWithContext(context.Context) CloudflareTokensCredentialOutput +} + +type CloudflareTokensCredentialArgs struct { + Value pulumi.StringInput `pulumi:"value"` +} + +func (CloudflareTokensCredentialArgs) ElementType() reflect.Type { + return reflect.TypeOf((*CloudflareTokensCredential)(nil)).Elem() +} + +func (i CloudflareTokensCredentialArgs) ToCloudflareTokensCredentialOutput() CloudflareTokensCredentialOutput { + return i.ToCloudflareTokensCredentialOutputWithContext(context.Background()) +} + +func (i CloudflareTokensCredentialArgs) ToCloudflareTokensCredentialOutputWithContext(ctx context.Context) CloudflareTokensCredentialOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensCredentialOutput) +} + +// CloudflareTokensCredentialArrayInput is an input type that accepts CloudflareTokensCredentialArray and CloudflareTokensCredentialArrayOutput values. +// You can construct a concrete instance of `CloudflareTokensCredentialArrayInput` via: +// +// CloudflareTokensCredentialArray{ CloudflareTokensCredentialArgs{...} } +type CloudflareTokensCredentialArrayInput interface { + pulumi.Input + + ToCloudflareTokensCredentialArrayOutput() CloudflareTokensCredentialArrayOutput + ToCloudflareTokensCredentialArrayOutputWithContext(context.Context) CloudflareTokensCredentialArrayOutput +} + +type CloudflareTokensCredentialArray []CloudflareTokensCredentialInput + +func (CloudflareTokensCredentialArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]CloudflareTokensCredential)(nil)).Elem() +} + +func (i CloudflareTokensCredentialArray) ToCloudflareTokensCredentialArrayOutput() CloudflareTokensCredentialArrayOutput { + return i.ToCloudflareTokensCredentialArrayOutputWithContext(context.Background()) +} + +func (i CloudflareTokensCredentialArray) ToCloudflareTokensCredentialArrayOutputWithContext(ctx context.Context) CloudflareTokensCredentialArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(CloudflareTokensCredentialArrayOutput) +} + +type CloudflareTokensCredentialOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensCredentialOutput) ElementType() reflect.Type { + return reflect.TypeOf((*CloudflareTokensCredential)(nil)).Elem() +} + +func (o CloudflareTokensCredentialOutput) ToCloudflareTokensCredentialOutput() CloudflareTokensCredentialOutput { + return o +} + +func (o CloudflareTokensCredentialOutput) ToCloudflareTokensCredentialOutputWithContext(ctx context.Context) CloudflareTokensCredentialOutput { + return o +} + +func (o CloudflareTokensCredentialOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v CloudflareTokensCredential) string { return v.Value }).(pulumi.StringOutput) +} + +type CloudflareTokensCredentialArrayOutput struct{ *pulumi.OutputState } + +func (CloudflareTokensCredentialArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]CloudflareTokensCredential)(nil)).Elem() +} + +func (o CloudflareTokensCredentialArrayOutput) ToCloudflareTokensCredentialArrayOutput() CloudflareTokensCredentialArrayOutput { + return o +} + +func (o CloudflareTokensCredentialArrayOutput) ToCloudflareTokensCredentialArrayOutputWithContext(ctx context.Context) CloudflareTokensCredentialArrayOutput { + return o +} + +func (o CloudflareTokensCredentialArrayOutput) Index(i pulumi.IntInput) CloudflareTokensCredentialOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) CloudflareTokensCredential { + return vs[0].([]CloudflareTokensCredential)[vs[1].(int)] + }).(CloudflareTokensCredentialOutput) +} + +type GcpCloudsqlCredential struct { + Password string `pulumi:"password"` + UserHostName *string `pulumi:"userHostName"` + Username string `pulumi:"username"` +} + +// GcpCloudsqlCredentialInput is an input type that accepts GcpCloudsqlCredentialArgs and GcpCloudsqlCredentialOutput values. +// You can construct a concrete instance of `GcpCloudsqlCredentialInput` via: +// +// GcpCloudsqlCredentialArgs{...} +type GcpCloudsqlCredentialInput interface { + pulumi.Input + + ToGcpCloudsqlCredentialOutput() GcpCloudsqlCredentialOutput + ToGcpCloudsqlCredentialOutputWithContext(context.Context) GcpCloudsqlCredentialOutput +} + +type GcpCloudsqlCredentialArgs struct { + Password pulumi.StringInput `pulumi:"password"` + UserHostName pulumi.StringPtrInput `pulumi:"userHostName"` + Username pulumi.StringInput `pulumi:"username"` +} + +func (GcpCloudsqlCredentialArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GcpCloudsqlCredential)(nil)).Elem() +} + +func (i GcpCloudsqlCredentialArgs) ToGcpCloudsqlCredentialOutput() GcpCloudsqlCredentialOutput { + return i.ToGcpCloudsqlCredentialOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlCredentialArgs) ToGcpCloudsqlCredentialOutputWithContext(ctx context.Context) GcpCloudsqlCredentialOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlCredentialOutput) +} + +// GcpCloudsqlCredentialArrayInput is an input type that accepts GcpCloudsqlCredentialArray and GcpCloudsqlCredentialArrayOutput values. +// You can construct a concrete instance of `GcpCloudsqlCredentialArrayInput` via: +// +// GcpCloudsqlCredentialArray{ GcpCloudsqlCredentialArgs{...} } +type GcpCloudsqlCredentialArrayInput interface { + pulumi.Input + + ToGcpCloudsqlCredentialArrayOutput() GcpCloudsqlCredentialArrayOutput + ToGcpCloudsqlCredentialArrayOutputWithContext(context.Context) GcpCloudsqlCredentialArrayOutput +} + +type GcpCloudsqlCredentialArray []GcpCloudsqlCredentialInput + +func (GcpCloudsqlCredentialArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GcpCloudsqlCredential)(nil)).Elem() +} + +func (i GcpCloudsqlCredentialArray) ToGcpCloudsqlCredentialArrayOutput() GcpCloudsqlCredentialArrayOutput { + return i.ToGcpCloudsqlCredentialArrayOutputWithContext(context.Background()) +} + +func (i GcpCloudsqlCredentialArray) ToGcpCloudsqlCredentialArrayOutputWithContext(ctx context.Context) GcpCloudsqlCredentialArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpCloudsqlCredentialArrayOutput) +} + +type GcpCloudsqlCredentialOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlCredentialOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GcpCloudsqlCredential)(nil)).Elem() +} + +func (o GcpCloudsqlCredentialOutput) ToGcpCloudsqlCredentialOutput() GcpCloudsqlCredentialOutput { + return o +} + +func (o GcpCloudsqlCredentialOutput) ToGcpCloudsqlCredentialOutputWithContext(ctx context.Context) GcpCloudsqlCredentialOutput { + return o +} + +func (o GcpCloudsqlCredentialOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v GcpCloudsqlCredential) string { return v.Password }).(pulumi.StringOutput) +} + +func (o GcpCloudsqlCredentialOutput) UserHostName() pulumi.StringPtrOutput { + return o.ApplyT(func(v GcpCloudsqlCredential) *string { return v.UserHostName }).(pulumi.StringPtrOutput) +} + +func (o GcpCloudsqlCredentialOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v GcpCloudsqlCredential) string { return v.Username }).(pulumi.StringOutput) +} + +type GcpCloudsqlCredentialArrayOutput struct{ *pulumi.OutputState } + +func (GcpCloudsqlCredentialArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GcpCloudsqlCredential)(nil)).Elem() +} + +func (o GcpCloudsqlCredentialArrayOutput) ToGcpCloudsqlCredentialArrayOutput() GcpCloudsqlCredentialArrayOutput { + return o +} + +func (o GcpCloudsqlCredentialArrayOutput) ToGcpCloudsqlCredentialArrayOutputWithContext(ctx context.Context) GcpCloudsqlCredentialArrayOutput { + return o +} + +func (o GcpCloudsqlCredentialArrayOutput) Index(i pulumi.IntInput) GcpCloudsqlCredentialOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GcpCloudsqlCredential { + return vs[0].([]GcpCloudsqlCredential)[vs[1].(int)] + }).(GcpCloudsqlCredentialOutput) +} + +type MongodbAtlasCredential struct { + Password string `pulumi:"password"` + Username string `pulumi:"username"` +} + +// MongodbAtlasCredentialInput is an input type that accepts MongodbAtlasCredentialArgs and MongodbAtlasCredentialOutput values. +// You can construct a concrete instance of `MongodbAtlasCredentialInput` via: +// +// MongodbAtlasCredentialArgs{...} +type MongodbAtlasCredentialInput interface { + pulumi.Input + + ToMongodbAtlasCredentialOutput() MongodbAtlasCredentialOutput + ToMongodbAtlasCredentialOutputWithContext(context.Context) MongodbAtlasCredentialOutput +} + +type MongodbAtlasCredentialArgs struct { + Password pulumi.StringInput `pulumi:"password"` + Username pulumi.StringInput `pulumi:"username"` +} + +func (MongodbAtlasCredentialArgs) ElementType() reflect.Type { + return reflect.TypeOf((*MongodbAtlasCredential)(nil)).Elem() +} + +func (i MongodbAtlasCredentialArgs) ToMongodbAtlasCredentialOutput() MongodbAtlasCredentialOutput { + return i.ToMongodbAtlasCredentialOutputWithContext(context.Background()) +} + +func (i MongodbAtlasCredentialArgs) ToMongodbAtlasCredentialOutputWithContext(ctx context.Context) MongodbAtlasCredentialOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasCredentialOutput) +} + +// MongodbAtlasCredentialArrayInput is an input type that accepts MongodbAtlasCredentialArray and MongodbAtlasCredentialArrayOutput values. +// You can construct a concrete instance of `MongodbAtlasCredentialArrayInput` via: +// +// MongodbAtlasCredentialArray{ MongodbAtlasCredentialArgs{...} } +type MongodbAtlasCredentialArrayInput interface { + pulumi.Input + + ToMongodbAtlasCredentialArrayOutput() MongodbAtlasCredentialArrayOutput + ToMongodbAtlasCredentialArrayOutputWithContext(context.Context) MongodbAtlasCredentialArrayOutput +} + +type MongodbAtlasCredentialArray []MongodbAtlasCredentialInput + +func (MongodbAtlasCredentialArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]MongodbAtlasCredential)(nil)).Elem() +} + +func (i MongodbAtlasCredentialArray) ToMongodbAtlasCredentialArrayOutput() MongodbAtlasCredentialArrayOutput { + return i.ToMongodbAtlasCredentialArrayOutputWithContext(context.Background()) +} + +func (i MongodbAtlasCredentialArray) ToMongodbAtlasCredentialArrayOutputWithContext(ctx context.Context) MongodbAtlasCredentialArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(MongodbAtlasCredentialArrayOutput) +} + +type MongodbAtlasCredentialOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasCredentialOutput) ElementType() reflect.Type { + return reflect.TypeOf((*MongodbAtlasCredential)(nil)).Elem() +} + +func (o MongodbAtlasCredentialOutput) ToMongodbAtlasCredentialOutput() MongodbAtlasCredentialOutput { + return o +} + +func (o MongodbAtlasCredentialOutput) ToMongodbAtlasCredentialOutputWithContext(ctx context.Context) MongodbAtlasCredentialOutput { + return o +} + +func (o MongodbAtlasCredentialOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v MongodbAtlasCredential) string { return v.Password }).(pulumi.StringOutput) +} + +func (o MongodbAtlasCredentialOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v MongodbAtlasCredential) string { return v.Username }).(pulumi.StringOutput) +} + +type MongodbAtlasCredentialArrayOutput struct{ *pulumi.OutputState } + +func (MongodbAtlasCredentialArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]MongodbAtlasCredential)(nil)).Elem() +} + +func (o MongodbAtlasCredentialArrayOutput) ToMongodbAtlasCredentialArrayOutput() MongodbAtlasCredentialArrayOutput { + return o +} + +func (o MongodbAtlasCredentialArrayOutput) ToMongodbAtlasCredentialArrayOutputWithContext(ctx context.Context) MongodbAtlasCredentialArrayOutput { + return o +} + +func (o MongodbAtlasCredentialArrayOutput) Index(i pulumi.IntInput) MongodbAtlasCredentialOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) MongodbAtlasCredential { + return vs[0].([]MongodbAtlasCredential)[vs[1].(int)] + }).(MongodbAtlasCredentialOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlCredentialInput)(nil)).Elem(), AwsMssqlCredentialArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMssqlCredentialArrayInput)(nil)).Elem(), AwsMssqlCredentialArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlCredentialInput)(nil)).Elem(), AwsMysqlCredentialArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsMysqlCredentialArrayInput)(nil)).Elem(), AwsMysqlCredentialArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresCredentialInput)(nil)).Elem(), AwsPostgresCredentialArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*AwsPostgresCredentialArrayInput)(nil)).Elem(), AwsPostgresCredentialArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensCredentialInput)(nil)).Elem(), CloudflareTokensCredentialArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*CloudflareTokensCredentialArrayInput)(nil)).Elem(), CloudflareTokensCredentialArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlCredentialInput)(nil)).Elem(), GcpCloudsqlCredentialArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpCloudsqlCredentialArrayInput)(nil)).Elem(), GcpCloudsqlCredentialArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasCredentialInput)(nil)).Elem(), MongodbAtlasCredentialArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*MongodbAtlasCredentialArrayInput)(nil)).Elem(), MongodbAtlasCredentialArray{}) + pulumi.RegisterOutputType(AwsMssqlCredentialOutput{}) + pulumi.RegisterOutputType(AwsMssqlCredentialArrayOutput{}) + pulumi.RegisterOutputType(AwsMysqlCredentialOutput{}) + pulumi.RegisterOutputType(AwsMysqlCredentialArrayOutput{}) + pulumi.RegisterOutputType(AwsPostgresCredentialOutput{}) + pulumi.RegisterOutputType(AwsPostgresCredentialArrayOutput{}) + pulumi.RegisterOutputType(CloudflareTokensCredentialOutput{}) + pulumi.RegisterOutputType(CloudflareTokensCredentialArrayOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlCredentialOutput{}) + pulumi.RegisterOutputType(GcpCloudsqlCredentialArrayOutput{}) + pulumi.RegisterOutputType(MongodbAtlasCredentialOutput{}) + pulumi.RegisterOutputType(MongodbAtlasCredentialArrayOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/sendgrid.go b/sdk/go/doppler/rotatedsecret/sendgrid.go new file mode 100644 index 0000000..d34f13a --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/sendgrid.go @@ -0,0 +1,308 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type Sendgrid struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` + // SendGrid scopes + Scopes pulumi.StringArrayOutput `pulumi:"scopes"` +} + +// NewSendgrid registers a new resource with the given unique name, arguments, and options. +func NewSendgrid(ctx *pulumi.Context, + name string, args *SendgridArgs, opts ...pulumi.ResourceOption) (*Sendgrid, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + if args.Scopes == nil { + return nil, errors.New("invalid value for required argument 'Scopes'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource Sendgrid + err := ctx.RegisterResource("doppler:rotatedSecret/sendgrid:Sendgrid", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetSendgrid gets an existing Sendgrid resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetSendgrid(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SendgridState, opts ...pulumi.ResourceOption) (*Sendgrid, error) { + var resource Sendgrid + err := ctx.ReadResource("doppler:rotatedSecret/sendgrid:Sendgrid", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Sendgrid resources. +type sendgridState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` + // SendGrid scopes + Scopes []string `pulumi:"scopes"` +} + +type SendgridState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput + // SendGrid scopes + Scopes pulumi.StringArrayInput +} + +func (SendgridState) ElementType() reflect.Type { + return reflect.TypeOf((*sendgridState)(nil)).Elem() +} + +type sendgridArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` + // SendGrid scopes + Scopes []string `pulumi:"scopes"` +} + +// The set of arguments for constructing a Sendgrid resource. +type SendgridArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput + // SendGrid scopes + Scopes pulumi.StringArrayInput +} + +func (SendgridArgs) ElementType() reflect.Type { + return reflect.TypeOf((*sendgridArgs)(nil)).Elem() +} + +type SendgridInput interface { + pulumi.Input + + ToSendgridOutput() SendgridOutput + ToSendgridOutputWithContext(ctx context.Context) SendgridOutput +} + +func (*Sendgrid) ElementType() reflect.Type { + return reflect.TypeOf((**Sendgrid)(nil)).Elem() +} + +func (i *Sendgrid) ToSendgridOutput() SendgridOutput { + return i.ToSendgridOutputWithContext(context.Background()) +} + +func (i *Sendgrid) ToSendgridOutputWithContext(ctx context.Context) SendgridOutput { + return pulumi.ToOutputWithContext(ctx, i).(SendgridOutput) +} + +// SendgridArrayInput is an input type that accepts SendgridArray and SendgridArrayOutput values. +// You can construct a concrete instance of `SendgridArrayInput` via: +// +// SendgridArray{ SendgridArgs{...} } +type SendgridArrayInput interface { + pulumi.Input + + ToSendgridArrayOutput() SendgridArrayOutput + ToSendgridArrayOutputWithContext(context.Context) SendgridArrayOutput +} + +type SendgridArray []SendgridInput + +func (SendgridArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Sendgrid)(nil)).Elem() +} + +func (i SendgridArray) ToSendgridArrayOutput() SendgridArrayOutput { + return i.ToSendgridArrayOutputWithContext(context.Background()) +} + +func (i SendgridArray) ToSendgridArrayOutputWithContext(ctx context.Context) SendgridArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SendgridArrayOutput) +} + +// SendgridMapInput is an input type that accepts SendgridMap and SendgridMapOutput values. +// You can construct a concrete instance of `SendgridMapInput` via: +// +// SendgridMap{ "key": SendgridArgs{...} } +type SendgridMapInput interface { + pulumi.Input + + ToSendgridMapOutput() SendgridMapOutput + ToSendgridMapOutputWithContext(context.Context) SendgridMapOutput +} + +type SendgridMap map[string]SendgridInput + +func (SendgridMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Sendgrid)(nil)).Elem() +} + +func (i SendgridMap) ToSendgridMapOutput() SendgridMapOutput { + return i.ToSendgridMapOutputWithContext(context.Background()) +} + +func (i SendgridMap) ToSendgridMapOutputWithContext(ctx context.Context) SendgridMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SendgridMapOutput) +} + +type SendgridOutput struct{ *pulumi.OutputState } + +func (SendgridOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Sendgrid)(nil)).Elem() +} + +func (o SendgridOutput) ToSendgridOutput() SendgridOutput { + return o +} + +func (o SendgridOutput) ToSendgridOutputWithContext(ctx context.Context) SendgridOutput { + return o +} + +// The name of the Doppler config +func (o SendgridOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o SendgridOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o SendgridOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o SendgridOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o SendgridOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +// SendGrid scopes +func (o SendgridOutput) Scopes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Sendgrid) pulumi.StringArrayOutput { return v.Scopes }).(pulumi.StringArrayOutput) +} + +type SendgridArrayOutput struct{ *pulumi.OutputState } + +func (SendgridArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Sendgrid)(nil)).Elem() +} + +func (o SendgridArrayOutput) ToSendgridArrayOutput() SendgridArrayOutput { + return o +} + +func (o SendgridArrayOutput) ToSendgridArrayOutputWithContext(ctx context.Context) SendgridArrayOutput { + return o +} + +func (o SendgridArrayOutput) Index(i pulumi.IntInput) SendgridOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Sendgrid { + return vs[0].([]*Sendgrid)[vs[1].(int)] + }).(SendgridOutput) +} + +type SendgridMapOutput struct{ *pulumi.OutputState } + +func (SendgridMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Sendgrid)(nil)).Elem() +} + +func (o SendgridMapOutput) ToSendgridMapOutput() SendgridMapOutput { + return o +} + +func (o SendgridMapOutput) ToSendgridMapOutputWithContext(ctx context.Context) SendgridMapOutput { + return o +} + +func (o SendgridMapOutput) MapIndex(k pulumi.StringInput) SendgridOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Sendgrid { + return vs[0].(map[string]*Sendgrid)[vs[1].(string)] + }).(SendgridOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*SendgridInput)(nil)).Elem(), &Sendgrid{}) + pulumi.RegisterInputType(reflect.TypeOf((*SendgridArrayInput)(nil)).Elem(), SendgridArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SendgridMapInput)(nil)).Elem(), SendgridMap{}) + pulumi.RegisterOutputType(SendgridOutput{}) + pulumi.RegisterOutputType(SendgridArrayOutput{}) + pulumi.RegisterOutputType(SendgridMapOutput{}) +} diff --git a/sdk/go/doppler/rotatedsecret/twilio.go b/sdk/go/doppler/rotatedsecret/twilio.go new file mode 100644 index 0000000..ba745f4 --- /dev/null +++ b/sdk/go/doppler/rotatedsecret/twilio.go @@ -0,0 +1,290 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package rotatedsecret + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +type Twilio struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the rotated secret + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntOutput `pulumi:"rotationPeriodSec"` +} + +// NewTwilio registers a new resource with the given unique name, arguments, and options. +func NewTwilio(ctx *pulumi.Context, + name string, args *TwilioArgs, opts ...pulumi.ResourceOption) (*Twilio, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.RotationPeriodSec == nil { + return nil, errors.New("invalid value for required argument 'RotationPeriodSec'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource Twilio + err := ctx.RegisterResource("doppler:rotatedSecret/twilio:Twilio", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetTwilio gets an existing Twilio resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetTwilio(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *TwilioState, opts ...pulumi.ResourceOption) (*Twilio, error) { + var resource Twilio + err := ctx.ReadResource("doppler:rotatedSecret/twilio:Twilio", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Twilio resources. +type twilioState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration *string `pulumi:"integration"` + // The name of the rotated secret + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec *int `pulumi:"rotationPeriodSec"` +} + +type TwilioState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringPtrInput + // The name of the rotated secret + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntPtrInput +} + +func (TwilioState) ElementType() reflect.Type { + return reflect.TypeOf((*twilioState)(nil)).Elem() +} + +type twilioArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The slug of the integration to use for this rotated secret + Integration string `pulumi:"integration"` + // The name of the rotated secret + Name string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // How frequently to rotate the secret + RotationPeriodSec int `pulumi:"rotationPeriodSec"` +} + +// The set of arguments for constructing a Twilio resource. +type TwilioArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The slug of the integration to use for this rotated secret + Integration pulumi.StringInput + // The name of the rotated secret + Name pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // How frequently to rotate the secret + RotationPeriodSec pulumi.IntInput +} + +func (TwilioArgs) ElementType() reflect.Type { + return reflect.TypeOf((*twilioArgs)(nil)).Elem() +} + +type TwilioInput interface { + pulumi.Input + + ToTwilioOutput() TwilioOutput + ToTwilioOutputWithContext(ctx context.Context) TwilioOutput +} + +func (*Twilio) ElementType() reflect.Type { + return reflect.TypeOf((**Twilio)(nil)).Elem() +} + +func (i *Twilio) ToTwilioOutput() TwilioOutput { + return i.ToTwilioOutputWithContext(context.Background()) +} + +func (i *Twilio) ToTwilioOutputWithContext(ctx context.Context) TwilioOutput { + return pulumi.ToOutputWithContext(ctx, i).(TwilioOutput) +} + +// TwilioArrayInput is an input type that accepts TwilioArray and TwilioArrayOutput values. +// You can construct a concrete instance of `TwilioArrayInput` via: +// +// TwilioArray{ TwilioArgs{...} } +type TwilioArrayInput interface { + pulumi.Input + + ToTwilioArrayOutput() TwilioArrayOutput + ToTwilioArrayOutputWithContext(context.Context) TwilioArrayOutput +} + +type TwilioArray []TwilioInput + +func (TwilioArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Twilio)(nil)).Elem() +} + +func (i TwilioArray) ToTwilioArrayOutput() TwilioArrayOutput { + return i.ToTwilioArrayOutputWithContext(context.Background()) +} + +func (i TwilioArray) ToTwilioArrayOutputWithContext(ctx context.Context) TwilioArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(TwilioArrayOutput) +} + +// TwilioMapInput is an input type that accepts TwilioMap and TwilioMapOutput values. +// You can construct a concrete instance of `TwilioMapInput` via: +// +// TwilioMap{ "key": TwilioArgs{...} } +type TwilioMapInput interface { + pulumi.Input + + ToTwilioMapOutput() TwilioMapOutput + ToTwilioMapOutputWithContext(context.Context) TwilioMapOutput +} + +type TwilioMap map[string]TwilioInput + +func (TwilioMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Twilio)(nil)).Elem() +} + +func (i TwilioMap) ToTwilioMapOutput() TwilioMapOutput { + return i.ToTwilioMapOutputWithContext(context.Background()) +} + +func (i TwilioMap) ToTwilioMapOutputWithContext(ctx context.Context) TwilioMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(TwilioMapOutput) +} + +type TwilioOutput struct{ *pulumi.OutputState } + +func (TwilioOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Twilio)(nil)).Elem() +} + +func (o TwilioOutput) ToTwilioOutput() TwilioOutput { + return o +} + +func (o TwilioOutput) ToTwilioOutputWithContext(ctx context.Context) TwilioOutput { + return o +} + +// The name of the Doppler config +func (o TwilioOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The slug of the integration to use for this rotated secret +func (o TwilioOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the rotated secret +func (o TwilioOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o TwilioOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *Twilio) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// How frequently to rotate the secret +func (o TwilioOutput) RotationPeriodSec() pulumi.IntOutput { + return o.ApplyT(func(v *Twilio) pulumi.IntOutput { return v.RotationPeriodSec }).(pulumi.IntOutput) +} + +type TwilioArrayOutput struct{ *pulumi.OutputState } + +func (TwilioArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Twilio)(nil)).Elem() +} + +func (o TwilioArrayOutput) ToTwilioArrayOutput() TwilioArrayOutput { + return o +} + +func (o TwilioArrayOutput) ToTwilioArrayOutputWithContext(ctx context.Context) TwilioArrayOutput { + return o +} + +func (o TwilioArrayOutput) Index(i pulumi.IntInput) TwilioOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Twilio { + return vs[0].([]*Twilio)[vs[1].(int)] + }).(TwilioOutput) +} + +type TwilioMapOutput struct{ *pulumi.OutputState } + +func (TwilioMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Twilio)(nil)).Elem() +} + +func (o TwilioMapOutput) ToTwilioMapOutput() TwilioMapOutput { + return o +} + +func (o TwilioMapOutput) ToTwilioMapOutputWithContext(ctx context.Context) TwilioMapOutput { + return o +} + +func (o TwilioMapOutput) MapIndex(k pulumi.StringInput) TwilioOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Twilio { + return vs[0].(map[string]*Twilio)[vs[1].(string)] + }).(TwilioOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*TwilioInput)(nil)).Elem(), &Twilio{}) + pulumi.RegisterInputType(reflect.TypeOf((*TwilioArrayInput)(nil)).Elem(), TwilioArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*TwilioMapInput)(nil)).Elem(), TwilioMap{}) + pulumi.RegisterOutputType(TwilioOutput{}) + pulumi.RegisterOutputType(TwilioArrayOutput{}) + pulumi.RegisterOutputType(TwilioMapOutput{}) +} diff --git a/sdk/go/doppler/secret.go b/sdk/go/doppler/secret.go index 4d8c2b8..a9b480f 100644 --- a/sdk/go/doppler/secret.go +++ b/sdk/go/doppler/secret.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,12 +8,50 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a single Doppler secret in a config. // +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi-random/sdk/v4/go/random" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dbPassword, err := random.NewPassword(ctx, "db_password", &random.PasswordArgs{ +// Length: 32, +// Special: true, +// }) +// if err != nil { +// return err +// } +// dbPasswordSecret, err := doppler.NewSecret(ctx, "db_password", &doppler.SecretArgs{ +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// Name: pulumi.String("DB_PASSWORD"), +// Value: dbPassword.Result, +// }) +// if err != nil { +// return err +// } +// ctx.Export("resourceValue", pulumi.Unsecret(dbPasswordSecret.Value).(pulumi.StringOutput)) +// return nil +// }) +// } +// +// ``` +// // ## Import // // ```sh @@ -32,7 +70,9 @@ type Secret struct { Project pulumi.StringOutput `pulumi:"project"` // The raw secret value Value pulumi.StringOutput `pulumi:"value"` - // The visibility of the secret + // The value type of the secret + ValueType pulumi.StringPtrOutput `pulumi:"valueType"` + // The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. Visibility pulumi.StringPtrOutput `pulumi:"visibility"` } @@ -96,7 +136,9 @@ type secretState struct { Project *string `pulumi:"project"` // The raw secret value Value *string `pulumi:"value"` - // The visibility of the secret + // The value type of the secret + ValueType *string `pulumi:"valueType"` + // The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. Visibility *string `pulumi:"visibility"` } @@ -111,7 +153,9 @@ type SecretState struct { Project pulumi.StringPtrInput // The raw secret value Value pulumi.StringPtrInput - // The visibility of the secret + // The value type of the secret + ValueType pulumi.StringPtrInput + // The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. Visibility pulumi.StringPtrInput } @@ -128,7 +172,9 @@ type secretArgs struct { Project string `pulumi:"project"` // The raw secret value Value string `pulumi:"value"` - // The visibility of the secret + // The value type of the secret + ValueType *string `pulumi:"valueType"` + // The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. Visibility *string `pulumi:"visibility"` } @@ -142,7 +188,9 @@ type SecretArgs struct { Project pulumi.StringInput // The raw secret value Value pulumi.StringInput - // The visibility of the secret + // The value type of the secret + ValueType pulumi.StringPtrInput + // The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. Visibility pulumi.StringPtrInput } @@ -258,7 +306,12 @@ func (o SecretOutput) Value() pulumi.StringOutput { return o.ApplyT(func(v *Secret) pulumi.StringOutput { return v.Value }).(pulumi.StringOutput) } -// The visibility of the secret +// The value type of the secret +func (o SecretOutput) ValueType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Secret) pulumi.StringPtrOutput { return v.ValueType }).(pulumi.StringPtrOutput) +} + +// The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. func (o SecretOutput) Visibility() pulumi.StringPtrOutput { return o.ApplyT(func(v *Secret) pulumi.StringPtrOutput { return v.Visibility }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/doppler/secretNote.go b/sdk/go/doppler/secretNote.go new file mode 100644 index 0000000..ddff113 --- /dev/null +++ b/sdk/go/doppler/secretNote.go @@ -0,0 +1,285 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage the note attached to a Doppler secret. Notes are scoped per project and secret name, and they apply across all configs in the project. +// +// The note resource is independent of `Secret`. A note can be declared for a secret managed inside or outside Terraform, as long as the secret exists in at least one config in the project. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := doppler.NewSecretNote(ctx, "stripe_key", &doppler.SecretNoteArgs{ +// Project: pulumi.String("backend"), +// Name: pulumi.String("STRIPE_SECRET_KEY"), +// Note: pulumi.String("Owner: payments team. Rotate quarterly via Stripe dashboard."), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +type SecretNote struct { + pulumi.CustomResourceState + + // The name of the secret. Notes are scoped per project + secret name and apply across all configs. + Name pulumi.StringOutput `pulumi:"name"` + // The note content to attach to the secret + Note pulumi.StringOutput `pulumi:"note"` + // The name of the Doppler project that owns the secret + Project pulumi.StringOutput `pulumi:"project"` +} + +// NewSecretNote registers a new resource with the given unique name, arguments, and options. +func NewSecretNote(ctx *pulumi.Context, + name string, args *SecretNoteArgs, opts ...pulumi.ResourceOption) (*SecretNote, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Note == nil { + return nil, errors.New("invalid value for required argument 'Note'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource SecretNote + err := ctx.RegisterResource("doppler:index/secretNote:SecretNote", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetSecretNote gets an existing SecretNote resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetSecretNote(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SecretNoteState, opts ...pulumi.ResourceOption) (*SecretNote, error) { + var resource SecretNote + err := ctx.ReadResource("doppler:index/secretNote:SecretNote", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering SecretNote resources. +type secretNoteState struct { + // The name of the secret. Notes are scoped per project + secret name and apply across all configs. + Name *string `pulumi:"name"` + // The note content to attach to the secret + Note *string `pulumi:"note"` + // The name of the Doppler project that owns the secret + Project *string `pulumi:"project"` +} + +type SecretNoteState struct { + // The name of the secret. Notes are scoped per project + secret name and apply across all configs. + Name pulumi.StringPtrInput + // The note content to attach to the secret + Note pulumi.StringPtrInput + // The name of the Doppler project that owns the secret + Project pulumi.StringPtrInput +} + +func (SecretNoteState) ElementType() reflect.Type { + return reflect.TypeOf((*secretNoteState)(nil)).Elem() +} + +type secretNoteArgs struct { + // The name of the secret. Notes are scoped per project + secret name and apply across all configs. + Name string `pulumi:"name"` + // The note content to attach to the secret + Note string `pulumi:"note"` + // The name of the Doppler project that owns the secret + Project string `pulumi:"project"` +} + +// The set of arguments for constructing a SecretNote resource. +type SecretNoteArgs struct { + // The name of the secret. Notes are scoped per project + secret name and apply across all configs. + Name pulumi.StringInput + // The note content to attach to the secret + Note pulumi.StringInput + // The name of the Doppler project that owns the secret + Project pulumi.StringInput +} + +func (SecretNoteArgs) ElementType() reflect.Type { + return reflect.TypeOf((*secretNoteArgs)(nil)).Elem() +} + +type SecretNoteInput interface { + pulumi.Input + + ToSecretNoteOutput() SecretNoteOutput + ToSecretNoteOutputWithContext(ctx context.Context) SecretNoteOutput +} + +func (*SecretNote) ElementType() reflect.Type { + return reflect.TypeOf((**SecretNote)(nil)).Elem() +} + +func (i *SecretNote) ToSecretNoteOutput() SecretNoteOutput { + return i.ToSecretNoteOutputWithContext(context.Background()) +} + +func (i *SecretNote) ToSecretNoteOutputWithContext(ctx context.Context) SecretNoteOutput { + return pulumi.ToOutputWithContext(ctx, i).(SecretNoteOutput) +} + +// SecretNoteArrayInput is an input type that accepts SecretNoteArray and SecretNoteArrayOutput values. +// You can construct a concrete instance of `SecretNoteArrayInput` via: +// +// SecretNoteArray{ SecretNoteArgs{...} } +type SecretNoteArrayInput interface { + pulumi.Input + + ToSecretNoteArrayOutput() SecretNoteArrayOutput + ToSecretNoteArrayOutputWithContext(context.Context) SecretNoteArrayOutput +} + +type SecretNoteArray []SecretNoteInput + +func (SecretNoteArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SecretNote)(nil)).Elem() +} + +func (i SecretNoteArray) ToSecretNoteArrayOutput() SecretNoteArrayOutput { + return i.ToSecretNoteArrayOutputWithContext(context.Background()) +} + +func (i SecretNoteArray) ToSecretNoteArrayOutputWithContext(ctx context.Context) SecretNoteArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SecretNoteArrayOutput) +} + +// SecretNoteMapInput is an input type that accepts SecretNoteMap and SecretNoteMapOutput values. +// You can construct a concrete instance of `SecretNoteMapInput` via: +// +// SecretNoteMap{ "key": SecretNoteArgs{...} } +type SecretNoteMapInput interface { + pulumi.Input + + ToSecretNoteMapOutput() SecretNoteMapOutput + ToSecretNoteMapOutputWithContext(context.Context) SecretNoteMapOutput +} + +type SecretNoteMap map[string]SecretNoteInput + +func (SecretNoteMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SecretNote)(nil)).Elem() +} + +func (i SecretNoteMap) ToSecretNoteMapOutput() SecretNoteMapOutput { + return i.ToSecretNoteMapOutputWithContext(context.Background()) +} + +func (i SecretNoteMap) ToSecretNoteMapOutputWithContext(ctx context.Context) SecretNoteMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SecretNoteMapOutput) +} + +type SecretNoteOutput struct{ *pulumi.OutputState } + +func (SecretNoteOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SecretNote)(nil)).Elem() +} + +func (o SecretNoteOutput) ToSecretNoteOutput() SecretNoteOutput { + return o +} + +func (o SecretNoteOutput) ToSecretNoteOutputWithContext(ctx context.Context) SecretNoteOutput { + return o +} + +// The name of the secret. Notes are scoped per project + secret name and apply across all configs. +func (o SecretNoteOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *SecretNote) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The note content to attach to the secret +func (o SecretNoteOutput) Note() pulumi.StringOutput { + return o.ApplyT(func(v *SecretNote) pulumi.StringOutput { return v.Note }).(pulumi.StringOutput) +} + +// The name of the Doppler project that owns the secret +func (o SecretNoteOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *SecretNote) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +type SecretNoteArrayOutput struct{ *pulumi.OutputState } + +func (SecretNoteArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SecretNote)(nil)).Elem() +} + +func (o SecretNoteArrayOutput) ToSecretNoteArrayOutput() SecretNoteArrayOutput { + return o +} + +func (o SecretNoteArrayOutput) ToSecretNoteArrayOutputWithContext(ctx context.Context) SecretNoteArrayOutput { + return o +} + +func (o SecretNoteArrayOutput) Index(i pulumi.IntInput) SecretNoteOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SecretNote { + return vs[0].([]*SecretNote)[vs[1].(int)] + }).(SecretNoteOutput) +} + +type SecretNoteMapOutput struct{ *pulumi.OutputState } + +func (SecretNoteMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SecretNote)(nil)).Elem() +} + +func (o SecretNoteMapOutput) ToSecretNoteMapOutput() SecretNoteMapOutput { + return o +} + +func (o SecretNoteMapOutput) ToSecretNoteMapOutputWithContext(ctx context.Context) SecretNoteMapOutput { + return o +} + +func (o SecretNoteMapOutput) MapIndex(k pulumi.StringInput) SecretNoteOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SecretNote { + return vs[0].(map[string]*SecretNote)[vs[1].(string)] + }).(SecretNoteOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*SecretNoteInput)(nil)).Elem(), &SecretNote{}) + pulumi.RegisterInputType(reflect.TypeOf((*SecretNoteArrayInput)(nil)).Elem(), SecretNoteArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SecretNoteMapInput)(nil)).Elem(), SecretNoteMap{}) + pulumi.RegisterOutputType(SecretNoteOutput{}) + pulumi.RegisterOutputType(SecretNoteArrayOutput{}) + pulumi.RegisterOutputType(SecretNoteMapOutput{}) +} diff --git a/sdk/go/doppler/secretssync/awsParameterStore.go b/sdk/go/doppler/secretssync/awsParameterStore.go index b33f7e6..e0a9ebf 100644 --- a/sdk/go/doppler/secretssync/awsParameterStore.go +++ b/sdk/go/doppler/secretssync/awsParameterStore.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage an AWS Parameter Store Doppler sync. @@ -23,104 +23,58 @@ import ( // // "encoding/json" // -// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" +// "github.com/pulumi/pulumi-aws/sdk/v7/go/aws" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// tmpJSON0, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Effect": "Allow", -// "Action": "sts:AssumeRole", -// "Principal": map[string]interface{}{ -// "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", -// }, -// "Condition": map[string]interface{}{ -// "StringEquals": map[string]interface{}{ -// "sts:ExternalId": "", -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json0 := string(tmpJSON0) -// tmpJSON1, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Action": []string{ -// "ssm:PutParameter", -// "ssm:LabelParameterVersion", -// "ssm:DeleteParameter", -// "ssm:RemoveTagsFromResource", -// "ssm:GetParameterHistory", -// "ssm:AddTagsToResource", -// "ssm:GetParametersByPath", -// "ssm:GetParameters", -// "ssm:GetParameter", -// "ssm:DeleteParameters", -// }, -// "Effect": "Allow", -// "Resource": "*", -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json1 := string(tmpJSON1) -// dopplerParameterStore, err := iam.NewRole(ctx, "doppler_parameter_store", &iam.RoleArgs{ -// Name: pulumi.String("doppler_parameter_store"), -// AssumeRolePolicy: pulumi.String(json0), -// InlinePolicies: iam.RoleInlinePolicyArray{ -// &iam.RoleInlinePolicyArgs{ -// Name: pulumi.String("doppler_secret_manager"), -// Policy: pulumi.String(json1), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// prod, err := integration.NewAwsParameterStore(ctx, "prod", &integration.AwsParameterStoreArgs{ -// Name: pulumi.String("Production"), -// AssumeRoleArn: dopplerParameterStore.Arn, -// }) -// if err != nil { -// return err -// } -// _, err = secretsSync.NewAwsParameterStore(ctx, "backend_prod", &secretsSync.AwsParameterStoreArgs{ -// Integration: prod.ID(), -// Project: pulumi.String("backend"), -// Config: pulumi.String("prd"), -// Region: pulumi.String("us-east-1"), -// Path: pulumi.String("/backend/"), -// SecureString: pulumi.Bool(true), -// Tags: pulumi.StringMap{ -// "myTag": pulumi.String("enabled"), -// }, -// DeleteBehavior: pulumi.String("leave_in_target"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dopplerParameterStore, err := aws.NewIamRole(ctx, "doppler_parameter_store", &aws.IamRoleArgs{ +// InlinePolicy: []map[string]string{ +// { +// "name": "doppler_secret_manager", +// "policy": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }, +// }, +// Name: "doppler_parameter_store", +// AssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }) +// if err != nil { +// return err +// } +// prod, err := integration.NewAwsParameterStore(ctx, "prod", &integration.AwsParameterStoreArgs{ +// Name: pulumi.String("Production"), +// AssumeRoleArn: dopplerParameterStore.Arn, +// }) +// if err != nil { +// return err +// } +// _, err = secretssync.NewAwsParameterStore(ctx, "backend_prod", &secretssync.AwsParameterStoreArgs{ +// Integration: prod.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// Region: pulumi.String("us-east-1"), +// Path: pulumi.String("/backend/"), +// SecureString: pulumi.Bool(true), +// Tags: pulumi.StringMap{ +// "myTag": pulumi.String("enabled"), +// }, +// DeleteBehavior: pulumi.String("leave_in_target"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } // ``` type AwsParameterStore struct { pulumi.CustomResourceState + // Whether or not the parameters are explicitly stored as an advanced parameter + AdvancedParameter pulumi.BoolPtrOutput `pulumi:"advancedParameter"` // The name of the Doppler config Config pulumi.StringOutput `pulumi:"config"` // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. @@ -129,6 +83,8 @@ type AwsParameterStore struct { Integration pulumi.StringOutput `pulumi:"integration"` // The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"` + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform pulumi.StringPtrOutput `pulumi:"nameTransform"` // The path to the parameters in AWS Path pulumi.StringOutput `pulumi:"path"` // The name of the Doppler project @@ -137,8 +93,12 @@ type AwsParameterStore struct { Region pulumi.StringOutput `pulumi:"region"` // Whether or not the parameters are stored as a secure string SecureString pulumi.BoolPtrOutput `pulumi:"secureString"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + SyncStrategy pulumi.StringPtrOutput `pulumi:"syncStrategy"` // AWS tags to attach to the parameters Tags pulumi.StringMapOutput `pulumi:"tags"` + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags pulumi.StringPtrOutput `pulumi:"updateResourceTags"` } // NewAwsParameterStore registers a new resource with the given unique name, arguments, and options. @@ -186,6 +146,8 @@ func GetAwsParameterStore(ctx *pulumi.Context, // Input properties used for looking up and filtering AwsParameterStore resources. type awsParameterStoreState struct { + // Whether or not the parameters are explicitly stored as an advanced parameter + AdvancedParameter *bool `pulumi:"advancedParameter"` // The name of the Doppler config Config *string `pulumi:"config"` // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. @@ -194,6 +156,8 @@ type awsParameterStoreState struct { Integration *string `pulumi:"integration"` // The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) KmsKeyId *string `pulumi:"kmsKeyId"` + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform *string `pulumi:"nameTransform"` // The path to the parameters in AWS Path *string `pulumi:"path"` // The name of the Doppler project @@ -202,11 +166,17 @@ type awsParameterStoreState struct { Region *string `pulumi:"region"` // Whether or not the parameters are stored as a secure string SecureString *bool `pulumi:"secureString"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + SyncStrategy *string `pulumi:"syncStrategy"` // AWS tags to attach to the parameters Tags map[string]string `pulumi:"tags"` + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags *string `pulumi:"updateResourceTags"` } type AwsParameterStoreState struct { + // Whether or not the parameters are explicitly stored as an advanced parameter + AdvancedParameter pulumi.BoolPtrInput // The name of the Doppler config Config pulumi.StringPtrInput // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. @@ -215,6 +185,8 @@ type AwsParameterStoreState struct { Integration pulumi.StringPtrInput // The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) KmsKeyId pulumi.StringPtrInput + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform pulumi.StringPtrInput // The path to the parameters in AWS Path pulumi.StringPtrInput // The name of the Doppler project @@ -223,8 +195,12 @@ type AwsParameterStoreState struct { Region pulumi.StringPtrInput // Whether or not the parameters are stored as a secure string SecureString pulumi.BoolPtrInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + SyncStrategy pulumi.StringPtrInput // AWS tags to attach to the parameters Tags pulumi.StringMapInput + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags pulumi.StringPtrInput } func (AwsParameterStoreState) ElementType() reflect.Type { @@ -232,6 +208,8 @@ func (AwsParameterStoreState) ElementType() reflect.Type { } type awsParameterStoreArgs struct { + // Whether or not the parameters are explicitly stored as an advanced parameter + AdvancedParameter *bool `pulumi:"advancedParameter"` // The name of the Doppler config Config string `pulumi:"config"` // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. @@ -240,6 +218,8 @@ type awsParameterStoreArgs struct { Integration string `pulumi:"integration"` // The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) KmsKeyId *string `pulumi:"kmsKeyId"` + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform *string `pulumi:"nameTransform"` // The path to the parameters in AWS Path string `pulumi:"path"` // The name of the Doppler project @@ -248,12 +228,18 @@ type awsParameterStoreArgs struct { Region string `pulumi:"region"` // Whether or not the parameters are stored as a secure string SecureString *bool `pulumi:"secureString"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + SyncStrategy *string `pulumi:"syncStrategy"` // AWS tags to attach to the parameters Tags map[string]string `pulumi:"tags"` + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags *string `pulumi:"updateResourceTags"` } // The set of arguments for constructing a AwsParameterStore resource. type AwsParameterStoreArgs struct { + // Whether or not the parameters are explicitly stored as an advanced parameter + AdvancedParameter pulumi.BoolPtrInput // The name of the Doppler config Config pulumi.StringInput // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. @@ -262,6 +248,8 @@ type AwsParameterStoreArgs struct { Integration pulumi.StringInput // The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) KmsKeyId pulumi.StringPtrInput + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform pulumi.StringPtrInput // The path to the parameters in AWS Path pulumi.StringInput // The name of the Doppler project @@ -270,8 +258,12 @@ type AwsParameterStoreArgs struct { Region pulumi.StringInput // Whether or not the parameters are stored as a secure string SecureString pulumi.BoolPtrInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + SyncStrategy pulumi.StringPtrInput // AWS tags to attach to the parameters Tags pulumi.StringMapInput + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags pulumi.StringPtrInput } func (AwsParameterStoreArgs) ElementType() reflect.Type { @@ -361,6 +353,11 @@ func (o AwsParameterStoreOutput) ToAwsParameterStoreOutputWithContext(ctx contex return o } +// Whether or not the parameters are explicitly stored as an advanced parameter +func (o AwsParameterStoreOutput) AdvancedParameter() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *AwsParameterStore) pulumi.BoolPtrOutput { return v.AdvancedParameter }).(pulumi.BoolPtrOutput) +} + // The name of the Doppler config func (o AwsParameterStoreOutput) Config() pulumi.StringOutput { return o.ApplyT(func(v *AwsParameterStore) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) @@ -381,6 +378,11 @@ func (o AwsParameterStoreOutput) KmsKeyId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AwsParameterStore) pulumi.StringPtrOutput { return v.KmsKeyId }).(pulumi.StringPtrOutput) } +// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab +func (o AwsParameterStoreOutput) NameTransform() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsParameterStore) pulumi.StringPtrOutput { return v.NameTransform }).(pulumi.StringPtrOutput) +} + // The path to the parameters in AWS func (o AwsParameterStoreOutput) Path() pulumi.StringOutput { return o.ApplyT(func(v *AwsParameterStore) pulumi.StringOutput { return v.Path }).(pulumi.StringOutput) @@ -401,11 +403,21 @@ func (o AwsParameterStoreOutput) SecureString() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AwsParameterStore) pulumi.BoolPtrOutput { return v.SecureString }).(pulumi.BoolPtrOutput) } +// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. +func (o AwsParameterStoreOutput) SyncStrategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsParameterStore) pulumi.StringPtrOutput { return v.SyncStrategy }).(pulumi.StringPtrOutput) +} + // AWS tags to attach to the parameters func (o AwsParameterStoreOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *AwsParameterStore) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } +// Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) +func (o AwsParameterStoreOutput) UpdateResourceTags() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsParameterStore) pulumi.StringPtrOutput { return v.UpdateResourceTags }).(pulumi.StringPtrOutput) +} + type AwsParameterStoreArrayOutput struct{ *pulumi.OutputState } func (AwsParameterStoreArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/doppler/secretssync/awsSecretsManager.go b/sdk/go/doppler/secretssync/awsSecretsManager.go index e5d0224..bacb3df 100644 --- a/sdk/go/doppler/secretssync/awsSecretsManager.go +++ b/sdk/go/doppler/secretssync/awsSecretsManager.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage an AWS Secrets Manager Doppler sync. @@ -23,96 +23,51 @@ import ( // // "encoding/json" // -// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" +// "github.com/pulumi/pulumi-aws/sdk/v7/go/aws" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// tmpJSON0, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Effect": "Allow", -// "Action": "sts:AssumeRole", -// "Principal": map[string]interface{}{ -// "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", -// }, -// "Condition": map[string]interface{}{ -// "StringEquals": map[string]interface{}{ -// "sts:ExternalId": "", -// }, -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json0 := string(tmpJSON0) -// tmpJSON1, err := json.Marshal(map[string]interface{}{ -// "Version": "2012-10-17", -// "Statement": []map[string]interface{}{ -// map[string]interface{}{ -// "Action": []string{ -// "secretsmanager:GetSecretValue", -// "secretsmanager:DescribeSecret", -// "secretsmanager:PutSecretValue", -// "secretsmanager:CreateSecret", -// "secretsmanager:DeleteSecret", -// "secretsmanager:TagResource", -// "secretsmanager:UpdateSecret", -// }, -// "Effect": "Allow", -// "Resource": "*", -// }, -// }, -// }) -// if err != nil { -// return err -// } -// json1 := string(tmpJSON1) -// dopplerSecretsManager, err := iam.NewRole(ctx, "doppler_secrets_manager", &iam.RoleArgs{ -// Name: pulumi.String("doppler_secrets_manager"), -// AssumeRolePolicy: pulumi.String(json0), -// InlinePolicies: iam.RoleInlinePolicyArray{ -// &iam.RoleInlinePolicyArgs{ -// Name: pulumi.String("doppler_secret_manager"), -// Policy: pulumi.String(json1), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// prod, err := integration.NewAwsSecretsManager(ctx, "prod", &integration.AwsSecretsManagerArgs{ -// Name: pulumi.String("Production"), -// AssumeRoleArn: dopplerSecretsManager.Arn, -// }) -// if err != nil { -// return err -// } -// _, err = secretsSync.NewAwsSecretsManager(ctx, "backend_prod", &secretsSync.AwsSecretsManagerArgs{ -// Integration: prod.ID(), -// Project: pulumi.String("backend"), -// Config: pulumi.String("prd"), -// Region: pulumi.String("us-east-1"), -// Path: pulumi.String("/backend/"), -// Tags: pulumi.StringMap{ -// "myTag": pulumi.String("enabled"), -// }, -// DeleteBehavior: pulumi.String("leave_in_target"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// dopplerSecretsManager, err := aws.NewIamRole(ctx, "doppler_secrets_manager", &aws.IamRoleArgs{ +// InlinePolicy: []map[string]string{ +// { +// "name": "doppler_secret_manager", +// "policy": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }, +// }, +// Name: "doppler_secrets_manager", +// AssumeRolePolicy: %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON), +// }) +// if err != nil { +// return err +// } +// prod, err := integration.NewAwsSecretsManager(ctx, "prod", &integration.AwsSecretsManagerArgs{ +// Name: pulumi.String("Production"), +// AssumeRoleArn: dopplerSecretsManager.Arn, +// }) +// if err != nil { +// return err +// } +// _, err = secretssync.NewAwsSecretsManager(ctx, "backend_prod", &secretssync.AwsSecretsManagerArgs{ +// Integration: prod.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// Region: pulumi.String("us-east-1"), +// Path: pulumi.String("/backend/"), +// Tags: pulumi.StringMap{ +// "myTag": pulumi.String("enabled"), +// }, +// DeleteBehavior: pulumi.String("leave_in_target"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } // ``` type AwsSecretsManager struct { pulumi.CustomResourceState @@ -125,16 +80,24 @@ type AwsSecretsManager struct { Integration pulumi.StringOutput `pulumi:"integration"` // The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"` + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform pulumi.StringPtrOutput `pulumi:"nameTransform"` // The path to the secret in AWS Path pulumi.StringOutput `pulumi:"path"` + // The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + PathBehavior pulumi.StringPtrOutput `pulumi:"pathBehavior"` // The name of the Doppler project Project pulumi.StringOutput `pulumi:"project"` // The AWS region Region pulumi.StringOutput `pulumi:"region"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + SyncStrategy pulumi.StringPtrOutput `pulumi:"syncStrategy"` // AWS tags to attach to the secrets Tags pulumi.StringMapOutput `pulumi:"tags"` - // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. UpdateMetadata pulumi.BoolPtrOutput `pulumi:"updateMetadata"` + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags pulumi.StringPtrOutput `pulumi:"updateResourceTags"` } // NewAwsSecretsManager registers a new resource with the given unique name, arguments, and options. @@ -190,16 +153,24 @@ type awsSecretsManagerState struct { Integration *string `pulumi:"integration"` // The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) KmsKeyId *string `pulumi:"kmsKeyId"` + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform *string `pulumi:"nameTransform"` // The path to the secret in AWS Path *string `pulumi:"path"` + // The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + PathBehavior *string `pulumi:"pathBehavior"` // The name of the Doppler project Project *string `pulumi:"project"` // The AWS region Region *string `pulumi:"region"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + SyncStrategy *string `pulumi:"syncStrategy"` // AWS tags to attach to the secrets Tags map[string]string `pulumi:"tags"` - // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. UpdateMetadata *bool `pulumi:"updateMetadata"` + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags *string `pulumi:"updateResourceTags"` } type AwsSecretsManagerState struct { @@ -211,16 +182,24 @@ type AwsSecretsManagerState struct { Integration pulumi.StringPtrInput // The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) KmsKeyId pulumi.StringPtrInput + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform pulumi.StringPtrInput // The path to the secret in AWS Path pulumi.StringPtrInput + // The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + PathBehavior pulumi.StringPtrInput // The name of the Doppler project Project pulumi.StringPtrInput // The AWS region Region pulumi.StringPtrInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + SyncStrategy pulumi.StringPtrInput // AWS tags to attach to the secrets Tags pulumi.StringMapInput - // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. UpdateMetadata pulumi.BoolPtrInput + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags pulumi.StringPtrInput } func (AwsSecretsManagerState) ElementType() reflect.Type { @@ -236,16 +215,24 @@ type awsSecretsManagerArgs struct { Integration string `pulumi:"integration"` // The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) KmsKeyId *string `pulumi:"kmsKeyId"` + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform *string `pulumi:"nameTransform"` // The path to the secret in AWS Path string `pulumi:"path"` + // The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + PathBehavior *string `pulumi:"pathBehavior"` // The name of the Doppler project Project string `pulumi:"project"` // The AWS region Region string `pulumi:"region"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + SyncStrategy *string `pulumi:"syncStrategy"` // AWS tags to attach to the secrets Tags map[string]string `pulumi:"tags"` - // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. UpdateMetadata *bool `pulumi:"updateMetadata"` + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags *string `pulumi:"updateResourceTags"` } // The set of arguments for constructing a AwsSecretsManager resource. @@ -258,16 +245,24 @@ type AwsSecretsManagerArgs struct { Integration pulumi.StringInput // The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) KmsKeyId pulumi.StringPtrInput + // An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + NameTransform pulumi.StringPtrInput // The path to the secret in AWS Path pulumi.StringInput + // The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + PathBehavior pulumi.StringPtrInput // The name of the Doppler project Project pulumi.StringInput // The AWS region Region pulumi.StringInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + SyncStrategy pulumi.StringPtrInput // AWS tags to attach to the secrets Tags pulumi.StringMapInput - // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + // If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. UpdateMetadata pulumi.BoolPtrInput + // Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + UpdateResourceTags pulumi.StringPtrInput } func (AwsSecretsManagerArgs) ElementType() reflect.Type { @@ -377,11 +372,21 @@ func (o AwsSecretsManagerOutput) KmsKeyId() pulumi.StringPtrOutput { return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringPtrOutput { return v.KmsKeyId }).(pulumi.StringPtrOutput) } +// An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab +func (o AwsSecretsManagerOutput) NameTransform() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringPtrOutput { return v.NameTransform }).(pulumi.StringPtrOutput) +} + // The path to the secret in AWS func (o AwsSecretsManagerOutput) Path() pulumi.StringOutput { return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringOutput { return v.Path }).(pulumi.StringOutput) } +// The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. +func (o AwsSecretsManagerOutput) PathBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringPtrOutput { return v.PathBehavior }).(pulumi.StringPtrOutput) +} + // The name of the Doppler project func (o AwsSecretsManagerOutput) Project() pulumi.StringOutput { return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) @@ -392,16 +397,26 @@ func (o AwsSecretsManagerOutput) Region() pulumi.StringOutput { return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput) } +// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. +func (o AwsSecretsManagerOutput) SyncStrategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringPtrOutput { return v.SyncStrategy }).(pulumi.StringPtrOutput) +} + // AWS tags to attach to the secrets func (o AwsSecretsManagerOutput) Tags() pulumi.StringMapOutput { return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) } -// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. +// If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. func (o AwsSecretsManagerOutput) UpdateMetadata() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AwsSecretsManager) pulumi.BoolPtrOutput { return v.UpdateMetadata }).(pulumi.BoolPtrOutput) } +// Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) +func (o AwsSecretsManagerOutput) UpdateResourceTags() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AwsSecretsManager) pulumi.StringPtrOutput { return v.UpdateResourceTags }).(pulumi.StringPtrOutput) +} + type AwsSecretsManagerArrayOutput struct{ *pulumi.OutputState } func (AwsSecretsManagerArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/doppler/secretssync/azureVault.go b/sdk/go/doppler/secretssync/azureVault.go new file mode 100644 index 0000000..277d43e --- /dev/null +++ b/sdk/go/doppler/secretssync/azureVault.go @@ -0,0 +1,321 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package secretssync + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage an Azure Vault Doppler sync. +type AzureVault struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrOutput `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration pulumi.StringOutput `pulumi:"integration"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + SingleSecretName pulumi.StringPtrOutput `pulumi:"singleSecretName"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy pulumi.StringOutput `pulumi:"syncStrategy"` + // The Azure Vault URI for the vault secrets will be synced to. + VaultUri pulumi.StringOutput `pulumi:"vaultUri"` +} + +// NewAzureVault registers a new resource with the given unique name, arguments, and options. +func NewAzureVault(ctx *pulumi.Context, + name string, args *AzureVaultArgs, opts ...pulumi.ResourceOption) (*AzureVault, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.SyncStrategy == nil { + return nil, errors.New("invalid value for required argument 'SyncStrategy'") + } + if args.VaultUri == nil { + return nil, errors.New("invalid value for required argument 'VaultUri'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AzureVault + err := ctx.RegisterResource("doppler:secretsSync/azureVault:AzureVault", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAzureVault gets an existing AzureVault resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetAzureVault(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AzureVaultState, opts ...pulumi.ResourceOption) (*AzureVault, error) { + var resource AzureVault + err := ctx.ReadResource("doppler:secretsSync/azureVault:AzureVault", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AzureVault resources. +type azureVaultState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration *string `pulumi:"integration"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + SingleSecretName *string `pulumi:"singleSecretName"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy *string `pulumi:"syncStrategy"` + // The Azure Vault URI for the vault secrets will be synced to. + VaultUri *string `pulumi:"vaultUri"` +} + +type AzureVaultState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + SingleSecretName pulumi.StringPtrInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy pulumi.StringPtrInput + // The Azure Vault URI for the vault secrets will be synced to. + VaultUri pulumi.StringPtrInput +} + +func (AzureVaultState) ElementType() reflect.Type { + return reflect.TypeOf((*azureVaultState)(nil)).Elem() +} + +type azureVaultArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration string `pulumi:"integration"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + SingleSecretName *string `pulumi:"singleSecretName"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy string `pulumi:"syncStrategy"` + // The Azure Vault URI for the vault secrets will be synced to. + VaultUri string `pulumi:"vaultUri"` +} + +// The set of arguments for constructing a AzureVault resource. +type AzureVaultArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringInput + // The name of the Doppler project + Project pulumi.StringInput + // The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + SingleSecretName pulumi.StringPtrInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy pulumi.StringInput + // The Azure Vault URI for the vault secrets will be synced to. + VaultUri pulumi.StringInput +} + +func (AzureVaultArgs) ElementType() reflect.Type { + return reflect.TypeOf((*azureVaultArgs)(nil)).Elem() +} + +type AzureVaultInput interface { + pulumi.Input + + ToAzureVaultOutput() AzureVaultOutput + ToAzureVaultOutputWithContext(ctx context.Context) AzureVaultOutput +} + +func (*AzureVault) ElementType() reflect.Type { + return reflect.TypeOf((**AzureVault)(nil)).Elem() +} + +func (i *AzureVault) ToAzureVaultOutput() AzureVaultOutput { + return i.ToAzureVaultOutputWithContext(context.Background()) +} + +func (i *AzureVault) ToAzureVaultOutputWithContext(ctx context.Context) AzureVaultOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureVaultOutput) +} + +// AzureVaultArrayInput is an input type that accepts AzureVaultArray and AzureVaultArrayOutput values. +// You can construct a concrete instance of `AzureVaultArrayInput` via: +// +// AzureVaultArray{ AzureVaultArgs{...} } +type AzureVaultArrayInput interface { + pulumi.Input + + ToAzureVaultArrayOutput() AzureVaultArrayOutput + ToAzureVaultArrayOutputWithContext(context.Context) AzureVaultArrayOutput +} + +type AzureVaultArray []AzureVaultInput + +func (AzureVaultArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureVault)(nil)).Elem() +} + +func (i AzureVaultArray) ToAzureVaultArrayOutput() AzureVaultArrayOutput { + return i.ToAzureVaultArrayOutputWithContext(context.Background()) +} + +func (i AzureVaultArray) ToAzureVaultArrayOutputWithContext(ctx context.Context) AzureVaultArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureVaultArrayOutput) +} + +// AzureVaultMapInput is an input type that accepts AzureVaultMap and AzureVaultMapOutput values. +// You can construct a concrete instance of `AzureVaultMapInput` via: +// +// AzureVaultMap{ "key": AzureVaultArgs{...} } +type AzureVaultMapInput interface { + pulumi.Input + + ToAzureVaultMapOutput() AzureVaultMapOutput + ToAzureVaultMapOutputWithContext(context.Context) AzureVaultMapOutput +} + +type AzureVaultMap map[string]AzureVaultInput + +func (AzureVaultMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureVault)(nil)).Elem() +} + +func (i AzureVaultMap) ToAzureVaultMapOutput() AzureVaultMapOutput { + return i.ToAzureVaultMapOutputWithContext(context.Background()) +} + +func (i AzureVaultMap) ToAzureVaultMapOutputWithContext(ctx context.Context) AzureVaultMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AzureVaultMapOutput) +} + +type AzureVaultOutput struct{ *pulumi.OutputState } + +func (AzureVaultOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AzureVault)(nil)).Elem() +} + +func (o AzureVaultOutput) ToAzureVaultOutput() AzureVaultOutput { + return o +} + +func (o AzureVaultOutput) ToAzureVaultOutputWithContext(ctx context.Context) AzureVaultOutput { + return o +} + +// The name of the Doppler config +func (o AzureVaultOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. +func (o AzureVaultOutput) DeleteBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringPtrOutput { return v.DeleteBehavior }).(pulumi.StringPtrOutput) +} + +// The slug of the integration to use for this sync +func (o AzureVaultOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name of the Doppler project +func (o AzureVaultOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. +func (o AzureVaultOutput) SingleSecretName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringPtrOutput { return v.SingleSecretName }).(pulumi.StringPtrOutput) +} + +// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). +func (o AzureVaultOutput) SyncStrategy() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringOutput { return v.SyncStrategy }).(pulumi.StringOutput) +} + +// The Azure Vault URI for the vault secrets will be synced to. +func (o AzureVaultOutput) VaultUri() pulumi.StringOutput { + return o.ApplyT(func(v *AzureVault) pulumi.StringOutput { return v.VaultUri }).(pulumi.StringOutput) +} + +type AzureVaultArrayOutput struct{ *pulumi.OutputState } + +func (AzureVaultArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AzureVault)(nil)).Elem() +} + +func (o AzureVaultArrayOutput) ToAzureVaultArrayOutput() AzureVaultArrayOutput { + return o +} + +func (o AzureVaultArrayOutput) ToAzureVaultArrayOutputWithContext(ctx context.Context) AzureVaultArrayOutput { + return o +} + +func (o AzureVaultArrayOutput) Index(i pulumi.IntInput) AzureVaultOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AzureVault { + return vs[0].([]*AzureVault)[vs[1].(int)] + }).(AzureVaultOutput) +} + +type AzureVaultMapOutput struct{ *pulumi.OutputState } + +func (AzureVaultMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AzureVault)(nil)).Elem() +} + +func (o AzureVaultMapOutput) ToAzureVaultMapOutput() AzureVaultMapOutput { + return o +} + +func (o AzureVaultMapOutput) ToAzureVaultMapOutputWithContext(ctx context.Context) AzureVaultMapOutput { + return o +} + +func (o AzureVaultMapOutput) MapIndex(k pulumi.StringInput) AzureVaultOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AzureVault { + return vs[0].(map[string]*AzureVault)[vs[1].(string)] + }).(AzureVaultOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AzureVaultInput)(nil)).Elem(), &AzureVault{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureVaultArrayInput)(nil)).Elem(), AzureVaultArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AzureVaultMapInput)(nil)).Elem(), AzureVaultMap{}) + pulumi.RegisterOutputType(AzureVaultOutput{}) + pulumi.RegisterOutputType(AzureVaultArrayOutput{}) + pulumi.RegisterOutputType(AzureVaultMapOutput{}) +} diff --git a/sdk/go/doppler/secretssync/circleci.go b/sdk/go/doppler/secretssync/circleci.go index b18dcd4..7e7442c 100644 --- a/sdk/go/doppler/secretssync/circleci.go +++ b/sdk/go/doppler/secretssync/circleci.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a CircleCI Doppler sync. @@ -21,9 +21,9 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) // @@ -36,7 +36,7 @@ import ( // if err != nil { // return err // } -// _, err = secretsSync.NewCircleci(ctx, "backend_prod", &secretsSync.CircleciArgs{ +// _, err = secretssync.NewCircleci(ctx, "backend_prod", &secretssync.CircleciArgs{ // Integration: prod.ID(), // Project: pulumi.String("backend"), // Config: pulumi.String("prd"), diff --git a/sdk/go/doppler/secretssync/flyio.go b/sdk/go/doppler/secretssync/flyio.go index c061d71..4728663 100644 --- a/sdk/go/doppler/secretssync/flyio.go +++ b/sdk/go/doppler/secretssync/flyio.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Fly.io Doppler sync. @@ -21,9 +21,9 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync" // // ) // @@ -36,7 +36,7 @@ import ( // if err != nil { // return err // } -// _, err = secretsSync.NewFlyio(ctx, "backend_prod", &secretsSync.FlyioArgs{ +// _, err = secretssync.NewFlyio(ctx, "backend_prod", &secretssync.FlyioArgs{ // Integration: prod.ID(), // Project: pulumi.String("backend"), // Config: pulumi.String("prd"), diff --git a/sdk/go/doppler/secretssync/gcpSecretManager.go b/sdk/go/doppler/secretssync/gcpSecretManager.go new file mode 100644 index 0000000..5d819a5 --- /dev/null +++ b/sdk/go/doppler/secretssync/gcpSecretManager.go @@ -0,0 +1,336 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package secretssync + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GCP Secret Manager Doppler sync. +type GcpSecretManager struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrOutput `pulumi:"deleteBehavior"` + // Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + Format pulumi.StringPtrOutput `pulumi:"format"` + // The slug of the integration to use for this sync + Integration pulumi.StringOutput `pulumi:"integration"` + // The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + Name pulumi.StringPtrOutput `pulumi:"name"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + Regions pulumi.StringArrayOutput `pulumi:"regions"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy pulumi.StringOutput `pulumi:"syncStrategy"` +} + +// NewGcpSecretManager registers a new resource with the given unique name, arguments, and options. +func NewGcpSecretManager(ctx *pulumi.Context, + name string, args *GcpSecretManagerArgs, opts ...pulumi.ResourceOption) (*GcpSecretManager, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.Regions == nil { + return nil, errors.New("invalid value for required argument 'Regions'") + } + if args.SyncStrategy == nil { + return nil, errors.New("invalid value for required argument 'SyncStrategy'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GcpSecretManager + err := ctx.RegisterResource("doppler:secretsSync/gcpSecretManager:GcpSecretManager", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGcpSecretManager gets an existing GcpSecretManager resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGcpSecretManager(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GcpSecretManagerState, opts ...pulumi.ResourceOption) (*GcpSecretManager, error) { + var resource GcpSecretManager + err := ctx.ReadResource("doppler:secretsSync/gcpSecretManager:GcpSecretManager", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GcpSecretManager resources. +type gcpSecretManagerState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + Format *string `pulumi:"format"` + // The slug of the integration to use for this sync + Integration *string `pulumi:"integration"` + // The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + Name *string `pulumi:"name"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + Regions []string `pulumi:"regions"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy *string `pulumi:"syncStrategy"` +} + +type GcpSecretManagerState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + Format pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringPtrInput + // The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + Regions pulumi.StringArrayInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy pulumi.StringPtrInput +} + +func (GcpSecretManagerState) ElementType() reflect.Type { + return reflect.TypeOf((*gcpSecretManagerState)(nil)).Elem() +} + +type gcpSecretManagerArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + Format *string `pulumi:"format"` + // The slug of the integration to use for this sync + Integration string `pulumi:"integration"` + // The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + Name *string `pulumi:"name"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + Regions []string `pulumi:"regions"` + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy string `pulumi:"syncStrategy"` +} + +// The set of arguments for constructing a GcpSecretManager resource. +type GcpSecretManagerArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + Format pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringInput + // The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + Name pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringInput + // The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + Regions pulumi.StringArrayInput + // Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + SyncStrategy pulumi.StringInput +} + +func (GcpSecretManagerArgs) ElementType() reflect.Type { + return reflect.TypeOf((*gcpSecretManagerArgs)(nil)).Elem() +} + +type GcpSecretManagerInput interface { + pulumi.Input + + ToGcpSecretManagerOutput() GcpSecretManagerOutput + ToGcpSecretManagerOutputWithContext(ctx context.Context) GcpSecretManagerOutput +} + +func (*GcpSecretManager) ElementType() reflect.Type { + return reflect.TypeOf((**GcpSecretManager)(nil)).Elem() +} + +func (i *GcpSecretManager) ToGcpSecretManagerOutput() GcpSecretManagerOutput { + return i.ToGcpSecretManagerOutputWithContext(context.Background()) +} + +func (i *GcpSecretManager) ToGcpSecretManagerOutputWithContext(ctx context.Context) GcpSecretManagerOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerOutput) +} + +// GcpSecretManagerArrayInput is an input type that accepts GcpSecretManagerArray and GcpSecretManagerArrayOutput values. +// You can construct a concrete instance of `GcpSecretManagerArrayInput` via: +// +// GcpSecretManagerArray{ GcpSecretManagerArgs{...} } +type GcpSecretManagerArrayInput interface { + pulumi.Input + + ToGcpSecretManagerArrayOutput() GcpSecretManagerArrayOutput + ToGcpSecretManagerArrayOutputWithContext(context.Context) GcpSecretManagerArrayOutput +} + +type GcpSecretManagerArray []GcpSecretManagerInput + +func (GcpSecretManagerArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpSecretManager)(nil)).Elem() +} + +func (i GcpSecretManagerArray) ToGcpSecretManagerArrayOutput() GcpSecretManagerArrayOutput { + return i.ToGcpSecretManagerArrayOutputWithContext(context.Background()) +} + +func (i GcpSecretManagerArray) ToGcpSecretManagerArrayOutputWithContext(ctx context.Context) GcpSecretManagerArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerArrayOutput) +} + +// GcpSecretManagerMapInput is an input type that accepts GcpSecretManagerMap and GcpSecretManagerMapOutput values. +// You can construct a concrete instance of `GcpSecretManagerMapInput` via: +// +// GcpSecretManagerMap{ "key": GcpSecretManagerArgs{...} } +type GcpSecretManagerMapInput interface { + pulumi.Input + + ToGcpSecretManagerMapOutput() GcpSecretManagerMapOutput + ToGcpSecretManagerMapOutputWithContext(context.Context) GcpSecretManagerMapOutput +} + +type GcpSecretManagerMap map[string]GcpSecretManagerInput + +func (GcpSecretManagerMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpSecretManager)(nil)).Elem() +} + +func (i GcpSecretManagerMap) ToGcpSecretManagerMapOutput() GcpSecretManagerMapOutput { + return i.ToGcpSecretManagerMapOutputWithContext(context.Background()) +} + +func (i GcpSecretManagerMap) ToGcpSecretManagerMapOutputWithContext(ctx context.Context) GcpSecretManagerMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GcpSecretManagerMapOutput) +} + +type GcpSecretManagerOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GcpSecretManager)(nil)).Elem() +} + +func (o GcpSecretManagerOutput) ToGcpSecretManagerOutput() GcpSecretManagerOutput { + return o +} + +func (o GcpSecretManagerOutput) ToGcpSecretManagerOutputWithContext(ctx context.Context) GcpSecretManagerOutput { + return o +} + +// The name of the Doppler config +func (o GcpSecretManagerOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. +func (o GcpSecretManagerOutput) DeleteBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringPtrOutput { return v.DeleteBehavior }).(pulumi.StringPtrOutput) +} + +// Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. +func (o GcpSecretManagerOutput) Format() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringPtrOutput { return v.Format }).(pulumi.StringPtrOutput) +} + +// The slug of the integration to use for this sync +func (o GcpSecretManagerOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). +func (o GcpSecretManagerOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringPtrOutput { return v.Name }).(pulumi.StringPtrOutput) +} + +// The name of the Doppler project +func (o GcpSecretManagerOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. +func (o GcpSecretManagerOutput) Regions() pulumi.StringArrayOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringArrayOutput { return v.Regions }).(pulumi.StringArrayOutput) +} + +// Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). +func (o GcpSecretManagerOutput) SyncStrategy() pulumi.StringOutput { + return o.ApplyT(func(v *GcpSecretManager) pulumi.StringOutput { return v.SyncStrategy }).(pulumi.StringOutput) +} + +type GcpSecretManagerArrayOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GcpSecretManager)(nil)).Elem() +} + +func (o GcpSecretManagerArrayOutput) ToGcpSecretManagerArrayOutput() GcpSecretManagerArrayOutput { + return o +} + +func (o GcpSecretManagerArrayOutput) ToGcpSecretManagerArrayOutputWithContext(ctx context.Context) GcpSecretManagerArrayOutput { + return o +} + +func (o GcpSecretManagerArrayOutput) Index(i pulumi.IntInput) GcpSecretManagerOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GcpSecretManager { + return vs[0].([]*GcpSecretManager)[vs[1].(int)] + }).(GcpSecretManagerOutput) +} + +type GcpSecretManagerMapOutput struct{ *pulumi.OutputState } + +func (GcpSecretManagerMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GcpSecretManager)(nil)).Elem() +} + +func (o GcpSecretManagerMapOutput) ToGcpSecretManagerMapOutput() GcpSecretManagerMapOutput { + return o +} + +func (o GcpSecretManagerMapOutput) ToGcpSecretManagerMapOutputWithContext(ctx context.Context) GcpSecretManagerMapOutput { + return o +} + +func (o GcpSecretManagerMapOutput) MapIndex(k pulumi.StringInput) GcpSecretManagerOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GcpSecretManager { + return vs[0].(map[string]*GcpSecretManager)[vs[1].(string)] + }).(GcpSecretManagerOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerInput)(nil)).Elem(), &GcpSecretManager{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerArrayInput)(nil)).Elem(), GcpSecretManagerArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GcpSecretManagerMapInput)(nil)).Elem(), GcpSecretManagerMap{}) + pulumi.RegisterOutputType(GcpSecretManagerOutput{}) + pulumi.RegisterOutputType(GcpSecretManagerArrayOutput{}) + pulumi.RegisterOutputType(GcpSecretManagerMapOutput{}) +} diff --git a/sdk/go/doppler/secretssync/githubActions.go b/sdk/go/doppler/secretssync/githubActions.go index 0551621..1d0c600 100644 --- a/sdk/go/doppler/secretssync/githubActions.go +++ b/sdk/go/doppler/secretssync/githubActions.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a GitHub Actions Doppler sync. @@ -32,6 +32,8 @@ type GithubActions struct { RepoName pulumi.StringPtrOutput `pulumi:"repoName"` // Either "repo" or "org", based on the resource type to sync to SyncTarget pulumi.StringOutput `pulumi:"syncTarget"` + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + SyncUnmaskedAsVariables pulumi.BoolPtrOutput `pulumi:"syncUnmaskedAsVariables"` } // NewGithubActions registers a new resource with the given unique name, arguments, and options. @@ -92,6 +94,8 @@ type githubActionsState struct { RepoName *string `pulumi:"repoName"` // Either "repo" or "org", based on the resource type to sync to SyncTarget *string `pulumi:"syncTarget"` + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + SyncUnmaskedAsVariables *bool `pulumi:"syncUnmaskedAsVariables"` } type GithubActionsState struct { @@ -111,6 +115,8 @@ type GithubActionsState struct { RepoName pulumi.StringPtrInput // Either "repo" or "org", based on the resource type to sync to SyncTarget pulumi.StringPtrInput + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + SyncUnmaskedAsVariables pulumi.BoolPtrInput } func (GithubActionsState) ElementType() reflect.Type { @@ -134,6 +140,8 @@ type githubActionsArgs struct { RepoName *string `pulumi:"repoName"` // Either "repo" or "org", based on the resource type to sync to SyncTarget string `pulumi:"syncTarget"` + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + SyncUnmaskedAsVariables *bool `pulumi:"syncUnmaskedAsVariables"` } // The set of arguments for constructing a GithubActions resource. @@ -154,6 +162,8 @@ type GithubActionsArgs struct { RepoName pulumi.StringPtrInput // Either "repo" or "org", based on the resource type to sync to SyncTarget pulumi.StringInput + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + SyncUnmaskedAsVariables pulumi.BoolPtrInput } func (GithubActionsArgs) ElementType() reflect.Type { @@ -283,6 +293,11 @@ func (o GithubActionsOutput) SyncTarget() pulumi.StringOutput { return o.ApplyT(func(v *GithubActions) pulumi.StringOutput { return v.SyncTarget }).(pulumi.StringOutput) } +// When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. +func (o GithubActionsOutput) SyncUnmaskedAsVariables() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GithubActions) pulumi.BoolPtrOutput { return v.SyncUnmaskedAsVariables }).(pulumi.BoolPtrOutput) +} + type GithubActionsArrayOutput struct{ *pulumi.OutputState } func (GithubActionsArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/doppler/secretssync/githubAgents.go b/sdk/go/doppler/secretssync/githubAgents.go new file mode 100644 index 0000000..cc6b99d --- /dev/null +++ b/sdk/go/doppler/secretssync/githubAgents.go @@ -0,0 +1,333 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package secretssync + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GitHub Copilot Agents Doppler sync. +type GithubAgents struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrOutput `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration pulumi.StringOutput `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrOutput `pulumi:"orgScope"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrOutput `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringOutput `pulumi:"syncTarget"` + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + SyncUnmaskedAsVariables pulumi.BoolPtrOutput `pulumi:"syncUnmaskedAsVariables"` +} + +// NewGithubAgents registers a new resource with the given unique name, arguments, and options. +func NewGithubAgents(ctx *pulumi.Context, + name string, args *GithubAgentsArgs, opts ...pulumi.ResourceOption) (*GithubAgents, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.SyncTarget == nil { + return nil, errors.New("invalid value for required argument 'SyncTarget'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GithubAgents + err := ctx.RegisterResource("doppler:secretsSync/githubAgents:GithubAgents", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGithubAgents gets an existing GithubAgents resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGithubAgents(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GithubAgentsState, opts ...pulumi.ResourceOption) (*GithubAgents, error) { + var resource GithubAgents + err := ctx.ReadResource("doppler:secretsSync/githubAgents:GithubAgents", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GithubAgents resources. +type githubAgentsState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration *string `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope *string `pulumi:"orgScope"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName *string `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget *string `pulumi:"syncTarget"` + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + SyncUnmaskedAsVariables *bool `pulumi:"syncUnmaskedAsVariables"` +} + +type GithubAgentsState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringPtrInput + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrInput + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringPtrInput + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + SyncUnmaskedAsVariables pulumi.BoolPtrInput +} + +func (GithubAgentsState) ElementType() reflect.Type { + return reflect.TypeOf((*githubAgentsState)(nil)).Elem() +} + +type githubAgentsArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration string `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope *string `pulumi:"orgScope"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName *string `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget string `pulumi:"syncTarget"` + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + SyncUnmaskedAsVariables *bool `pulumi:"syncUnmaskedAsVariables"` +} + +// The set of arguments for constructing a GithubAgents resource. +type GithubAgentsArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringInput + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringInput + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrInput + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringInput + // When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + SyncUnmaskedAsVariables pulumi.BoolPtrInput +} + +func (GithubAgentsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*githubAgentsArgs)(nil)).Elem() +} + +type GithubAgentsInput interface { + pulumi.Input + + ToGithubAgentsOutput() GithubAgentsOutput + ToGithubAgentsOutputWithContext(ctx context.Context) GithubAgentsOutput +} + +func (*GithubAgents) ElementType() reflect.Type { + return reflect.TypeOf((**GithubAgents)(nil)).Elem() +} + +func (i *GithubAgents) ToGithubAgentsOutput() GithubAgentsOutput { + return i.ToGithubAgentsOutputWithContext(context.Background()) +} + +func (i *GithubAgents) ToGithubAgentsOutputWithContext(ctx context.Context) GithubAgentsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubAgentsOutput) +} + +// GithubAgentsArrayInput is an input type that accepts GithubAgentsArray and GithubAgentsArrayOutput values. +// You can construct a concrete instance of `GithubAgentsArrayInput` via: +// +// GithubAgentsArray{ GithubAgentsArgs{...} } +type GithubAgentsArrayInput interface { + pulumi.Input + + ToGithubAgentsArrayOutput() GithubAgentsArrayOutput + ToGithubAgentsArrayOutputWithContext(context.Context) GithubAgentsArrayOutput +} + +type GithubAgentsArray []GithubAgentsInput + +func (GithubAgentsArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GithubAgents)(nil)).Elem() +} + +func (i GithubAgentsArray) ToGithubAgentsArrayOutput() GithubAgentsArrayOutput { + return i.ToGithubAgentsArrayOutputWithContext(context.Background()) +} + +func (i GithubAgentsArray) ToGithubAgentsArrayOutputWithContext(ctx context.Context) GithubAgentsArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubAgentsArrayOutput) +} + +// GithubAgentsMapInput is an input type that accepts GithubAgentsMap and GithubAgentsMapOutput values. +// You can construct a concrete instance of `GithubAgentsMapInput` via: +// +// GithubAgentsMap{ "key": GithubAgentsArgs{...} } +type GithubAgentsMapInput interface { + pulumi.Input + + ToGithubAgentsMapOutput() GithubAgentsMapOutput + ToGithubAgentsMapOutputWithContext(context.Context) GithubAgentsMapOutput +} + +type GithubAgentsMap map[string]GithubAgentsInput + +func (GithubAgentsMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GithubAgents)(nil)).Elem() +} + +func (i GithubAgentsMap) ToGithubAgentsMapOutput() GithubAgentsMapOutput { + return i.ToGithubAgentsMapOutputWithContext(context.Background()) +} + +func (i GithubAgentsMap) ToGithubAgentsMapOutputWithContext(ctx context.Context) GithubAgentsMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubAgentsMapOutput) +} + +type GithubAgentsOutput struct{ *pulumi.OutputState } + +func (GithubAgentsOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GithubAgents)(nil)).Elem() +} + +func (o GithubAgentsOutput) ToGithubAgentsOutput() GithubAgentsOutput { + return o +} + +func (o GithubAgentsOutput) ToGithubAgentsOutputWithContext(ctx context.Context) GithubAgentsOutput { + return o +} + +// The name of the Doppler config +func (o GithubAgentsOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. +func (o GithubAgentsOutput) DeleteBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringPtrOutput { return v.DeleteBehavior }).(pulumi.StringPtrOutput) +} + +// The slug of the integration to use for this sync +func (o GithubAgentsOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") +func (o GithubAgentsOutput) OrgScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringPtrOutput { return v.OrgScope }).(pulumi.StringPtrOutput) +} + +// The name of the Doppler project +func (o GithubAgentsOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") +func (o GithubAgentsOutput) RepoName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringPtrOutput { return v.RepoName }).(pulumi.StringPtrOutput) +} + +// Either "repo" or "org", based on the resource type to sync to +func (o GithubAgentsOutput) SyncTarget() pulumi.StringOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.StringOutput { return v.SyncTarget }).(pulumi.StringOutput) +} + +// When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. +func (o GithubAgentsOutput) SyncUnmaskedAsVariables() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GithubAgents) pulumi.BoolPtrOutput { return v.SyncUnmaskedAsVariables }).(pulumi.BoolPtrOutput) +} + +type GithubAgentsArrayOutput struct{ *pulumi.OutputState } + +func (GithubAgentsArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GithubAgents)(nil)).Elem() +} + +func (o GithubAgentsArrayOutput) ToGithubAgentsArrayOutput() GithubAgentsArrayOutput { + return o +} + +func (o GithubAgentsArrayOutput) ToGithubAgentsArrayOutputWithContext(ctx context.Context) GithubAgentsArrayOutput { + return o +} + +func (o GithubAgentsArrayOutput) Index(i pulumi.IntInput) GithubAgentsOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GithubAgents { + return vs[0].([]*GithubAgents)[vs[1].(int)] + }).(GithubAgentsOutput) +} + +type GithubAgentsMapOutput struct{ *pulumi.OutputState } + +func (GithubAgentsMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GithubAgents)(nil)).Elem() +} + +func (o GithubAgentsMapOutput) ToGithubAgentsMapOutput() GithubAgentsMapOutput { + return o +} + +func (o GithubAgentsMapOutput) ToGithubAgentsMapOutputWithContext(ctx context.Context) GithubAgentsMapOutput { + return o +} + +func (o GithubAgentsMapOutput) MapIndex(k pulumi.StringInput) GithubAgentsOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GithubAgents { + return vs[0].(map[string]*GithubAgents)[vs[1].(string)] + }).(GithubAgentsOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GithubAgentsInput)(nil)).Elem(), &GithubAgents{}) + pulumi.RegisterInputType(reflect.TypeOf((*GithubAgentsArrayInput)(nil)).Elem(), GithubAgentsArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GithubAgentsMapInput)(nil)).Elem(), GithubAgentsMap{}) + pulumi.RegisterOutputType(GithubAgentsOutput{}) + pulumi.RegisterOutputType(GithubAgentsArrayOutput{}) + pulumi.RegisterOutputType(GithubAgentsMapOutput{}) +} diff --git a/sdk/go/doppler/secretssync/githubCodespaces.go b/sdk/go/doppler/secretssync/githubCodespaces.go new file mode 100644 index 0000000..f9e6255 --- /dev/null +++ b/sdk/go/doppler/secretssync/githubCodespaces.go @@ -0,0 +1,318 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package secretssync + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GitHub Codespaces Doppler sync. +type GithubCodespaces struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrOutput `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration pulumi.StringOutput `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrOutput `pulumi:"orgScope"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrOutput `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringOutput `pulumi:"syncTarget"` +} + +// NewGithubCodespaces registers a new resource with the given unique name, arguments, and options. +func NewGithubCodespaces(ctx *pulumi.Context, + name string, args *GithubCodespacesArgs, opts ...pulumi.ResourceOption) (*GithubCodespaces, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.SyncTarget == nil { + return nil, errors.New("invalid value for required argument 'SyncTarget'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GithubCodespaces + err := ctx.RegisterResource("doppler:secretsSync/githubCodespaces:GithubCodespaces", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGithubCodespaces gets an existing GithubCodespaces resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGithubCodespaces(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GithubCodespacesState, opts ...pulumi.ResourceOption) (*GithubCodespaces, error) { + var resource GithubCodespaces + err := ctx.ReadResource("doppler:secretsSync/githubCodespaces:GithubCodespaces", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GithubCodespaces resources. +type githubCodespacesState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration *string `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope *string `pulumi:"orgScope"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName *string `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget *string `pulumi:"syncTarget"` +} + +type GithubCodespacesState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringPtrInput + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrInput + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringPtrInput +} + +func (GithubCodespacesState) ElementType() reflect.Type { + return reflect.TypeOf((*githubCodespacesState)(nil)).Elem() +} + +type githubCodespacesArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration string `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope *string `pulumi:"orgScope"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName *string `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget string `pulumi:"syncTarget"` +} + +// The set of arguments for constructing a GithubCodespaces resource. +type GithubCodespacesArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringInput + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringInput + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrInput + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringInput +} + +func (GithubCodespacesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*githubCodespacesArgs)(nil)).Elem() +} + +type GithubCodespacesInput interface { + pulumi.Input + + ToGithubCodespacesOutput() GithubCodespacesOutput + ToGithubCodespacesOutputWithContext(ctx context.Context) GithubCodespacesOutput +} + +func (*GithubCodespaces) ElementType() reflect.Type { + return reflect.TypeOf((**GithubCodespaces)(nil)).Elem() +} + +func (i *GithubCodespaces) ToGithubCodespacesOutput() GithubCodespacesOutput { + return i.ToGithubCodespacesOutputWithContext(context.Background()) +} + +func (i *GithubCodespaces) ToGithubCodespacesOutputWithContext(ctx context.Context) GithubCodespacesOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubCodespacesOutput) +} + +// GithubCodespacesArrayInput is an input type that accepts GithubCodespacesArray and GithubCodespacesArrayOutput values. +// You can construct a concrete instance of `GithubCodespacesArrayInput` via: +// +// GithubCodespacesArray{ GithubCodespacesArgs{...} } +type GithubCodespacesArrayInput interface { + pulumi.Input + + ToGithubCodespacesArrayOutput() GithubCodespacesArrayOutput + ToGithubCodespacesArrayOutputWithContext(context.Context) GithubCodespacesArrayOutput +} + +type GithubCodespacesArray []GithubCodespacesInput + +func (GithubCodespacesArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GithubCodespaces)(nil)).Elem() +} + +func (i GithubCodespacesArray) ToGithubCodespacesArrayOutput() GithubCodespacesArrayOutput { + return i.ToGithubCodespacesArrayOutputWithContext(context.Background()) +} + +func (i GithubCodespacesArray) ToGithubCodespacesArrayOutputWithContext(ctx context.Context) GithubCodespacesArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubCodespacesArrayOutput) +} + +// GithubCodespacesMapInput is an input type that accepts GithubCodespacesMap and GithubCodespacesMapOutput values. +// You can construct a concrete instance of `GithubCodespacesMapInput` via: +// +// GithubCodespacesMap{ "key": GithubCodespacesArgs{...} } +type GithubCodespacesMapInput interface { + pulumi.Input + + ToGithubCodespacesMapOutput() GithubCodespacesMapOutput + ToGithubCodespacesMapOutputWithContext(context.Context) GithubCodespacesMapOutput +} + +type GithubCodespacesMap map[string]GithubCodespacesInput + +func (GithubCodespacesMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GithubCodespaces)(nil)).Elem() +} + +func (i GithubCodespacesMap) ToGithubCodespacesMapOutput() GithubCodespacesMapOutput { + return i.ToGithubCodespacesMapOutputWithContext(context.Background()) +} + +func (i GithubCodespacesMap) ToGithubCodespacesMapOutputWithContext(ctx context.Context) GithubCodespacesMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubCodespacesMapOutput) +} + +type GithubCodespacesOutput struct{ *pulumi.OutputState } + +func (GithubCodespacesOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GithubCodespaces)(nil)).Elem() +} + +func (o GithubCodespacesOutput) ToGithubCodespacesOutput() GithubCodespacesOutput { + return o +} + +func (o GithubCodespacesOutput) ToGithubCodespacesOutputWithContext(ctx context.Context) GithubCodespacesOutput { + return o +} + +// The name of the Doppler config +func (o GithubCodespacesOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. +func (o GithubCodespacesOutput) DeleteBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringPtrOutput { return v.DeleteBehavior }).(pulumi.StringPtrOutput) +} + +// The slug of the integration to use for this sync +func (o GithubCodespacesOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") +func (o GithubCodespacesOutput) OrgScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringPtrOutput { return v.OrgScope }).(pulumi.StringPtrOutput) +} + +// The name of the Doppler project +func (o GithubCodespacesOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") +func (o GithubCodespacesOutput) RepoName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringPtrOutput { return v.RepoName }).(pulumi.StringPtrOutput) +} + +// Either "repo" or "org", based on the resource type to sync to +func (o GithubCodespacesOutput) SyncTarget() pulumi.StringOutput { + return o.ApplyT(func(v *GithubCodespaces) pulumi.StringOutput { return v.SyncTarget }).(pulumi.StringOutput) +} + +type GithubCodespacesArrayOutput struct{ *pulumi.OutputState } + +func (GithubCodespacesArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GithubCodespaces)(nil)).Elem() +} + +func (o GithubCodespacesArrayOutput) ToGithubCodespacesArrayOutput() GithubCodespacesArrayOutput { + return o +} + +func (o GithubCodespacesArrayOutput) ToGithubCodespacesArrayOutputWithContext(ctx context.Context) GithubCodespacesArrayOutput { + return o +} + +func (o GithubCodespacesArrayOutput) Index(i pulumi.IntInput) GithubCodespacesOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GithubCodespaces { + return vs[0].([]*GithubCodespaces)[vs[1].(int)] + }).(GithubCodespacesOutput) +} + +type GithubCodespacesMapOutput struct{ *pulumi.OutputState } + +func (GithubCodespacesMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GithubCodespaces)(nil)).Elem() +} + +func (o GithubCodespacesMapOutput) ToGithubCodespacesMapOutput() GithubCodespacesMapOutput { + return o +} + +func (o GithubCodespacesMapOutput) ToGithubCodespacesMapOutputWithContext(ctx context.Context) GithubCodespacesMapOutput { + return o +} + +func (o GithubCodespacesMapOutput) MapIndex(k pulumi.StringInput) GithubCodespacesOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GithubCodespaces { + return vs[0].(map[string]*GithubCodespaces)[vs[1].(string)] + }).(GithubCodespacesOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GithubCodespacesInput)(nil)).Elem(), &GithubCodespaces{}) + pulumi.RegisterInputType(reflect.TypeOf((*GithubCodespacesArrayInput)(nil)).Elem(), GithubCodespacesArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GithubCodespacesMapInput)(nil)).Elem(), GithubCodespacesMap{}) + pulumi.RegisterOutputType(GithubCodespacesOutput{}) + pulumi.RegisterOutputType(GithubCodespacesArrayOutput{}) + pulumi.RegisterOutputType(GithubCodespacesMapOutput{}) +} diff --git a/sdk/go/doppler/secretssync/githubDependabot.go b/sdk/go/doppler/secretssync/githubDependabot.go new file mode 100644 index 0000000..2a0f56c --- /dev/null +++ b/sdk/go/doppler/secretssync/githubDependabot.go @@ -0,0 +1,318 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package secretssync + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a GitHub Dependabot Doppler sync. +type GithubDependabot struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrOutput `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration pulumi.StringOutput `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrOutput `pulumi:"orgScope"` + // The name of the Doppler project + Project pulumi.StringOutput `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrOutput `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringOutput `pulumi:"syncTarget"` +} + +// NewGithubDependabot registers a new resource with the given unique name, arguments, and options. +func NewGithubDependabot(ctx *pulumi.Context, + name string, args *GithubDependabotArgs, opts ...pulumi.ResourceOption) (*GithubDependabot, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Integration == nil { + return nil, errors.New("invalid value for required argument 'Integration'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.SyncTarget == nil { + return nil, errors.New("invalid value for required argument 'SyncTarget'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource GithubDependabot + err := ctx.RegisterResource("doppler:secretsSync/githubDependabot:GithubDependabot", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetGithubDependabot gets an existing GithubDependabot resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetGithubDependabot(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *GithubDependabotState, opts ...pulumi.ResourceOption) (*GithubDependabot, error) { + var resource GithubDependabot + err := ctx.ReadResource("doppler:secretsSync/githubDependabot:GithubDependabot", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering GithubDependabot resources. +type githubDependabotState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration *string `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope *string `pulumi:"orgScope"` + // The name of the Doppler project + Project *string `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName *string `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget *string `pulumi:"syncTarget"` +} + +type GithubDependabotState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringPtrInput + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringPtrInput + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrInput + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringPtrInput +} + +func (GithubDependabotState) ElementType() reflect.Type { + return reflect.TypeOf((*githubDependabotState)(nil)).Elem() +} + +type githubDependabotArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior *string `pulumi:"deleteBehavior"` + // The slug of the integration to use for this sync + Integration string `pulumi:"integration"` + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope *string `pulumi:"orgScope"` + // The name of the Doppler project + Project string `pulumi:"project"` + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName *string `pulumi:"repoName"` + // Either "repo" or "org", based on the resource type to sync to + SyncTarget string `pulumi:"syncTarget"` +} + +// The set of arguments for constructing a GithubDependabot resource. +type GithubDependabotArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + DeleteBehavior pulumi.StringPtrInput + // The slug of the integration to use for this sync + Integration pulumi.StringInput + // Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + OrgScope pulumi.StringPtrInput + // The name of the Doppler project + Project pulumi.StringInput + // The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + RepoName pulumi.StringPtrInput + // Either "repo" or "org", based on the resource type to sync to + SyncTarget pulumi.StringInput +} + +func (GithubDependabotArgs) ElementType() reflect.Type { + return reflect.TypeOf((*githubDependabotArgs)(nil)).Elem() +} + +type GithubDependabotInput interface { + pulumi.Input + + ToGithubDependabotOutput() GithubDependabotOutput + ToGithubDependabotOutputWithContext(ctx context.Context) GithubDependabotOutput +} + +func (*GithubDependabot) ElementType() reflect.Type { + return reflect.TypeOf((**GithubDependabot)(nil)).Elem() +} + +func (i *GithubDependabot) ToGithubDependabotOutput() GithubDependabotOutput { + return i.ToGithubDependabotOutputWithContext(context.Background()) +} + +func (i *GithubDependabot) ToGithubDependabotOutputWithContext(ctx context.Context) GithubDependabotOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubDependabotOutput) +} + +// GithubDependabotArrayInput is an input type that accepts GithubDependabotArray and GithubDependabotArrayOutput values. +// You can construct a concrete instance of `GithubDependabotArrayInput` via: +// +// GithubDependabotArray{ GithubDependabotArgs{...} } +type GithubDependabotArrayInput interface { + pulumi.Input + + ToGithubDependabotArrayOutput() GithubDependabotArrayOutput + ToGithubDependabotArrayOutputWithContext(context.Context) GithubDependabotArrayOutput +} + +type GithubDependabotArray []GithubDependabotInput + +func (GithubDependabotArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GithubDependabot)(nil)).Elem() +} + +func (i GithubDependabotArray) ToGithubDependabotArrayOutput() GithubDependabotArrayOutput { + return i.ToGithubDependabotArrayOutputWithContext(context.Background()) +} + +func (i GithubDependabotArray) ToGithubDependabotArrayOutputWithContext(ctx context.Context) GithubDependabotArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubDependabotArrayOutput) +} + +// GithubDependabotMapInput is an input type that accepts GithubDependabotMap and GithubDependabotMapOutput values. +// You can construct a concrete instance of `GithubDependabotMapInput` via: +// +// GithubDependabotMap{ "key": GithubDependabotArgs{...} } +type GithubDependabotMapInput interface { + pulumi.Input + + ToGithubDependabotMapOutput() GithubDependabotMapOutput + ToGithubDependabotMapOutputWithContext(context.Context) GithubDependabotMapOutput +} + +type GithubDependabotMap map[string]GithubDependabotInput + +func (GithubDependabotMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GithubDependabot)(nil)).Elem() +} + +func (i GithubDependabotMap) ToGithubDependabotMapOutput() GithubDependabotMapOutput { + return i.ToGithubDependabotMapOutputWithContext(context.Background()) +} + +func (i GithubDependabotMap) ToGithubDependabotMapOutputWithContext(ctx context.Context) GithubDependabotMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GithubDependabotMapOutput) +} + +type GithubDependabotOutput struct{ *pulumi.OutputState } + +func (GithubDependabotOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GithubDependabot)(nil)).Elem() +} + +func (o GithubDependabotOutput) ToGithubDependabotOutput() GithubDependabotOutput { + return o +} + +func (o GithubDependabotOutput) ToGithubDependabotOutputWithContext(ctx context.Context) GithubDependabotOutput { + return o +} + +// The name of the Doppler config +func (o GithubDependabotOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. +func (o GithubDependabotOutput) DeleteBehavior() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringPtrOutput { return v.DeleteBehavior }).(pulumi.StringPtrOutput) +} + +// The slug of the integration to use for this sync +func (o GithubDependabotOutput) Integration() pulumi.StringOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringOutput { return v.Integration }).(pulumi.StringOutput) +} + +// Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") +func (o GithubDependabotOutput) OrgScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringPtrOutput { return v.OrgScope }).(pulumi.StringPtrOutput) +} + +// The name of the Doppler project +func (o GithubDependabotOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") +func (o GithubDependabotOutput) RepoName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringPtrOutput { return v.RepoName }).(pulumi.StringPtrOutput) +} + +// Either "repo" or "org", based on the resource type to sync to +func (o GithubDependabotOutput) SyncTarget() pulumi.StringOutput { + return o.ApplyT(func(v *GithubDependabot) pulumi.StringOutput { return v.SyncTarget }).(pulumi.StringOutput) +} + +type GithubDependabotArrayOutput struct{ *pulumi.OutputState } + +func (GithubDependabotArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*GithubDependabot)(nil)).Elem() +} + +func (o GithubDependabotArrayOutput) ToGithubDependabotArrayOutput() GithubDependabotArrayOutput { + return o +} + +func (o GithubDependabotArrayOutput) ToGithubDependabotArrayOutputWithContext(ctx context.Context) GithubDependabotArrayOutput { + return o +} + +func (o GithubDependabotArrayOutput) Index(i pulumi.IntInput) GithubDependabotOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GithubDependabot { + return vs[0].([]*GithubDependabot)[vs[1].(int)] + }).(GithubDependabotOutput) +} + +type GithubDependabotMapOutput struct{ *pulumi.OutputState } + +func (GithubDependabotMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*GithubDependabot)(nil)).Elem() +} + +func (o GithubDependabotMapOutput) ToGithubDependabotMapOutput() GithubDependabotMapOutput { + return o +} + +func (o GithubDependabotMapOutput) ToGithubDependabotMapOutputWithContext(ctx context.Context) GithubDependabotMapOutput { + return o +} + +func (o GithubDependabotMapOutput) MapIndex(k pulumi.StringInput) GithubDependabotOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GithubDependabot { + return vs[0].(map[string]*GithubDependabot)[vs[1].(string)] + }).(GithubDependabotOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GithubDependabotInput)(nil)).Elem(), &GithubDependabot{}) + pulumi.RegisterInputType(reflect.TypeOf((*GithubDependabotArrayInput)(nil)).Elem(), GithubDependabotArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GithubDependabotMapInput)(nil)).Elem(), GithubDependabotMap{}) + pulumi.RegisterOutputType(GithubDependabotOutput{}) + pulumi.RegisterOutputType(GithubDependabotArrayOutput{}) + pulumi.RegisterOutputType(GithubDependabotMapOutput{}) +} diff --git a/sdk/go/doppler/secretssync/init.go b/sdk/go/doppler/secretssync/init.go index b367fc6..8a0866b 100644 --- a/sdk/go/doppler/secretssync/init.go +++ b/sdk/go/doppler/secretssync/init.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -6,9 +6,9 @@ package secretssync import ( "fmt" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/blang/semver" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) type module struct { @@ -25,12 +25,22 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &AwsParameterStore{} case "doppler:secretsSync/awsSecretsManager:AwsSecretsManager": r = &AwsSecretsManager{} + case "doppler:secretsSync/azureVault:AzureVault": + r = &AzureVault{} case "doppler:secretsSync/circleci:Circleci": r = &Circleci{} case "doppler:secretsSync/flyio:Flyio": r = &Flyio{} + case "doppler:secretsSync/gcpSecretManager:GcpSecretManager": + r = &GcpSecretManager{} case "doppler:secretsSync/githubActions:GithubActions": r = &GithubActions{} + case "doppler:secretsSync/githubAgents:GithubAgents": + r = &GithubAgents{} + case "doppler:secretsSync/githubCodespaces:GithubCodespaces": + r = &GithubCodespaces{} + case "doppler:secretsSync/githubDependabot:GithubDependabot": + r = &GithubDependabot{} case "doppler:secretsSync/terraformCloud:TerraformCloud": r = &TerraformCloud{} default: @@ -56,6 +66,11 @@ func init() { "secretsSync/awsSecretsManager", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "secretsSync/azureVault", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "secretsSync/circleci", @@ -66,11 +81,31 @@ func init() { "secretsSync/flyio", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "secretsSync/gcpSecretManager", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "secretsSync/githubActions", &module{version}, ) + pulumi.RegisterResourceModule( + "doppler", + "secretsSync/githubAgents", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "secretsSync/githubCodespaces", + &module{version}, + ) + pulumi.RegisterResourceModule( + "doppler", + "secretsSync/githubDependabot", + &module{version}, + ) pulumi.RegisterResourceModule( "doppler", "secretsSync/terraformCloud", diff --git a/sdk/go/doppler/secretssync/terraformCloud.go b/sdk/go/doppler/secretssync/terraformCloud.go index 3af40f4..8b3a41c 100644 --- a/sdk/go/doppler/secretssync/terraformCloud.go +++ b/sdk/go/doppler/secretssync/terraformCloud.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package secretssync @@ -8,11 +8,60 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) +// Manage a Terraform Cloud Doppler sync. +// // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/integration" +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/secretssync" +// "github.com/pulumi/pulumi-tfe/sdk/go/tfe" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// prod, err := tfe.Workspace(ctx, map[string]string{ +// "name": "my-workspace-name", +// "organization": "my-org-name", +// }, nil) +// if err != nil { +// return err +// } +// prodTerraformCloud, err := integration.NewTerraformCloud(ctx, "prod", &integration.TerraformCloudArgs{ +// Name: pulumi.String("Production"), +// ApiKey: pulumi.String("my_api_key"), +// }) +// if err != nil { +// return err +// } +// _, err = secretssync.NewTerraformCloud(ctx, "backend_prod", &secretssync.TerraformCloudArgs{ +// Integration: prodTerraformCloud.ID(), +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// SyncTarget: pulumi.String("workspace"), +// WorkspaceId: pulumi.Any(prod.Id), +// VariableSyncType: pulumi.String("terraform"), +// NameTransform: pulumi.String("lowercase"), +// DeleteBehavior: pulumi.String("leave_in_target"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type TerraformCloud struct { pulumi.CustomResourceState @@ -27,10 +76,13 @@ type TerraformCloud struct { // The name of the Doppler project Project pulumi.StringOutput `pulumi:"project"` // Either "workspace" or "variableSet", based on the resource type to sync to - SyncTarget pulumi.StringOutput `pulumi:"syncTarget"` - VariableSetId pulumi.StringPtrOutput `pulumi:"variableSetId"` - VariableSyncType pulumi.StringOutput `pulumi:"variableSyncType"` - WorkspaceId pulumi.StringPtrOutput `pulumi:"workspaceId"` + SyncTarget pulumi.StringOutput `pulumi:"syncTarget"` + // The Terraform Cloud variable set ID to sync to + VariableSetId pulumi.StringPtrOutput `pulumi:"variableSetId"` + // Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + VariableSyncType pulumi.StringOutput `pulumi:"variableSyncType"` + // The Terraform Cloud workspace ID to sync to + WorkspaceId pulumi.StringPtrOutput `pulumi:"workspaceId"` } // NewTerraformCloud registers a new resource with the given unique name, arguments, and options. @@ -92,10 +144,13 @@ type terraformCloudState struct { // The name of the Doppler project Project *string `pulumi:"project"` // Either "workspace" or "variableSet", based on the resource type to sync to - SyncTarget *string `pulumi:"syncTarget"` - VariableSetId *string `pulumi:"variableSetId"` + SyncTarget *string `pulumi:"syncTarget"` + // The Terraform Cloud variable set ID to sync to + VariableSetId *string `pulumi:"variableSetId"` + // Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables VariableSyncType *string `pulumi:"variableSyncType"` - WorkspaceId *string `pulumi:"workspaceId"` + // The Terraform Cloud workspace ID to sync to + WorkspaceId *string `pulumi:"workspaceId"` } type TerraformCloudState struct { @@ -110,10 +165,13 @@ type TerraformCloudState struct { // The name of the Doppler project Project pulumi.StringPtrInput // Either "workspace" or "variableSet", based on the resource type to sync to - SyncTarget pulumi.StringPtrInput - VariableSetId pulumi.StringPtrInput + SyncTarget pulumi.StringPtrInput + // The Terraform Cloud variable set ID to sync to + VariableSetId pulumi.StringPtrInput + // Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables VariableSyncType pulumi.StringPtrInput - WorkspaceId pulumi.StringPtrInput + // The Terraform Cloud workspace ID to sync to + WorkspaceId pulumi.StringPtrInput } func (TerraformCloudState) ElementType() reflect.Type { @@ -132,10 +190,13 @@ type terraformCloudArgs struct { // The name of the Doppler project Project string `pulumi:"project"` // Either "workspace" or "variableSet", based on the resource type to sync to - SyncTarget string `pulumi:"syncTarget"` - VariableSetId *string `pulumi:"variableSetId"` - VariableSyncType string `pulumi:"variableSyncType"` - WorkspaceId *string `pulumi:"workspaceId"` + SyncTarget string `pulumi:"syncTarget"` + // The Terraform Cloud variable set ID to sync to + VariableSetId *string `pulumi:"variableSetId"` + // Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + VariableSyncType string `pulumi:"variableSyncType"` + // The Terraform Cloud workspace ID to sync to + WorkspaceId *string `pulumi:"workspaceId"` } // The set of arguments for constructing a TerraformCloud resource. @@ -151,10 +212,13 @@ type TerraformCloudArgs struct { // The name of the Doppler project Project pulumi.StringInput // Either "workspace" or "variableSet", based on the resource type to sync to - SyncTarget pulumi.StringInput - VariableSetId pulumi.StringPtrInput + SyncTarget pulumi.StringInput + // The Terraform Cloud variable set ID to sync to + VariableSetId pulumi.StringPtrInput + // Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables VariableSyncType pulumi.StringInput - WorkspaceId pulumi.StringPtrInput + // The Terraform Cloud workspace ID to sync to + WorkspaceId pulumi.StringPtrInput } func (TerraformCloudArgs) ElementType() reflect.Type { @@ -274,14 +338,17 @@ func (o TerraformCloudOutput) SyncTarget() pulumi.StringOutput { return o.ApplyT(func(v *TerraformCloud) pulumi.StringOutput { return v.SyncTarget }).(pulumi.StringOutput) } +// The Terraform Cloud variable set ID to sync to func (o TerraformCloudOutput) VariableSetId() pulumi.StringPtrOutput { return o.ApplyT(func(v *TerraformCloud) pulumi.StringPtrOutput { return v.VariableSetId }).(pulumi.StringPtrOutput) } +// Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables func (o TerraformCloudOutput) VariableSyncType() pulumi.StringOutput { return o.ApplyT(func(v *TerraformCloud) pulumi.StringOutput { return v.VariableSyncType }).(pulumi.StringOutput) } +// The Terraform Cloud workspace ID to sync to func (o TerraformCloudOutput) WorkspaceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *TerraformCloud) pulumi.StringPtrOutput { return v.WorkspaceId }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/doppler/serviceAccount.go b/sdk/go/doppler/serviceAccount.go index f149b59..53700d7 100644 --- a/sdk/go/doppler/serviceAccount.go +++ b/sdk/go/doppler/serviceAccount.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler service account. @@ -21,15 +21,16 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := doppler.NewServiceAccount(ctx, "ci", &doppler.ServiceAccountArgs{ -// Name: pulumi.String("ci"), +// Name: pulumi.String("ci"), +// WorkplaceRole: pulumi.String("collaborator"), // }) // if err != nil { // return err @@ -43,7 +44,6 @@ import ( // ## Import // // import using the service account slug from the URL: -// // https://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug] // // ```sh diff --git a/sdk/go/doppler/serviceAccountIdentity.go b/sdk/go/doppler/serviceAccountIdentity.go new file mode 100644 index 0000000..84161ea --- /dev/null +++ b/sdk/go/doppler/serviceAccountIdentity.go @@ -0,0 +1,344 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler service account identity. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// ci, err := doppler.NewServiceAccount(ctx, "ci", &doppler.ServiceAccountArgs{ +// Name: pulumi.String("ci"), +// WorkplaceRole: pulumi.String("collaborator"), +// }) +// if err != nil { +// return err +// } +// _, err = doppler.NewServiceAccountIdentity(ctx, "github_oidc", &doppler.ServiceAccountIdentityArgs{ +// ConfigOidc: &doppler.ServiceAccountIdentityConfigOidcArgs{ +// Claims: doppler.ServiceAccountIdentityConfigOidcClaimArray{ +// &doppler.ServiceAccountIdentityConfigOidcClaimArgs{ +// Key: pulumi.String("aud"), +// Values: pulumi.StringArray{ +// pulumi.String("https://github.com/DopplerHQ"), +// }, +// }, +// &doppler.ServiceAccountIdentityConfigOidcClaimArgs{ +// Key: pulumi.String("sub"), +// Values: pulumi.StringArray{ +// pulumi.String("repo:DopplerHQ/terraform-provider-doppler:pull_request"), +// pulumi.String("repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*"), +// }, +// }, +// }, +// DiscoveryUrl: pulumi.String("https://token.actions.githubusercontent.com"), +// ClaimsType: pulumi.String("wildcard"), +// }, +// ServiceAccountSlug: ci.Slug, +// Name: pulumi.String("GitHub Actions OIDC"), +// TtlSeconds: pulumi.Int(600), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// ```sh +// $ pulumi import doppler:index/serviceAccountIdentity:ServiceAccountIdentity default . +// ``` +type ServiceAccountIdentity struct { + pulumi.CustomResourceState + + // The OIDC configuration for the identity + ConfigOidc ServiceAccountIdentityConfigOidcOutput `pulumi:"configOidc"` + // The display name of the service account identity + Name pulumi.StringOutput `pulumi:"name"` + // Slug of the service account + ServiceAccountSlug pulumi.StringOutput `pulumi:"serviceAccountSlug"` + // Slug of the service account identity + Slug pulumi.StringOutput `pulumi:"slug"` + // The amount of time, in seconds, that auth tokens for this identity will be valid + TtlSeconds pulumi.IntOutput `pulumi:"ttlSeconds"` +} + +// NewServiceAccountIdentity registers a new resource with the given unique name, arguments, and options. +func NewServiceAccountIdentity(ctx *pulumi.Context, + name string, args *ServiceAccountIdentityArgs, opts ...pulumi.ResourceOption) (*ServiceAccountIdentity, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ConfigOidc == nil { + return nil, errors.New("invalid value for required argument 'ConfigOidc'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.ServiceAccountSlug == nil { + return nil, errors.New("invalid value for required argument 'ServiceAccountSlug'") + } + if args.TtlSeconds == nil { + return nil, errors.New("invalid value for required argument 'TtlSeconds'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource ServiceAccountIdentity + err := ctx.RegisterResource("doppler:index/serviceAccountIdentity:ServiceAccountIdentity", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetServiceAccountIdentity gets an existing ServiceAccountIdentity resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetServiceAccountIdentity(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ServiceAccountIdentityState, opts ...pulumi.ResourceOption) (*ServiceAccountIdentity, error) { + var resource ServiceAccountIdentity + err := ctx.ReadResource("doppler:index/serviceAccountIdentity:ServiceAccountIdentity", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ServiceAccountIdentity resources. +type serviceAccountIdentityState struct { + // The OIDC configuration for the identity + ConfigOidc *ServiceAccountIdentityConfigOidc `pulumi:"configOidc"` + // The display name of the service account identity + Name *string `pulumi:"name"` + // Slug of the service account + ServiceAccountSlug *string `pulumi:"serviceAccountSlug"` + // Slug of the service account identity + Slug *string `pulumi:"slug"` + // The amount of time, in seconds, that auth tokens for this identity will be valid + TtlSeconds *int `pulumi:"ttlSeconds"` +} + +type ServiceAccountIdentityState struct { + // The OIDC configuration for the identity + ConfigOidc ServiceAccountIdentityConfigOidcPtrInput + // The display name of the service account identity + Name pulumi.StringPtrInput + // Slug of the service account + ServiceAccountSlug pulumi.StringPtrInput + // Slug of the service account identity + Slug pulumi.StringPtrInput + // The amount of time, in seconds, that auth tokens for this identity will be valid + TtlSeconds pulumi.IntPtrInput +} + +func (ServiceAccountIdentityState) ElementType() reflect.Type { + return reflect.TypeOf((*serviceAccountIdentityState)(nil)).Elem() +} + +type serviceAccountIdentityArgs struct { + // The OIDC configuration for the identity + ConfigOidc ServiceAccountIdentityConfigOidc `pulumi:"configOidc"` + // The display name of the service account identity + Name string `pulumi:"name"` + // Slug of the service account + ServiceAccountSlug string `pulumi:"serviceAccountSlug"` + // The amount of time, in seconds, that auth tokens for this identity will be valid + TtlSeconds int `pulumi:"ttlSeconds"` +} + +// The set of arguments for constructing a ServiceAccountIdentity resource. +type ServiceAccountIdentityArgs struct { + // The OIDC configuration for the identity + ConfigOidc ServiceAccountIdentityConfigOidcInput + // The display name of the service account identity + Name pulumi.StringInput + // Slug of the service account + ServiceAccountSlug pulumi.StringInput + // The amount of time, in seconds, that auth tokens for this identity will be valid + TtlSeconds pulumi.IntInput +} + +func (ServiceAccountIdentityArgs) ElementType() reflect.Type { + return reflect.TypeOf((*serviceAccountIdentityArgs)(nil)).Elem() +} + +type ServiceAccountIdentityInput interface { + pulumi.Input + + ToServiceAccountIdentityOutput() ServiceAccountIdentityOutput + ToServiceAccountIdentityOutputWithContext(ctx context.Context) ServiceAccountIdentityOutput +} + +func (*ServiceAccountIdentity) ElementType() reflect.Type { + return reflect.TypeOf((**ServiceAccountIdentity)(nil)).Elem() +} + +func (i *ServiceAccountIdentity) ToServiceAccountIdentityOutput() ServiceAccountIdentityOutput { + return i.ToServiceAccountIdentityOutputWithContext(context.Background()) +} + +func (i *ServiceAccountIdentity) ToServiceAccountIdentityOutputWithContext(ctx context.Context) ServiceAccountIdentityOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityOutput) +} + +// ServiceAccountIdentityArrayInput is an input type that accepts ServiceAccountIdentityArray and ServiceAccountIdentityArrayOutput values. +// You can construct a concrete instance of `ServiceAccountIdentityArrayInput` via: +// +// ServiceAccountIdentityArray{ ServiceAccountIdentityArgs{...} } +type ServiceAccountIdentityArrayInput interface { + pulumi.Input + + ToServiceAccountIdentityArrayOutput() ServiceAccountIdentityArrayOutput + ToServiceAccountIdentityArrayOutputWithContext(context.Context) ServiceAccountIdentityArrayOutput +} + +type ServiceAccountIdentityArray []ServiceAccountIdentityInput + +func (ServiceAccountIdentityArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ServiceAccountIdentity)(nil)).Elem() +} + +func (i ServiceAccountIdentityArray) ToServiceAccountIdentityArrayOutput() ServiceAccountIdentityArrayOutput { + return i.ToServiceAccountIdentityArrayOutputWithContext(context.Background()) +} + +func (i ServiceAccountIdentityArray) ToServiceAccountIdentityArrayOutputWithContext(ctx context.Context) ServiceAccountIdentityArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityArrayOutput) +} + +// ServiceAccountIdentityMapInput is an input type that accepts ServiceAccountIdentityMap and ServiceAccountIdentityMapOutput values. +// You can construct a concrete instance of `ServiceAccountIdentityMapInput` via: +// +// ServiceAccountIdentityMap{ "key": ServiceAccountIdentityArgs{...} } +type ServiceAccountIdentityMapInput interface { + pulumi.Input + + ToServiceAccountIdentityMapOutput() ServiceAccountIdentityMapOutput + ToServiceAccountIdentityMapOutputWithContext(context.Context) ServiceAccountIdentityMapOutput +} + +type ServiceAccountIdentityMap map[string]ServiceAccountIdentityInput + +func (ServiceAccountIdentityMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ServiceAccountIdentity)(nil)).Elem() +} + +func (i ServiceAccountIdentityMap) ToServiceAccountIdentityMapOutput() ServiceAccountIdentityMapOutput { + return i.ToServiceAccountIdentityMapOutputWithContext(context.Background()) +} + +func (i ServiceAccountIdentityMap) ToServiceAccountIdentityMapOutputWithContext(ctx context.Context) ServiceAccountIdentityMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceAccountIdentityMapOutput) +} + +type ServiceAccountIdentityOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ServiceAccountIdentity)(nil)).Elem() +} + +func (o ServiceAccountIdentityOutput) ToServiceAccountIdentityOutput() ServiceAccountIdentityOutput { + return o +} + +func (o ServiceAccountIdentityOutput) ToServiceAccountIdentityOutputWithContext(ctx context.Context) ServiceAccountIdentityOutput { + return o +} + +// The OIDC configuration for the identity +func (o ServiceAccountIdentityOutput) ConfigOidc() ServiceAccountIdentityConfigOidcOutput { + return o.ApplyT(func(v *ServiceAccountIdentity) ServiceAccountIdentityConfigOidcOutput { return v.ConfigOidc }).(ServiceAccountIdentityConfigOidcOutput) +} + +// The display name of the service account identity +func (o ServiceAccountIdentityOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *ServiceAccountIdentity) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// Slug of the service account +func (o ServiceAccountIdentityOutput) ServiceAccountSlug() pulumi.StringOutput { + return o.ApplyT(func(v *ServiceAccountIdentity) pulumi.StringOutput { return v.ServiceAccountSlug }).(pulumi.StringOutput) +} + +// Slug of the service account identity +func (o ServiceAccountIdentityOutput) Slug() pulumi.StringOutput { + return o.ApplyT(func(v *ServiceAccountIdentity) pulumi.StringOutput { return v.Slug }).(pulumi.StringOutput) +} + +// The amount of time, in seconds, that auth tokens for this identity will be valid +func (o ServiceAccountIdentityOutput) TtlSeconds() pulumi.IntOutput { + return o.ApplyT(func(v *ServiceAccountIdentity) pulumi.IntOutput { return v.TtlSeconds }).(pulumi.IntOutput) +} + +type ServiceAccountIdentityArrayOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ServiceAccountIdentity)(nil)).Elem() +} + +func (o ServiceAccountIdentityArrayOutput) ToServiceAccountIdentityArrayOutput() ServiceAccountIdentityArrayOutput { + return o +} + +func (o ServiceAccountIdentityArrayOutput) ToServiceAccountIdentityArrayOutputWithContext(ctx context.Context) ServiceAccountIdentityArrayOutput { + return o +} + +func (o ServiceAccountIdentityArrayOutput) Index(i pulumi.IntInput) ServiceAccountIdentityOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceAccountIdentity { + return vs[0].([]*ServiceAccountIdentity)[vs[1].(int)] + }).(ServiceAccountIdentityOutput) +} + +type ServiceAccountIdentityMapOutput struct{ *pulumi.OutputState } + +func (ServiceAccountIdentityMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ServiceAccountIdentity)(nil)).Elem() +} + +func (o ServiceAccountIdentityMapOutput) ToServiceAccountIdentityMapOutput() ServiceAccountIdentityMapOutput { + return o +} + +func (o ServiceAccountIdentityMapOutput) ToServiceAccountIdentityMapOutputWithContext(ctx context.Context) ServiceAccountIdentityMapOutput { + return o +} + +func (o ServiceAccountIdentityMapOutput) MapIndex(k pulumi.StringInput) ServiceAccountIdentityOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceAccountIdentity { + return vs[0].(map[string]*ServiceAccountIdentity)[vs[1].(string)] + }).(ServiceAccountIdentityOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityInput)(nil)).Elem(), &ServiceAccountIdentity{}) + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityArrayInput)(nil)).Elem(), ServiceAccountIdentityArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ServiceAccountIdentityMapInput)(nil)).Elem(), ServiceAccountIdentityMap{}) + pulumi.RegisterOutputType(ServiceAccountIdentityOutput{}) + pulumi.RegisterOutputType(ServiceAccountIdentityArrayOutput{}) + pulumi.RegisterOutputType(ServiceAccountIdentityMapOutput{}) +} diff --git a/sdk/go/doppler/serviceAccountToken.go b/sdk/go/doppler/serviceAccountToken.go index 6432dd8..bfcab89 100644 --- a/sdk/go/doppler/serviceAccountToken.go +++ b/sdk/go/doppler/serviceAccountToken.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,11 +8,46 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler service account token. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// ci, err := doppler.NewServiceAccount(ctx, "ci", &doppler.ServiceAccountArgs{ +// Name: pulumi.String("ci"), +// WorkplaceRole: pulumi.String("collaborator"), +// }) +// if err != nil { +// return err +// } +// _, err = doppler.NewServiceAccountToken(ctx, "builder_ci_token", &doppler.ServiceAccountTokenArgs{ +// ServiceAccountSlug: ci.Slug, +// Name: pulumi.String("Builder CI Token"), +// ExpiresAt: pulumi.String("2024-05-30T11:00:00.000Z"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type ServiceAccountToken struct { pulumi.CustomResourceState diff --git a/sdk/go/doppler/serviceToken.go b/sdk/go/doppler/serviceToken.go index 0c8f67b..9d85809 100644 --- a/sdk/go/doppler/serviceToken.go +++ b/sdk/go/doppler/serviceToken.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,8 +8,8 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) // Manage a Doppler service token. @@ -21,8 +21,8 @@ import ( // // import ( // +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler" // // ) // diff --git a/sdk/go/doppler/tag.go b/sdk/go/doppler/tag.go new file mode 100644 index 0000000..aa78151 --- /dev/null +++ b/sdk/go/doppler/tag.go @@ -0,0 +1,282 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler tag. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := doppler.NewTag(ctx, "backend", &doppler.TagArgs{ +// Name: pulumi.String("Backend"), +// Color: pulumi.String("blue"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// ```sh +// $ pulumi import doppler:index/tag:Tag default +// ``` +type Tag struct { + pulumi.CustomResourceState + + // The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + Color pulumi.StringPtrOutput `pulumi:"color"` + // The name of the tag + Name pulumi.StringOutput `pulumi:"name"` + // The slug of the tag. Generated from the name when omitted + Slug pulumi.StringOutput `pulumi:"slug"` +} + +// NewTag registers a new resource with the given unique name, arguments, and options. +func NewTag(ctx *pulumi.Context, + name string, args *TagArgs, opts ...pulumi.ResourceOption) (*Tag, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource Tag + err := ctx.RegisterResource("doppler:index/tag:Tag", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetTag gets an existing Tag resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetTag(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *TagState, opts ...pulumi.ResourceOption) (*Tag, error) { + var resource Tag + err := ctx.ReadResource("doppler:index/tag:Tag", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Tag resources. +type tagState struct { + // The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + Color *string `pulumi:"color"` + // The name of the tag + Name *string `pulumi:"name"` + // The slug of the tag. Generated from the name when omitted + Slug *string `pulumi:"slug"` +} + +type TagState struct { + // The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + Color pulumi.StringPtrInput + // The name of the tag + Name pulumi.StringPtrInput + // The slug of the tag. Generated from the name when omitted + Slug pulumi.StringPtrInput +} + +func (TagState) ElementType() reflect.Type { + return reflect.TypeOf((*tagState)(nil)).Elem() +} + +type tagArgs struct { + // The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + Color *string `pulumi:"color"` + // The name of the tag + Name string `pulumi:"name"` + // The slug of the tag. Generated from the name when omitted + Slug *string `pulumi:"slug"` +} + +// The set of arguments for constructing a Tag resource. +type TagArgs struct { + // The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + Color pulumi.StringPtrInput + // The name of the tag + Name pulumi.StringInput + // The slug of the tag. Generated from the name when omitted + Slug pulumi.StringPtrInput +} + +func (TagArgs) ElementType() reflect.Type { + return reflect.TypeOf((*tagArgs)(nil)).Elem() +} + +type TagInput interface { + pulumi.Input + + ToTagOutput() TagOutput + ToTagOutputWithContext(ctx context.Context) TagOutput +} + +func (*Tag) ElementType() reflect.Type { + return reflect.TypeOf((**Tag)(nil)).Elem() +} + +func (i *Tag) ToTagOutput() TagOutput { + return i.ToTagOutputWithContext(context.Background()) +} + +func (i *Tag) ToTagOutputWithContext(ctx context.Context) TagOutput { + return pulumi.ToOutputWithContext(ctx, i).(TagOutput) +} + +// TagArrayInput is an input type that accepts TagArray and TagArrayOutput values. +// You can construct a concrete instance of `TagArrayInput` via: +// +// TagArray{ TagArgs{...} } +type TagArrayInput interface { + pulumi.Input + + ToTagArrayOutput() TagArrayOutput + ToTagArrayOutputWithContext(context.Context) TagArrayOutput +} + +type TagArray []TagInput + +func (TagArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Tag)(nil)).Elem() +} + +func (i TagArray) ToTagArrayOutput() TagArrayOutput { + return i.ToTagArrayOutputWithContext(context.Background()) +} + +func (i TagArray) ToTagArrayOutputWithContext(ctx context.Context) TagArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(TagArrayOutput) +} + +// TagMapInput is an input type that accepts TagMap and TagMapOutput values. +// You can construct a concrete instance of `TagMapInput` via: +// +// TagMap{ "key": TagArgs{...} } +type TagMapInput interface { + pulumi.Input + + ToTagMapOutput() TagMapOutput + ToTagMapOutputWithContext(context.Context) TagMapOutput +} + +type TagMap map[string]TagInput + +func (TagMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Tag)(nil)).Elem() +} + +func (i TagMap) ToTagMapOutput() TagMapOutput { + return i.ToTagMapOutputWithContext(context.Background()) +} + +func (i TagMap) ToTagMapOutputWithContext(ctx context.Context) TagMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(TagMapOutput) +} + +type TagOutput struct{ *pulumi.OutputState } + +func (TagOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Tag)(nil)).Elem() +} + +func (o TagOutput) ToTagOutput() TagOutput { + return o +} + +func (o TagOutput) ToTagOutputWithContext(ctx context.Context) TagOutput { + return o +} + +// The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` +func (o TagOutput) Color() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Tag) pulumi.StringPtrOutput { return v.Color }).(pulumi.StringPtrOutput) +} + +// The name of the tag +func (o TagOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Tag) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The slug of the tag. Generated from the name when omitted +func (o TagOutput) Slug() pulumi.StringOutput { + return o.ApplyT(func(v *Tag) pulumi.StringOutput { return v.Slug }).(pulumi.StringOutput) +} + +type TagArrayOutput struct{ *pulumi.OutputState } + +func (TagArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Tag)(nil)).Elem() +} + +func (o TagArrayOutput) ToTagArrayOutput() TagArrayOutput { + return o +} + +func (o TagArrayOutput) ToTagArrayOutputWithContext(ctx context.Context) TagArrayOutput { + return o +} + +func (o TagArrayOutput) Index(i pulumi.IntInput) TagOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Tag { + return vs[0].([]*Tag)[vs[1].(int)] + }).(TagOutput) +} + +type TagMapOutput struct{ *pulumi.OutputState } + +func (TagMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Tag)(nil)).Elem() +} + +func (o TagMapOutput) ToTagMapOutput() TagMapOutput { + return o +} + +func (o TagMapOutput) ToTagMapOutputWithContext(ctx context.Context) TagMapOutput { + return o +} + +func (o TagMapOutput) MapIndex(k pulumi.StringInput) TagOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Tag { + return vs[0].(map[string]*Tag)[vs[1].(string)] + }).(TagOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*TagInput)(nil)).Elem(), &Tag{}) + pulumi.RegisterInputType(reflect.TypeOf((*TagArrayInput)(nil)).Elem(), TagArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*TagMapInput)(nil)).Elem(), TagMap{}) + pulumi.RegisterOutputType(TagOutput{}) + pulumi.RegisterOutputType(TagArrayOutput{}) + pulumi.RegisterOutputType(TagMapOutput{}) +} diff --git a/sdk/go/doppler/trustedIps.go b/sdk/go/doppler/trustedIps.go new file mode 100644 index 0000000..f536b16 --- /dev/null +++ b/sdk/go/doppler/trustedIps.go @@ -0,0 +1,324 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage the trusted IP allowlist for a Doppler config. Only requests from the specified IP ranges will be permitted to access the config's secrets via the API. +// +// Requires a **Team or Enterprise plan**. Collaborators and other project roles with the `enclaveProjectConfigTrustedIps` permission have permission to manage trusted ips for a config. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := doppler.NewTrustedIps(ctx, "backend_prd", &doppler.TrustedIpsArgs{ +// Project: pulumi.String("backend"), +// Config: pulumi.String("prd"), +// TrustedIps: pulumi.StringArray{ +// pulumi.String("203.0.113.0/24"), +// pulumi.String("198.51.100.5/32"), +// pulumi.String("2001:db8::1/128"), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = doppler.NewTrustedIps(ctx, "backend_stg", &doppler.TrustedIpsArgs{ +// Project: pulumi.String("backend"), +// Config: pulumi.String("stg"), +// TrustedIps: pulumi.StringArray{ +// pulumi.String("203.0.113.0/24"), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = doppler.NewTrustedIps(ctx, "backend_dev", &doppler.TrustedIpsArgs{ +// Project: pulumi.String("backend"), +// Config: pulumi.String("dev"), +// TrustedIps: pulumi.StringArray{ +// pulumi.String("0.0.0.0/0"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Notes +// +// - **Warning:** Reconfiguring trusted IPs could lock you out of the config if the current client IP is not included in the trusted list. +// - The default state for any config is `["0.0.0.0/0"]` (allow all traffic). Deleting this resource restores that default. +// - Trusted IPs restrict API access only. They do not affect Dashboard logins. +// - IP addresses must be specified in CIDR notation. Use `/32` for an exact IPv4 address and `/128` for an exact IPv6 address (e.g. `1.2.3.4/32` or `2001:db8::1/128`). +// +// ## Import +// +// An existing trusted IP configuration can be imported using `.`: +// +// ```sh +// $ pulumi import doppler:index/trustedIps:TrustedIps backend_prd backend.prd +// ``` +type TrustedIps struct { + pulumi.CustomResourceState + + // The name of the Doppler config + Config pulumi.StringOutput `pulumi:"config"` + // The name of the Doppler project where the config is located + Project pulumi.StringOutput `pulumi:"project"` + // List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + TrustedIps pulumi.StringArrayOutput `pulumi:"trustedIps"` +} + +// NewTrustedIps registers a new resource with the given unique name, arguments, and options. +func NewTrustedIps(ctx *pulumi.Context, + name string, args *TrustedIpsArgs, opts ...pulumi.ResourceOption) (*TrustedIps, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Config == nil { + return nil, errors.New("invalid value for required argument 'Config'") + } + if args.Project == nil { + return nil, errors.New("invalid value for required argument 'Project'") + } + if args.TrustedIps == nil { + return nil, errors.New("invalid value for required argument 'TrustedIps'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource TrustedIps + err := ctx.RegisterResource("doppler:index/trustedIps:TrustedIps", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetTrustedIps gets an existing TrustedIps resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetTrustedIps(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *TrustedIpsState, opts ...pulumi.ResourceOption) (*TrustedIps, error) { + var resource TrustedIps + err := ctx.ReadResource("doppler:index/trustedIps:TrustedIps", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering TrustedIps resources. +type trustedIpsState struct { + // The name of the Doppler config + Config *string `pulumi:"config"` + // The name of the Doppler project where the config is located + Project *string `pulumi:"project"` + // List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + TrustedIps []string `pulumi:"trustedIps"` +} + +type TrustedIpsState struct { + // The name of the Doppler config + Config pulumi.StringPtrInput + // The name of the Doppler project where the config is located + Project pulumi.StringPtrInput + // List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + TrustedIps pulumi.StringArrayInput +} + +func (TrustedIpsState) ElementType() reflect.Type { + return reflect.TypeOf((*trustedIpsState)(nil)).Elem() +} + +type trustedIpsArgs struct { + // The name of the Doppler config + Config string `pulumi:"config"` + // The name of the Doppler project where the config is located + Project string `pulumi:"project"` + // List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + TrustedIps []string `pulumi:"trustedIps"` +} + +// The set of arguments for constructing a TrustedIps resource. +type TrustedIpsArgs struct { + // The name of the Doppler config + Config pulumi.StringInput + // The name of the Doppler project where the config is located + Project pulumi.StringInput + // List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + TrustedIps pulumi.StringArrayInput +} + +func (TrustedIpsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*trustedIpsArgs)(nil)).Elem() +} + +type TrustedIpsInput interface { + pulumi.Input + + ToTrustedIpsOutput() TrustedIpsOutput + ToTrustedIpsOutputWithContext(ctx context.Context) TrustedIpsOutput +} + +func (*TrustedIps) ElementType() reflect.Type { + return reflect.TypeOf((**TrustedIps)(nil)).Elem() +} + +func (i *TrustedIps) ToTrustedIpsOutput() TrustedIpsOutput { + return i.ToTrustedIpsOutputWithContext(context.Background()) +} + +func (i *TrustedIps) ToTrustedIpsOutputWithContext(ctx context.Context) TrustedIpsOutput { + return pulumi.ToOutputWithContext(ctx, i).(TrustedIpsOutput) +} + +// TrustedIpsArrayInput is an input type that accepts TrustedIpsArray and TrustedIpsArrayOutput values. +// You can construct a concrete instance of `TrustedIpsArrayInput` via: +// +// TrustedIpsArray{ TrustedIpsArgs{...} } +type TrustedIpsArrayInput interface { + pulumi.Input + + ToTrustedIpsArrayOutput() TrustedIpsArrayOutput + ToTrustedIpsArrayOutputWithContext(context.Context) TrustedIpsArrayOutput +} + +type TrustedIpsArray []TrustedIpsInput + +func (TrustedIpsArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*TrustedIps)(nil)).Elem() +} + +func (i TrustedIpsArray) ToTrustedIpsArrayOutput() TrustedIpsArrayOutput { + return i.ToTrustedIpsArrayOutputWithContext(context.Background()) +} + +func (i TrustedIpsArray) ToTrustedIpsArrayOutputWithContext(ctx context.Context) TrustedIpsArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(TrustedIpsArrayOutput) +} + +// TrustedIpsMapInput is an input type that accepts TrustedIpsMap and TrustedIpsMapOutput values. +// You can construct a concrete instance of `TrustedIpsMapInput` via: +// +// TrustedIpsMap{ "key": TrustedIpsArgs{...} } +type TrustedIpsMapInput interface { + pulumi.Input + + ToTrustedIpsMapOutput() TrustedIpsMapOutput + ToTrustedIpsMapOutputWithContext(context.Context) TrustedIpsMapOutput +} + +type TrustedIpsMap map[string]TrustedIpsInput + +func (TrustedIpsMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*TrustedIps)(nil)).Elem() +} + +func (i TrustedIpsMap) ToTrustedIpsMapOutput() TrustedIpsMapOutput { + return i.ToTrustedIpsMapOutputWithContext(context.Background()) +} + +func (i TrustedIpsMap) ToTrustedIpsMapOutputWithContext(ctx context.Context) TrustedIpsMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(TrustedIpsMapOutput) +} + +type TrustedIpsOutput struct{ *pulumi.OutputState } + +func (TrustedIpsOutput) ElementType() reflect.Type { + return reflect.TypeOf((**TrustedIps)(nil)).Elem() +} + +func (o TrustedIpsOutput) ToTrustedIpsOutput() TrustedIpsOutput { + return o +} + +func (o TrustedIpsOutput) ToTrustedIpsOutputWithContext(ctx context.Context) TrustedIpsOutput { + return o +} + +// The name of the Doppler config +func (o TrustedIpsOutput) Config() pulumi.StringOutput { + return o.ApplyT(func(v *TrustedIps) pulumi.StringOutput { return v.Config }).(pulumi.StringOutput) +} + +// The name of the Doppler project where the config is located +func (o TrustedIpsOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *TrustedIps) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. +func (o TrustedIpsOutput) TrustedIps() pulumi.StringArrayOutput { + return o.ApplyT(func(v *TrustedIps) pulumi.StringArrayOutput { return v.TrustedIps }).(pulumi.StringArrayOutput) +} + +type TrustedIpsArrayOutput struct{ *pulumi.OutputState } + +func (TrustedIpsArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*TrustedIps)(nil)).Elem() +} + +func (o TrustedIpsArrayOutput) ToTrustedIpsArrayOutput() TrustedIpsArrayOutput { + return o +} + +func (o TrustedIpsArrayOutput) ToTrustedIpsArrayOutputWithContext(ctx context.Context) TrustedIpsArrayOutput { + return o +} + +func (o TrustedIpsArrayOutput) Index(i pulumi.IntInput) TrustedIpsOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *TrustedIps { + return vs[0].([]*TrustedIps)[vs[1].(int)] + }).(TrustedIpsOutput) +} + +type TrustedIpsMapOutput struct{ *pulumi.OutputState } + +func (TrustedIpsMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*TrustedIps)(nil)).Elem() +} + +func (o TrustedIpsMapOutput) ToTrustedIpsMapOutput() TrustedIpsMapOutput { + return o +} + +func (o TrustedIpsMapOutput) ToTrustedIpsMapOutputWithContext(ctx context.Context) TrustedIpsMapOutput { + return o +} + +func (o TrustedIpsMapOutput) MapIndex(k pulumi.StringInput) TrustedIpsOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *TrustedIps { + return vs[0].(map[string]*TrustedIps)[vs[1].(string)] + }).(TrustedIpsOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*TrustedIpsInput)(nil)).Elem(), &TrustedIps{}) + pulumi.RegisterInputType(reflect.TypeOf((*TrustedIpsArrayInput)(nil)).Elem(), TrustedIpsArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*TrustedIpsMapInput)(nil)).Elem(), TrustedIpsMap{}) + pulumi.RegisterOutputType(TrustedIpsOutput{}) + pulumi.RegisterOutputType(TrustedIpsArrayOutput{}) + pulumi.RegisterOutputType(TrustedIpsMapOutput{}) +} diff --git a/sdk/go/doppler/webhook.go b/sdk/go/doppler/webhook.go index ad993fa..6ac7107 100644 --- a/sdk/go/doppler/webhook.go +++ b/sdk/go/doppler/webhook.go @@ -1,4 +1,4 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// Code generated by pulumi-language-go DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package doppler @@ -8,10 +8,67 @@ import ( "reflect" "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/internal" ) +// Manage a Doppler Webhook. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "encoding/json" +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// tmpJSON0, err := json.Marshal(map[string]string{ +// "myKey": "my value", +// }) +// if err != nil { +// return err +// } +// json0 := string(tmpJSON0) +// _, err = doppler.NewWebhook(ctx, "ci", &doppler.WebhookArgs{ +// Authentication: &doppler.WebhookAuthenticationArgs{ +// Type: pulumi.String("Bearer"), +// Token: pulumi.String("my bearer token"), +// }, +// Project: pulumi.Any(testProj.Name), +// Url: pulumi.String("https://localhost/webhook"), +// Name: pulumi.String("My Webhook"), +// Secret: pulumi.String("my signing secret-2"), +// Enabled: pulumi.Bool(true), +// EnabledConfigs: pulumi.StringArray{ +// ciGithub.Name, +// }, +// Payload: pulumi.String(json0), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## State Management +// +// For security reasons, the Doppler API does not return the fields listed below, which prevents the Terraform provider from checking this external state. +// In other words, the Terraform provider can be used to update these webhook fields but it will be unaware of external changes. +// +// - `secret` +// - `authentication` +// - `payload` type Webhook struct { pulumi.CustomResourceState @@ -21,6 +78,8 @@ type Webhook struct { Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Configs this webhook will trigger for EnabledConfigs pulumi.StringArrayOutput `pulumi:"enabledConfigs"` + // Name of the webhook + Name pulumi.StringPtrOutput `pulumi:"name"` // The webhook's payload as a JSON string. Leave empty to use the default webhook payload Payload pulumi.StringPtrOutput `pulumi:"payload"` // The name of the Doppler project where the webhook is located @@ -86,6 +145,8 @@ type webhookState struct { Enabled *bool `pulumi:"enabled"` // Configs this webhook will trigger for EnabledConfigs []string `pulumi:"enabledConfigs"` + // Name of the webhook + Name *string `pulumi:"name"` // The webhook's payload as a JSON string. Leave empty to use the default webhook payload Payload *string `pulumi:"payload"` // The name of the Doppler project where the webhook is located @@ -105,6 +166,8 @@ type WebhookState struct { Enabled pulumi.BoolPtrInput // Configs this webhook will trigger for EnabledConfigs pulumi.StringArrayInput + // Name of the webhook + Name pulumi.StringPtrInput // The webhook's payload as a JSON string. Leave empty to use the default webhook payload Payload pulumi.StringPtrInput // The name of the Doppler project where the webhook is located @@ -128,6 +191,8 @@ type webhookArgs struct { Enabled *bool `pulumi:"enabled"` // Configs this webhook will trigger for EnabledConfigs []string `pulumi:"enabledConfigs"` + // Name of the webhook + Name *string `pulumi:"name"` // The webhook's payload as a JSON string. Leave empty to use the default webhook payload Payload *string `pulumi:"payload"` // The name of the Doppler project where the webhook is located @@ -146,6 +211,8 @@ type WebhookArgs struct { Enabled pulumi.BoolPtrInput // Configs this webhook will trigger for EnabledConfigs pulumi.StringArrayInput + // Name of the webhook + Name pulumi.StringPtrInput // The webhook's payload as a JSON string. Leave empty to use the default webhook payload Payload pulumi.StringPtrInput // The name of the Doppler project where the webhook is located @@ -258,6 +325,11 @@ func (o WebhookOutput) EnabledConfigs() pulumi.StringArrayOutput { return o.ApplyT(func(v *Webhook) pulumi.StringArrayOutput { return v.EnabledConfigs }).(pulumi.StringArrayOutput) } +// Name of the webhook +func (o WebhookOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Webhook) pulumi.StringPtrOutput { return v.Name }).(pulumi.StringPtrOutput) +} + // The webhook's payload as a JSON string. Leave empty to use the default webhook payload func (o WebhookOutput) Payload() pulumi.StringPtrOutput { return o.ApplyT(func(v *Webhook) pulumi.StringPtrOutput { return v.Payload }).(pulumi.StringPtrOutput) diff --git a/sdk/go/doppler/workplaceRole.go b/sdk/go/doppler/workplaceRole.go new file mode 100644 index 0000000..5b6f899 --- /dev/null +++ b/sdk/go/doppler/workplaceRole.go @@ -0,0 +1,294 @@ +// Code generated by pulumi-language-go DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package doppler + +import ( + "context" + "reflect" + + "errors" + "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manage a Doppler workplace_role. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/DopplerHQ/pulumi-doppler/sdk/go/doppler" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := doppler.NewWorkplaceRole(ctx, "team_manager", &doppler.WorkplaceRoleArgs{ +// Name: pulumi.String("Team Manager"), +// Permissions: pulumi.StringArray{ +// pulumi.String("team_manage"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// ```sh +// $ pulumi import doppler:index/workplaceRole:WorkplaceRole default +// ``` +type WorkplaceRole struct { + pulumi.CustomResourceState + + // The role's unique identifier + Identifier pulumi.StringOutput `pulumi:"identifier"` + // Whether or not the role is custom (as opposed to Doppler built-in) + IsCustomRole pulumi.BoolOutput `pulumi:"isCustomRole"` + // The name of the Doppler workplace role + Name pulumi.StringOutput `pulumi:"name"` + // A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + Permissions pulumi.StringArrayOutput `pulumi:"permissions"` +} + +// NewWorkplaceRole registers a new resource with the given unique name, arguments, and options. +func NewWorkplaceRole(ctx *pulumi.Context, + name string, args *WorkplaceRoleArgs, opts ...pulumi.ResourceOption) (*WorkplaceRole, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + if args.Permissions == nil { + return nil, errors.New("invalid value for required argument 'Permissions'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource WorkplaceRole + err := ctx.RegisterResource("doppler:index/workplaceRole:WorkplaceRole", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetWorkplaceRole gets an existing WorkplaceRole resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetWorkplaceRole(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *WorkplaceRoleState, opts ...pulumi.ResourceOption) (*WorkplaceRole, error) { + var resource WorkplaceRole + err := ctx.ReadResource("doppler:index/workplaceRole:WorkplaceRole", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering WorkplaceRole resources. +type workplaceRoleState struct { + // The role's unique identifier + Identifier *string `pulumi:"identifier"` + // Whether or not the role is custom (as opposed to Doppler built-in) + IsCustomRole *bool `pulumi:"isCustomRole"` + // The name of the Doppler workplace role + Name *string `pulumi:"name"` + // A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + Permissions []string `pulumi:"permissions"` +} + +type WorkplaceRoleState struct { + // The role's unique identifier + Identifier pulumi.StringPtrInput + // Whether or not the role is custom (as opposed to Doppler built-in) + IsCustomRole pulumi.BoolPtrInput + // The name of the Doppler workplace role + Name pulumi.StringPtrInput + // A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + Permissions pulumi.StringArrayInput +} + +func (WorkplaceRoleState) ElementType() reflect.Type { + return reflect.TypeOf((*workplaceRoleState)(nil)).Elem() +} + +type workplaceRoleArgs struct { + // The name of the Doppler workplace role + Name string `pulumi:"name"` + // A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + Permissions []string `pulumi:"permissions"` +} + +// The set of arguments for constructing a WorkplaceRole resource. +type WorkplaceRoleArgs struct { + // The name of the Doppler workplace role + Name pulumi.StringInput + // A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + Permissions pulumi.StringArrayInput +} + +func (WorkplaceRoleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*workplaceRoleArgs)(nil)).Elem() +} + +type WorkplaceRoleInput interface { + pulumi.Input + + ToWorkplaceRoleOutput() WorkplaceRoleOutput + ToWorkplaceRoleOutputWithContext(ctx context.Context) WorkplaceRoleOutput +} + +func (*WorkplaceRole) ElementType() reflect.Type { + return reflect.TypeOf((**WorkplaceRole)(nil)).Elem() +} + +func (i *WorkplaceRole) ToWorkplaceRoleOutput() WorkplaceRoleOutput { + return i.ToWorkplaceRoleOutputWithContext(context.Background()) +} + +func (i *WorkplaceRole) ToWorkplaceRoleOutputWithContext(ctx context.Context) WorkplaceRoleOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkplaceRoleOutput) +} + +// WorkplaceRoleArrayInput is an input type that accepts WorkplaceRoleArray and WorkplaceRoleArrayOutput values. +// You can construct a concrete instance of `WorkplaceRoleArrayInput` via: +// +// WorkplaceRoleArray{ WorkplaceRoleArgs{...} } +type WorkplaceRoleArrayInput interface { + pulumi.Input + + ToWorkplaceRoleArrayOutput() WorkplaceRoleArrayOutput + ToWorkplaceRoleArrayOutputWithContext(context.Context) WorkplaceRoleArrayOutput +} + +type WorkplaceRoleArray []WorkplaceRoleInput + +func (WorkplaceRoleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*WorkplaceRole)(nil)).Elem() +} + +func (i WorkplaceRoleArray) ToWorkplaceRoleArrayOutput() WorkplaceRoleArrayOutput { + return i.ToWorkplaceRoleArrayOutputWithContext(context.Background()) +} + +func (i WorkplaceRoleArray) ToWorkplaceRoleArrayOutputWithContext(ctx context.Context) WorkplaceRoleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkplaceRoleArrayOutput) +} + +// WorkplaceRoleMapInput is an input type that accepts WorkplaceRoleMap and WorkplaceRoleMapOutput values. +// You can construct a concrete instance of `WorkplaceRoleMapInput` via: +// +// WorkplaceRoleMap{ "key": WorkplaceRoleArgs{...} } +type WorkplaceRoleMapInput interface { + pulumi.Input + + ToWorkplaceRoleMapOutput() WorkplaceRoleMapOutput + ToWorkplaceRoleMapOutputWithContext(context.Context) WorkplaceRoleMapOutput +} + +type WorkplaceRoleMap map[string]WorkplaceRoleInput + +func (WorkplaceRoleMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*WorkplaceRole)(nil)).Elem() +} + +func (i WorkplaceRoleMap) ToWorkplaceRoleMapOutput() WorkplaceRoleMapOutput { + return i.ToWorkplaceRoleMapOutputWithContext(context.Background()) +} + +func (i WorkplaceRoleMap) ToWorkplaceRoleMapOutputWithContext(ctx context.Context) WorkplaceRoleMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(WorkplaceRoleMapOutput) +} + +type WorkplaceRoleOutput struct{ *pulumi.OutputState } + +func (WorkplaceRoleOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WorkplaceRole)(nil)).Elem() +} + +func (o WorkplaceRoleOutput) ToWorkplaceRoleOutput() WorkplaceRoleOutput { + return o +} + +func (o WorkplaceRoleOutput) ToWorkplaceRoleOutputWithContext(ctx context.Context) WorkplaceRoleOutput { + return o +} + +// The role's unique identifier +func (o WorkplaceRoleOutput) Identifier() pulumi.StringOutput { + return o.ApplyT(func(v *WorkplaceRole) pulumi.StringOutput { return v.Identifier }).(pulumi.StringOutput) +} + +// Whether or not the role is custom (as opposed to Doppler built-in) +func (o WorkplaceRoleOutput) IsCustomRole() pulumi.BoolOutput { + return o.ApplyT(func(v *WorkplaceRole) pulumi.BoolOutput { return v.IsCustomRole }).(pulumi.BoolOutput) +} + +// The name of the Doppler workplace role +func (o WorkplaceRoleOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *WorkplaceRole) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) +func (o WorkplaceRoleOutput) Permissions() pulumi.StringArrayOutput { + return o.ApplyT(func(v *WorkplaceRole) pulumi.StringArrayOutput { return v.Permissions }).(pulumi.StringArrayOutput) +} + +type WorkplaceRoleArrayOutput struct{ *pulumi.OutputState } + +func (WorkplaceRoleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*WorkplaceRole)(nil)).Elem() +} + +func (o WorkplaceRoleArrayOutput) ToWorkplaceRoleArrayOutput() WorkplaceRoleArrayOutput { + return o +} + +func (o WorkplaceRoleArrayOutput) ToWorkplaceRoleArrayOutputWithContext(ctx context.Context) WorkplaceRoleArrayOutput { + return o +} + +func (o WorkplaceRoleArrayOutput) Index(i pulumi.IntInput) WorkplaceRoleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *WorkplaceRole { + return vs[0].([]*WorkplaceRole)[vs[1].(int)] + }).(WorkplaceRoleOutput) +} + +type WorkplaceRoleMapOutput struct{ *pulumi.OutputState } + +func (WorkplaceRoleMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*WorkplaceRole)(nil)).Elem() +} + +func (o WorkplaceRoleMapOutput) ToWorkplaceRoleMapOutput() WorkplaceRoleMapOutput { + return o +} + +func (o WorkplaceRoleMapOutput) ToWorkplaceRoleMapOutputWithContext(ctx context.Context) WorkplaceRoleMapOutput { + return o +} + +func (o WorkplaceRoleMapOutput) MapIndex(k pulumi.StringInput) WorkplaceRoleOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *WorkplaceRole { + return vs[0].(map[string]*WorkplaceRole)[vs[1].(string)] + }).(WorkplaceRoleOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*WorkplaceRoleInput)(nil)).Elem(), &WorkplaceRole{}) + pulumi.RegisterInputType(reflect.TypeOf((*WorkplaceRoleArrayInput)(nil)).Elem(), WorkplaceRoleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*WorkplaceRoleMapInput)(nil)).Elem(), WorkplaceRoleMap{}) + pulumi.RegisterOutputType(WorkplaceRoleOutput{}) + pulumi.RegisterOutputType(WorkplaceRoleArrayOutput{}) + pulumi.RegisterOutputType(WorkplaceRoleMapOutput{}) +} diff --git a/sdk/nodejs/.gitattributes b/sdk/nodejs/.gitattributes new file mode 100644 index 0000000..aae64e2 --- /dev/null +++ b/sdk/nodejs/.gitattributes @@ -0,0 +1 @@ +* linguist-generated diff --git a/sdk/nodejs/.gitignore b/sdk/nodejs/.gitignore new file mode 100644 index 0000000..204ade5 --- /dev/null +++ b/sdk/nodejs/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +bin/ diff --git a/sdk/nodejs/Pulumi.yaml b/sdk/nodejs/Pulumi.yaml index e69de29..30c1850 100644 --- a/sdk/nodejs/Pulumi.yaml +++ b/sdk/nodejs/Pulumi.yaml @@ -0,0 +1,3 @@ +name: doppler +description: A Pulumi resource provider for doppler. +language: nodejs diff --git a/sdk/nodejs/README.md b/sdk/nodejs/README.md index 65eb69e..708f252 100644 --- a/sdk/nodejs/README.md +++ b/sdk/nodejs/README.md @@ -1,4 +1,4 @@ > This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler) -> distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi-doppler` repo](https://github.com/pulumiverse/pulumi-doppler/issues); however, if that doesn't turn up anything, +> distributed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). If you encounter a bug or missing feature, +> first check the [`pulumi-doppler` repo](https://github.com/DopplerHQ/pulumi-doppler/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues). diff --git a/sdk/nodejs/branchConfig.ts b/sdk/nodejs/branchConfig.ts index 09529b1..b3df3bd 100644 --- a/sdk/nodejs/branchConfig.ts +++ b/sdk/nodejs/branchConfig.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const backendCiGithub = new doppler.BranchConfig("backend_ci_github", { * project: "backend", @@ -54,18 +54,30 @@ export class BranchConfig extends pulumi.CustomResource { return obj['__pulumiType'] === BranchConfig.__pulumiType; } + /** + * The descriptor (project.config) of the Doppler config + */ + declare public /*out*/ readonly descriptor: pulumi.Output; /** * The name of the Doppler environment where the config is located */ - public readonly environment!: pulumi.Output; + declare public readonly environment: pulumi.Output; + /** + * Whether or not the Doppler config can be inherited by other configs + */ + declare public readonly inheritable: pulumi.Output; + /** + * A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + */ + declare public readonly inherits: pulumi.Output; /** * The name of the Doppler config */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * The name of the Doppler project where the config is located */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * Create a BranchConfig resource with the given unique name, arguments, and options. @@ -80,20 +92,26 @@ export class BranchConfig extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as BranchConfigState | undefined; - resourceInputs["environment"] = state ? state.environment : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["project"] = state ? state.project : undefined; + resourceInputs["descriptor"] = state?.descriptor; + resourceInputs["environment"] = state?.environment; + resourceInputs["inheritable"] = state?.inheritable; + resourceInputs["inherits"] = state?.inherits; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; } else { const args = argsOrState as BranchConfigArgs | undefined; - if ((!args || args.environment === undefined) && !opts.urn) { + if (args?.environment === undefined && !opts.urn) { throw new Error("Missing required property 'environment'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - resourceInputs["environment"] = args ? args.environment : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["environment"] = args?.environment; + resourceInputs["inheritable"] = args?.inheritable; + resourceInputs["inherits"] = args?.inherits; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["descriptor"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const aliasOpts = { aliases: [{ type: "doppler:index/config:Config" }] }; @@ -106,18 +124,30 @@ export class BranchConfig extends pulumi.CustomResource { * Input properties used for looking up and filtering BranchConfig resources. */ export interface BranchConfigState { + /** + * The descriptor (project.config) of the Doppler config + */ + descriptor?: pulumi.Input; /** * The name of the Doppler environment where the config is located */ - environment?: pulumi.Input; + environment?: pulumi.Input; + /** + * Whether or not the Doppler config can be inherited by other configs + */ + inheritable?: pulumi.Input; + /** + * A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + */ + inherits?: pulumi.Input[] | undefined>; /** * The name of the Doppler config */ - name?: pulumi.Input; + name?: pulumi.Input; /** * The name of the Doppler project where the config is located */ - project?: pulumi.Input; + project?: pulumi.Input; } /** @@ -128,10 +158,18 @@ export interface BranchConfigArgs { * The name of the Doppler environment where the config is located */ environment: pulumi.Input; + /** + * Whether or not the Doppler config can be inherited by other configs + */ + inheritable?: pulumi.Input; + /** + * A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + */ + inherits?: pulumi.Input[] | undefined>; /** * The name of the Doppler config */ - name?: pulumi.Input; + name?: pulumi.Input; /** * The name of the Doppler project where the config is located */ diff --git a/sdk/nodejs/changeRequestPolicy.ts b/sdk/nodejs/changeRequestPolicy.ts new file mode 100644 index 0000000..8cc7993 --- /dev/null +++ b/sdk/nodejs/changeRequestPolicy.ts @@ -0,0 +1,224 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * Manage a Doppler change request policy. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * export = async () => { + * const nic = await doppler.getUser({ + * email: "nic@doppler.com", + * }); + * const emily = await doppler.getUser({ + * email: "emily@doppler.com", + * }); + * const testProj = new doppler.Project("test_proj", { + * name: "my-test-project", + * description: "This is a test project", + * }); + * const prd = new doppler.Environment("prd", { + * project: testProj.name, + * slug: "prd", + * name: "prd", + * }); + * const ci = new doppler.Environment("ci", { + * project: testProj.name, + * slug: "ci", + * name: "CI-CD", + * }); + * const ciGithub = new doppler.BranchConfig("ci_github", { + * project: testProj.name, + * environment: ci.slug, + * name: "ci_github", + * }); + * const prodReviewers = new doppler.Group("prod_reviewers", {name: "Prod Reviewers"}); + * const prodReviewersGroupMember: doppler.GroupMember[] = []; + * for (const range of Object.entries([nic.slug].reduce((__obj, entry) => ({ ...__obj, [entry]: entry }), {})).sort().map(([k, v]) => ({key: k, value: v}))) { + * prodReviewersGroupMember.push(new doppler.GroupMember(`prod_reviewers-${range.key}`, { + * groupSlug: prodReviewers.slug, + * userSlug: range.value, + * })); + * } + * const prdReview = new doppler.ChangeRequestPolicy("prd_review", { + * rules: { + * requiredReviewers: [ + * { + * count: 2, + * }, + * { + * count: 1, + * groupSlugs: [prodReviewers.slug], + * userSlugs: [emily.slug], + * }, + * ], + * disallowSelfReview: true, + * autoAssignReviewers: "matchCount", + * }, + * targets: { + * projects: [{ + * projectName: testProj.name, + * environmentSlugs: [prd.slug], + * configNames: [ciGithub.name], + * }], + * }, + * name: "Prod Review", + * description: `A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group. + * Reviews from the author of the change request are not counted. + * This policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config. + * `, + * }); + * } + * ``` + * + * ## Import + * + * ```sh + * $ pulumi import doppler:index/changeRequestPolicy:ChangeRequestPolicy + * ``` + */ +export class ChangeRequestPolicy extends pulumi.CustomResource { + /** + * Get an existing ChangeRequestPolicy resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: ChangeRequestPolicyState, opts?: pulumi.CustomResourceOptions): ChangeRequestPolicy { + return new ChangeRequestPolicy(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/changeRequestPolicy:ChangeRequestPolicy'; + + /** + * Returns true if the given object is an instance of ChangeRequestPolicy. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is ChangeRequestPolicy { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ChangeRequestPolicy.__pulumiType; + } + + /** + * A description of the change request policy + */ + declare public readonly description: pulumi.Output; + /** + * The name of the change request policy + */ + declare public readonly name: pulumi.Output; + /** + * Rules that the policy will apply to its targets + */ + declare public readonly rules: pulumi.Output; + /** + * The unique identifier of the change request policy + */ + declare public /*out*/ readonly slug: pulumi.Output; + /** + * Where the policy will apply + */ + declare public readonly targets: pulumi.Output; + + /** + * Create a ChangeRequestPolicy resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ChangeRequestPolicyArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ChangeRequestPolicyArgs | ChangeRequestPolicyState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ChangeRequestPolicyState | undefined; + resourceInputs["description"] = state?.description; + resourceInputs["name"] = state?.name; + resourceInputs["rules"] = state?.rules; + resourceInputs["slug"] = state?.slug; + resourceInputs["targets"] = state?.targets; + } else { + const args = argsOrState as ChangeRequestPolicyArgs | undefined; + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.rules === undefined && !opts.urn) { + throw new Error("Missing required property 'rules'"); + } + if (args?.targets === undefined && !opts.urn) { + throw new Error("Missing required property 'targets'"); + } + resourceInputs["description"] = args?.description; + resourceInputs["name"] = args?.name; + resourceInputs["rules"] = args?.rules; + resourceInputs["targets"] = args?.targets; + resourceInputs["slug"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(ChangeRequestPolicy.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ChangeRequestPolicy resources. + */ +export interface ChangeRequestPolicyState { + /** + * A description of the change request policy + */ + description?: pulumi.Input; + /** + * The name of the change request policy + */ + name?: pulumi.Input; + /** + * Rules that the policy will apply to its targets + */ + rules?: pulumi.Input; + /** + * The unique identifier of the change request policy + */ + slug?: pulumi.Input; + /** + * Where the policy will apply + */ + targets?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ChangeRequestPolicy resource. + */ +export interface ChangeRequestPolicyArgs { + /** + * A description of the change request policy + */ + description?: pulumi.Input; + /** + * The name of the change request policy + */ + name: pulumi.Input; + /** + * Rules that the policy will apply to its targets + */ + rules: pulumi.Input; + /** + * Where the policy will apply + */ + targets: pulumi.Input; +} diff --git a/sdk/nodejs/config/index.ts b/sdk/nodejs/config/index.ts index ed497ed..3fbadc8 100644 --- a/sdk/nodejs/config/index.ts +++ b/sdk/nodejs/config/index.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** // Export members: diff --git a/sdk/nodejs/config/vars.ts b/sdk/nodejs/config/vars.ts index 7d7aef7..5574368 100644 --- a/sdk/nodejs/config/vars.ts +++ b/sdk/nodejs/config/vars.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -8,7 +8,7 @@ declare var exports: any; const __config = new pulumi.Config("doppler"); /** - * A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. + * A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. */ export declare const dopplerToken: string | undefined; Object.defineProperty(exports, "dopplerToken", { @@ -29,6 +29,39 @@ Object.defineProperty(exports, "host", { enumerable: true, }); +/** + * The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + */ +export declare const oidcIdentity: string | undefined; +Object.defineProperty(exports, "oidcIdentity", { + get() { + return __config.get("oidcIdentity"); + }, + enumerable: true, +}); + +/** + * A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + */ +export declare const oidcToken: string | undefined; +Object.defineProperty(exports, "oidcToken", { + get() { + return __config.get("oidcToken"); + }, + enumerable: true, +}); + +/** + * A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + */ +export declare const oidcTokenFile: string | undefined; +Object.defineProperty(exports, "oidcTokenFile", { + get() { + return __config.get("oidcTokenFile"); + }, + enumerable: true, +}); + /** * Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. */ diff --git a/sdk/nodejs/environment.ts b/sdk/nodejs/environment.ts index 3a1c858..582fee5 100644 --- a/sdk/nodejs/environment.ts +++ b/sdk/nodejs/environment.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const backendCi = new doppler.Environment("backend_ci", { * project: "backend", @@ -57,19 +57,19 @@ export class Environment extends pulumi.CustomResource { /** * The name of the Doppler environment */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Whether or not personal configs are enabled for the environment */ - public readonly personalConfigs!: pulumi.Output; + declare public readonly personalConfigs: pulumi.Output; /** * The name of the Doppler project where the environment is located */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * The slug of the Doppler environment */ - public readonly slug!: pulumi.Output; + declare public readonly slug: pulumi.Output; /** * Create a Environment resource with the given unique name, arguments, and options. @@ -84,25 +84,25 @@ export class Environment extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as EnvironmentState | undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["personalConfigs"] = state ? state.personalConfigs : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["slug"] = state ? state.slug : undefined; + resourceInputs["name"] = state?.name; + resourceInputs["personalConfigs"] = state?.personalConfigs; + resourceInputs["project"] = state?.project; + resourceInputs["slug"] = state?.slug; } else { const args = argsOrState as EnvironmentArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.slug === undefined) && !opts.urn) { + if (args?.slug === undefined && !opts.urn) { throw new Error("Missing required property 'slug'"); } - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["personalConfigs"] = args ? args.personalConfigs : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["slug"] = args ? args.slug : undefined; + resourceInputs["name"] = args?.name; + resourceInputs["personalConfigs"] = args?.personalConfigs; + resourceInputs["project"] = args?.project; + resourceInputs["slug"] = args?.slug; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Environment.__pulumiType, name, resourceInputs, opts); @@ -116,19 +116,19 @@ export interface EnvironmentState { /** * The name of the Doppler environment */ - name?: pulumi.Input; + name?: pulumi.Input; /** * Whether or not personal configs are enabled for the environment */ - personalConfigs?: pulumi.Input; + personalConfigs?: pulumi.Input; /** * The name of the Doppler project where the environment is located */ - project?: pulumi.Input; + project?: pulumi.Input; /** * The slug of the Doppler environment */ - slug?: pulumi.Input; + slug?: pulumi.Input; } /** @@ -142,7 +142,7 @@ export interface EnvironmentArgs { /** * Whether or not personal configs are enabled for the environment */ - personalConfigs?: pulumi.Input; + personalConfigs?: pulumi.Input; /** * The name of the Doppler project where the environment is located */ diff --git a/sdk/nodejs/getEnvironments.ts b/sdk/nodejs/getEnvironments.ts new file mode 100644 index 0000000..516db16 --- /dev/null +++ b/sdk/nodejs/getEnvironments.ts @@ -0,0 +1,90 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * Retrieve all environments in the project. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const all = doppler.getEnvironments({ + * project: "my-project", + * }); + * export const environmentNames = all.then(all => .map(env => (env.name))); + * export const environmentSlugs = all.then(all => .map(env => (env.slug))); + * ``` + */ +export function getEnvironments(args: GetEnvironmentsArgs, opts?: pulumi.InvokeOptions): Promise { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("doppler:index/getEnvironments:getEnvironments", { + "project": args.project, + }, opts); +} + +/** + * A collection of arguments for invoking getEnvironments. + */ +export interface GetEnvironmentsArgs { + /** + * The project to list environments for + */ + project: string; +} + +/** + * A collection of values returned by getEnvironments. + */ +export interface GetEnvironmentsResult { + /** + * List of environments in the project + */ + readonly environments: outputs.GetEnvironmentsEnvironment[]; + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + /** + * The project to list environments for + */ + readonly project: string; +} +/** + * Retrieve all environments in the project. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const all = doppler.getEnvironments({ + * project: "my-project", + * }); + * export const environmentNames = all.then(all => .map(env => (env.name))); + * export const environmentSlugs = all.then(all => .map(env => (env.slug))); + * ``` + */ +export function getEnvironmentsOutput(args: GetEnvironmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("doppler:index/getEnvironments:getEnvironments", { + "project": args.project, + }, opts); +} + +/** + * A collection of arguments for invoking getEnvironments. + */ +export interface GetEnvironmentsOutputArgs { + /** + * The project to list environments for + */ + project: pulumi.Input; +} diff --git a/sdk/nodejs/getGroup.ts b/sdk/nodejs/getGroup.ts new file mode 100644 index 0000000..2a15a57 --- /dev/null +++ b/sdk/nodejs/getGroup.ts @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Retrieve an existing Doppler group. + */ +export function getGroup(args?: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise { + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("doppler:index/getGroup:getGroup", { + "name": args.name, + "slug": args.slug, + }, opts); +} + +/** + * A collection of arguments for invoking getGroup. + */ +export interface GetGroupArgs { + /** + * The name of the Doppler group + */ + name?: string; + /** + * The slug of the Doppler group + */ + slug?: string; +} + +/** + * A collection of values returned by getGroup. + */ +export interface GetGroupResult { + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + /** + * The name of the Doppler group + */ + readonly name?: string; + /** + * The slug of the Doppler group + */ + readonly slug?: string; +} +/** + * Retrieve an existing Doppler group. + */ +export function getGroupOutput(args?: GetGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("doppler:index/getGroup:getGroup", { + "name": args.name, + "slug": args.slug, + }, opts); +} + +/** + * A collection of arguments for invoking getGroup. + */ +export interface GetGroupOutputArgs { + /** + * The name of the Doppler group + */ + name?: pulumi.Input; + /** + * The slug of the Doppler group + */ + slug?: pulumi.Input; +} diff --git a/sdk/nodejs/getSecrets.ts b/sdk/nodejs/getSecrets.ts index 3451aea..398564b 100644 --- a/sdk/nodejs/getSecrets.ts +++ b/sdk/nodejs/getSecrets.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -9,7 +9,6 @@ import * as utilities from "./utilities"; */ export function getSecrets(args?: GetSecretsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("doppler:index/getSecrets:getSecrets", { "config": args.config, @@ -55,8 +54,13 @@ export interface GetSecretsResult { /** * Retrieve all secrets in the config. */ -export function getSecretsOutput(args?: GetSecretsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSecrets(a, opts)) +export function getSecretsOutput(args?: GetSecretsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("doppler:index/getSecrets:getSecrets", { + "config": args.config, + "project": args.project, + }, opts); } /** @@ -66,9 +70,9 @@ export interface GetSecretsOutputArgs { /** * The name of the Doppler config (required for personal tokens) */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The name of the Doppler project (required for personal tokens) */ - project?: pulumi.Input; + project?: pulumi.Input; } diff --git a/sdk/nodejs/getUser.ts b/sdk/nodejs/getUser.ts index f7fd1cc..54793b5 100644 --- a/sdk/nodejs/getUser.ts +++ b/sdk/nodejs/getUser.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumi/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const nic = doppler.getUser({ * email: "nic@doppler.com", @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("doppler:index/getUser:getUser", { "email": args.email, @@ -60,15 +59,18 @@ export interface GetUserResult { * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumi/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const nic = doppler.getUser({ * email: "nic@doppler.com", * }); * ``` */ -export function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getUser(a, opts)) +export function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("doppler:index/getUser:getUser", { + "email": args.email, + }, opts); } /** diff --git a/sdk/nodejs/go.mod b/sdk/nodejs/go.mod new file mode 100644 index 0000000..104eb1a --- /dev/null +++ b/sdk/nodejs/go.mod @@ -0,0 +1,3 @@ +module fake_nodejs_module // Exclude this directory from Go tools + +go 1.17 diff --git a/sdk/nodejs/group.ts b/sdk/nodejs/group.ts index 5cd90f5..5bd136e 100644 --- a/sdk/nodejs/group.ts +++ b/sdk/nodejs/group.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,15 +11,17 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * - * const engineering = new doppler.Group("engineering", {name: "engineering"}); + * const engineering = new doppler.Group("engineering", { + * name: "engineering", + * workplaceRole: "viewer", + * }); * ``` * * ## Import * * import using the group slug from the URL: - * * https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] * * ```sh @@ -55,17 +57,21 @@ export class Group extends pulumi.CustomResource { } /** - * The default project role assigned to the group when added to a Doppler project + * The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. */ - public readonly defaultProjectRole!: pulumi.Output; + declare public readonly defaultProjectRole: pulumi.Output; /** * The name of the group */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * The slug of the group */ - public /*out*/ readonly slug!: pulumi.Output; + declare public /*out*/ readonly slug: pulumi.Output; + /** + * The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + */ + declare public readonly workplaceRole: pulumi.Output; /** * Create a Group resource with the given unique name, arguments, and options. @@ -80,16 +86,18 @@ export class Group extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as GroupState | undefined; - resourceInputs["defaultProjectRole"] = state ? state.defaultProjectRole : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["slug"] = state ? state.slug : undefined; + resourceInputs["defaultProjectRole"] = state?.defaultProjectRole; + resourceInputs["name"] = state?.name; + resourceInputs["slug"] = state?.slug; + resourceInputs["workplaceRole"] = state?.workplaceRole; } else { const args = argsOrState as GroupArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - resourceInputs["defaultProjectRole"] = args ? args.defaultProjectRole : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["defaultProjectRole"] = args?.defaultProjectRole; + resourceInputs["name"] = args?.name; + resourceInputs["workplaceRole"] = args?.workplaceRole; resourceInputs["slug"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -102,17 +110,21 @@ export class Group extends pulumi.CustomResource { */ export interface GroupState { /** - * The default project role assigned to the group when added to a Doppler project + * The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. */ - defaultProjectRole?: pulumi.Input; + defaultProjectRole?: pulumi.Input; /** * The name of the group */ - name?: pulumi.Input; + name?: pulumi.Input; /** * The slug of the group */ - slug?: pulumi.Input; + slug?: pulumi.Input; + /** + * The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + */ + workplaceRole?: pulumi.Input; } /** @@ -120,11 +132,15 @@ export interface GroupState { */ export interface GroupArgs { /** - * The default project role assigned to the group when added to a Doppler project + * The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. */ - defaultProjectRole?: pulumi.Input; + defaultProjectRole?: pulumi.Input; /** * The name of the group */ name: pulumi.Input; + /** + * The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "noAccess" to ensure the group has no workplace permissions + */ + workplaceRole?: pulumi.Input; } diff --git a/sdk/nodejs/groupMember.ts b/sdk/nodejs/groupMember.ts index 1c2769d..77f0029 100644 --- a/sdk/nodejs/groupMember.ts +++ b/sdk/nodejs/groupMember.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -10,14 +10,38 @@ import * as utilities from "./utilities"; * **Note:** You can also exclusively manage all memberships in a group with a single resource. * See the `doppler.GroupMembers` resource for more information. * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * export = async () => { + * const engineering = new doppler.Group("engineering", {name: "engineering"}); + * const nic = await doppler.getUser({ + * email: "nic@doppler.com", + * }); + * const andre = await doppler.getUser({ + * email: "andre@doppler.com", + * }); + * const engineeringGroupMember: doppler.GroupMember[] = []; + * for (const range of Object.entries([ + * nic.slug, + * andre.slug, + * ].reduce((__obj, entry) => ({ ...__obj, [entry]: entry }), {})).sort().map(([k, v]) => ({key: k, value: v}))) { + * engineeringGroupMember.push(new doppler.GroupMember(`engineering-${range.key}`, { + * groupSlug: engineering.slug, + * userSlug: range.value, + * })); + * } + * } + * ``` + * * ## Import * * import using the group slug from the URL: - * * https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - * * and the user slug from the URL: - * * https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] * * ```sh @@ -55,11 +79,11 @@ export class GroupMember extends pulumi.CustomResource { /** * The slug of the Doppler group */ - public readonly groupSlug!: pulumi.Output; + declare public readonly groupSlug: pulumi.Output; /** * The slug of the Doppler workplace user */ - public readonly userSlug!: pulumi.Output; + declare public readonly userSlug: pulumi.Output; /** * Create a GroupMember resource with the given unique name, arguments, and options. @@ -74,18 +98,18 @@ export class GroupMember extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as GroupMemberState | undefined; - resourceInputs["groupSlug"] = state ? state.groupSlug : undefined; - resourceInputs["userSlug"] = state ? state.userSlug : undefined; + resourceInputs["groupSlug"] = state?.groupSlug; + resourceInputs["userSlug"] = state?.userSlug; } else { const args = argsOrState as GroupMemberArgs | undefined; - if ((!args || args.groupSlug === undefined) && !opts.urn) { + if (args?.groupSlug === undefined && !opts.urn) { throw new Error("Missing required property 'groupSlug'"); } - if ((!args || args.userSlug === undefined) && !opts.urn) { + if (args?.userSlug === undefined && !opts.urn) { throw new Error("Missing required property 'userSlug'"); } - resourceInputs["groupSlug"] = args ? args.groupSlug : undefined; - resourceInputs["userSlug"] = args ? args.userSlug : undefined; + resourceInputs["groupSlug"] = args?.groupSlug; + resourceInputs["userSlug"] = args?.userSlug; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(GroupMember.__pulumiType, name, resourceInputs, opts); @@ -99,11 +123,11 @@ export interface GroupMemberState { /** * The slug of the Doppler group */ - groupSlug?: pulumi.Input; + groupSlug?: pulumi.Input; /** * The slug of the Doppler workplace user */ - userSlug?: pulumi.Input; + userSlug?: pulumi.Input; } /** diff --git a/sdk/nodejs/groupMembers.ts b/sdk/nodejs/groupMembers.ts index 7c1286f..8faa193 100644 --- a/sdk/nodejs/groupMembers.ts +++ b/sdk/nodejs/groupMembers.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -15,8 +15,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumi/doppler"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const engineering = new doppler.Group("engineering", {name: "engineering"}); * const nic = doppler.getUser({ @@ -37,11 +36,8 @@ import * as utilities from "./utilities"; * ## Import * * import using the group slug from the URL: - * * https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - * * and the user slugs from the URL: - * * https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] * * ```sh @@ -79,11 +75,11 @@ export class GroupMembers extends pulumi.CustomResource { /** * The slug of the group */ - public readonly groupSlug!: pulumi.Output; + declare public readonly groupSlug: pulumi.Output; /** * A list of user slugs in the group */ - public readonly userSlugs!: pulumi.Output; + declare public readonly userSlugs: pulumi.Output; /** * Create a GroupMembers resource with the given unique name, arguments, and options. @@ -98,18 +94,18 @@ export class GroupMembers extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as GroupMembersState | undefined; - resourceInputs["groupSlug"] = state ? state.groupSlug : undefined; - resourceInputs["userSlugs"] = state ? state.userSlugs : undefined; + resourceInputs["groupSlug"] = state?.groupSlug; + resourceInputs["userSlugs"] = state?.userSlugs; } else { const args = argsOrState as GroupMembersArgs | undefined; - if ((!args || args.groupSlug === undefined) && !opts.urn) { + if (args?.groupSlug === undefined && !opts.urn) { throw new Error("Missing required property 'groupSlug'"); } - if ((!args || args.userSlugs === undefined) && !opts.urn) { + if (args?.userSlugs === undefined && !opts.urn) { throw new Error("Missing required property 'userSlugs'"); } - resourceInputs["groupSlug"] = args ? args.groupSlug : undefined; - resourceInputs["userSlugs"] = args ? args.userSlugs : undefined; + resourceInputs["groupSlug"] = args?.groupSlug; + resourceInputs["userSlugs"] = args?.userSlugs; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(GroupMembers.__pulumiType, name, resourceInputs, opts); @@ -123,11 +119,11 @@ export interface GroupMembersState { /** * The slug of the group */ - groupSlug?: pulumi.Input; + groupSlug?: pulumi.Input; /** * A list of user slugs in the group */ - userSlugs?: pulumi.Input[]>; + userSlugs?: pulumi.Input[] | undefined>; } /** diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index e63c18c..d22253a 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -10,11 +10,26 @@ export type BranchConfig = import("./branchConfig").BranchConfig; export const BranchConfig: typeof import("./branchConfig").BranchConfig = null as any; utilities.lazyLoad(exports, ["BranchConfig"], () => require("./branchConfig")); +export { ChangeRequestPolicyArgs, ChangeRequestPolicyState } from "./changeRequestPolicy"; +export type ChangeRequestPolicy = import("./changeRequestPolicy").ChangeRequestPolicy; +export const ChangeRequestPolicy: typeof import("./changeRequestPolicy").ChangeRequestPolicy = null as any; +utilities.lazyLoad(exports, ["ChangeRequestPolicy"], () => require("./changeRequestPolicy")); + export { EnvironmentArgs, EnvironmentState } from "./environment"; export type Environment = import("./environment").Environment; export const Environment: typeof import("./environment").Environment = null as any; utilities.lazyLoad(exports, ["Environment"], () => require("./environment")); +export { GetEnvironmentsArgs, GetEnvironmentsResult, GetEnvironmentsOutputArgs } from "./getEnvironments"; +export const getEnvironments: typeof import("./getEnvironments").getEnvironments = null as any; +export const getEnvironmentsOutput: typeof import("./getEnvironments").getEnvironmentsOutput = null as any; +utilities.lazyLoad(exports, ["getEnvironments","getEnvironmentsOutput"], () => require("./getEnvironments")); + +export { GetGroupArgs, GetGroupResult, GetGroupOutputArgs } from "./getGroup"; +export const getGroup: typeof import("./getGroup").getGroup = null as any; +export const getGroupOutput: typeof import("./getGroup").getGroupOutput = null as any; +utilities.lazyLoad(exports, ["getGroup","getGroupOutput"], () => require("./getGroup")); + export { GetSecretsArgs, GetSecretsResult, GetSecretsOutputArgs } from "./getSecrets"; export const getSecrets: typeof import("./getSecrets").getSecrets = null as any; export const getSecretsOutput: typeof import("./getSecrets").getSecretsOutput = null as any; @@ -50,21 +65,34 @@ export type ProjectRole = import("./projectRole").ProjectRole; export const ProjectRole: typeof import("./projectRole").ProjectRole = null as any; utilities.lazyLoad(exports, ["ProjectRole"], () => require("./projectRole")); -export { ProviderArgs } from "./provider"; -export type Provider = import("./provider").Provider; -export const Provider: typeof import("./provider").Provider = null as any; -utilities.lazyLoad(exports, ["Provider"], () => require("./provider")); +export { ProjectTagArgs, ProjectTagState } from "./projectTag"; +export type ProjectTag = import("./projectTag").ProjectTag; +export const ProjectTag: typeof import("./projectTag").ProjectTag = null as any; +utilities.lazyLoad(exports, ["ProjectTag"], () => require("./projectTag")); + +export * from "./provider"; +import { Provider } from "./provider"; export { SecretArgs, SecretState } from "./secret"; export type Secret = import("./secret").Secret; export const Secret: typeof import("./secret").Secret = null as any; utilities.lazyLoad(exports, ["Secret"], () => require("./secret")); +export { SecretNoteArgs, SecretNoteState } from "./secretNote"; +export type SecretNote = import("./secretNote").SecretNote; +export const SecretNote: typeof import("./secretNote").SecretNote = null as any; +utilities.lazyLoad(exports, ["SecretNote"], () => require("./secretNote")); + export { ServiceAccountArgs, ServiceAccountState } from "./serviceAccount"; export type ServiceAccount = import("./serviceAccount").ServiceAccount; export const ServiceAccount: typeof import("./serviceAccount").ServiceAccount = null as any; utilities.lazyLoad(exports, ["ServiceAccount"], () => require("./serviceAccount")); +export { ServiceAccountIdentityArgs, ServiceAccountIdentityState } from "./serviceAccountIdentity"; +export type ServiceAccountIdentity = import("./serviceAccountIdentity").ServiceAccountIdentity; +export const ServiceAccountIdentity: typeof import("./serviceAccountIdentity").ServiceAccountIdentity = null as any; +utilities.lazyLoad(exports, ["ServiceAccountIdentity"], () => require("./serviceAccountIdentity")); + export { ServiceAccountTokenArgs, ServiceAccountTokenState } from "./serviceAccountToken"; export type ServiceAccountToken = import("./serviceAccountToken").ServiceAccountToken; export const ServiceAccountToken: typeof import("./serviceAccountToken").ServiceAccountToken = null as any; @@ -75,16 +103,32 @@ export type ServiceToken = import("./serviceToken").ServiceToken; export const ServiceToken: typeof import("./serviceToken").ServiceToken = null as any; utilities.lazyLoad(exports, ["ServiceToken"], () => require("./serviceToken")); +export { TagArgs, TagState } from "./tag"; +export type Tag = import("./tag").Tag; +export const Tag: typeof import("./tag").Tag = null as any; +utilities.lazyLoad(exports, ["Tag"], () => require("./tag")); + +export { TrustedIpsArgs, TrustedIpsState } from "./trustedIps"; +export type TrustedIps = import("./trustedIps").TrustedIps; +export const TrustedIps: typeof import("./trustedIps").TrustedIps = null as any; +utilities.lazyLoad(exports, ["TrustedIps"], () => require("./trustedIps")); + export { WebhookArgs, WebhookState } from "./webhook"; export type Webhook = import("./webhook").Webhook; export const Webhook: typeof import("./webhook").Webhook = null as any; utilities.lazyLoad(exports, ["Webhook"], () => require("./webhook")); +export { WorkplaceRoleArgs, WorkplaceRoleState } from "./workplaceRole"; +export type WorkplaceRole = import("./workplaceRole").WorkplaceRole; +export const WorkplaceRole: typeof import("./workplaceRole").WorkplaceRole = null as any; +utilities.lazyLoad(exports, ["WorkplaceRole"], () => require("./workplaceRole")); + // Export sub-modules: import * as config from "./config"; import * as integration from "./integration"; import * as projectmember from "./projectmember"; +import * as rotatedsecret from "./rotatedsecret"; import * as secretssync from "./secretssync"; import * as types from "./types"; @@ -92,6 +136,7 @@ export { config, integration, projectmember, + rotatedsecret, secretssync, types, }; @@ -102,6 +147,8 @@ const _module = { switch (type) { case "doppler:index/branchConfig:BranchConfig": return new BranchConfig(name, undefined, { urn }) + case "doppler:index/changeRequestPolicy:ChangeRequestPolicy": + return new ChangeRequestPolicy(name, undefined, { urn }) case "doppler:index/environment:Environment": return new Environment(name, undefined, { urn }) case "doppler:index/group:Group": @@ -114,33 +161,52 @@ const _module = { return new Project(name, undefined, { urn }) case "doppler:index/projectRole:ProjectRole": return new ProjectRole(name, undefined, { urn }) + case "doppler:index/projectTag:ProjectTag": + return new ProjectTag(name, undefined, { urn }) case "doppler:index/secret:Secret": return new Secret(name, undefined, { urn }) + case "doppler:index/secretNote:SecretNote": + return new SecretNote(name, undefined, { urn }) case "doppler:index/serviceAccount:ServiceAccount": return new ServiceAccount(name, undefined, { urn }) + case "doppler:index/serviceAccountIdentity:ServiceAccountIdentity": + return new ServiceAccountIdentity(name, undefined, { urn }) case "doppler:index/serviceAccountToken:ServiceAccountToken": return new ServiceAccountToken(name, undefined, { urn }) case "doppler:index/serviceToken:ServiceToken": return new ServiceToken(name, undefined, { urn }) + case "doppler:index/tag:Tag": + return new Tag(name, undefined, { urn }) + case "doppler:index/trustedIps:TrustedIps": + return new TrustedIps(name, undefined, { urn }) case "doppler:index/webhook:Webhook": return new Webhook(name, undefined, { urn }) + case "doppler:index/workplaceRole:WorkplaceRole": + return new WorkplaceRole(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } }, }; pulumi.runtime.registerResourceModule("doppler", "index/branchConfig", _module) +pulumi.runtime.registerResourceModule("doppler", "index/changeRequestPolicy", _module) pulumi.runtime.registerResourceModule("doppler", "index/environment", _module) pulumi.runtime.registerResourceModule("doppler", "index/group", _module) pulumi.runtime.registerResourceModule("doppler", "index/groupMember", _module) pulumi.runtime.registerResourceModule("doppler", "index/groupMembers", _module) pulumi.runtime.registerResourceModule("doppler", "index/project", _module) pulumi.runtime.registerResourceModule("doppler", "index/projectRole", _module) +pulumi.runtime.registerResourceModule("doppler", "index/projectTag", _module) pulumi.runtime.registerResourceModule("doppler", "index/secret", _module) +pulumi.runtime.registerResourceModule("doppler", "index/secretNote", _module) pulumi.runtime.registerResourceModule("doppler", "index/serviceAccount", _module) +pulumi.runtime.registerResourceModule("doppler", "index/serviceAccountIdentity", _module) pulumi.runtime.registerResourceModule("doppler", "index/serviceAccountToken", _module) pulumi.runtime.registerResourceModule("doppler", "index/serviceToken", _module) +pulumi.runtime.registerResourceModule("doppler", "index/tag", _module) +pulumi.runtime.registerResourceModule("doppler", "index/trustedIps", _module) pulumi.runtime.registerResourceModule("doppler", "index/webhook", _module) +pulumi.runtime.registerResourceModule("doppler", "index/workplaceRole", _module) pulumi.runtime.registerResourcePackage("doppler", { version: utilities.getVersion(), constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => { diff --git a/sdk/nodejs/integration/awsIamUserKeys.ts b/sdk/nodejs/integration/awsIamUserKeys.ts new file mode 100644 index 0000000..502e1f8 --- /dev/null +++ b/sdk/nodejs/integration/awsIamUserKeys.ts @@ -0,0 +1,124 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a AWS IAM User Keys Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const iAwsIamUk = new doppler.integration.AwsIamUserKeys("i_aws_iam_uk", { + * name: "TF AWS IAM UK", + * assumeRoleArn: "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + * }); + * const rsAwsIamUk = new doppler.rotatedsecret.AwsIamUserKeys("rs_aws_iam_uk", { + * integration: iAwsIamUk.id, + * project: "backend", + * config: "dev", + * name: "AWS_IAM_UK", + * rotationPeriodSec: 2592000, + * username: "xxxxxxxxxxxxx", + * }); + * ``` + */ +export class AwsIamUserKeys extends pulumi.CustomResource { + /** + * Get an existing AwsIamUserKeys resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsIamUserKeysState, opts?: pulumi.CustomResourceOptions): AwsIamUserKeys { + return new AwsIamUserKeys(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/awsIamUserKeys:AwsIamUserKeys'; + + /** + * Returns true if the given object is an instance of AwsIamUserKeys. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsIamUserKeys { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsIamUserKeys.__pulumiType; + } + + /** + * IAM Role ARN for role assumption + */ + declare public readonly assumeRoleArn: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a AwsIamUserKeys resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsIamUserKeysArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsIamUserKeysArgs | AwsIamUserKeysState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsIamUserKeysState | undefined; + resourceInputs["assumeRoleArn"] = state?.assumeRoleArn; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as AwsIamUserKeysArgs | undefined; + if (args?.assumeRoleArn === undefined && !opts.urn) { + throw new Error("Missing required property 'assumeRoleArn'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["assumeRoleArn"] = args?.assumeRoleArn; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AwsIamUserKeys.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsIamUserKeys resources. + */ +export interface AwsIamUserKeysState { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsIamUserKeys resource. + */ +export interface AwsIamUserKeysArgs { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/awsMssql.ts b/sdk/nodejs/integration/awsMssql.ts new file mode 100644 index 0000000..6d7699a --- /dev/null +++ b/sdk/nodejs/integration/awsMssql.ts @@ -0,0 +1,158 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a AWS MS SQL Server Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iAwsMssql = new doppler.integration.AwsMssql("i_aws_mssql", { + * name: "TF AWS MS SQL Server", + * assumeRoleArn: "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + * lambdaArn: "arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx", + * }); + * const rsAwsMssql = new doppler.rotatedsecret.AwsMssql("rs_aws_mssql", { + * credentials: [ + * { + * username: "xxxxxxxxxxx", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxxxx", + * password: dbPassword2, + * }, + * ], + * integration: iAwsMssql.id, + * project: "backend", + * config: "dev", + * name: "DB", + * rotationPeriodSec: 2592000, + * host: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * port: 1433, + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class AwsMssql extends pulumi.CustomResource { + /** + * Get an existing AwsMssql resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsMssqlState, opts?: pulumi.CustomResourceOptions): AwsMssql { + return new AwsMssql(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/awsMssql:AwsMssql'; + + /** + * Returns true if the given object is an instance of AwsMssql. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsMssql { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsMssql.__pulumiType; + } + + /** + * IAM Role ARN for role assumption + */ + declare public readonly assumeRoleArn: pulumi.Output; + /** + * The Lambda ARN + */ + declare public readonly lambdaArn: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a AwsMssql resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsMssqlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsMssqlArgs | AwsMssqlState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsMssqlState | undefined; + resourceInputs["assumeRoleArn"] = state?.assumeRoleArn; + resourceInputs["lambdaArn"] = state?.lambdaArn; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as AwsMssqlArgs | undefined; + if (args?.assumeRoleArn === undefined && !opts.urn) { + throw new Error("Missing required property 'assumeRoleArn'"); + } + if (args?.lambdaArn === undefined && !opts.urn) { + throw new Error("Missing required property 'lambdaArn'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["assumeRoleArn"] = args?.assumeRoleArn; + resourceInputs["lambdaArn"] = args?.lambdaArn; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AwsMssql.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsMssql resources. + */ +export interface AwsMssqlState { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn?: pulumi.Input; + /** + * The Lambda ARN + */ + lambdaArn?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsMssql resource. + */ +export interface AwsMssqlArgs { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn: pulumi.Input; + /** + * The Lambda ARN + */ + lambdaArn: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/awsMysql.ts b/sdk/nodejs/integration/awsMysql.ts new file mode 100644 index 0000000..5ccefac --- /dev/null +++ b/sdk/nodejs/integration/awsMysql.ts @@ -0,0 +1,160 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a AWS MySQL Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iAwsMysql = new doppler.integration.AwsMysql("i_aws_mysql", { + * name: "TF AWS MySQL", + * assumeRoleArn: "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + * lambdaArn: "arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx", + * }); + * const rsAwsMysql = new doppler.rotatedsecret.AwsMysql("rs_aws_mysql", { + * credentials: [ + * { + * username: "xxxxxxxxxxx", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxxxx", + * password: dbPassword2, + * }, + * ], + * integration: iAwsMysql.id, + * project: "backend", + * config: "dev", + * name: "DB", + * rotationPeriodSec: 2592000, + * host: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * port: 3306, + * managingUserUsername: "xxxxxxxx", + * managingUserPassword: "xxxxxxxxxxxxxxxxxxxx", + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class AwsMysql extends pulumi.CustomResource { + /** + * Get an existing AwsMysql resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsMysqlState, opts?: pulumi.CustomResourceOptions): AwsMysql { + return new AwsMysql(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/awsMysql:AwsMysql'; + + /** + * Returns true if the given object is an instance of AwsMysql. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsMysql { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsMysql.__pulumiType; + } + + /** + * IAM Role ARN for role assumption + */ + declare public readonly assumeRoleArn: pulumi.Output; + /** + * The Lambda ARN + */ + declare public readonly lambdaArn: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a AwsMysql resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsMysqlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsMysqlArgs | AwsMysqlState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsMysqlState | undefined; + resourceInputs["assumeRoleArn"] = state?.assumeRoleArn; + resourceInputs["lambdaArn"] = state?.lambdaArn; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as AwsMysqlArgs | undefined; + if (args?.assumeRoleArn === undefined && !opts.urn) { + throw new Error("Missing required property 'assumeRoleArn'"); + } + if (args?.lambdaArn === undefined && !opts.urn) { + throw new Error("Missing required property 'lambdaArn'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["assumeRoleArn"] = args?.assumeRoleArn; + resourceInputs["lambdaArn"] = args?.lambdaArn; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AwsMysql.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsMysql resources. + */ +export interface AwsMysqlState { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn?: pulumi.Input; + /** + * The Lambda ARN + */ + lambdaArn?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsMysql resource. + */ +export interface AwsMysqlArgs { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn: pulumi.Input; + /** + * The Lambda ARN + */ + lambdaArn: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/awsParameterStore.ts b/sdk/nodejs/integration/awsParameterStore.ts index 4dd7d2b..ebaedba 100644 --- a/sdk/nodejs/integration/awsParameterStore.ts +++ b/sdk/nodejs/integration/awsParameterStore.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -12,26 +12,10 @@ import * as utilities from "../utilities"; * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * - * const dopplerParameterStore = new aws.iam.Role("doppler_parameter_store", { - * name: "doppler_parameter_store", - * assumeRolePolicy: JSON.stringify({ - * Version: "2012-10-17", - * Statement: [{ - * Effect: "Allow", - * Action: "sts:AssumeRole", - * Principal: { - * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", - * }, - * Condition: { - * StringEquals: { - * "sts:ExternalId": "", - * }, - * }, - * }], - * }), - * inlinePolicies: [{ + * const dopplerParameterStore = new aws.index.IamRole("doppler_parameter_store", { + * inlinePolicy: [{ * name: "doppler_secret_manager", * policy: JSON.stringify({ * Version: "2012-10-17", @@ -53,6 +37,22 @@ import * as utilities from "../utilities"; * }], * }), * }], + * name: "doppler_parameter_store", + * assumeRolePolicy: JSON.stringify({ + * Version: "2012-10-17", + * Statement: [{ + * Effect: "Allow", + * Action: "sts:AssumeRole", + * Principal: { + * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", + * }, + * Condition: { + * StringEquals: { + * "sts:ExternalId": "", + * }, + * }, + * }], + * }), * }); * const prod = new doppler.integration.AwsParameterStore("prod", { * name: "Production", @@ -103,11 +103,11 @@ export class AwsParameterStore extends pulumi.CustomResource { /** * The ARN of the AWS role for Doppler to assume */ - public readonly assumeRoleArn!: pulumi.Output; + declare public readonly assumeRoleArn: pulumi.Output; /** * The name of the integration */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Create a AwsParameterStore resource with the given unique name, arguments, and options. @@ -122,18 +122,18 @@ export class AwsParameterStore extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as AwsParameterStoreState | undefined; - resourceInputs["assumeRoleArn"] = state ? state.assumeRoleArn : undefined; - resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["assumeRoleArn"] = state?.assumeRoleArn; + resourceInputs["name"] = state?.name; } else { const args = argsOrState as AwsParameterStoreArgs | undefined; - if ((!args || args.assumeRoleArn === undefined) && !opts.urn) { + if (args?.assumeRoleArn === undefined && !opts.urn) { throw new Error("Missing required property 'assumeRoleArn'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - resourceInputs["assumeRoleArn"] = args ? args.assumeRoleArn : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["assumeRoleArn"] = args?.assumeRoleArn; + resourceInputs["name"] = args?.name; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AwsParameterStore.__pulumiType, name, resourceInputs, opts); @@ -147,11 +147,11 @@ export interface AwsParameterStoreState { /** * The ARN of the AWS role for Doppler to assume */ - assumeRoleArn?: pulumi.Input; + assumeRoleArn?: pulumi.Input; /** * The name of the integration */ - name?: pulumi.Input; + name?: pulumi.Input; } /** diff --git a/sdk/nodejs/integration/awsPostgres.ts b/sdk/nodejs/integration/awsPostgres.ts new file mode 100644 index 0000000..82a9e98 --- /dev/null +++ b/sdk/nodejs/integration/awsPostgres.ts @@ -0,0 +1,161 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a AWS Postgres Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iAwsPostgres = new doppler.integration.AwsPostgres("i_aws_postgres", { + * name: "TF AWS Postgres", + * assumeRoleArn: "arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + * lambdaArn: "arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx", + * }); + * const rsAwsPostgres = new doppler.rotatedsecret.AwsPostgres("rs_aws_postgres", { + * credentials: [ + * { + * username: "xxxxxxxxxxx", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxxxx", + * password: dbPassword2, + * }, + * ], + * integration: iAwsPostgres.id, + * project: "backend", + * config: "dev", + * name: "DB", + * rotationPeriodSec: 2592000, + * host: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * port: 5432, + * database: "xxxxxxxx", + * managingUserUsername: "xxxxxxxx", + * managingUserPassword: "xxxxxxxxxxxxxxxxxxxx", + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class AwsPostgres extends pulumi.CustomResource { + /** + * Get an existing AwsPostgres resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsPostgresState, opts?: pulumi.CustomResourceOptions): AwsPostgres { + return new AwsPostgres(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/awsPostgres:AwsPostgres'; + + /** + * Returns true if the given object is an instance of AwsPostgres. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsPostgres { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsPostgres.__pulumiType; + } + + /** + * IAM Role ARN for role assumption + */ + declare public readonly assumeRoleArn: pulumi.Output; + /** + * The Lambda ARN + */ + declare public readonly lambdaArn: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a AwsPostgres resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsPostgresArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsPostgresArgs | AwsPostgresState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsPostgresState | undefined; + resourceInputs["assumeRoleArn"] = state?.assumeRoleArn; + resourceInputs["lambdaArn"] = state?.lambdaArn; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as AwsPostgresArgs | undefined; + if (args?.assumeRoleArn === undefined && !opts.urn) { + throw new Error("Missing required property 'assumeRoleArn'"); + } + if (args?.lambdaArn === undefined && !opts.urn) { + throw new Error("Missing required property 'lambdaArn'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["assumeRoleArn"] = args?.assumeRoleArn; + resourceInputs["lambdaArn"] = args?.lambdaArn; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AwsPostgres.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsPostgres resources. + */ +export interface AwsPostgresState { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn?: pulumi.Input; + /** + * The Lambda ARN + */ + lambdaArn?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsPostgres resource. + */ +export interface AwsPostgresArgs { + /** + * IAM Role ARN for role assumption + */ + assumeRoleArn: pulumi.Input; + /** + * The Lambda ARN + */ + lambdaArn: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/awsSecretsManager.ts b/sdk/nodejs/integration/awsSecretsManager.ts index c9ced9d..496ff3a 100644 --- a/sdk/nodejs/integration/awsSecretsManager.ts +++ b/sdk/nodejs/integration/awsSecretsManager.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -12,26 +12,10 @@ import * as utilities from "../utilities"; * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * - * const dopplerSecretsManager = new aws.iam.Role("doppler_secrets_manager", { - * name: "doppler_secrets_manager", - * assumeRolePolicy: JSON.stringify({ - * Version: "2012-10-17", - * Statement: [{ - * Effect: "Allow", - * Action: "sts:AssumeRole", - * Principal: { - * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", - * }, - * Condition: { - * StringEquals: { - * "sts:ExternalId": "", - * }, - * }, - * }], - * }), - * inlinePolicies: [{ + * const dopplerSecretsManager = new aws.index.IamRole("doppler_secrets_manager", { + * inlinePolicy: [{ * name: "doppler_secret_manager", * policy: JSON.stringify({ * Version: "2012-10-17", @@ -50,6 +34,22 @@ import * as utilities from "../utilities"; * }], * }), * }], + * name: "doppler_secrets_manager", + * assumeRolePolicy: JSON.stringify({ + * Version: "2012-10-17", + * Statement: [{ + * Effect: "Allow", + * Action: "sts:AssumeRole", + * Principal: { + * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", + * }, + * Condition: { + * StringEquals: { + * "sts:ExternalId": "", + * }, + * }, + * }], + * }), * }); * const prod = new doppler.integration.AwsSecretsManager("prod", { * name: "Production", @@ -99,11 +99,11 @@ export class AwsSecretsManager extends pulumi.CustomResource { /** * The ARN of the AWS role for Doppler to assume */ - public readonly assumeRoleArn!: pulumi.Output; + declare public readonly assumeRoleArn: pulumi.Output; /** * The name of the integration */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Create a AwsSecretsManager resource with the given unique name, arguments, and options. @@ -118,18 +118,18 @@ export class AwsSecretsManager extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as AwsSecretsManagerState | undefined; - resourceInputs["assumeRoleArn"] = state ? state.assumeRoleArn : undefined; - resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["assumeRoleArn"] = state?.assumeRoleArn; + resourceInputs["name"] = state?.name; } else { const args = argsOrState as AwsSecretsManagerArgs | undefined; - if ((!args || args.assumeRoleArn === undefined) && !opts.urn) { + if (args?.assumeRoleArn === undefined && !opts.urn) { throw new Error("Missing required property 'assumeRoleArn'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - resourceInputs["assumeRoleArn"] = args ? args.assumeRoleArn : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["assumeRoleArn"] = args?.assumeRoleArn; + resourceInputs["name"] = args?.name; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AwsSecretsManager.__pulumiType, name, resourceInputs, opts); @@ -143,11 +143,11 @@ export interface AwsSecretsManagerState { /** * The ARN of the AWS role for Doppler to assume */ - assumeRoleArn?: pulumi.Input; + assumeRoleArn?: pulumi.Input; /** * The name of the integration */ - name?: pulumi.Input; + name?: pulumi.Input; } /** diff --git a/sdk/nodejs/integration/azureDynamicServicePrincipal.ts b/sdk/nodejs/integration/azureDynamicServicePrincipal.ts new file mode 100644 index 0000000..1e330b7 --- /dev/null +++ b/sdk/nodejs/integration/azureDynamicServicePrincipal.ts @@ -0,0 +1,154 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an Azure Dynamic Service Principal Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const prod = new doppler.integration.AzureDynamicServicePrincipal("prod", { + * name: "Production", + * tenantId: "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + * clientId: "77ed9112-b7f5-4d1d-a60f-198375e7f265", + * clientSecret: "kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + * }); + * ``` + */ +export class AzureDynamicServicePrincipal extends pulumi.CustomResource { + /** + * Get an existing AzureDynamicServicePrincipal resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AzureDynamicServicePrincipalState, opts?: pulumi.CustomResourceOptions): AzureDynamicServicePrincipal { + return new AzureDynamicServicePrincipal(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal'; + + /** + * Returns true if the given object is an instance of AzureDynamicServicePrincipal. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AzureDynamicServicePrincipal { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AzureDynamicServicePrincipal.__pulumiType; + } + + /** + * The application (client) ID of the managing service principal + */ + declare public readonly clientId: pulumi.Output; + /** + * The client secret of the managing service principal + */ + declare public readonly clientSecret: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + /** + * The Azure directory (tenant) ID + */ + declare public readonly tenantId: pulumi.Output; + + /** + * Create a AzureDynamicServicePrincipal resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AzureDynamicServicePrincipalArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AzureDynamicServicePrincipalArgs | AzureDynamicServicePrincipalState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AzureDynamicServicePrincipalState | undefined; + resourceInputs["clientId"] = state?.clientId; + resourceInputs["clientSecret"] = state?.clientSecret; + resourceInputs["name"] = state?.name; + resourceInputs["tenantId"] = state?.tenantId; + } else { + const args = argsOrState as AzureDynamicServicePrincipalArgs | undefined; + if (args?.clientId === undefined && !opts.urn) { + throw new Error("Missing required property 'clientId'"); + } + if (args?.clientSecret === undefined && !opts.urn) { + throw new Error("Missing required property 'clientSecret'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.tenantId === undefined && !opts.urn) { + throw new Error("Missing required property 'tenantId'"); + } + resourceInputs["clientId"] = args?.clientId; + resourceInputs["clientSecret"] = args?.clientSecret ? pulumi.secret(args.clientSecret) : undefined; + resourceInputs["name"] = args?.name; + resourceInputs["tenantId"] = args?.tenantId; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["clientSecret"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(AzureDynamicServicePrincipal.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AzureDynamicServicePrincipal resources. + */ +export interface AzureDynamicServicePrincipalState { + /** + * The application (client) ID of the managing service principal + */ + clientId?: pulumi.Input; + /** + * The client secret of the managing service principal + */ + clientSecret?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AzureDynamicServicePrincipal resource. + */ +export interface AzureDynamicServicePrincipalArgs { + /** + * The application (client) ID of the managing service principal + */ + clientId: pulumi.Input; + /** + * The client secret of the managing service principal + */ + clientSecret: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId: pulumi.Input; +} diff --git a/sdk/nodejs/integration/azureDynamicServicePrincipalOidc.ts b/sdk/nodejs/integration/azureDynamicServicePrincipalOidc.ts new file mode 100644 index 0000000..237e56e --- /dev/null +++ b/sdk/nodejs/integration/azureDynamicServicePrincipalOidc.ts @@ -0,0 +1,177 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an Azure Dynamic Service Principal Doppler integration using workload identity federation. + * + * The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azuread from "@pulumi/azuread"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const dopplerManager = azuread.application({ + * clientId: "77ed9112-b7f5-4d1d-a60f-198375e7f265", + * }); + * const prod = new doppler.integration.AzureDynamicServicePrincipalOidc("prod", { + * name: "Production", + * tenantId: "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + * clientId: dopplerManager.clientId, + * }); + * const doppler2 = new azuread.index.ApplicationFederatedIdentityCredential("doppler", { + * applicationId: dopplerManager.id, + * displayName: "doppler-production", + * issuer: prod.federationIssuer, + * subject: prod.federationSubject, + * audiences: [prod.federationAudience], + * }); + * ``` + */ +export class AzureDynamicServicePrincipalOidc extends pulumi.CustomResource { + /** + * Get an existing AzureDynamicServicePrincipalOidc resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AzureDynamicServicePrincipalOidcState, opts?: pulumi.CustomResourceOptions): AzureDynamicServicePrincipalOidc { + return new AzureDynamicServicePrincipalOidc(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc'; + + /** + * Returns true if the given object is an instance of AzureDynamicServicePrincipalOidc. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AzureDynamicServicePrincipalOidc { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AzureDynamicServicePrincipalOidc.__pulumiType; + } + + /** + * The application (client) ID of the managing service principal + */ + declare public readonly clientId: pulumi.Output; + /** + * The audience to configure on the federated identity credential + */ + declare public /*out*/ readonly federationAudience: pulumi.Output; + /** + * The issuer of the OIDC tokens Doppler issues for this integration + */ + declare public /*out*/ readonly federationIssuer: pulumi.Output; + /** + * The subject of the OIDC tokens Doppler issues for this integration + */ + declare public /*out*/ readonly federationSubject: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + /** + * The Azure directory (tenant) ID + */ + declare public readonly tenantId: pulumi.Output; + + /** + * Create a AzureDynamicServicePrincipalOidc resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AzureDynamicServicePrincipalOidcArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AzureDynamicServicePrincipalOidcArgs | AzureDynamicServicePrincipalOidcState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AzureDynamicServicePrincipalOidcState | undefined; + resourceInputs["clientId"] = state?.clientId; + resourceInputs["federationAudience"] = state?.federationAudience; + resourceInputs["federationIssuer"] = state?.federationIssuer; + resourceInputs["federationSubject"] = state?.federationSubject; + resourceInputs["name"] = state?.name; + resourceInputs["tenantId"] = state?.tenantId; + } else { + const args = argsOrState as AzureDynamicServicePrincipalOidcArgs | undefined; + if (args?.clientId === undefined && !opts.urn) { + throw new Error("Missing required property 'clientId'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.tenantId === undefined && !opts.urn) { + throw new Error("Missing required property 'tenantId'"); + } + resourceInputs["clientId"] = args?.clientId; + resourceInputs["name"] = args?.name; + resourceInputs["tenantId"] = args?.tenantId; + resourceInputs["federationAudience"] = undefined /*out*/; + resourceInputs["federationIssuer"] = undefined /*out*/; + resourceInputs["federationSubject"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AzureDynamicServicePrincipalOidc.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AzureDynamicServicePrincipalOidc resources. + */ +export interface AzureDynamicServicePrincipalOidcState { + /** + * The application (client) ID of the managing service principal + */ + clientId?: pulumi.Input; + /** + * The audience to configure on the federated identity credential + */ + federationAudience?: pulumi.Input; + /** + * The issuer of the OIDC tokens Doppler issues for this integration + */ + federationIssuer?: pulumi.Input; + /** + * The subject of the OIDC tokens Doppler issues for this integration + */ + federationSubject?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AzureDynamicServicePrincipalOidc resource. + */ +export interface AzureDynamicServicePrincipalOidcArgs { + /** + * The application (client) ID of the managing service principal + */ + clientId: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId: pulumi.Input; +} diff --git a/sdk/nodejs/integration/azureRotatedServicePrincipal.ts b/sdk/nodejs/integration/azureRotatedServicePrincipal.ts new file mode 100644 index 0000000..e777b28 --- /dev/null +++ b/sdk/nodejs/integration/azureRotatedServicePrincipal.ts @@ -0,0 +1,154 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an Azure Rotated Service Principal Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const prod = new doppler.integration.AzureRotatedServicePrincipal("prod", { + * name: "Production", + * tenantId: "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + * clientId: "77ed9112-b7f5-4d1d-a60f-198375e7f265", + * clientSecret: "kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + * }); + * ``` + */ +export class AzureRotatedServicePrincipal extends pulumi.CustomResource { + /** + * Get an existing AzureRotatedServicePrincipal resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AzureRotatedServicePrincipalState, opts?: pulumi.CustomResourceOptions): AzureRotatedServicePrincipal { + return new AzureRotatedServicePrincipal(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal'; + + /** + * Returns true if the given object is an instance of AzureRotatedServicePrincipal. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AzureRotatedServicePrincipal { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AzureRotatedServicePrincipal.__pulumiType; + } + + /** + * The application (client) ID of the managing service principal + */ + declare public readonly clientId: pulumi.Output; + /** + * The client secret of the managing service principal + */ + declare public readonly clientSecret: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + /** + * The Azure directory (tenant) ID + */ + declare public readonly tenantId: pulumi.Output; + + /** + * Create a AzureRotatedServicePrincipal resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AzureRotatedServicePrincipalArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AzureRotatedServicePrincipalArgs | AzureRotatedServicePrincipalState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AzureRotatedServicePrincipalState | undefined; + resourceInputs["clientId"] = state?.clientId; + resourceInputs["clientSecret"] = state?.clientSecret; + resourceInputs["name"] = state?.name; + resourceInputs["tenantId"] = state?.tenantId; + } else { + const args = argsOrState as AzureRotatedServicePrincipalArgs | undefined; + if (args?.clientId === undefined && !opts.urn) { + throw new Error("Missing required property 'clientId'"); + } + if (args?.clientSecret === undefined && !opts.urn) { + throw new Error("Missing required property 'clientSecret'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.tenantId === undefined && !opts.urn) { + throw new Error("Missing required property 'tenantId'"); + } + resourceInputs["clientId"] = args?.clientId; + resourceInputs["clientSecret"] = args?.clientSecret ? pulumi.secret(args.clientSecret) : undefined; + resourceInputs["name"] = args?.name; + resourceInputs["tenantId"] = args?.tenantId; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["clientSecret"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(AzureRotatedServicePrincipal.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AzureRotatedServicePrincipal resources. + */ +export interface AzureRotatedServicePrincipalState { + /** + * The application (client) ID of the managing service principal + */ + clientId?: pulumi.Input; + /** + * The client secret of the managing service principal + */ + clientSecret?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AzureRotatedServicePrincipal resource. + */ +export interface AzureRotatedServicePrincipalArgs { + /** + * The application (client) ID of the managing service principal + */ + clientId: pulumi.Input; + /** + * The client secret of the managing service principal + */ + clientSecret: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId: pulumi.Input; +} diff --git a/sdk/nodejs/integration/azureRotatedServicePrincipalOidc.ts b/sdk/nodejs/integration/azureRotatedServicePrincipalOidc.ts new file mode 100644 index 0000000..6c34949 --- /dev/null +++ b/sdk/nodejs/integration/azureRotatedServicePrincipalOidc.ts @@ -0,0 +1,177 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an Azure Rotated Service Principal Doppler integration using workload identity federation. + * + * The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azuread from "@pulumi/azuread"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const dopplerManager = azuread.application({ + * clientId: "77ed9112-b7f5-4d1d-a60f-198375e7f265", + * }); + * const prod = new doppler.integration.AzureRotatedServicePrincipalOidc("prod", { + * name: "Production", + * tenantId: "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + * clientId: dopplerManager.clientId, + * }); + * const doppler2 = new azuread.index.ApplicationFederatedIdentityCredential("doppler", { + * applicationId: dopplerManager.id, + * displayName: "doppler-production", + * issuer: prod.federationIssuer, + * subject: prod.federationSubject, + * audiences: [prod.federationAudience], + * }); + * ``` + */ +export class AzureRotatedServicePrincipalOidc extends pulumi.CustomResource { + /** + * Get an existing AzureRotatedServicePrincipalOidc resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AzureRotatedServicePrincipalOidcState, opts?: pulumi.CustomResourceOptions): AzureRotatedServicePrincipalOidc { + return new AzureRotatedServicePrincipalOidc(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc'; + + /** + * Returns true if the given object is an instance of AzureRotatedServicePrincipalOidc. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AzureRotatedServicePrincipalOidc { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AzureRotatedServicePrincipalOidc.__pulumiType; + } + + /** + * The application (client) ID of the managing service principal + */ + declare public readonly clientId: pulumi.Output; + /** + * The audience to configure on the federated identity credential + */ + declare public /*out*/ readonly federationAudience: pulumi.Output; + /** + * The issuer of the OIDC tokens Doppler issues for this integration + */ + declare public /*out*/ readonly federationIssuer: pulumi.Output; + /** + * The subject of the OIDC tokens Doppler issues for this integration + */ + declare public /*out*/ readonly federationSubject: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + /** + * The Azure directory (tenant) ID + */ + declare public readonly tenantId: pulumi.Output; + + /** + * Create a AzureRotatedServicePrincipalOidc resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AzureRotatedServicePrincipalOidcArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AzureRotatedServicePrincipalOidcArgs | AzureRotatedServicePrincipalOidcState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AzureRotatedServicePrincipalOidcState | undefined; + resourceInputs["clientId"] = state?.clientId; + resourceInputs["federationAudience"] = state?.federationAudience; + resourceInputs["federationIssuer"] = state?.federationIssuer; + resourceInputs["federationSubject"] = state?.federationSubject; + resourceInputs["name"] = state?.name; + resourceInputs["tenantId"] = state?.tenantId; + } else { + const args = argsOrState as AzureRotatedServicePrincipalOidcArgs | undefined; + if (args?.clientId === undefined && !opts.urn) { + throw new Error("Missing required property 'clientId'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.tenantId === undefined && !opts.urn) { + throw new Error("Missing required property 'tenantId'"); + } + resourceInputs["clientId"] = args?.clientId; + resourceInputs["name"] = args?.name; + resourceInputs["tenantId"] = args?.tenantId; + resourceInputs["federationAudience"] = undefined /*out*/; + resourceInputs["federationIssuer"] = undefined /*out*/; + resourceInputs["federationSubject"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AzureRotatedServicePrincipalOidc.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AzureRotatedServicePrincipalOidc resources. + */ +export interface AzureRotatedServicePrincipalOidcState { + /** + * The application (client) ID of the managing service principal + */ + clientId?: pulumi.Input; + /** + * The audience to configure on the federated identity credential + */ + federationAudience?: pulumi.Input; + /** + * The issuer of the OIDC tokens Doppler issues for this integration + */ + federationIssuer?: pulumi.Input; + /** + * The subject of the OIDC tokens Doppler issues for this integration + */ + federationSubject?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AzureRotatedServicePrincipalOidc resource. + */ +export interface AzureRotatedServicePrincipalOidcArgs { + /** + * The application (client) ID of the managing service principal + */ + clientId: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; + /** + * The Azure directory (tenant) ID + */ + tenantId: pulumi.Input; +} diff --git a/sdk/nodejs/integration/azureVaultServicePrincipal.ts b/sdk/nodejs/integration/azureVaultServicePrincipal.ts new file mode 100644 index 0000000..d678ac3 --- /dev/null +++ b/sdk/nodejs/integration/azureVaultServicePrincipal.ts @@ -0,0 +1,154 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an Azure Vault (Service Principal) Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const prod = new doppler.integration.AzureVaultServicePrincipal("prod", { + * name: "prod", + * clientId: "77ed9112-b7f5-4d1d-a60f-198375e7f265", + * clientSecret: "kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + * tenantId: "c77d1b3d-6350-4696-b59f-90dae3e0b41e", + * }); + * ``` + */ +export class AzureVaultServicePrincipal extends pulumi.CustomResource { + /** + * Get an existing AzureVaultServicePrincipal resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AzureVaultServicePrincipalState, opts?: pulumi.CustomResourceOptions): AzureVaultServicePrincipal { + return new AzureVaultServicePrincipal(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal'; + + /** + * Returns true if the given object is an instance of AzureVaultServicePrincipal. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AzureVaultServicePrincipal { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AzureVaultServicePrincipal.__pulumiType; + } + + /** + * The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + declare public readonly clientId: pulumi.Output; + /** + * The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + declare public readonly clientSecret: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + /** + * The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + declare public readonly tenantId: pulumi.Output; + + /** + * Create a AzureVaultServicePrincipal resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AzureVaultServicePrincipalArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AzureVaultServicePrincipalArgs | AzureVaultServicePrincipalState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AzureVaultServicePrincipalState | undefined; + resourceInputs["clientId"] = state?.clientId; + resourceInputs["clientSecret"] = state?.clientSecret; + resourceInputs["name"] = state?.name; + resourceInputs["tenantId"] = state?.tenantId; + } else { + const args = argsOrState as AzureVaultServicePrincipalArgs | undefined; + if (args?.clientId === undefined && !opts.urn) { + throw new Error("Missing required property 'clientId'"); + } + if (args?.clientSecret === undefined && !opts.urn) { + throw new Error("Missing required property 'clientSecret'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.tenantId === undefined && !opts.urn) { + throw new Error("Missing required property 'tenantId'"); + } + resourceInputs["clientId"] = args?.clientId; + resourceInputs["clientSecret"] = args?.clientSecret ? pulumi.secret(args.clientSecret) : undefined; + resourceInputs["name"] = args?.name; + resourceInputs["tenantId"] = args?.tenantId; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["clientSecret"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(AzureVaultServicePrincipal.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AzureVaultServicePrincipal resources. + */ +export interface AzureVaultServicePrincipalState { + /** + * The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + clientId?: pulumi.Input; + /** + * The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + clientSecret?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; + /** + * The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + tenantId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AzureVaultServicePrincipal resource. + */ +export interface AzureVaultServicePrincipalArgs { + /** + * The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + clientId: pulumi.Input; + /** + * The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + clientSecret: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; + /** + * The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + */ + tenantId: pulumi.Input; +} diff --git a/sdk/nodejs/integration/circleci.ts b/sdk/nodejs/integration/circleci.ts index 67155ce..5bc2080 100644 --- a/sdk/nodejs/integration/circleci.ts +++ b/sdk/nodejs/integration/circleci.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const prod = new doppler.integration.Circleci("prod", { * name: "Production", @@ -59,11 +59,11 @@ export class Circleci extends pulumi.CustomResource { /** * A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. */ - public readonly apiToken!: pulumi.Output; + declare public readonly apiToken: pulumi.Output; /** * The name of the integration */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Create a Circleci resource with the given unique name, arguments, and options. @@ -78,18 +78,18 @@ export class Circleci extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as CircleciState | undefined; - resourceInputs["apiToken"] = state ? state.apiToken : undefined; - resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["apiToken"] = state?.apiToken; + resourceInputs["name"] = state?.name; } else { const args = argsOrState as CircleciArgs | undefined; - if ((!args || args.apiToken === undefined) && !opts.urn) { + if (args?.apiToken === undefined && !opts.urn) { throw new Error("Missing required property 'apiToken'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["apiToken"] = args?.apiToken ? pulumi.secret(args.apiToken) : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["name"] = args?.name; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["apiToken"] }; @@ -105,11 +105,11 @@ export interface CircleciState { /** * A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. */ - apiToken?: pulumi.Input; + apiToken?: pulumi.Input; /** * The name of the integration */ - name?: pulumi.Input; + name?: pulumi.Input; } /** diff --git a/sdk/nodejs/integration/cloudflareTokens.ts b/sdk/nodejs/integration/cloudflareTokens.ts new file mode 100644 index 0000000..c4e0659 --- /dev/null +++ b/sdk/nodejs/integration/cloudflareTokens.ts @@ -0,0 +1,138 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a Cloudflare Tokens Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const key1 = config.get("key1") || ""; + * const key2 = config.get("key2") || ""; + * const iCf = new doppler.integration.CloudflareTokens("i_cf", { + * name: "TF Cloudflare", + * apiToken: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", + * }); + * const rsCf = new doppler.rotatedsecret.CloudflareTokens("rs_cf", { + * credentials: [ + * { + * value: key1, + * }, + * { + * value: key2, + * }, + * ], + * integration: iCf.id, + * project: "backend", + * config: "dev", + * name: "CLOUDFLARE", + * rotationPeriodSec: 2592000, + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class CloudflareTokens extends pulumi.CustomResource { + /** + * Get an existing CloudflareTokens resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: CloudflareTokensState, opts?: pulumi.CustomResourceOptions): CloudflareTokens { + return new CloudflareTokens(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/cloudflareTokens:CloudflareTokens'; + + /** + * Returns true if the given object is an instance of CloudflareTokens. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is CloudflareTokens { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === CloudflareTokens.__pulumiType; + } + + /** + * The API Token + */ + declare public readonly apiToken: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a CloudflareTokens resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: CloudflareTokensArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: CloudflareTokensArgs | CloudflareTokensState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as CloudflareTokensState | undefined; + resourceInputs["apiToken"] = state?.apiToken; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as CloudflareTokensArgs | undefined; + if (args?.apiToken === undefined && !opts.urn) { + throw new Error("Missing required property 'apiToken'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["apiToken"] = args?.apiToken ? pulumi.secret(args.apiToken) : undefined; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["apiToken"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(CloudflareTokens.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering CloudflareTokens resources. + */ +export interface CloudflareTokensState { + /** + * The API Token + */ + apiToken?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a CloudflareTokens resource. + */ +export interface CloudflareTokensArgs { + /** + * The API Token + */ + apiToken: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/externalId.ts b/sdk/nodejs/integration/externalId.ts new file mode 100644 index 0000000..727b52b --- /dev/null +++ b/sdk/nodejs/integration/externalId.ts @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +export class ExternalId extends pulumi.CustomResource { + /** + * Get an existing ExternalId resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: ExternalIdState, opts?: pulumi.CustomResourceOptions): ExternalId { + return new ExternalId(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/externalId:ExternalId'; + + /** + * Returns true if the given object is an instance of ExternalId. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is ExternalId { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ExternalId.__pulumiType; + } + + /** + * The integration type for the external id + */ + declare public readonly integrationType: pulumi.Output; + + /** + * Create a ExternalId resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ExternalIdArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ExternalIdArgs | ExternalIdState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ExternalIdState | undefined; + resourceInputs["integrationType"] = state?.integrationType; + } else { + const args = argsOrState as ExternalIdArgs | undefined; + if (args?.integrationType === undefined && !opts.urn) { + throw new Error("Missing required property 'integrationType'"); + } + resourceInputs["integrationType"] = args?.integrationType; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(ExternalId.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ExternalId resources. + */ +export interface ExternalIdState { + /** + * The integration type for the external id + */ + integrationType?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ExternalId resource. + */ +export interface ExternalIdArgs { + /** + * The integration type for the external id + */ + integrationType: pulumi.Input; +} diff --git a/sdk/nodejs/integration/flyio.ts b/sdk/nodejs/integration/flyio.ts index 4fee5ed..69baf5d 100644 --- a/sdk/nodejs/integration/flyio.ts +++ b/sdk/nodejs/integration/flyio.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const prod = new doppler.integration.Flyio("prod", { * name: "TF Fly.io", @@ -58,11 +58,11 @@ export class Flyio extends pulumi.CustomResource { /** * A Fly.io API key. */ - public readonly apiKey!: pulumi.Output; + declare public readonly apiKey: pulumi.Output; /** * The name of the integration */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Create a Flyio resource with the given unique name, arguments, and options. @@ -77,18 +77,18 @@ export class Flyio extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as FlyioState | undefined; - resourceInputs["apiKey"] = state ? state.apiKey : undefined; - resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["apiKey"] = state?.apiKey; + resourceInputs["name"] = state?.name; } else { const args = argsOrState as FlyioArgs | undefined; - if ((!args || args.apiKey === undefined) && !opts.urn) { + if (args?.apiKey === undefined && !opts.urn) { throw new Error("Missing required property 'apiKey'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["name"] = args?.name; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["apiKey"] }; @@ -104,11 +104,11 @@ export interface FlyioState { /** * A Fly.io API key. */ - apiKey?: pulumi.Input; + apiKey?: pulumi.Input; /** * The name of the integration */ - name?: pulumi.Input; + name?: pulumi.Input; } /** diff --git a/sdk/nodejs/integration/gcpCloudsqlMysql.ts b/sdk/nodejs/integration/gcpCloudsqlMysql.ts new file mode 100644 index 0000000..f98f5ed --- /dev/null +++ b/sdk/nodejs/integration/gcpCloudsqlMysql.ts @@ -0,0 +1,152 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP CloudSQL MySQL Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const gcpKey = config.get("gcpKey") || `{ + * "type": "service_account", + * "project_id": "xxxxxxxxxxxxxxxxx", + * "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + * "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * "client_id": "xxxxxxxxxxxxxxxxxxxxx" + * } + * `; + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iGcpMysql = new doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", { + * name: "TF GCP MySQL", + * gcpKey: gcpKey, + * }); + * const rsGcpMysql = new doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", { + * credentials: [ + * { + * username: "xxxxxxxxxxxx", + * userHostName: "%", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxxxxx", + * userHostName: "%", + * password: dbPassword2, + * }, + * ], + * integration: iGcpMysql.id, + * project: "backend", + * config: "dev", + * name: "DB", + * rotationPeriodSec: 2592000, + * databaseInstance: "xxxxxxxxxxxx", + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class GcpCloudsqlMysql extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsqlMysql resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlMysqlState, opts?: pulumi.CustomResourceOptions): GcpCloudsqlMysql { + return new GcpCloudsqlMysql(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql'; + + /** + * Returns true if the given object is an instance of GcpCloudsqlMysql. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsqlMysql { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsqlMysql.__pulumiType; + } + + /** + * The GCP service account key + */ + declare public readonly gcpKey: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpCloudsqlMysql resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlMysqlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlMysqlArgs | GcpCloudsqlMysqlState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlMysqlState | undefined; + resourceInputs["gcpKey"] = state?.gcpKey; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpCloudsqlMysqlArgs | undefined; + if (args?.gcpKey === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpKey'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpKey"] = args?.gcpKey ? pulumi.secret(args.gcpKey) : undefined; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["gcpKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(GcpCloudsqlMysql.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsqlMysql resources. + */ +export interface GcpCloudsqlMysqlState { + /** + * The GCP service account key + */ + gcpKey?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsqlMysql resource. + */ +export interface GcpCloudsqlMysqlArgs { + /** + * The GCP service account key + */ + gcpKey: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpCloudsqlMysqlOidc.ts b/sdk/nodejs/integration/gcpCloudsqlMysqlOidc.ts new file mode 100644 index 0000000..cbbcdd8 --- /dev/null +++ b/sdk/nodejs/integration/gcpCloudsqlMysqlOidc.ts @@ -0,0 +1,150 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP CloudSQL MySQL Doppler integration using workload identity federation. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as google from "@pulumi/google"; + * + * const prod = new doppler.integration.GcpCloudsqlMysqlOidc("prod", { + * name: "Production", + * gcpWorkloadIdentityProvider: "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + * gcpProjectId: "your-gcp-project-id", + * }); + * const doppler2 = new google.index.ProjectIamMember("doppler", { + * project: "your-gcp-project-id", + * role: "roles/cloudsql.admin", + * member: prod.federationPrincipal, + * }); + * ``` + */ +export class GcpCloudsqlMysqlOidc extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsqlMysqlOidc resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlMysqlOidcState, opts?: pulumi.CustomResourceOptions): GcpCloudsqlMysqlOidc { + return new GcpCloudsqlMysqlOidc(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc'; + + /** + * Returns true if the given object is an instance of GcpCloudsqlMysqlOidc. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsqlMysqlOidc { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsqlMysqlOidc.__pulumiType; + } + + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + declare public /*out*/ readonly federationPrincipal: pulumi.Output; + /** + * The ID of the GCP project the integration operates on + */ + declare public readonly gcpProjectId: pulumi.Output; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + declare public readonly gcpWorkloadIdentityProvider: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpCloudsqlMysqlOidc resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlMysqlOidcArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlMysqlOidcArgs | GcpCloudsqlMysqlOidcState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlMysqlOidcState | undefined; + resourceInputs["federationPrincipal"] = state?.federationPrincipal; + resourceInputs["gcpProjectId"] = state?.gcpProjectId; + resourceInputs["gcpWorkloadIdentityProvider"] = state?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpCloudsqlMysqlOidcArgs | undefined; + if (args?.gcpProjectId === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpProjectId'"); + } + if (args?.gcpWorkloadIdentityProvider === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpWorkloadIdentityProvider'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpProjectId"] = args?.gcpProjectId; + resourceInputs["gcpWorkloadIdentityProvider"] = args?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = args?.name; + resourceInputs["federationPrincipal"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpCloudsqlMysqlOidc.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsqlMysqlOidc resources. + */ +export interface GcpCloudsqlMysqlOidcState { + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + federationPrincipal?: pulumi.Input; + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId?: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsqlMysqlOidc resource. + */ +export interface GcpCloudsqlMysqlOidcArgs { + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpCloudsqlPostgres.ts b/sdk/nodejs/integration/gcpCloudsqlPostgres.ts new file mode 100644 index 0000000..4cb39bd --- /dev/null +++ b/sdk/nodejs/integration/gcpCloudsqlPostgres.ts @@ -0,0 +1,152 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP CloudSQL Postgres Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const gcpKey = config.get("gcpKey") || `{ + * "type": "service_account", + * "project_id": "xxxxxxxxxxxxxxxxx", + * "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + * "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * "client_id": "xxxxxxxxxxxxxxxxxxxxx" + * } + * `; + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iGcpMysql = new doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", { + * name: "TF GCP MySQL", + * gcpKey: gcpKey, + * }); + * const rsGcpMysql = new doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", { + * credentials: [ + * { + * username: "xxxxxxxxxxxx", + * userHostName: "%", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxxxxx", + * userHostName: "%", + * password: dbPassword2, + * }, + * ], + * integration: iGcpMysql.id, + * project: "backend", + * config: "dev", + * name: "DB", + * rotationPeriodSec: 2592000, + * databaseInstance: "xxxxxxxxxxxx", + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class GcpCloudsqlPostgres extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsqlPostgres resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlPostgresState, opts?: pulumi.CustomResourceOptions): GcpCloudsqlPostgres { + return new GcpCloudsqlPostgres(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres'; + + /** + * Returns true if the given object is an instance of GcpCloudsqlPostgres. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsqlPostgres { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsqlPostgres.__pulumiType; + } + + /** + * The GCP service account key + */ + declare public readonly gcpKey: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpCloudsqlPostgres resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlPostgresArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlPostgresArgs | GcpCloudsqlPostgresState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlPostgresState | undefined; + resourceInputs["gcpKey"] = state?.gcpKey; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpCloudsqlPostgresArgs | undefined; + if (args?.gcpKey === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpKey'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpKey"] = args?.gcpKey ? pulumi.secret(args.gcpKey) : undefined; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["gcpKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(GcpCloudsqlPostgres.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsqlPostgres resources. + */ +export interface GcpCloudsqlPostgresState { + /** + * The GCP service account key + */ + gcpKey?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsqlPostgres resource. + */ +export interface GcpCloudsqlPostgresArgs { + /** + * The GCP service account key + */ + gcpKey: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpCloudsqlPostgresOidc.ts b/sdk/nodejs/integration/gcpCloudsqlPostgresOidc.ts new file mode 100644 index 0000000..dfb9cdc --- /dev/null +++ b/sdk/nodejs/integration/gcpCloudsqlPostgresOidc.ts @@ -0,0 +1,150 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP CloudSQL Postgres Doppler integration using workload identity federation. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as google from "@pulumi/google"; + * + * const prod = new doppler.integration.GcpCloudsqlPostgresOidc("prod", { + * name: "Production", + * gcpWorkloadIdentityProvider: "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + * gcpProjectId: "your-gcp-project-id", + * }); + * const doppler2 = new google.index.ProjectIamMember("doppler", { + * project: "your-gcp-project-id", + * role: "roles/cloudsql.admin", + * member: prod.federationPrincipal, + * }); + * ``` + */ +export class GcpCloudsqlPostgresOidc extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsqlPostgresOidc resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlPostgresOidcState, opts?: pulumi.CustomResourceOptions): GcpCloudsqlPostgresOidc { + return new GcpCloudsqlPostgresOidc(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc'; + + /** + * Returns true if the given object is an instance of GcpCloudsqlPostgresOidc. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsqlPostgresOidc { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsqlPostgresOidc.__pulumiType; + } + + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + declare public /*out*/ readonly federationPrincipal: pulumi.Output; + /** + * The ID of the GCP project the integration operates on + */ + declare public readonly gcpProjectId: pulumi.Output; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + declare public readonly gcpWorkloadIdentityProvider: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpCloudsqlPostgresOidc resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlPostgresOidcArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlPostgresOidcArgs | GcpCloudsqlPostgresOidcState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlPostgresOidcState | undefined; + resourceInputs["federationPrincipal"] = state?.federationPrincipal; + resourceInputs["gcpProjectId"] = state?.gcpProjectId; + resourceInputs["gcpWorkloadIdentityProvider"] = state?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpCloudsqlPostgresOidcArgs | undefined; + if (args?.gcpProjectId === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpProjectId'"); + } + if (args?.gcpWorkloadIdentityProvider === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpWorkloadIdentityProvider'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpProjectId"] = args?.gcpProjectId; + resourceInputs["gcpWorkloadIdentityProvider"] = args?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = args?.name; + resourceInputs["federationPrincipal"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpCloudsqlPostgresOidc.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsqlPostgresOidc resources. + */ +export interface GcpCloudsqlPostgresOidcState { + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + federationPrincipal?: pulumi.Input; + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId?: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsqlPostgresOidc resource. + */ +export interface GcpCloudsqlPostgresOidcArgs { + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpCloudsqlSqlserver.ts b/sdk/nodejs/integration/gcpCloudsqlSqlserver.ts new file mode 100644 index 0000000..7b40fff --- /dev/null +++ b/sdk/nodejs/integration/gcpCloudsqlSqlserver.ts @@ -0,0 +1,152 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP CloudSQL SQL Server Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const gcpKey = config.get("gcpKey") || `{ + * "type": "service_account", + * "project_id": "xxxxxxxxxxxxxxxxx", + * "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + * "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * "client_id": "xxxxxxxxxxxxxxxxxxxxx" + * } + * `; + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iGcpMysql = new doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", { + * name: "TF GCP MySQL", + * gcpKey: gcpKey, + * }); + * const rsGcpMysql = new doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", { + * credentials: [ + * { + * username: "xxxxxxxxxxxx", + * userHostName: "%", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxxxxx", + * userHostName: "%", + * password: dbPassword2, + * }, + * ], + * integration: iGcpMysql.id, + * project: "backend", + * config: "dev", + * name: "DB", + * rotationPeriodSec: 2592000, + * databaseInstance: "xxxxxxxxxxxx", + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class GcpCloudsqlSqlserver extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsqlSqlserver resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlSqlserverState, opts?: pulumi.CustomResourceOptions): GcpCloudsqlSqlserver { + return new GcpCloudsqlSqlserver(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver'; + + /** + * Returns true if the given object is an instance of GcpCloudsqlSqlserver. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsqlSqlserver { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsqlSqlserver.__pulumiType; + } + + /** + * The GCP service account key + */ + declare public readonly gcpKey: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpCloudsqlSqlserver resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlSqlserverArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlSqlserverArgs | GcpCloudsqlSqlserverState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlSqlserverState | undefined; + resourceInputs["gcpKey"] = state?.gcpKey; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpCloudsqlSqlserverArgs | undefined; + if (args?.gcpKey === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpKey'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpKey"] = args?.gcpKey ? pulumi.secret(args.gcpKey) : undefined; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["gcpKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(GcpCloudsqlSqlserver.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsqlSqlserver resources. + */ +export interface GcpCloudsqlSqlserverState { + /** + * The GCP service account key + */ + gcpKey?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsqlSqlserver resource. + */ +export interface GcpCloudsqlSqlserverArgs { + /** + * The GCP service account key + */ + gcpKey: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpCloudsqlSqlserverOidc.ts b/sdk/nodejs/integration/gcpCloudsqlSqlserverOidc.ts new file mode 100644 index 0000000..3c99f4a --- /dev/null +++ b/sdk/nodejs/integration/gcpCloudsqlSqlserverOidc.ts @@ -0,0 +1,150 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP CloudSQL SQL Server Doppler integration using workload identity federation. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as google from "@pulumi/google"; + * + * const prod = new doppler.integration.GcpCloudsqlSqlserverOidc("prod", { + * name: "Production", + * gcpWorkloadIdentityProvider: "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + * gcpProjectId: "your-gcp-project-id", + * }); + * const doppler2 = new google.index.ProjectIamMember("doppler", { + * project: "your-gcp-project-id", + * role: "roles/cloudsql.admin", + * member: prod.federationPrincipal, + * }); + * ``` + */ +export class GcpCloudsqlSqlserverOidc extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsqlSqlserverOidc resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlSqlserverOidcState, opts?: pulumi.CustomResourceOptions): GcpCloudsqlSqlserverOidc { + return new GcpCloudsqlSqlserverOidc(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc'; + + /** + * Returns true if the given object is an instance of GcpCloudsqlSqlserverOidc. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsqlSqlserverOidc { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsqlSqlserverOidc.__pulumiType; + } + + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + declare public /*out*/ readonly federationPrincipal: pulumi.Output; + /** + * The ID of the GCP project the integration operates on + */ + declare public readonly gcpProjectId: pulumi.Output; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + declare public readonly gcpWorkloadIdentityProvider: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpCloudsqlSqlserverOidc resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlSqlserverOidcArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlSqlserverOidcArgs | GcpCloudsqlSqlserverOidcState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlSqlserverOidcState | undefined; + resourceInputs["federationPrincipal"] = state?.federationPrincipal; + resourceInputs["gcpProjectId"] = state?.gcpProjectId; + resourceInputs["gcpWorkloadIdentityProvider"] = state?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpCloudsqlSqlserverOidcArgs | undefined; + if (args?.gcpProjectId === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpProjectId'"); + } + if (args?.gcpWorkloadIdentityProvider === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpWorkloadIdentityProvider'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpProjectId"] = args?.gcpProjectId; + resourceInputs["gcpWorkloadIdentityProvider"] = args?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = args?.name; + resourceInputs["federationPrincipal"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpCloudsqlSqlserverOidc.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsqlSqlserverOidc resources. + */ +export interface GcpCloudsqlSqlserverOidcState { + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + federationPrincipal?: pulumi.Input; + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId?: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsqlSqlserverOidc resource. + */ +export interface GcpCloudsqlSqlserverOidcArgs { + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpSecretManager.ts b/sdk/nodejs/integration/gcpSecretManager.ts new file mode 100644 index 0000000..4e55a82 --- /dev/null +++ b/sdk/nodejs/integration/gcpSecretManager.ts @@ -0,0 +1,151 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP Secret Manager Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const gcpKey = config.get("gcpKey") || `{ + * "type": "service_account", + * "project_id": "your-gcp-project-id", + * "private_key_id": "...", + * "private_key": "-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n", + * "client_email": "doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com", + * "client_id": "12345678901234567890", + * "auth_uri": "https://accounts.google.com/o/oauth2/auth", + * "token_uri": "https://oauth2.googleapis.com/token", + * "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + * "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com", + * "universe_domain": "googleapis.com" + * } + * `; + * const prod = new doppler.integration.GcpSecretManager("prod", { + * name: "prod", + * gcpKey: gcpKey, + * gcpSecretPrefix: "doppler-", + * }); + * ``` + */ +export class GcpSecretManager extends pulumi.CustomResource { + /** + * Get an existing GcpSecretManager resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpSecretManagerState, opts?: pulumi.CustomResourceOptions): GcpSecretManager { + return new GcpSecretManager(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpSecretManager:GcpSecretManager'; + + /** + * Returns true if the given object is an instance of GcpSecretManager. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpSecretManager { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpSecretManager.__pulumiType; + } + + /** + * The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + */ + declare public readonly gcpKey: pulumi.Output; + /** + * The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + */ + declare public readonly gcpSecretPrefix: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpSecretManager resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpSecretManagerArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpSecretManagerArgs | GcpSecretManagerState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpSecretManagerState | undefined; + resourceInputs["gcpKey"] = state?.gcpKey; + resourceInputs["gcpSecretPrefix"] = state?.gcpSecretPrefix; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpSecretManagerArgs | undefined; + if (args?.gcpKey === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpKey'"); + } + if (args?.gcpSecretPrefix === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpSecretPrefix'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpKey"] = args?.gcpKey ? pulumi.secret(args.gcpKey) : undefined; + resourceInputs["gcpSecretPrefix"] = args?.gcpSecretPrefix; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["gcpKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(GcpSecretManager.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpSecretManager resources. + */ +export interface GcpSecretManagerState { + /** + * The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + */ + gcpKey?: pulumi.Input; + /** + * The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + */ + gcpSecretPrefix?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpSecretManager resource. + */ +export interface GcpSecretManagerArgs { + /** + * The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + */ + gcpKey: pulumi.Input; + /** + * The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + */ + gcpSecretPrefix: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpSecretManagerOidc.ts b/sdk/nodejs/integration/gcpSecretManagerOidc.ts new file mode 100644 index 0000000..80e39bd --- /dev/null +++ b/sdk/nodejs/integration/gcpSecretManagerOidc.ts @@ -0,0 +1,181 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP Secret Manager Doppler integration using workload identity federation. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as google from "@pulumi/google"; + * + * const doppler2 = new google.index.IamWorkloadIdentityPool("doppler", {workloadIdentityPoolId: "doppler-pool"}); + * const dopplerIamWorkloadIdentityPoolProvider = new google.index.IamWorkloadIdentityPoolProvider("doppler", { + * oidc: [{ + * issuerUri: "https://api.doppler.com", + * }], + * workloadIdentityPoolId: doppler2.workloadIdentityPoolId, + * workloadIdentityPoolProviderId: "doppler", + * attributeMapping: { + * "google.subject": "assertion.sub", + * }, + * attributeCondition: "assertion.workplace == ''", + * }); + * const prod = new doppler.integration.GcpSecretManagerOidc("prod", { + * name: "Production", + * gcpWorkloadIdentityProvider: `//iam.googleapis.com/${dopplerIamWorkloadIdentityPoolProvider.name}`, + * gcpProjectId: "your-gcp-project-id", + * gcpSecretPrefix: "doppler-", + * }); + * const dopplerProjectIamMember = new google.index.ProjectIamMember("doppler", { + * condition: [{ + * title: "doppler-prefix-only", + * expression: "resource.name.startsWith(\"projects//secrets/doppler-\")", + * }], + * project: "your-gcp-project-id", + * role: "roles/secretmanager.admin", + * member: prod.federationPrincipal, + * }); + * ``` + */ +export class GcpSecretManagerOidc extends pulumi.CustomResource { + /** + * Get an existing GcpSecretManagerOidc resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpSecretManagerOidcState, opts?: pulumi.CustomResourceOptions): GcpSecretManagerOidc { + return new GcpSecretManagerOidc(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc'; + + /** + * Returns true if the given object is an instance of GcpSecretManagerOidc. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpSecretManagerOidc { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpSecretManagerOidc.__pulumiType; + } + + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + declare public /*out*/ readonly federationPrincipal: pulumi.Output; + /** + * The ID of the GCP project the integration operates on + */ + declare public readonly gcpProjectId: pulumi.Output; + /** + * The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + */ + declare public readonly gcpSecretPrefix: pulumi.Output; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + declare public readonly gcpWorkloadIdentityProvider: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpSecretManagerOidc resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpSecretManagerOidcArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpSecretManagerOidcArgs | GcpSecretManagerOidcState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpSecretManagerOidcState | undefined; + resourceInputs["federationPrincipal"] = state?.federationPrincipal; + resourceInputs["gcpProjectId"] = state?.gcpProjectId; + resourceInputs["gcpSecretPrefix"] = state?.gcpSecretPrefix; + resourceInputs["gcpWorkloadIdentityProvider"] = state?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpSecretManagerOidcArgs | undefined; + if (args?.gcpProjectId === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpProjectId'"); + } + if (args?.gcpWorkloadIdentityProvider === undefined && !opts.urn) { + throw new Error("Missing required property 'gcpWorkloadIdentityProvider'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["gcpProjectId"] = args?.gcpProjectId; + resourceInputs["gcpSecretPrefix"] = args?.gcpSecretPrefix; + resourceInputs["gcpWorkloadIdentityProvider"] = args?.gcpWorkloadIdentityProvider; + resourceInputs["name"] = args?.name; + resourceInputs["federationPrincipal"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpSecretManagerOidc.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpSecretManagerOidc resources. + */ +export interface GcpSecretManagerOidcState { + /** + * The IAM principal identifier to grant roles to in GCP for this integration + */ + federationPrincipal?: pulumi.Input; + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId?: pulumi.Input; + /** + * The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + */ + gcpSecretPrefix?: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpSecretManagerOidc resource. + */ +export interface GcpSecretManagerOidcArgs { + /** + * The ID of the GCP project the integration operates on + */ + gcpProjectId: pulumi.Input; + /** + * The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + */ + gcpSecretPrefix?: pulumi.Input; + /** + * The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + */ + gcpWorkloadIdentityProvider: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/gcpServiceAccountKeys.ts b/sdk/nodejs/integration/gcpServiceAccountKeys.ts new file mode 100644 index 0000000..6700afc --- /dev/null +++ b/sdk/nodejs/integration/gcpServiceAccountKeys.ts @@ -0,0 +1,186 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP Service Account Keys Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as google from "@pulumi/google"; + * import * as std from "@pulumi/std"; + * + * const iGcpSakExtid = new doppler.integration.ExternalId("i_gcp_sak_extid", {integrationType: "gcp_service_account_keys"}); + * const gcpsaDopplerImpersonate = new google.index.ServiceAccount("gcpsa_doppler_impersonate", { + * accountId: "xxxxxxxxxxx", + * description: std.format({ + * input: "doppler_impersonate:%s", + * args: [iGcpSakExtid.id], + * }).result, + * displayName: "xxxxxxxxxx", + * }); + * const dopplerRotationImpersonatePolicy = google.iamPolicy({ + * binding: [ + * { + * role: "roles/iam.serviceAccountViewer", + * members: [ + * gcpsaDopplerImpersonate.member, + * "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", + * ], + * }, + * { + * role: "roles/iam.serviceAccountTokenCreator", + * members: ["serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com"], + * }, + * ], + * }); + * const gcpPolicyImpersonate = new google.index.ServiceAccountIamPolicy("gcp_policy_impersonate", { + * serviceAccountId: gcpsaDopplerImpersonate.name, + * policyData: dopplerRotationImpersonatePolicy.policyData, + * }); + * const gcpsaRotated = new google.index.ServiceAccount("gcpsa_rotated", { + * accountId: "xxxxxxxxxxxxxxxxxx", + * displayName: "xxxxxxxxxxxxxxxxxx", + * }); + * const dopplerRotatedUserPolicy = google.iamPolicy({ + * binding: [{ + * role: "roles/iam.serviceAccountKeyAdmin", + * members: [gcpsaDopplerImpersonate.member], + * }], + * }); + * const gcpPolicyRotated = new google.index.ServiceAccountIamPolicy("gcp_policy_rotated", { + * serviceAccountId: gcpsaRotated.name, + * policyData: dopplerRotatedUserPolicy.policyData, + * }); + * const iGcpSak = new doppler.integration.GcpServiceAccountKeys("i_gcp_sak", { + * name: "TF GCP Service Account Keys", + * impersonatedServiceAccount: gcpsaDopplerImpersonate.email, + * externalId: iGcpSakExtid.id, + * }); + * const rsGcpsak = new doppler.rotatedsecret.GcpServiceAccountKeys("rs_gcpsak", { + * integration: iGcpSak.id, + * project: "backend", + * config: "dev", + * name: "GCP_SERVICE_ACCOUNT", + * rotationPeriodSec: 2592000, + * serviceAccount: gcpsaRotated.email, + * }); + * ``` + */ +export class GcpServiceAccountKeys extends pulumi.CustomResource { + /** + * Get an existing GcpServiceAccountKeys resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpServiceAccountKeysState, opts?: pulumi.CustomResourceOptions): GcpServiceAccountKeys { + return new GcpServiceAccountKeys(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys'; + + /** + * Returns true if the given object is an instance of GcpServiceAccountKeys. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpServiceAccountKeys { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpServiceAccountKeys.__pulumiType; + } + + /** + * The Doppler-generated external id (placed in the service account description field) + */ + declare public readonly externalId: pulumi.Output; + /** + * The service account email of the account to be impersonated + */ + declare public readonly impersonatedServiceAccount: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a GcpServiceAccountKeys resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpServiceAccountKeysArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpServiceAccountKeysArgs | GcpServiceAccountKeysState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpServiceAccountKeysState | undefined; + resourceInputs["externalId"] = state?.externalId; + resourceInputs["impersonatedServiceAccount"] = state?.impersonatedServiceAccount; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as GcpServiceAccountKeysArgs | undefined; + if (args?.externalId === undefined && !opts.urn) { + throw new Error("Missing required property 'externalId'"); + } + if (args?.impersonatedServiceAccount === undefined && !opts.urn) { + throw new Error("Missing required property 'impersonatedServiceAccount'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["externalId"] = args?.externalId; + resourceInputs["impersonatedServiceAccount"] = args?.impersonatedServiceAccount; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpServiceAccountKeys.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpServiceAccountKeys resources. + */ +export interface GcpServiceAccountKeysState { + /** + * The Doppler-generated external id (placed in the service account description field) + */ + externalId?: pulumi.Input; + /** + * The service account email of the account to be impersonated + */ + impersonatedServiceAccount?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpServiceAccountKeys resource. + */ +export interface GcpServiceAccountKeysArgs { + /** + * The Doppler-generated external id (placed in the service account description field) + */ + externalId: pulumi.Input; + /** + * The service account email of the account to be impersonated + */ + impersonatedServiceAccount: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/index.ts b/sdk/nodejs/integration/index.ts index 0c7939d..98e376e 100644 --- a/sdk/nodejs/integration/index.ts +++ b/sdk/nodejs/integration/index.ts @@ -1,57 +1,273 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; // Export members: +export { AwsIamUserKeysArgs, AwsIamUserKeysState } from "./awsIamUserKeys"; +export type AwsIamUserKeys = import("./awsIamUserKeys").AwsIamUserKeys; +export const AwsIamUserKeys: typeof import("./awsIamUserKeys").AwsIamUserKeys = null as any; +utilities.lazyLoad(exports, ["AwsIamUserKeys"], () => require("./awsIamUserKeys")); + +export { AwsMssqlArgs, AwsMssqlState } from "./awsMssql"; +export type AwsMssql = import("./awsMssql").AwsMssql; +export const AwsMssql: typeof import("./awsMssql").AwsMssql = null as any; +utilities.lazyLoad(exports, ["AwsMssql"], () => require("./awsMssql")); + +export { AwsMysqlArgs, AwsMysqlState } from "./awsMysql"; +export type AwsMysql = import("./awsMysql").AwsMysql; +export const AwsMysql: typeof import("./awsMysql").AwsMysql = null as any; +utilities.lazyLoad(exports, ["AwsMysql"], () => require("./awsMysql")); + export { AwsParameterStoreArgs, AwsParameterStoreState } from "./awsParameterStore"; export type AwsParameterStore = import("./awsParameterStore").AwsParameterStore; export const AwsParameterStore: typeof import("./awsParameterStore").AwsParameterStore = null as any; utilities.lazyLoad(exports, ["AwsParameterStore"], () => require("./awsParameterStore")); +export { AwsPostgresArgs, AwsPostgresState } from "./awsPostgres"; +export type AwsPostgres = import("./awsPostgres").AwsPostgres; +export const AwsPostgres: typeof import("./awsPostgres").AwsPostgres = null as any; +utilities.lazyLoad(exports, ["AwsPostgres"], () => require("./awsPostgres")); + export { AwsSecretsManagerArgs, AwsSecretsManagerState } from "./awsSecretsManager"; export type AwsSecretsManager = import("./awsSecretsManager").AwsSecretsManager; export const AwsSecretsManager: typeof import("./awsSecretsManager").AwsSecretsManager = null as any; utilities.lazyLoad(exports, ["AwsSecretsManager"], () => require("./awsSecretsManager")); +export { AzureDynamicServicePrincipalArgs, AzureDynamicServicePrincipalState } from "./azureDynamicServicePrincipal"; +export type AzureDynamicServicePrincipal = import("./azureDynamicServicePrincipal").AzureDynamicServicePrincipal; +export const AzureDynamicServicePrincipal: typeof import("./azureDynamicServicePrincipal").AzureDynamicServicePrincipal = null as any; +utilities.lazyLoad(exports, ["AzureDynamicServicePrincipal"], () => require("./azureDynamicServicePrincipal")); + +export { AzureDynamicServicePrincipalOidcArgs, AzureDynamicServicePrincipalOidcState } from "./azureDynamicServicePrincipalOidc"; +export type AzureDynamicServicePrincipalOidc = import("./azureDynamicServicePrincipalOidc").AzureDynamicServicePrincipalOidc; +export const AzureDynamicServicePrincipalOidc: typeof import("./azureDynamicServicePrincipalOidc").AzureDynamicServicePrincipalOidc = null as any; +utilities.lazyLoad(exports, ["AzureDynamicServicePrincipalOidc"], () => require("./azureDynamicServicePrincipalOidc")); + +export { AzureRotatedServicePrincipalArgs, AzureRotatedServicePrincipalState } from "./azureRotatedServicePrincipal"; +export type AzureRotatedServicePrincipal = import("./azureRotatedServicePrincipal").AzureRotatedServicePrincipal; +export const AzureRotatedServicePrincipal: typeof import("./azureRotatedServicePrincipal").AzureRotatedServicePrincipal = null as any; +utilities.lazyLoad(exports, ["AzureRotatedServicePrincipal"], () => require("./azureRotatedServicePrincipal")); + +export { AzureRotatedServicePrincipalOidcArgs, AzureRotatedServicePrincipalOidcState } from "./azureRotatedServicePrincipalOidc"; +export type AzureRotatedServicePrincipalOidc = import("./azureRotatedServicePrincipalOidc").AzureRotatedServicePrincipalOidc; +export const AzureRotatedServicePrincipalOidc: typeof import("./azureRotatedServicePrincipalOidc").AzureRotatedServicePrincipalOidc = null as any; +utilities.lazyLoad(exports, ["AzureRotatedServicePrincipalOidc"], () => require("./azureRotatedServicePrincipalOidc")); + +export { AzureVaultServicePrincipalArgs, AzureVaultServicePrincipalState } from "./azureVaultServicePrincipal"; +export type AzureVaultServicePrincipal = import("./azureVaultServicePrincipal").AzureVaultServicePrincipal; +export const AzureVaultServicePrincipal: typeof import("./azureVaultServicePrincipal").AzureVaultServicePrincipal = null as any; +utilities.lazyLoad(exports, ["AzureVaultServicePrincipal"], () => require("./azureVaultServicePrincipal")); + export { CircleciArgs, CircleciState } from "./circleci"; export type Circleci = import("./circleci").Circleci; export const Circleci: typeof import("./circleci").Circleci = null as any; utilities.lazyLoad(exports, ["Circleci"], () => require("./circleci")); +export { CloudflareTokensArgs, CloudflareTokensState } from "./cloudflareTokens"; +export type CloudflareTokens = import("./cloudflareTokens").CloudflareTokens; +export const CloudflareTokens: typeof import("./cloudflareTokens").CloudflareTokens = null as any; +utilities.lazyLoad(exports, ["CloudflareTokens"], () => require("./cloudflareTokens")); + +export { ExternalIdArgs, ExternalIdState } from "./externalId"; +export type ExternalId = import("./externalId").ExternalId; +export const ExternalId: typeof import("./externalId").ExternalId = null as any; +utilities.lazyLoad(exports, ["ExternalId"], () => require("./externalId")); + export { FlyioArgs, FlyioState } from "./flyio"; export type Flyio = import("./flyio").Flyio; export const Flyio: typeof import("./flyio").Flyio = null as any; utilities.lazyLoad(exports, ["Flyio"], () => require("./flyio")); +export { GcpCloudsqlMysqlArgs, GcpCloudsqlMysqlState } from "./gcpCloudsqlMysql"; +export type GcpCloudsqlMysql = import("./gcpCloudsqlMysql").GcpCloudsqlMysql; +export const GcpCloudsqlMysql: typeof import("./gcpCloudsqlMysql").GcpCloudsqlMysql = null as any; +utilities.lazyLoad(exports, ["GcpCloudsqlMysql"], () => require("./gcpCloudsqlMysql")); + +export { GcpCloudsqlMysqlOidcArgs, GcpCloudsqlMysqlOidcState } from "./gcpCloudsqlMysqlOidc"; +export type GcpCloudsqlMysqlOidc = import("./gcpCloudsqlMysqlOidc").GcpCloudsqlMysqlOidc; +export const GcpCloudsqlMysqlOidc: typeof import("./gcpCloudsqlMysqlOidc").GcpCloudsqlMysqlOidc = null as any; +utilities.lazyLoad(exports, ["GcpCloudsqlMysqlOidc"], () => require("./gcpCloudsqlMysqlOidc")); + +export { GcpCloudsqlPostgresArgs, GcpCloudsqlPostgresState } from "./gcpCloudsqlPostgres"; +export type GcpCloudsqlPostgres = import("./gcpCloudsqlPostgres").GcpCloudsqlPostgres; +export const GcpCloudsqlPostgres: typeof import("./gcpCloudsqlPostgres").GcpCloudsqlPostgres = null as any; +utilities.lazyLoad(exports, ["GcpCloudsqlPostgres"], () => require("./gcpCloudsqlPostgres")); + +export { GcpCloudsqlPostgresOidcArgs, GcpCloudsqlPostgresOidcState } from "./gcpCloudsqlPostgresOidc"; +export type GcpCloudsqlPostgresOidc = import("./gcpCloudsqlPostgresOidc").GcpCloudsqlPostgresOidc; +export const GcpCloudsqlPostgresOidc: typeof import("./gcpCloudsqlPostgresOidc").GcpCloudsqlPostgresOidc = null as any; +utilities.lazyLoad(exports, ["GcpCloudsqlPostgresOidc"], () => require("./gcpCloudsqlPostgresOidc")); + +export { GcpCloudsqlSqlserverArgs, GcpCloudsqlSqlserverState } from "./gcpCloudsqlSqlserver"; +export type GcpCloudsqlSqlserver = import("./gcpCloudsqlSqlserver").GcpCloudsqlSqlserver; +export const GcpCloudsqlSqlserver: typeof import("./gcpCloudsqlSqlserver").GcpCloudsqlSqlserver = null as any; +utilities.lazyLoad(exports, ["GcpCloudsqlSqlserver"], () => require("./gcpCloudsqlSqlserver")); + +export { GcpCloudsqlSqlserverOidcArgs, GcpCloudsqlSqlserverOidcState } from "./gcpCloudsqlSqlserverOidc"; +export type GcpCloudsqlSqlserverOidc = import("./gcpCloudsqlSqlserverOidc").GcpCloudsqlSqlserverOidc; +export const GcpCloudsqlSqlserverOidc: typeof import("./gcpCloudsqlSqlserverOidc").GcpCloudsqlSqlserverOidc = null as any; +utilities.lazyLoad(exports, ["GcpCloudsqlSqlserverOidc"], () => require("./gcpCloudsqlSqlserverOidc")); + +export { GcpSecretManagerArgs, GcpSecretManagerState } from "./gcpSecretManager"; +export type GcpSecretManager = import("./gcpSecretManager").GcpSecretManager; +export const GcpSecretManager: typeof import("./gcpSecretManager").GcpSecretManager = null as any; +utilities.lazyLoad(exports, ["GcpSecretManager"], () => require("./gcpSecretManager")); + +export { GcpSecretManagerOidcArgs, GcpSecretManagerOidcState } from "./gcpSecretManagerOidc"; +export type GcpSecretManagerOidc = import("./gcpSecretManagerOidc").GcpSecretManagerOidc; +export const GcpSecretManagerOidc: typeof import("./gcpSecretManagerOidc").GcpSecretManagerOidc = null as any; +utilities.lazyLoad(exports, ["GcpSecretManagerOidc"], () => require("./gcpSecretManagerOidc")); + +export { GcpServiceAccountKeysArgs, GcpServiceAccountKeysState } from "./gcpServiceAccountKeys"; +export type GcpServiceAccountKeys = import("./gcpServiceAccountKeys").GcpServiceAccountKeys; +export const GcpServiceAccountKeys: typeof import("./gcpServiceAccountKeys").GcpServiceAccountKeys = null as any; +utilities.lazyLoad(exports, ["GcpServiceAccountKeys"], () => require("./gcpServiceAccountKeys")); + +export { MemberGroupArgs, MemberGroupState } from "./memberGroup"; +export type MemberGroup = import("./memberGroup").MemberGroup; +export const MemberGroup: typeof import("./memberGroup").MemberGroup = null as any; +utilities.lazyLoad(exports, ["MemberGroup"], () => require("./memberGroup")); + +export { MemberServiceAccountArgs, MemberServiceAccountState } from "./memberServiceAccount"; +export type MemberServiceAccount = import("./memberServiceAccount").MemberServiceAccount; +export const MemberServiceAccount: typeof import("./memberServiceAccount").MemberServiceAccount = null as any; +utilities.lazyLoad(exports, ["MemberServiceAccount"], () => require("./memberServiceAccount")); + +export { MemberUserArgs, MemberUserState } from "./memberUser"; +export type MemberUser = import("./memberUser").MemberUser; +export const MemberUser: typeof import("./memberUser").MemberUser = null as any; +utilities.lazyLoad(exports, ["MemberUser"], () => require("./memberUser")); + +export { MongodbAtlasArgs, MongodbAtlasState } from "./mongodbAtlas"; +export type MongodbAtlas = import("./mongodbAtlas").MongodbAtlas; +export const MongodbAtlas: typeof import("./mongodbAtlas").MongodbAtlas = null as any; +utilities.lazyLoad(exports, ["MongodbAtlas"], () => require("./mongodbAtlas")); + +export { OpenaiArgs, OpenaiState } from "./openai"; +export type Openai = import("./openai").Openai; +export const Openai: typeof import("./openai").Openai = null as any; +utilities.lazyLoad(exports, ["Openai"], () => require("./openai")); + +export { SendgridArgs, SendgridState } from "./sendgrid"; +export type Sendgrid = import("./sendgrid").Sendgrid; +export const Sendgrid: typeof import("./sendgrid").Sendgrid = null as any; +utilities.lazyLoad(exports, ["Sendgrid"], () => require("./sendgrid")); + export { TerraformCloudArgs, TerraformCloudState } from "./terraformCloud"; export type TerraformCloud = import("./terraformCloud").TerraformCloud; export const TerraformCloud: typeof import("./terraformCloud").TerraformCloud = null as any; utilities.lazyLoad(exports, ["TerraformCloud"], () => require("./terraformCloud")); +export { TwilioArgs, TwilioState } from "./twilio"; +export type Twilio = import("./twilio").Twilio; +export const Twilio: typeof import("./twilio").Twilio = null as any; +utilities.lazyLoad(exports, ["Twilio"], () => require("./twilio")); + const _module = { version: utilities.getVersion(), construct: (name: string, type: string, urn: string): pulumi.Resource => { switch (type) { + case "doppler:integration/awsIamUserKeys:AwsIamUserKeys": + return new AwsIamUserKeys(name, undefined, { urn }) + case "doppler:integration/awsMssql:AwsMssql": + return new AwsMssql(name, undefined, { urn }) + case "doppler:integration/awsMysql:AwsMysql": + return new AwsMysql(name, undefined, { urn }) case "doppler:integration/awsParameterStore:AwsParameterStore": return new AwsParameterStore(name, undefined, { urn }) + case "doppler:integration/awsPostgres:AwsPostgres": + return new AwsPostgres(name, undefined, { urn }) case "doppler:integration/awsSecretsManager:AwsSecretsManager": return new AwsSecretsManager(name, undefined, { urn }) + case "doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal": + return new AzureDynamicServicePrincipal(name, undefined, { urn }) + case "doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc": + return new AzureDynamicServicePrincipalOidc(name, undefined, { urn }) + case "doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal": + return new AzureRotatedServicePrincipal(name, undefined, { urn }) + case "doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc": + return new AzureRotatedServicePrincipalOidc(name, undefined, { urn }) + case "doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal": + return new AzureVaultServicePrincipal(name, undefined, { urn }) case "doppler:integration/circleci:Circleci": return new Circleci(name, undefined, { urn }) + case "doppler:integration/cloudflareTokens:CloudflareTokens": + return new CloudflareTokens(name, undefined, { urn }) + case "doppler:integration/externalId:ExternalId": + return new ExternalId(name, undefined, { urn }) case "doppler:integration/flyio:Flyio": return new Flyio(name, undefined, { urn }) + case "doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql": + return new GcpCloudsqlMysql(name, undefined, { urn }) + case "doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc": + return new GcpCloudsqlMysqlOidc(name, undefined, { urn }) + case "doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres": + return new GcpCloudsqlPostgres(name, undefined, { urn }) + case "doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc": + return new GcpCloudsqlPostgresOidc(name, undefined, { urn }) + case "doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver": + return new GcpCloudsqlSqlserver(name, undefined, { urn }) + case "doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc": + return new GcpCloudsqlSqlserverOidc(name, undefined, { urn }) + case "doppler:integration/gcpSecretManager:GcpSecretManager": + return new GcpSecretManager(name, undefined, { urn }) + case "doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc": + return new GcpSecretManagerOidc(name, undefined, { urn }) + case "doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys": + return new GcpServiceAccountKeys(name, undefined, { urn }) + case "doppler:integration/memberGroup:MemberGroup": + return new MemberGroup(name, undefined, { urn }) + case "doppler:integration/memberServiceAccount:MemberServiceAccount": + return new MemberServiceAccount(name, undefined, { urn }) + case "doppler:integration/memberUser:MemberUser": + return new MemberUser(name, undefined, { urn }) + case "doppler:integration/mongodbAtlas:MongodbAtlas": + return new MongodbAtlas(name, undefined, { urn }) + case "doppler:integration/openai:Openai": + return new Openai(name, undefined, { urn }) + case "doppler:integration/sendgrid:Sendgrid": + return new Sendgrid(name, undefined, { urn }) case "doppler:integration/terraformCloud:TerraformCloud": return new TerraformCloud(name, undefined, { urn }) + case "doppler:integration/twilio:Twilio": + return new Twilio(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } }, }; +pulumi.runtime.registerResourceModule("doppler", "integration/awsIamUserKeys", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/awsMssql", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/awsMysql", _module) pulumi.runtime.registerResourceModule("doppler", "integration/awsParameterStore", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/awsPostgres", _module) pulumi.runtime.registerResourceModule("doppler", "integration/awsSecretsManager", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/azureDynamicServicePrincipal", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/azureDynamicServicePrincipalOidc", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/azureRotatedServicePrincipal", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/azureRotatedServicePrincipalOidc", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/azureVaultServicePrincipal", _module) pulumi.runtime.registerResourceModule("doppler", "integration/circleci", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/cloudflareTokens", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/externalId", _module) pulumi.runtime.registerResourceModule("doppler", "integration/flyio", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpCloudsqlMysql", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpCloudsqlMysqlOidc", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpCloudsqlPostgres", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpCloudsqlPostgresOidc", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpCloudsqlSqlserver", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpCloudsqlSqlserverOidc", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpSecretManager", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpSecretManagerOidc", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/gcpServiceAccountKeys", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/memberGroup", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/memberServiceAccount", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/memberUser", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/mongodbAtlas", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/openai", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/sendgrid", _module) pulumi.runtime.registerResourceModule("doppler", "integration/terraformCloud", _module) +pulumi.runtime.registerResourceModule("doppler", "integration/twilio", _module) diff --git a/sdk/nodejs/integration/memberGroup.ts b/sdk/nodejs/integration/memberGroup.ts new file mode 100644 index 0000000..ac779b0 --- /dev/null +++ b/sdk/nodejs/integration/memberGroup.ts @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a Doppler integration group member. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const awsEngineering = new doppler.integration.MemberGroup("aws_engineering", { + * integration: prod.slug, + * groupSlug: engineering.slug, + * role: "consumer", + * }); + * ``` + */ +export class MemberGroup extends pulumi.CustomResource { + /** + * Get an existing MemberGroup resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: MemberGroupState, opts?: pulumi.CustomResourceOptions): MemberGroup { + return new MemberGroup(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/memberGroup:MemberGroup'; + + /** + * Returns true if the given object is an instance of MemberGroup. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is MemberGroup { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === MemberGroup.__pulumiType; + } + + /** + * The slug of the Doppler group + */ + declare public readonly groupSlug: pulumi.Output; + /** + * The slug of the Doppler integration where the access is applied + */ + declare public readonly integration: pulumi.Output; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + declare public readonly role: pulumi.Output; + + /** + * Create a MemberGroup resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: MemberGroupArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: MemberGroupArgs | MemberGroupState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as MemberGroupState | undefined; + resourceInputs["groupSlug"] = state?.groupSlug; + resourceInputs["integration"] = state?.integration; + resourceInputs["role"] = state?.role; + } else { + const args = argsOrState as MemberGroupArgs | undefined; + if (args?.groupSlug === undefined && !opts.urn) { + throw new Error("Missing required property 'groupSlug'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.role === undefined && !opts.urn) { + throw new Error("Missing required property 'role'"); + } + resourceInputs["groupSlug"] = args?.groupSlug; + resourceInputs["integration"] = args?.integration; + resourceInputs["role"] = args?.role; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(MemberGroup.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering MemberGroup resources. + */ +export interface MemberGroupState { + /** + * The slug of the Doppler group + */ + groupSlug?: pulumi.Input; + /** + * The slug of the Doppler integration where the access is applied + */ + integration?: pulumi.Input; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + role?: pulumi.Input; +} + +/** + * The set of arguments for constructing a MemberGroup resource. + */ +export interface MemberGroupArgs { + /** + * The slug of the Doppler group + */ + groupSlug: pulumi.Input; + /** + * The slug of the Doppler integration where the access is applied + */ + integration: pulumi.Input; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + role: pulumi.Input; +} diff --git a/sdk/nodejs/integration/memberServiceAccount.ts b/sdk/nodejs/integration/memberServiceAccount.ts new file mode 100644 index 0000000..995752a --- /dev/null +++ b/sdk/nodejs/integration/memberServiceAccount.ts @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a Doppler integration service account member. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const awsCi = new doppler.integration.MemberServiceAccount("aws_ci", { + * integration: prod.slug, + * serviceAccountSlug: ci.slug, + * role: "consumer", + * }); + * ``` + */ +export class MemberServiceAccount extends pulumi.CustomResource { + /** + * Get an existing MemberServiceAccount resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: MemberServiceAccountState, opts?: pulumi.CustomResourceOptions): MemberServiceAccount { + return new MemberServiceAccount(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/memberServiceAccount:MemberServiceAccount'; + + /** + * Returns true if the given object is an instance of MemberServiceAccount. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is MemberServiceAccount { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === MemberServiceAccount.__pulumiType; + } + + /** + * The slug of the Doppler integration where the access is applied + */ + declare public readonly integration: pulumi.Output; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + declare public readonly role: pulumi.Output; + /** + * The slug of the Doppler service account + */ + declare public readonly serviceAccountSlug: pulumi.Output; + + /** + * Create a MemberServiceAccount resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: MemberServiceAccountArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: MemberServiceAccountArgs | MemberServiceAccountState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as MemberServiceAccountState | undefined; + resourceInputs["integration"] = state?.integration; + resourceInputs["role"] = state?.role; + resourceInputs["serviceAccountSlug"] = state?.serviceAccountSlug; + } else { + const args = argsOrState as MemberServiceAccountArgs | undefined; + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.role === undefined && !opts.urn) { + throw new Error("Missing required property 'role'"); + } + if (args?.serviceAccountSlug === undefined && !opts.urn) { + throw new Error("Missing required property 'serviceAccountSlug'"); + } + resourceInputs["integration"] = args?.integration; + resourceInputs["role"] = args?.role; + resourceInputs["serviceAccountSlug"] = args?.serviceAccountSlug; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(MemberServiceAccount.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering MemberServiceAccount resources. + */ +export interface MemberServiceAccountState { + /** + * The slug of the Doppler integration where the access is applied + */ + integration?: pulumi.Input; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + role?: pulumi.Input; + /** + * The slug of the Doppler service account + */ + serviceAccountSlug?: pulumi.Input; +} + +/** + * The set of arguments for constructing a MemberServiceAccount resource. + */ +export interface MemberServiceAccountArgs { + /** + * The slug of the Doppler integration where the access is applied + */ + integration: pulumi.Input; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + role: pulumi.Input; + /** + * The slug of the Doppler service account + */ + serviceAccountSlug: pulumi.Input; +} diff --git a/sdk/nodejs/integration/memberUser.ts b/sdk/nodejs/integration/memberUser.ts new file mode 100644 index 0000000..14e1108 --- /dev/null +++ b/sdk/nodejs/integration/memberUser.ts @@ -0,0 +1,137 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a Doppler integration user member. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const brian = doppler.getUser({ + * email: "brian@doppler.com", + * }); + * const awsBrian = new doppler.integration.MemberUser("aws_brian", { + * integration: prod.slug, + * userSlug: brian.then(brian => brian.slug), + * role: "consumer", + * }); + * ``` + */ +export class MemberUser extends pulumi.CustomResource { + /** + * Get an existing MemberUser resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: MemberUserState, opts?: pulumi.CustomResourceOptions): MemberUser { + return new MemberUser(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/memberUser:MemberUser'; + + /** + * Returns true if the given object is an instance of MemberUser. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is MemberUser { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === MemberUser.__pulumiType; + } + + /** + * The slug of the Doppler integration where the access is applied + */ + declare public readonly integration: pulumi.Output; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + declare public readonly role: pulumi.Output; + /** + * The slug of the Doppler workplace user + */ + declare public readonly userSlug: pulumi.Output; + + /** + * Create a MemberUser resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: MemberUserArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: MemberUserArgs | MemberUserState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as MemberUserState | undefined; + resourceInputs["integration"] = state?.integration; + resourceInputs["role"] = state?.role; + resourceInputs["userSlug"] = state?.userSlug; + } else { + const args = argsOrState as MemberUserArgs | undefined; + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.role === undefined && !opts.urn) { + throw new Error("Missing required property 'role'"); + } + if (args?.userSlug === undefined && !opts.urn) { + throw new Error("Missing required property 'userSlug'"); + } + resourceInputs["integration"] = args?.integration; + resourceInputs["role"] = args?.role; + resourceInputs["userSlug"] = args?.userSlug; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(MemberUser.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering MemberUser resources. + */ +export interface MemberUserState { + /** + * The slug of the Doppler integration where the access is applied + */ + integration?: pulumi.Input; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + role?: pulumi.Input; + /** + * The slug of the Doppler workplace user + */ + userSlug?: pulumi.Input; +} + +/** + * The set of arguments for constructing a MemberUser resource. + */ +export interface MemberUserArgs { + /** + * The slug of the Doppler integration where the access is applied + */ + integration: pulumi.Input; + /** + * The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `noAccess`), or the slug for a custom integration role. + */ + role: pulumi.Input; + /** + * The slug of the Doppler workplace user + */ + userSlug: pulumi.Input; +} diff --git a/sdk/nodejs/integration/mongodbAtlas.ts b/sdk/nodejs/integration/mongodbAtlas.ts new file mode 100644 index 0000000..32764aa --- /dev/null +++ b/sdk/nodejs/integration/mongodbAtlas.ts @@ -0,0 +1,159 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a MongoDB Atlas Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const config = new pulumi.Config(); + * const dbPassword1 = config.get("dbPassword1") || ""; + * const dbPassword2 = config.get("dbPassword2") || ""; + * const iMongodbAtlas = new doppler.integration.MongodbAtlas("i_mongodb_atlas", { + * name: "TF MongoDB Atlas", + * publicKey: "xxxxxxxx", + * privateKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * }); + * const rsMongodbAtlas = new doppler.rotatedsecret.MongodbAtlas("rs_mongodb_atlas", { + * credentials: [ + * { + * username: "xxxxxxxxx", + * password: dbPassword1, + * }, + * { + * username: "xxxxxxxxx", + * password: dbPassword2, + * }, + * ], + * integration: iMongodbAtlas.id, + * project: "backend", + * config: "dev", + * name: "MONGODB", + * rotationPeriodSec: 2592000, + * projectId: "xxxxxxxxxxxxxxxxx", + * }, { + * ignoreChanges: ["credentials"], + * }); + * ``` + */ +export class MongodbAtlas extends pulumi.CustomResource { + /** + * Get an existing MongodbAtlas resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: MongodbAtlasState, opts?: pulumi.CustomResourceOptions): MongodbAtlas { + return new MongodbAtlas(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/mongodbAtlas:MongodbAtlas'; + + /** + * Returns true if the given object is an instance of MongodbAtlas. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is MongodbAtlas { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === MongodbAtlas.__pulumiType; + } + + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + /** + * The Private Key + */ + declare public readonly privateKey: pulumi.Output; + /** + * The Public Key + */ + declare public readonly publicKey: pulumi.Output; + + /** + * Create a MongodbAtlas resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: MongodbAtlasArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: MongodbAtlasArgs | MongodbAtlasState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as MongodbAtlasState | undefined; + resourceInputs["name"] = state?.name; + resourceInputs["privateKey"] = state?.privateKey; + resourceInputs["publicKey"] = state?.publicKey; + } else { + const args = argsOrState as MongodbAtlasArgs | undefined; + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.privateKey === undefined && !opts.urn) { + throw new Error("Missing required property 'privateKey'"); + } + if (args?.publicKey === undefined && !opts.urn) { + throw new Error("Missing required property 'publicKey'"); + } + resourceInputs["name"] = args?.name; + resourceInputs["privateKey"] = args?.privateKey ? pulumi.secret(args.privateKey) : undefined; + resourceInputs["publicKey"] = args?.publicKey; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["privateKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(MongodbAtlas.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering MongodbAtlas resources. + */ +export interface MongodbAtlasState { + /** + * The name of the integration + */ + name?: pulumi.Input; + /** + * The Private Key + */ + privateKey?: pulumi.Input; + /** + * The Public Key + */ + publicKey?: pulumi.Input; +} + +/** + * The set of arguments for constructing a MongodbAtlas resource. + */ +export interface MongodbAtlasArgs { + /** + * The name of the integration + */ + name: pulumi.Input; + /** + * The Private Key + */ + privateKey: pulumi.Input; + /** + * The Public Key + */ + publicKey: pulumi.Input; +} diff --git a/sdk/nodejs/integration/openai.ts b/sdk/nodejs/integration/openai.ts new file mode 100644 index 0000000..5bed991 --- /dev/null +++ b/sdk/nodejs/integration/openai.ts @@ -0,0 +1,126 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an OpenAI Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const iOpenai = new doppler.integration.Openai("i_openai", { + * name: "TF OpenAI", + * adminKey: "sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * }); + * const rsOpenai = new doppler.rotatedsecret.Openai("rs_openai", { + * integration: iOpenai.id, + * project: "backend", + * config: "dev", + * name: "OPENAI", + * rotationPeriodSec: 2592000, + * projectId: "proj_xxxxxxxxxxxxxxxxxxxxxxxx", + * }); + * ``` + */ +export class Openai extends pulumi.CustomResource { + /** + * Get an existing Openai resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: OpenaiState, opts?: pulumi.CustomResourceOptions): Openai { + return new Openai(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/openai:Openai'; + + /** + * Returns true if the given object is an instance of Openai. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Openai { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Openai.__pulumiType; + } + + /** + * The OpenAI admin key + */ + declare public readonly adminKey: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a Openai resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: OpenaiArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: OpenaiArgs | OpenaiState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as OpenaiState | undefined; + resourceInputs["adminKey"] = state?.adminKey; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as OpenaiArgs | undefined; + if (args?.adminKey === undefined && !opts.urn) { + throw new Error("Missing required property 'adminKey'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["adminKey"] = args?.adminKey ? pulumi.secret(args.adminKey) : undefined; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["adminKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(Openai.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Openai resources. + */ +export interface OpenaiState { + /** + * The OpenAI admin key + */ + adminKey?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Openai resource. + */ +export interface OpenaiArgs { + /** + * The OpenAI admin key + */ + adminKey: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/sendgrid.ts b/sdk/nodejs/integration/sendgrid.ts new file mode 100644 index 0000000..a47ab32 --- /dev/null +++ b/sdk/nodejs/integration/sendgrid.ts @@ -0,0 +1,129 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a SendGrid Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const iSendgrid = new doppler.integration.Sendgrid("i_sendgrid", { + * name: "TF SendGrid", + * apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * }); + * const rsSendgrid = new doppler.rotatedsecret.Sendgrid("rs_sendgrid", { + * integration: iSendgrid.id, + * project: "backend", + * config: "dev", + * name: "SENDGRID", + * rotationPeriodSec: 2592000, + * scopes: [ + * "alerts.create", + * "alerts.read", + * ], + * }); + * ``` + */ +export class Sendgrid extends pulumi.CustomResource { + /** + * Get an existing Sendgrid resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: SendgridState, opts?: pulumi.CustomResourceOptions): Sendgrid { + return new Sendgrid(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/sendgrid:Sendgrid'; + + /** + * Returns true if the given object is an instance of Sendgrid. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Sendgrid { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Sendgrid.__pulumiType; + } + + /** + * The API Key + */ + declare public readonly apiKey: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a Sendgrid resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: SendgridArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SendgridArgs | SendgridState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as SendgridState | undefined; + resourceInputs["apiKey"] = state?.apiKey; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as SendgridArgs | undefined; + if (args?.apiKey === undefined && !opts.urn) { + throw new Error("Missing required property 'apiKey'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["apiKey"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(Sendgrid.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Sendgrid resources. + */ +export interface SendgridState { + /** + * The API Key + */ + apiKey?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Sendgrid resource. + */ +export interface SendgridArgs { + /** + * The API Key + */ + apiKey: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/integration/terraformCloud.ts b/sdk/nodejs/integration/terraformCloud.ts index 1a217df..c15c5a6 100644 --- a/sdk/nodejs/integration/terraformCloud.ts +++ b/sdk/nodejs/integration/terraformCloud.ts @@ -1,11 +1,38 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** + * Manage a Terraform Cloud Doppler integration. + * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as tfe from "@pulumi/tfe"; + * + * const prod = tfe.workspace({ + * name: "my-workspace-name", + * organization: "my-org-name", + * }); + * const prodTerraformCloud = new doppler.integration.TerraformCloud("prod", { + * name: "Production", + * apiKey: "my_api_key", + * }); + * const backendProd = new doppler.secretssync.TerraformCloud("backend_prod", { + * integration: prodTerraformCloud.id, + * project: "backend", + * config: "prd", + * syncTarget: "workspace", + * workspaceId: prod.id, + * variableSyncType: "terraform", + * nameTransform: "lowercase", + * deleteBehavior: "leave_in_target", + * }); + * ``` */ export class TerraformCloud extends pulumi.CustomResource { /** @@ -35,11 +62,14 @@ export class TerraformCloud extends pulumi.CustomResource { return obj['__pulumiType'] === TerraformCloud.__pulumiType; } - public readonly apiKey!: pulumi.Output; + /** + * A Terraform Cloud API key. + */ + declare public readonly apiKey: pulumi.Output; /** * The name of the integration */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Create a TerraformCloud resource with the given unique name, arguments, and options. @@ -54,18 +84,18 @@ export class TerraformCloud extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as TerraformCloudState | undefined; - resourceInputs["apiKey"] = state ? state.apiKey : undefined; - resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["apiKey"] = state?.apiKey; + resourceInputs["name"] = state?.name; } else { const args = argsOrState as TerraformCloudArgs | undefined; - if ((!args || args.apiKey === undefined) && !opts.urn) { + if (args?.apiKey === undefined && !opts.urn) { throw new Error("Missing required property 'apiKey'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["name"] = args?.name; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["apiKey"] }; @@ -78,17 +108,23 @@ export class TerraformCloud extends pulumi.CustomResource { * Input properties used for looking up and filtering TerraformCloud resources. */ export interface TerraformCloudState { - apiKey?: pulumi.Input; + /** + * A Terraform Cloud API key. + */ + apiKey?: pulumi.Input; /** * The name of the integration */ - name?: pulumi.Input; + name?: pulumi.Input; } /** * The set of arguments for constructing a TerraformCloud resource. */ export interface TerraformCloudArgs { + /** + * A Terraform Cloud API key. + */ apiKey: pulumi.Input; /** * The name of the integration diff --git a/sdk/nodejs/integration/twilio.ts b/sdk/nodejs/integration/twilio.ts new file mode 100644 index 0000000..6b93ae2 --- /dev/null +++ b/sdk/nodejs/integration/twilio.ts @@ -0,0 +1,161 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a Twilio Doppler integration. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const iTwilio = new doppler.integration.Twilio("i_twilio", { + * name: "TF Twilio", + * accountSid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * keySid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * keySecret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + * }); + * const rsTwilio = new doppler.rotatedsecret.Twilio("rs_twilio", { + * integration: iTwilio.id, + * project: "backend", + * config: "dev", + * name: "TWILIO", + * rotationPeriodSec: 2592000, + * }); + * ``` + */ +export class Twilio extends pulumi.CustomResource { + /** + * Get an existing Twilio resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: TwilioState, opts?: pulumi.CustomResourceOptions): Twilio { + return new Twilio(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:integration/twilio:Twilio'; + + /** + * Returns true if the given object is an instance of Twilio. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Twilio { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Twilio.__pulumiType; + } + + /** + * The Account SID + */ + declare public readonly accountSid: pulumi.Output; + /** + * The Key Secret + */ + declare public readonly keySecret: pulumi.Output; + /** + * The Key SID (cannot equal accountSID) + */ + declare public readonly keySid: pulumi.Output; + /** + * The name of the integration + */ + declare public readonly name: pulumi.Output; + + /** + * Create a Twilio resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: TwilioArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: TwilioArgs | TwilioState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as TwilioState | undefined; + resourceInputs["accountSid"] = state?.accountSid; + resourceInputs["keySecret"] = state?.keySecret; + resourceInputs["keySid"] = state?.keySid; + resourceInputs["name"] = state?.name; + } else { + const args = argsOrState as TwilioArgs | undefined; + if (args?.accountSid === undefined && !opts.urn) { + throw new Error("Missing required property 'accountSid'"); + } + if (args?.keySecret === undefined && !opts.urn) { + throw new Error("Missing required property 'keySecret'"); + } + if (args?.keySid === undefined && !opts.urn) { + throw new Error("Missing required property 'keySid'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["accountSid"] = args?.accountSid; + resourceInputs["keySecret"] = args?.keySecret ? pulumi.secret(args.keySecret) : undefined; + resourceInputs["keySid"] = args?.keySid; + resourceInputs["name"] = args?.name; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["keySecret"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(Twilio.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Twilio resources. + */ +export interface TwilioState { + /** + * The Account SID + */ + accountSid?: pulumi.Input; + /** + * The Key Secret + */ + keySecret?: pulumi.Input; + /** + * The Key SID (cannot equal accountSID) + */ + keySid?: pulumi.Input; + /** + * The name of the integration + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Twilio resource. + */ +export interface TwilioArgs { + /** + * The Account SID + */ + accountSid: pulumi.Input; + /** + * The Key Secret + */ + keySecret: pulumi.Input; + /** + * The Key SID (cannot equal accountSID) + */ + keySid: pulumi.Input; + /** + * The name of the integration + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 14b8d58..47ba7ce 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -1,29 +1,31 @@ { - "name": "@pulumiverse/doppler", - "version": "${VERSION}", - "description": "A Pulumi package for creating and managing doppler cloud resources.", + "name": "@dopplerhq/pulumi-doppler", + "version": "0.0.0-alpha.0+dev", + "description": "A Pulumi package for managing Doppler projects, secrets, and access.", "keywords": [ "pulumi", "doppler", + "secrets", + "secrets-management", "category/cloud" ], - "homepage": "https://www.pulumi.com", - "repository": "https://github.com/pulumiverse/pulumi-doppler", + "homepage": "https://www.doppler.com", + "repository": "https://github.com/DopplerHQ/pulumi-doppler", "license": "Apache-2.0", "scripts": { "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.0.0" + "@pulumi/pulumi": "^3.142.0" }, "devDependencies": { - "@types/mime": "^2.0.0", - "@types/node": "^10.0.0", - "typescript": "^4.3.5" + "@types/node": "^20", + "typescript": "^4.7.0" }, "pulumi": { "resource": true, "name": "doppler", - "server": "github://api.github.com/pulumiverse" + "version": "0.0.0-alpha.0+dev", + "server": "github://api.github.com/DopplerHQ" } } diff --git a/sdk/nodejs/project.ts b/sdk/nodejs/project.ts index b0738cc..82fb98c 100644 --- a/sdk/nodejs/project.ts +++ b/sdk/nodejs/project.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const backend = new doppler.Project("backend", { * name: "backend", @@ -56,11 +56,11 @@ export class Project extends pulumi.CustomResource { /** * The description of the Doppler project */ - public readonly description!: pulumi.Output; + declare public readonly description: pulumi.Output; /** * The name of the Doppler project */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Create a Project resource with the given unique name, arguments, and options. @@ -75,15 +75,15 @@ export class Project extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ProjectState | undefined; - resourceInputs["description"] = state ? state.description : undefined; - resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["description"] = state?.description; + resourceInputs["name"] = state?.name; } else { const args = argsOrState as ProjectArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - resourceInputs["description"] = args ? args.description : undefined; - resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["description"] = args?.description; + resourceInputs["name"] = args?.name; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Project.__pulumiType, name, resourceInputs, opts); @@ -97,11 +97,11 @@ export interface ProjectState { /** * The description of the Doppler project */ - description?: pulumi.Input; + description?: pulumi.Input; /** * The name of the Doppler project */ - name?: pulumi.Input; + name?: pulumi.Input; } /** @@ -111,7 +111,7 @@ export interface ProjectArgs { /** * The description of the Doppler project */ - description?: pulumi.Input; + description?: pulumi.Input; /** * The name of the Doppler project */ diff --git a/sdk/nodejs/projectRole.ts b/sdk/nodejs/projectRole.ts index 536becf..4de5880 100644 --- a/sdk/nodejs/projectRole.ts +++ b/sdk/nodejs/projectRole.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const logViewer = new doppler.ProjectRole("log_viewer", { * name: "Log Viewer", @@ -56,19 +56,19 @@ export class ProjectRole extends pulumi.CustomResource { /** * The role's unique identifier */ - public /*out*/ readonly identifier!: pulumi.Output; + declare public /*out*/ readonly identifier: pulumi.Output; /** * Whether or not the role is custom (as opposed to Doppler built-in) */ - public /*out*/ readonly isCustomRole!: pulumi.Output; + declare public /*out*/ readonly isCustomRole: pulumi.Output; /** * The name of the Doppler project role */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) */ - public readonly permissions!: pulumi.Output; + declare public readonly permissions: pulumi.Output; /** * Create a ProjectRole resource with the given unique name, arguments, and options. @@ -83,20 +83,20 @@ export class ProjectRole extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ProjectRoleState | undefined; - resourceInputs["identifier"] = state ? state.identifier : undefined; - resourceInputs["isCustomRole"] = state ? state.isCustomRole : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["permissions"] = state ? state.permissions : undefined; + resourceInputs["identifier"] = state?.identifier; + resourceInputs["isCustomRole"] = state?.isCustomRole; + resourceInputs["name"] = state?.name; + resourceInputs["permissions"] = state?.permissions; } else { const args = argsOrState as ProjectRoleArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - if ((!args || args.permissions === undefined) && !opts.urn) { + if (args?.permissions === undefined && !opts.urn) { throw new Error("Missing required property 'permissions'"); } - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["permissions"] = args ? args.permissions : undefined; + resourceInputs["name"] = args?.name; + resourceInputs["permissions"] = args?.permissions; resourceInputs["identifier"] = undefined /*out*/; resourceInputs["isCustomRole"] = undefined /*out*/; } @@ -112,19 +112,19 @@ export interface ProjectRoleState { /** * The role's unique identifier */ - identifier?: pulumi.Input; + identifier?: pulumi.Input; /** * Whether or not the role is custom (as opposed to Doppler built-in) */ - isCustomRole?: pulumi.Input; + isCustomRole?: pulumi.Input; /** * The name of the Doppler project role */ - name?: pulumi.Input; + name?: pulumi.Input; /** * A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) */ - permissions?: pulumi.Input[]>; + permissions?: pulumi.Input[] | undefined>; } /** diff --git a/sdk/nodejs/projectTag.ts b/sdk/nodejs/projectTag.ts new file mode 100644 index 0000000..dc7a68f --- /dev/null +++ b/sdk/nodejs/projectTag.ts @@ -0,0 +1,123 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Manage a Doppler tag assigned to a project. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const backend = new doppler.Tag("backend", {name: "Backend"}); + * const backendProjectTag = new doppler.ProjectTag("backend", { + * project: "backend", + * tagSlug: backend.slug, + * }); + * ``` + * + * ## Import + * + * ```sh + * $ pulumi import doppler:index/projectTag:ProjectTag default . + * ``` + */ +export class ProjectTag extends pulumi.CustomResource { + /** + * Get an existing ProjectTag resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: ProjectTagState, opts?: pulumi.CustomResourceOptions): ProjectTag { + return new ProjectTag(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/projectTag:ProjectTag'; + + /** + * Returns true if the given object is an instance of ProjectTag. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is ProjectTag { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ProjectTag.__pulumiType; + } + + /** + * The name of the Doppler project the tag is assigned to + */ + declare public readonly project: pulumi.Output; + /** + * The slug of the Doppler tag + */ + declare public readonly tagSlug: pulumi.Output; + + /** + * Create a ProjectTag resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ProjectTagArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ProjectTagArgs | ProjectTagState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ProjectTagState | undefined; + resourceInputs["project"] = state?.project; + resourceInputs["tagSlug"] = state?.tagSlug; + } else { + const args = argsOrState as ProjectTagArgs | undefined; + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.tagSlug === undefined && !opts.urn) { + throw new Error("Missing required property 'tagSlug'"); + } + resourceInputs["project"] = args?.project; + resourceInputs["tagSlug"] = args?.tagSlug; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(ProjectTag.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ProjectTag resources. + */ +export interface ProjectTagState { + /** + * The name of the Doppler project the tag is assigned to + */ + project?: pulumi.Input; + /** + * The slug of the Doppler tag + */ + tagSlug?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ProjectTag resource. + */ +export interface ProjectTagArgs { + /** + * The name of the Doppler project the tag is assigned to + */ + project: pulumi.Input; + /** + * The slug of the Doppler tag + */ + tagSlug: pulumi.Input; +} diff --git a/sdk/nodejs/projectmember/group.ts b/sdk/nodejs/projectmember/group.ts index 32212f5..d8e0dc3 100644 --- a/sdk/nodejs/projectmember/group.ts +++ b/sdk/nodejs/projectmember/group.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const backendEngineering = new doppler.projectmember.Group("backend_engineering", { * project: "backend", @@ -55,19 +55,19 @@ export class Group extends pulumi.CustomResource { /** * The environments in the project where this access will apply (null or omitted for roles with access to all environments) */ - public readonly environments!: pulumi.Output; + declare public readonly environments: pulumi.Output; /** * The slug of the Doppler group */ - public readonly groupSlug!: pulumi.Output; + declare public readonly groupSlug: pulumi.Output; /** * The name of the Doppler project where the access is applied */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** - * The project role identifier for the access + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. */ - public readonly role!: pulumi.Output; + declare public readonly role: pulumi.Output; /** * Create a Group resource with the given unique name, arguments, and options. @@ -82,25 +82,25 @@ export class Group extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as GroupState | undefined; - resourceInputs["environments"] = state ? state.environments : undefined; - resourceInputs["groupSlug"] = state ? state.groupSlug : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["role"] = state ? state.role : undefined; + resourceInputs["environments"] = state?.environments; + resourceInputs["groupSlug"] = state?.groupSlug; + resourceInputs["project"] = state?.project; + resourceInputs["role"] = state?.role; } else { const args = argsOrState as GroupArgs | undefined; - if ((!args || args.groupSlug === undefined) && !opts.urn) { + if (args?.groupSlug === undefined && !opts.urn) { throw new Error("Missing required property 'groupSlug'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.role === undefined) && !opts.urn) { + if (args?.role === undefined && !opts.urn) { throw new Error("Missing required property 'role'"); } - resourceInputs["environments"] = args ? args.environments : undefined; - resourceInputs["groupSlug"] = args ? args.groupSlug : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["role"] = args ? args.role : undefined; + resourceInputs["environments"] = args?.environments; + resourceInputs["groupSlug"] = args?.groupSlug; + resourceInputs["project"] = args?.project; + resourceInputs["role"] = args?.role; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Group.__pulumiType, name, resourceInputs, opts); @@ -114,19 +114,19 @@ export interface GroupState { /** * The environments in the project where this access will apply (null or omitted for roles with access to all environments) */ - environments?: pulumi.Input[]>; + environments?: pulumi.Input[] | undefined>; /** * The slug of the Doppler group */ - groupSlug?: pulumi.Input; + groupSlug?: pulumi.Input; /** * The name of the Doppler project where the access is applied */ - project?: pulumi.Input; + project?: pulumi.Input; /** - * The project role identifier for the access + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. */ - role?: pulumi.Input; + role?: pulumi.Input; } /** @@ -136,7 +136,7 @@ export interface GroupArgs { /** * The environments in the project where this access will apply (null or omitted for roles with access to all environments) */ - environments?: pulumi.Input[]>; + environments?: pulumi.Input[] | undefined>; /** * The slug of the Doppler group */ @@ -146,7 +146,7 @@ export interface GroupArgs { */ project: pulumi.Input; /** - * The project role identifier for the access + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. */ role: pulumi.Input; } diff --git a/sdk/nodejs/projectmember/index.ts b/sdk/nodejs/projectmember/index.ts index e049c9d..207e44d 100644 --- a/sdk/nodejs/projectmember/index.ts +++ b/sdk/nodejs/projectmember/index.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -15,6 +15,11 @@ export type ServiceAccount = import("./serviceAccount").ServiceAccount; export const ServiceAccount: typeof import("./serviceAccount").ServiceAccount = null as any; utilities.lazyLoad(exports, ["ServiceAccount"], () => require("./serviceAccount")); +export { UserArgs, UserState } from "./user"; +export type User = import("./user").User; +export const User: typeof import("./user").User = null as any; +utilities.lazyLoad(exports, ["User"], () => require("./user")); + const _module = { version: utilities.getVersion(), @@ -24,6 +29,8 @@ const _module = { return new Group(name, undefined, { urn }) case "doppler:projectMember/serviceAccount:ServiceAccount": return new ServiceAccount(name, undefined, { urn }) + case "doppler:projectMember/user:User": + return new User(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } @@ -31,3 +38,4 @@ const _module = { }; pulumi.runtime.registerResourceModule("doppler", "projectMember/group", _module) pulumi.runtime.registerResourceModule("doppler", "projectMember/serviceAccount", _module) +pulumi.runtime.registerResourceModule("doppler", "projectMember/user", _module) diff --git a/sdk/nodejs/projectmember/serviceAccount.ts b/sdk/nodejs/projectmember/serviceAccount.ts index 1374e03..21544f6 100644 --- a/sdk/nodejs/projectmember/serviceAccount.ts +++ b/sdk/nodejs/projectmember/serviceAccount.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const backendCi = new doppler.projectmember.ServiceAccount("backend_ci", { * project: "backend", @@ -56,19 +56,19 @@ export class ServiceAccount extends pulumi.CustomResource { /** * The environments in the project where this access will apply (null or omitted for roles with access to all environments) */ - public readonly environments!: pulumi.Output; + declare public readonly environments: pulumi.Output; /** * The name of the Doppler project where the access is applied */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** - * The project role identifier for the access + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. */ - public readonly role!: pulumi.Output; + declare public readonly role: pulumi.Output; /** * The slug of the Doppler service account */ - public readonly serviceAccountSlug!: pulumi.Output; + declare public readonly serviceAccountSlug: pulumi.Output; /** * Create a ServiceAccount resource with the given unique name, arguments, and options. @@ -83,25 +83,25 @@ export class ServiceAccount extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ServiceAccountState | undefined; - resourceInputs["environments"] = state ? state.environments : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["role"] = state ? state.role : undefined; - resourceInputs["serviceAccountSlug"] = state ? state.serviceAccountSlug : undefined; + resourceInputs["environments"] = state?.environments; + resourceInputs["project"] = state?.project; + resourceInputs["role"] = state?.role; + resourceInputs["serviceAccountSlug"] = state?.serviceAccountSlug; } else { const args = argsOrState as ServiceAccountArgs | undefined; - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.role === undefined) && !opts.urn) { + if (args?.role === undefined && !opts.urn) { throw new Error("Missing required property 'role'"); } - if ((!args || args.serviceAccountSlug === undefined) && !opts.urn) { + if (args?.serviceAccountSlug === undefined && !opts.urn) { throw new Error("Missing required property 'serviceAccountSlug'"); } - resourceInputs["environments"] = args ? args.environments : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["role"] = args ? args.role : undefined; - resourceInputs["serviceAccountSlug"] = args ? args.serviceAccountSlug : undefined; + resourceInputs["environments"] = args?.environments; + resourceInputs["project"] = args?.project; + resourceInputs["role"] = args?.role; + resourceInputs["serviceAccountSlug"] = args?.serviceAccountSlug; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ServiceAccount.__pulumiType, name, resourceInputs, opts); @@ -115,19 +115,19 @@ export interface ServiceAccountState { /** * The environments in the project where this access will apply (null or omitted for roles with access to all environments) */ - environments?: pulumi.Input[]>; + environments?: pulumi.Input[] | undefined>; /** * The name of the Doppler project where the access is applied */ - project?: pulumi.Input; + project?: pulumi.Input; /** - * The project role identifier for the access + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. */ - role?: pulumi.Input; + role?: pulumi.Input; /** * The slug of the Doppler service account */ - serviceAccountSlug?: pulumi.Input; + serviceAccountSlug?: pulumi.Input; } /** @@ -137,13 +137,13 @@ export interface ServiceAccountArgs { /** * The environments in the project where this access will apply (null or omitted for roles with access to all environments) */ - environments?: pulumi.Input[]>; + environments?: pulumi.Input[] | undefined>; /** * The name of the Doppler project where the access is applied */ project: pulumi.Input; /** - * The project role identifier for the access + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. */ role: pulumi.Input; /** diff --git a/sdk/nodejs/projectmember/user.ts b/sdk/nodejs/projectmember/user.ts new file mode 100644 index 0000000..17048db --- /dev/null +++ b/sdk/nodejs/projectmember/user.ts @@ -0,0 +1,155 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a Doppler project user member. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const brian = doppler.getUser({ + * email: "brian@doppler.com", + * }); + * const backendBrian = new doppler.projectmember.User("backend_brian", { + * project: "backend", + * userSlug: brian.then(brian => brian.slug), + * role: "collaborator", + * environments: [ + * "dev", + * "stg", + * ], + * }); + * ``` + */ +export class User extends pulumi.CustomResource { + /** + * Get an existing User resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: UserState, opts?: pulumi.CustomResourceOptions): User { + return new User(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:projectMember/user:User'; + + /** + * Returns true if the given object is an instance of User. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is User { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === User.__pulumiType; + } + + /** + * The environments in the project where this access will apply (null or omitted for roles with access to all environments) + */ + declare public readonly environments: pulumi.Output; + /** + * The name of the Doppler project where the access is applied + */ + declare public readonly project: pulumi.Output; + /** + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + */ + declare public readonly role: pulumi.Output; + /** + * The slug of the Doppler workplace user + */ + declare public readonly userSlug: pulumi.Output; + + /** + * Create a User resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: UserArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: UserArgs | UserState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as UserState | undefined; + resourceInputs["environments"] = state?.environments; + resourceInputs["project"] = state?.project; + resourceInputs["role"] = state?.role; + resourceInputs["userSlug"] = state?.userSlug; + } else { + const args = argsOrState as UserArgs | undefined; + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.role === undefined && !opts.urn) { + throw new Error("Missing required property 'role'"); + } + if (args?.userSlug === undefined && !opts.urn) { + throw new Error("Missing required property 'userSlug'"); + } + resourceInputs["environments"] = args?.environments; + resourceInputs["project"] = args?.project; + resourceInputs["role"] = args?.role; + resourceInputs["userSlug"] = args?.userSlug; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(User.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering User resources. + */ +export interface UserState { + /** + * The environments in the project where this access will apply (null or omitted for roles with access to all environments) + */ + environments?: pulumi.Input[] | undefined>; + /** + * The name of the Doppler project where the access is applied + */ + project?: pulumi.Input; + /** + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + */ + role?: pulumi.Input; + /** + * The slug of the Doppler workplace user + */ + userSlug?: pulumi.Input; +} + +/** + * The set of arguments for constructing a User resource. + */ +export interface UserArgs { + /** + * The environments in the project where this access will apply (null or omitted for roles with access to all environments) + */ + environments?: pulumi.Input[] | undefined>; + /** + * The name of the Doppler project where the access is applied + */ + project: pulumi.Input; + /** + * The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `noAccess`), or the slug for a custom project role. + */ + role: pulumi.Input; + /** + * The slug of the Doppler workplace user + */ + userSlug: pulumi.Input; +} diff --git a/sdk/nodejs/provider.ts b/sdk/nodejs/provider.ts index 38d30f6..798f97b 100644 --- a/sdk/nodejs/provider.ts +++ b/sdk/nodejs/provider.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -26,13 +26,25 @@ export class Provider extends pulumi.ProviderResource { } /** - * A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. + * A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. */ - public readonly dopplerToken!: pulumi.Output; + declare public readonly dopplerToken: pulumi.Output; /** * The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. */ - public readonly host!: pulumi.Output; + declare public readonly host: pulumi.Output; + /** + * The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + */ + declare public readonly oidcIdentity: pulumi.Output; + /** + * A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + */ + declare public readonly oidcToken: pulumi.Output; + /** + * A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + */ + declare public readonly oidcTokenFile: pulumi.Output; /** * Create a Provider resource with the given unique name, arguments, and options. @@ -41,20 +53,31 @@ export class Provider extends pulumi.ProviderResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions) { + constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; { - if ((!args || args.dopplerToken === undefined) && !opts.urn) { - throw new Error("Missing required property 'dopplerToken'"); - } - resourceInputs["dopplerToken"] = args ? args.dopplerToken : undefined; - resourceInputs["host"] = args ? args.host : undefined; - resourceInputs["verifyTls"] = pulumi.output(args ? args.verifyTls : undefined).apply(JSON.stringify); + resourceInputs["dopplerToken"] = args?.dopplerToken ? pulumi.secret(args.dopplerToken) : undefined; + resourceInputs["host"] = args?.host; + resourceInputs["oidcIdentity"] = args?.oidcIdentity; + resourceInputs["oidcToken"] = args?.oidcToken ? pulumi.secret(args.oidcToken) : undefined; + resourceInputs["oidcTokenFile"] = args?.oidcTokenFile; + resourceInputs["verifyTls"] = pulumi.output(args?.verifyTls).apply(JSON.stringify); } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["dopplerToken", "oidcToken"] }; + opts = pulumi.mergeOptions(opts, secretOpts); super(Provider.__pulumiType, name, resourceInputs, opts); } + + /** + * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider. + */ + terraformConfig(): pulumi.Output { + return pulumi.runtime.call("pulumi:providers:doppler/terraformConfig", { + "__self__": this, + }, this); + } } /** @@ -62,15 +85,37 @@ export class Provider extends pulumi.ProviderResource { */ export interface ProviderArgs { /** - * A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. + * A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `dopplerToken` or OIDC authentication (`oidcIdentity` + `oidcToken`/`oidcTokenFile`) may be specified. */ - dopplerToken: pulumi.Input; + dopplerToken?: pulumi.Input; /** * The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. */ - host?: pulumi.Input; + host?: pulumi.Input; + /** + * The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + */ + oidcIdentity?: pulumi.Input; + /** + * A JWT token to use for OIDC authentication. Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + */ + oidcToken?: pulumi.Input; + /** + * A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidcToken` or `oidcTokenFile` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + */ + oidcTokenFile?: pulumi.Input; /** * Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. */ - verifyTls?: pulumi.Input; + verifyTls?: pulumi.Input; +} + +export namespace Provider { + /** + * The results of the Provider.terraformConfig method. + */ + export interface TerraformConfigResult { + readonly result: {[key: string]: any}; + } + } diff --git a/sdk/nodejs/rotatedsecret/awsIamUserKeys.ts b/sdk/nodejs/rotatedsecret/awsIamUserKeys.ts new file mode 100644 index 0000000..29a6416 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/awsIamUserKeys.ts @@ -0,0 +1,169 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +export class AwsIamUserKeys extends pulumi.CustomResource { + /** + * Get an existing AwsIamUserKeys resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsIamUserKeysState, opts?: pulumi.CustomResourceOptions): AwsIamUserKeys { + return new AwsIamUserKeys(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys'; + + /** + * Returns true if the given object is an instance of AwsIamUserKeys. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsIamUserKeys { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsIamUserKeys.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + /** + * The IAM username (excluding ARN and scope prefix) + */ + declare public readonly username: pulumi.Output; + + /** + * Create a AwsIamUserKeys resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsIamUserKeysArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsIamUserKeysArgs | AwsIamUserKeysState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsIamUserKeysState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + resourceInputs["username"] = state?.username; + } else { + const args = argsOrState as AwsIamUserKeysArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + if (args?.username === undefined && !opts.urn) { + throw new Error("Missing required property 'username'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + resourceInputs["username"] = args?.username; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AwsIamUserKeys.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsIamUserKeys resources. + */ +export interface AwsIamUserKeysState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; + /** + * The IAM username (excluding ARN and scope prefix) + */ + username?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsIamUserKeys resource. + */ +export interface AwsIamUserKeysArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; + /** + * The IAM username (excluding ARN and scope prefix) + */ + username: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/awsMssql.ts b/sdk/nodejs/rotatedsecret/awsMssql.ts new file mode 100644 index 0000000..68723a3 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/awsMssql.ts @@ -0,0 +1,222 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +export class AwsMssql extends pulumi.CustomResource { + /** + * Get an existing AwsMssql resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsMssqlState, opts?: pulumi.CustomResourceOptions): AwsMssql { + return new AwsMssql(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/awsMssql:AwsMssql'; + + /** + * Returns true if the given object is an instance of AwsMssql. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsMssql { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsMssql.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * Rotated secret credentials + */ + declare public readonly credentials: pulumi.Output; + /** + * The DB database + */ + declare public readonly database: pulumi.Output; + /** + * The DB Host + */ + declare public readonly host: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The DB Port + */ + declare public readonly port: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a AwsMssql resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsMssqlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsMssqlArgs | AwsMssqlState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsMssqlState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["credentials"] = state?.credentials; + resourceInputs["database"] = state?.database; + resourceInputs["host"] = state?.host; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["port"] = state?.port; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as AwsMssqlArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.credentials === undefined && !opts.urn) { + throw new Error("Missing required property 'credentials'"); + } + if (args?.database === undefined && !opts.urn) { + throw new Error("Missing required property 'database'"); + } + if (args?.host === undefined && !opts.urn) { + throw new Error("Missing required property 'host'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.port === undefined && !opts.urn) { + throw new Error("Missing required property 'port'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["credentials"] = args?.credentials; + resourceInputs["database"] = args?.database; + resourceInputs["host"] = args?.host; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["port"] = args?.port; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AwsMssql.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsMssql resources. + */ +export interface AwsMssqlState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials?: pulumi.Input[] | undefined>; + /** + * The DB database + */ + database?: pulumi.Input; + /** + * The DB Host + */ + host?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The DB Port + */ + port?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsMssql resource. + */ +export interface AwsMssqlArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials: pulumi.Input[]>; + /** + * The DB database + */ + database: pulumi.Input; + /** + * The DB Host + */ + host: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The DB Port + */ + port: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/awsMysql.ts b/sdk/nodejs/rotatedsecret/awsMysql.ts new file mode 100644 index 0000000..4e28484 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/awsMysql.ts @@ -0,0 +1,255 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +export class AwsMysql extends pulumi.CustomResource { + /** + * Get an existing AwsMysql resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsMysqlState, opts?: pulumi.CustomResourceOptions): AwsMysql { + return new AwsMysql(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/awsMysql:AwsMysql'; + + /** + * Returns true if the given object is an instance of AwsMysql. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsMysql { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsMysql.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * Rotated secret credentials + */ + declare public readonly credentials: pulumi.Output; + /** + * The DB database + */ + declare public readonly database: pulumi.Output; + /** + * The DB Host + */ + declare public readonly host: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The managing user password + */ + declare public readonly managingUserPassword: pulumi.Output; + /** + * The managing user username + */ + declare public readonly managingUserUsername: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The DB Port + */ + declare public readonly port: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a AwsMysql resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsMysqlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsMysqlArgs | AwsMysqlState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsMysqlState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["credentials"] = state?.credentials; + resourceInputs["database"] = state?.database; + resourceInputs["host"] = state?.host; + resourceInputs["integration"] = state?.integration; + resourceInputs["managingUserPassword"] = state?.managingUserPassword; + resourceInputs["managingUserUsername"] = state?.managingUserUsername; + resourceInputs["name"] = state?.name; + resourceInputs["port"] = state?.port; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as AwsMysqlArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.credentials === undefined && !opts.urn) { + throw new Error("Missing required property 'credentials'"); + } + if (args?.host === undefined && !opts.urn) { + throw new Error("Missing required property 'host'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.managingUserPassword === undefined && !opts.urn) { + throw new Error("Missing required property 'managingUserPassword'"); + } + if (args?.managingUserUsername === undefined && !opts.urn) { + throw new Error("Missing required property 'managingUserUsername'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.port === undefined && !opts.urn) { + throw new Error("Missing required property 'port'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["credentials"] = args?.credentials; + resourceInputs["database"] = args?.database; + resourceInputs["host"] = args?.host; + resourceInputs["integration"] = args?.integration; + resourceInputs["managingUserPassword"] = args?.managingUserPassword ? pulumi.secret(args.managingUserPassword) : undefined; + resourceInputs["managingUserUsername"] = args?.managingUserUsername; + resourceInputs["name"] = args?.name; + resourceInputs["port"] = args?.port; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["managingUserPassword"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(AwsMysql.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsMysql resources. + */ +export interface AwsMysqlState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials?: pulumi.Input[] | undefined>; + /** + * The DB database + */ + database?: pulumi.Input; + /** + * The DB Host + */ + host?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The managing user password + */ + managingUserPassword?: pulumi.Input; + /** + * The managing user username + */ + managingUserUsername?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The DB Port + */ + port?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsMysql resource. + */ +export interface AwsMysqlArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials: pulumi.Input[]>; + /** + * The DB database + */ + database?: pulumi.Input; + /** + * The DB Host + */ + host: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The managing user password + */ + managingUserPassword: pulumi.Input; + /** + * The managing user username + */ + managingUserUsername: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The DB Port + */ + port: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/awsPostgres.ts b/sdk/nodejs/rotatedsecret/awsPostgres.ts new file mode 100644 index 0000000..815d6f3 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/awsPostgres.ts @@ -0,0 +1,272 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +export class AwsPostgres extends pulumi.CustomResource { + /** + * Get an existing AwsPostgres resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AwsPostgresState, opts?: pulumi.CustomResourceOptions): AwsPostgres { + return new AwsPostgres(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/awsPostgres:AwsPostgres'; + + /** + * Returns true if the given object is an instance of AwsPostgres. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AwsPostgres { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AwsPostgres.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * Rotated secret credentials + */ + declare public readonly credentials: pulumi.Output; + /** + * The DB database + */ + declare public readonly database: pulumi.Output; + /** + * The DB Host + */ + declare public readonly host: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The managing user password + */ + declare public readonly managingUserPassword: pulumi.Output; + /** + * The managing user username + */ + declare public readonly managingUserUsername: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The DB Port + */ + declare public readonly port: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + /** + * An optional SSL CA for the AWS region the DB is in + */ + declare public readonly sslCa: pulumi.Output; + + /** + * Create a AwsPostgres resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AwsPostgresArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AwsPostgresArgs | AwsPostgresState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AwsPostgresState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["credentials"] = state?.credentials; + resourceInputs["database"] = state?.database; + resourceInputs["host"] = state?.host; + resourceInputs["integration"] = state?.integration; + resourceInputs["managingUserPassword"] = state?.managingUserPassword; + resourceInputs["managingUserUsername"] = state?.managingUserUsername; + resourceInputs["name"] = state?.name; + resourceInputs["port"] = state?.port; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + resourceInputs["sslCa"] = state?.sslCa; + } else { + const args = argsOrState as AwsPostgresArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.credentials === undefined && !opts.urn) { + throw new Error("Missing required property 'credentials'"); + } + if (args?.database === undefined && !opts.urn) { + throw new Error("Missing required property 'database'"); + } + if (args?.host === undefined && !opts.urn) { + throw new Error("Missing required property 'host'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.managingUserPassword === undefined && !opts.urn) { + throw new Error("Missing required property 'managingUserPassword'"); + } + if (args?.managingUserUsername === undefined && !opts.urn) { + throw new Error("Missing required property 'managingUserUsername'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.port === undefined && !opts.urn) { + throw new Error("Missing required property 'port'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["credentials"] = args?.credentials; + resourceInputs["database"] = args?.database; + resourceInputs["host"] = args?.host; + resourceInputs["integration"] = args?.integration; + resourceInputs["managingUserPassword"] = args?.managingUserPassword ? pulumi.secret(args.managingUserPassword) : undefined; + resourceInputs["managingUserUsername"] = args?.managingUserUsername; + resourceInputs["name"] = args?.name; + resourceInputs["port"] = args?.port; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + resourceInputs["sslCa"] = args?.sslCa; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const secretOpts = { additionalSecretOutputs: ["managingUserPassword"] }; + opts = pulumi.mergeOptions(opts, secretOpts); + super(AwsPostgres.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AwsPostgres resources. + */ +export interface AwsPostgresState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials?: pulumi.Input[] | undefined>; + /** + * The DB database + */ + database?: pulumi.Input; + /** + * The DB Host + */ + host?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The managing user password + */ + managingUserPassword?: pulumi.Input; + /** + * The managing user username + */ + managingUserUsername?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The DB Port + */ + port?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; + /** + * An optional SSL CA for the AWS region the DB is in + */ + sslCa?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AwsPostgres resource. + */ +export interface AwsPostgresArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials: pulumi.Input[]>; + /** + * The DB database + */ + database: pulumi.Input; + /** + * The DB Host + */ + host: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The managing user password + */ + managingUserPassword: pulumi.Input; + /** + * The managing user username + */ + managingUserUsername: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The DB Port + */ + port: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; + /** + * An optional SSL CA for the AWS region the DB is in + */ + sslCa?: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/cloudflareTokens.ts b/sdk/nodejs/rotatedsecret/cloudflareTokens.ts new file mode 100644 index 0000000..0af7b47 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/cloudflareTokens.ts @@ -0,0 +1,171 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +export class CloudflareTokens extends pulumi.CustomResource { + /** + * Get an existing CloudflareTokens resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: CloudflareTokensState, opts?: pulumi.CustomResourceOptions): CloudflareTokens { + return new CloudflareTokens(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/cloudflareTokens:CloudflareTokens'; + + /** + * Returns true if the given object is an instance of CloudflareTokens. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is CloudflareTokens { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === CloudflareTokens.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * Rotated secret credentials + */ + declare public readonly credentials: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a CloudflareTokens resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: CloudflareTokensArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: CloudflareTokensArgs | CloudflareTokensState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as CloudflareTokensState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["credentials"] = state?.credentials; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as CloudflareTokensArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.credentials === undefined && !opts.urn) { + throw new Error("Missing required property 'credentials'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["credentials"] = args?.credentials; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(CloudflareTokens.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering CloudflareTokens resources. + */ +export interface CloudflareTokensState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials?: pulumi.Input[] | undefined>; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a CloudflareTokens resource. + */ +export interface CloudflareTokensArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials: pulumi.Input[]>; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/gcpCloudsql.ts b/sdk/nodejs/rotatedsecret/gcpCloudsql.ts new file mode 100644 index 0000000..1a79826 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/gcpCloudsql.ts @@ -0,0 +1,188 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +export class GcpCloudsql extends pulumi.CustomResource { + /** + * Get an existing GcpCloudsql resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpCloudsqlState, opts?: pulumi.CustomResourceOptions): GcpCloudsql { + return new GcpCloudsql(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/gcpCloudsql:GcpCloudsql'; + + /** + * Returns true if the given object is an instance of GcpCloudsql. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpCloudsql { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpCloudsql.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * Rotated secret credentials + */ + declare public readonly credentials: pulumi.Output; + /** + * Cloud SQL database instance name + */ + declare public readonly databaseInstance: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a GcpCloudsql resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpCloudsqlArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpCloudsqlArgs | GcpCloudsqlState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpCloudsqlState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["credentials"] = state?.credentials; + resourceInputs["databaseInstance"] = state?.databaseInstance; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as GcpCloudsqlArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.credentials === undefined && !opts.urn) { + throw new Error("Missing required property 'credentials'"); + } + if (args?.databaseInstance === undefined && !opts.urn) { + throw new Error("Missing required property 'databaseInstance'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["credentials"] = args?.credentials; + resourceInputs["databaseInstance"] = args?.databaseInstance; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpCloudsql.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpCloudsql resources. + */ +export interface GcpCloudsqlState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials?: pulumi.Input[] | undefined>; + /** + * Cloud SQL database instance name + */ + databaseInstance?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpCloudsql resource. + */ +export interface GcpCloudsqlArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials: pulumi.Input[]>; + /** + * Cloud SQL database instance name + */ + databaseInstance: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/gcpServiceAccountKeys.ts b/sdk/nodejs/rotatedsecret/gcpServiceAccountKeys.ts new file mode 100644 index 0000000..e83e7bd --- /dev/null +++ b/sdk/nodejs/rotatedsecret/gcpServiceAccountKeys.ts @@ -0,0 +1,169 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +export class GcpServiceAccountKeys extends pulumi.CustomResource { + /** + * Get an existing GcpServiceAccountKeys resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpServiceAccountKeysState, opts?: pulumi.CustomResourceOptions): GcpServiceAccountKeys { + return new GcpServiceAccountKeys(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys'; + + /** + * Returns true if the given object is an instance of GcpServiceAccountKeys. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpServiceAccountKeys { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpServiceAccountKeys.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + /** + * The Service Account Email whose keys should be rotated + */ + declare public readonly serviceAccount: pulumi.Output; + + /** + * Create a GcpServiceAccountKeys resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpServiceAccountKeysArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpServiceAccountKeysArgs | GcpServiceAccountKeysState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpServiceAccountKeysState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + resourceInputs["serviceAccount"] = state?.serviceAccount; + } else { + const args = argsOrState as GcpServiceAccountKeysArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + if (args?.serviceAccount === undefined && !opts.urn) { + throw new Error("Missing required property 'serviceAccount'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + resourceInputs["serviceAccount"] = args?.serviceAccount; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpServiceAccountKeys.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpServiceAccountKeys resources. + */ +export interface GcpServiceAccountKeysState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; + /** + * The Service Account Email whose keys should be rotated + */ + serviceAccount?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpServiceAccountKeys resource. + */ +export interface GcpServiceAccountKeysArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; + /** + * The Service Account Email whose keys should be rotated + */ + serviceAccount: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/index.ts b/sdk/nodejs/rotatedsecret/index.ts new file mode 100644 index 0000000..d86aed3 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/index.ts @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +// Export members: +export { AwsIamUserKeysArgs, AwsIamUserKeysState } from "./awsIamUserKeys"; +export type AwsIamUserKeys = import("./awsIamUserKeys").AwsIamUserKeys; +export const AwsIamUserKeys: typeof import("./awsIamUserKeys").AwsIamUserKeys = null as any; +utilities.lazyLoad(exports, ["AwsIamUserKeys"], () => require("./awsIamUserKeys")); + +export { AwsMssqlArgs, AwsMssqlState } from "./awsMssql"; +export type AwsMssql = import("./awsMssql").AwsMssql; +export const AwsMssql: typeof import("./awsMssql").AwsMssql = null as any; +utilities.lazyLoad(exports, ["AwsMssql"], () => require("./awsMssql")); + +export { AwsMysqlArgs, AwsMysqlState } from "./awsMysql"; +export type AwsMysql = import("./awsMysql").AwsMysql; +export const AwsMysql: typeof import("./awsMysql").AwsMysql = null as any; +utilities.lazyLoad(exports, ["AwsMysql"], () => require("./awsMysql")); + +export { AwsPostgresArgs, AwsPostgresState } from "./awsPostgres"; +export type AwsPostgres = import("./awsPostgres").AwsPostgres; +export const AwsPostgres: typeof import("./awsPostgres").AwsPostgres = null as any; +utilities.lazyLoad(exports, ["AwsPostgres"], () => require("./awsPostgres")); + +export { CloudflareTokensArgs, CloudflareTokensState } from "./cloudflareTokens"; +export type CloudflareTokens = import("./cloudflareTokens").CloudflareTokens; +export const CloudflareTokens: typeof import("./cloudflareTokens").CloudflareTokens = null as any; +utilities.lazyLoad(exports, ["CloudflareTokens"], () => require("./cloudflareTokens")); + +export { GcpCloudsqlArgs, GcpCloudsqlState } from "./gcpCloudsql"; +export type GcpCloudsql = import("./gcpCloudsql").GcpCloudsql; +export const GcpCloudsql: typeof import("./gcpCloudsql").GcpCloudsql = null as any; +utilities.lazyLoad(exports, ["GcpCloudsql"], () => require("./gcpCloudsql")); + +export { GcpServiceAccountKeysArgs, GcpServiceAccountKeysState } from "./gcpServiceAccountKeys"; +export type GcpServiceAccountKeys = import("./gcpServiceAccountKeys").GcpServiceAccountKeys; +export const GcpServiceAccountKeys: typeof import("./gcpServiceAccountKeys").GcpServiceAccountKeys = null as any; +utilities.lazyLoad(exports, ["GcpServiceAccountKeys"], () => require("./gcpServiceAccountKeys")); + +export { MongodbAtlasArgs, MongodbAtlasState } from "./mongodbAtlas"; +export type MongodbAtlas = import("./mongodbAtlas").MongodbAtlas; +export const MongodbAtlas: typeof import("./mongodbAtlas").MongodbAtlas = null as any; +utilities.lazyLoad(exports, ["MongodbAtlas"], () => require("./mongodbAtlas")); + +export { OpenaiArgs, OpenaiState } from "./openai"; +export type Openai = import("./openai").Openai; +export const Openai: typeof import("./openai").Openai = null as any; +utilities.lazyLoad(exports, ["Openai"], () => require("./openai")); + +export { SendgridArgs, SendgridState } from "./sendgrid"; +export type Sendgrid = import("./sendgrid").Sendgrid; +export const Sendgrid: typeof import("./sendgrid").Sendgrid = null as any; +utilities.lazyLoad(exports, ["Sendgrid"], () => require("./sendgrid")); + +export { TwilioArgs, TwilioState } from "./twilio"; +export type Twilio = import("./twilio").Twilio; +export const Twilio: typeof import("./twilio").Twilio = null as any; +utilities.lazyLoad(exports, ["Twilio"], () => require("./twilio")); + + +const _module = { + version: utilities.getVersion(), + construct: (name: string, type: string, urn: string): pulumi.Resource => { + switch (type) { + case "doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys": + return new AwsIamUserKeys(name, undefined, { urn }) + case "doppler:rotatedSecret/awsMssql:AwsMssql": + return new AwsMssql(name, undefined, { urn }) + case "doppler:rotatedSecret/awsMysql:AwsMysql": + return new AwsMysql(name, undefined, { urn }) + case "doppler:rotatedSecret/awsPostgres:AwsPostgres": + return new AwsPostgres(name, undefined, { urn }) + case "doppler:rotatedSecret/cloudflareTokens:CloudflareTokens": + return new CloudflareTokens(name, undefined, { urn }) + case "doppler:rotatedSecret/gcpCloudsql:GcpCloudsql": + return new GcpCloudsql(name, undefined, { urn }) + case "doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys": + return new GcpServiceAccountKeys(name, undefined, { urn }) + case "doppler:rotatedSecret/mongodbAtlas:MongodbAtlas": + return new MongodbAtlas(name, undefined, { urn }) + case "doppler:rotatedSecret/openai:Openai": + return new Openai(name, undefined, { urn }) + case "doppler:rotatedSecret/sendgrid:Sendgrid": + return new Sendgrid(name, undefined, { urn }) + case "doppler:rotatedSecret/twilio:Twilio": + return new Twilio(name, undefined, { urn }) + default: + throw new Error(`unknown resource type ${type}`); + } + }, +}; +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/awsIamUserKeys", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/awsMssql", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/awsMysql", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/awsPostgres", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/cloudflareTokens", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/gcpCloudsql", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/gcpServiceAccountKeys", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/mongodbAtlas", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/openai", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/sendgrid", _module) +pulumi.runtime.registerResourceModule("doppler", "rotatedSecret/twilio", _module) diff --git a/sdk/nodejs/rotatedsecret/mongodbAtlas.ts b/sdk/nodejs/rotatedsecret/mongodbAtlas.ts new file mode 100644 index 0000000..4197c00 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/mongodbAtlas.ts @@ -0,0 +1,188 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as utilities from "../utilities"; + +export class MongodbAtlas extends pulumi.CustomResource { + /** + * Get an existing MongodbAtlas resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: MongodbAtlasState, opts?: pulumi.CustomResourceOptions): MongodbAtlas { + return new MongodbAtlas(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/mongodbAtlas:MongodbAtlas'; + + /** + * Returns true if the given object is an instance of MongodbAtlas. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is MongodbAtlas { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === MongodbAtlas.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * Rotated secret credentials + */ + declare public readonly credentials: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The Mongo DB Atlas Project ID + */ + declare public readonly projectId: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a MongodbAtlas resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: MongodbAtlasArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: MongodbAtlasArgs | MongodbAtlasState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as MongodbAtlasState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["credentials"] = state?.credentials; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["projectId"] = state?.projectId; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as MongodbAtlasArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.credentials === undefined && !opts.urn) { + throw new Error("Missing required property 'credentials'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.projectId === undefined && !opts.urn) { + throw new Error("Missing required property 'projectId'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["credentials"] = args?.credentials; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["projectId"] = args?.projectId; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(MongodbAtlas.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering MongodbAtlas resources. + */ +export interface MongodbAtlasState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials?: pulumi.Input[] | undefined>; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The Mongo DB Atlas Project ID + */ + projectId?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a MongodbAtlas resource. + */ +export interface MongodbAtlasArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * Rotated secret credentials + */ + credentials: pulumi.Input[]>; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The Mongo DB Atlas Project ID + */ + projectId: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/openai.ts b/sdk/nodejs/rotatedsecret/openai.ts new file mode 100644 index 0000000..bbefa81 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/openai.ts @@ -0,0 +1,169 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +export class Openai extends pulumi.CustomResource { + /** + * Get an existing Openai resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: OpenaiState, opts?: pulumi.CustomResourceOptions): Openai { + return new Openai(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/openai:Openai'; + + /** + * Returns true if the given object is an instance of Openai. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Openai { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Openai.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The OpenAI project ID to create service accounts in + */ + declare public readonly projectId: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a Openai resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: OpenaiArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: OpenaiArgs | OpenaiState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as OpenaiState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["projectId"] = state?.projectId; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as OpenaiArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.projectId === undefined && !opts.urn) { + throw new Error("Missing required property 'projectId'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["projectId"] = args?.projectId; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(Openai.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Openai resources. + */ +export interface OpenaiState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The OpenAI project ID to create service accounts in + */ + projectId?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Openai resource. + */ +export interface OpenaiArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The OpenAI project ID to create service accounts in + */ + projectId: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/rotatedsecret/sendgrid.ts b/sdk/nodejs/rotatedsecret/sendgrid.ts new file mode 100644 index 0000000..54abde5 --- /dev/null +++ b/sdk/nodejs/rotatedsecret/sendgrid.ts @@ -0,0 +1,169 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +export class Sendgrid extends pulumi.CustomResource { + /** + * Get an existing Sendgrid resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: SendgridState, opts?: pulumi.CustomResourceOptions): Sendgrid { + return new Sendgrid(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/sendgrid:Sendgrid'; + + /** + * Returns true if the given object is an instance of Sendgrid. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Sendgrid { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Sendgrid.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + /** + * SendGrid scopes + */ + declare public readonly scopes: pulumi.Output; + + /** + * Create a Sendgrid resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: SendgridArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SendgridArgs | SendgridState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as SendgridState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + resourceInputs["scopes"] = state?.scopes; + } else { + const args = argsOrState as SendgridArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + if (args?.scopes === undefined && !opts.urn) { + throw new Error("Missing required property 'scopes'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + resourceInputs["scopes"] = args?.scopes; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(Sendgrid.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Sendgrid resources. + */ +export interface SendgridState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; + /** + * SendGrid scopes + */ + scopes?: pulumi.Input[] | undefined>; +} + +/** + * The set of arguments for constructing a Sendgrid resource. + */ +export interface SendgridArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; + /** + * SendGrid scopes + */ + scopes: pulumi.Input[]>; +} diff --git a/sdk/nodejs/rotatedsecret/twilio.ts b/sdk/nodejs/rotatedsecret/twilio.ts new file mode 100644 index 0000000..de0745e --- /dev/null +++ b/sdk/nodejs/rotatedsecret/twilio.ts @@ -0,0 +1,152 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +export class Twilio extends pulumi.CustomResource { + /** + * Get an existing Twilio resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: TwilioState, opts?: pulumi.CustomResourceOptions): Twilio { + return new Twilio(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:rotatedSecret/twilio:Twilio'; + + /** + * Returns true if the given object is an instance of Twilio. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Twilio { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Twilio.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The slug of the integration to use for this rotated secret + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the rotated secret + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * How frequently to rotate the secret + */ + declare public readonly rotationPeriodSec: pulumi.Output; + + /** + * Create a Twilio resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: TwilioArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: TwilioArgs | TwilioState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as TwilioState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["rotationPeriodSec"] = state?.rotationPeriodSec; + } else { + const args = argsOrState as TwilioArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.rotationPeriodSec === undefined && !opts.urn) { + throw new Error("Missing required property 'rotationPeriodSec'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["rotationPeriodSec"] = args?.rotationPeriodSec; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(Twilio.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Twilio resources. + */ +export interface TwilioState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration?: pulumi.Input; + /** + * The name of the rotated secret + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Twilio resource. + */ +export interface TwilioArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The slug of the integration to use for this rotated secret + */ + integration: pulumi.Input; + /** + * The name of the rotated secret + */ + name: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * How frequently to rotate the secret + */ + rotationPeriodSec: pulumi.Input; +} diff --git a/sdk/nodejs/secret.ts b/sdk/nodejs/secret.ts index 491ce6f..e21cc89 100644 --- a/sdk/nodejs/secret.ts +++ b/sdk/nodejs/secret.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -7,6 +7,26 @@ import * as utilities from "./utilities"; /** * Manage a single Doppler secret in a config. * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as random from "@pulumi/random"; + * + * const dbPassword = new random.index.Password("db_password", { + * length: 32, + * special: true, + * }); + * const dbPasswordSecret = new doppler.Secret("db_password", { + * project: "backend", + * config: "dev", + * name: "DB_PASSWORD", + * value: dbPassword.result, + * }); + * export const resourceValue = pulumi.unsecret(dbPasswordSecret.value); + * ``` + * * ## Import * * ```sh @@ -44,27 +64,31 @@ export class Secret extends pulumi.CustomResource { /** * The computed secret value, after resolving secret references */ - public /*out*/ readonly computed!: pulumi.Output; + declare public /*out*/ readonly computed: pulumi.Output; /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The name of the Doppler secret */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * The raw secret value */ - public readonly value!: pulumi.Output; + declare public readonly value: pulumi.Output; + /** + * The value type of the secret + */ + declare public readonly valueType: pulumi.Output; /** - * The visibility of the secret + * The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. */ - public readonly visibility!: pulumi.Output; + declare public readonly visibility: pulumi.Output; /** * Create a Secret resource with the given unique name, arguments, and options. @@ -79,31 +103,33 @@ export class Secret extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as SecretState | undefined; - resourceInputs["computed"] = state ? state.computed : undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["value"] = state ? state.value : undefined; - resourceInputs["visibility"] = state ? state.visibility : undefined; + resourceInputs["computed"] = state?.computed; + resourceInputs["config"] = state?.config; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["value"] = state?.value; + resourceInputs["valueType"] = state?.valueType; + resourceInputs["visibility"] = state?.visibility; } else { const args = argsOrState as SecretArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.value === undefined) && !opts.urn) { + if (args?.value === undefined && !opts.urn) { throw new Error("Missing required property 'value'"); } - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["config"] = args?.config; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; resourceInputs["value"] = args?.value ? pulumi.secret(args.value) : undefined; - resourceInputs["visibility"] = args ? args.visibility : undefined; + resourceInputs["valueType"] = args?.valueType; + resourceInputs["visibility"] = args?.visibility; resourceInputs["computed"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -120,27 +146,31 @@ export interface SecretState { /** * The computed secret value, after resolving secret references */ - computed?: pulumi.Input; + computed?: pulumi.Input; /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The name of the Doppler secret */ - name?: pulumi.Input; + name?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * The raw secret value */ - value?: pulumi.Input; + value?: pulumi.Input; + /** + * The value type of the secret + */ + valueType?: pulumi.Input; /** - * The visibility of the secret + * The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. */ - visibility?: pulumi.Input; + visibility?: pulumi.Input; } /** @@ -164,7 +194,11 @@ export interface SecretArgs { */ value: pulumi.Input; /** - * The visibility of the secret + * The value type of the secret + */ + valueType?: pulumi.Input; + /** + * The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. */ - visibility?: pulumi.Input; + visibility?: pulumi.Input; } diff --git a/sdk/nodejs/secretNote.ts b/sdk/nodejs/secretNote.ts new file mode 100644 index 0000000..946af4d --- /dev/null +++ b/sdk/nodejs/secretNote.ts @@ -0,0 +1,136 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Manage the note attached to a Doppler secret. Notes are scoped per project and secret name, and they apply across all configs in the project. + * + * The note resource is independent of `doppler.Secret`. A note can be declared for a secret managed inside or outside Terraform, as long as the secret exists in at least one config in the project. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const stripeKey = new doppler.SecretNote("stripe_key", { + * project: "backend", + * name: "STRIPE_SECRET_KEY", + * note: "Owner: payments team. Rotate quarterly via Stripe dashboard.", + * }); + * ``` + */ +export class SecretNote extends pulumi.CustomResource { + /** + * Get an existing SecretNote resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: SecretNoteState, opts?: pulumi.CustomResourceOptions): SecretNote { + return new SecretNote(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/secretNote:SecretNote'; + + /** + * Returns true if the given object is an instance of SecretNote. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is SecretNote { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === SecretNote.__pulumiType; + } + + /** + * The name of the secret. Notes are scoped per project + secret name and apply across all configs. + */ + declare public readonly name: pulumi.Output; + /** + * The note content to attach to the secret + */ + declare public readonly note: pulumi.Output; + /** + * The name of the Doppler project that owns the secret + */ + declare public readonly project: pulumi.Output; + + /** + * Create a SecretNote resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: SecretNoteArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SecretNoteArgs | SecretNoteState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as SecretNoteState | undefined; + resourceInputs["name"] = state?.name; + resourceInputs["note"] = state?.note; + resourceInputs["project"] = state?.project; + } else { + const args = argsOrState as SecretNoteArgs | undefined; + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.note === undefined && !opts.urn) { + throw new Error("Missing required property 'note'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + resourceInputs["name"] = args?.name; + resourceInputs["note"] = args?.note; + resourceInputs["project"] = args?.project; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(SecretNote.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering SecretNote resources. + */ +export interface SecretNoteState { + /** + * The name of the secret. Notes are scoped per project + secret name and apply across all configs. + */ + name?: pulumi.Input; + /** + * The note content to attach to the secret + */ + note?: pulumi.Input; + /** + * The name of the Doppler project that owns the secret + */ + project?: pulumi.Input; +} + +/** + * The set of arguments for constructing a SecretNote resource. + */ +export interface SecretNoteArgs { + /** + * The name of the secret. Notes are scoped per project + secret name and apply across all configs. + */ + name: pulumi.Input; + /** + * The note content to attach to the secret + */ + note: pulumi.Input; + /** + * The name of the Doppler project that owns the secret + */ + project: pulumi.Input; +} diff --git a/sdk/nodejs/secretssync/awsParameterStore.ts b/sdk/nodejs/secretssync/awsParameterStore.ts index 1c97b30..769ac50 100644 --- a/sdk/nodejs/secretssync/awsParameterStore.ts +++ b/sdk/nodejs/secretssync/awsParameterStore.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -12,26 +12,10 @@ import * as utilities from "../utilities"; * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * - * const dopplerParameterStore = new aws.iam.Role("doppler_parameter_store", { - * name: "doppler_parameter_store", - * assumeRolePolicy: JSON.stringify({ - * Version: "2012-10-17", - * Statement: [{ - * Effect: "Allow", - * Action: "sts:AssumeRole", - * Principal: { - * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", - * }, - * Condition: { - * StringEquals: { - * "sts:ExternalId": "", - * }, - * }, - * }], - * }), - * inlinePolicies: [{ + * const dopplerParameterStore = new aws.index.IamRole("doppler_parameter_store", { + * inlinePolicy: [{ * name: "doppler_secret_manager", * policy: JSON.stringify({ * Version: "2012-10-17", @@ -53,6 +37,22 @@ import * as utilities from "../utilities"; * }], * }), * }], + * name: "doppler_parameter_store", + * assumeRolePolicy: JSON.stringify({ + * Version: "2012-10-17", + * Statement: [{ + * Effect: "Allow", + * Action: "sts:AssumeRole", + * Principal: { + * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", + * }, + * Condition: { + * StringEquals: { + * "sts:ExternalId": "", + * }, + * }, + * }], + * }), * }); * const prod = new doppler.integration.AwsParameterStore("prod", { * name: "Production", @@ -100,42 +100,58 @@ export class AwsParameterStore extends pulumi.CustomResource { return obj['__pulumiType'] === AwsParameterStore.__pulumiType; } + /** + * Whether or not the parameters are explicitly stored as an advanced parameter + */ + declare public readonly advancedParameter: pulumi.Output; /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - public readonly deleteBehavior!: pulumi.Output; + declare public readonly deleteBehavior: pulumi.Output; /** * The slug of the integration to use for this sync */ - public readonly integration!: pulumi.Output; + declare public readonly integration: pulumi.Output; /** * The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) */ - public readonly kmsKeyId!: pulumi.Output; + declare public readonly kmsKeyId: pulumi.Output; + /** + * An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + */ + declare public readonly nameTransform: pulumi.Output; /** * The path to the parameters in AWS */ - public readonly path!: pulumi.Output; + declare public readonly path: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * The AWS region */ - public readonly region!: pulumi.Output; + declare public readonly region: pulumi.Output; /** * Whether or not the parameters are stored as a secure string */ - public readonly secureString!: pulumi.Output; + declare public readonly secureString: pulumi.Output; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + */ + declare public readonly syncStrategy: pulumi.Output; /** * AWS tags to attach to the parameters */ - public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + declare public readonly tags: pulumi.Output<{[key: string]: string} | undefined>; + /** + * Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + */ + declare public readonly updateResourceTags: pulumi.Output; /** * Create a AwsParameterStore resource with the given unique name, arguments, and options. @@ -150,41 +166,49 @@ export class AwsParameterStore extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as AwsParameterStoreState | undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["deleteBehavior"] = state ? state.deleteBehavior : undefined; - resourceInputs["integration"] = state ? state.integration : undefined; - resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined; - resourceInputs["path"] = state ? state.path : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["region"] = state ? state.region : undefined; - resourceInputs["secureString"] = state ? state.secureString : undefined; - resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["advancedParameter"] = state?.advancedParameter; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["kmsKeyId"] = state?.kmsKeyId; + resourceInputs["nameTransform"] = state?.nameTransform; + resourceInputs["path"] = state?.path; + resourceInputs["project"] = state?.project; + resourceInputs["region"] = state?.region; + resourceInputs["secureString"] = state?.secureString; + resourceInputs["syncStrategy"] = state?.syncStrategy; + resourceInputs["tags"] = state?.tags; + resourceInputs["updateResourceTags"] = state?.updateResourceTags; } else { const args = argsOrState as AwsParameterStoreArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.integration === undefined) && !opts.urn) { + if (args?.integration === undefined && !opts.urn) { throw new Error("Missing required property 'integration'"); } - if ((!args || args.path === undefined) && !opts.urn) { + if (args?.path === undefined && !opts.urn) { throw new Error("Missing required property 'path'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.region === undefined) && !opts.urn) { + if (args?.region === undefined && !opts.urn) { throw new Error("Missing required property 'region'"); } - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["deleteBehavior"] = args ? args.deleteBehavior : undefined; - resourceInputs["integration"] = args ? args.integration : undefined; - resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined; - resourceInputs["path"] = args ? args.path : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["region"] = args ? args.region : undefined; - resourceInputs["secureString"] = args ? args.secureString : undefined; - resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["advancedParameter"] = args?.advancedParameter; + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["kmsKeyId"] = args?.kmsKeyId; + resourceInputs["nameTransform"] = args?.nameTransform; + resourceInputs["path"] = args?.path; + resourceInputs["project"] = args?.project; + resourceInputs["region"] = args?.region; + resourceInputs["secureString"] = args?.secureString; + resourceInputs["syncStrategy"] = args?.syncStrategy; + resourceInputs["tags"] = args?.tags; + resourceInputs["updateResourceTags"] = args?.updateResourceTags; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AwsParameterStore.__pulumiType, name, resourceInputs, opts); @@ -195,48 +219,68 @@ export class AwsParameterStore extends pulumi.CustomResource { * Input properties used for looking up and filtering AwsParameterStore resources. */ export interface AwsParameterStoreState { + /** + * Whether or not the parameters are explicitly stored as an advanced parameter + */ + advancedParameter?: pulumi.Input; /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ - integration?: pulumi.Input; + integration?: pulumi.Input; /** * The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) */ - kmsKeyId?: pulumi.Input; + kmsKeyId?: pulumi.Input; + /** + * An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + */ + nameTransform?: pulumi.Input; /** * The path to the parameters in AWS */ - path?: pulumi.Input; + path?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * The AWS region */ - region?: pulumi.Input; + region?: pulumi.Input; /** * Whether or not the parameters are stored as a secure string */ - secureString?: pulumi.Input; + secureString?: pulumi.Input; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + */ + syncStrategy?: pulumi.Input; /** * AWS tags to attach to the parameters */ - tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + tags?: pulumi.Input<{[key: string]: pulumi.Input} | undefined>; + /** + * Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + */ + updateResourceTags?: pulumi.Input; } /** * The set of arguments for constructing a AwsParameterStore resource. */ export interface AwsParameterStoreArgs { + /** + * Whether or not the parameters are explicitly stored as an advanced parameter + */ + advancedParameter?: pulumi.Input; /** * The name of the Doppler config */ @@ -244,7 +288,7 @@ export interface AwsParameterStoreArgs { /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ @@ -252,7 +296,11 @@ export interface AwsParameterStoreArgs { /** * The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) */ - kmsKeyId?: pulumi.Input; + kmsKeyId?: pulumi.Input; + /** + * An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + */ + nameTransform?: pulumi.Input; /** * The path to the parameters in AWS */ @@ -268,9 +316,17 @@ export interface AwsParameterStoreArgs { /** * Whether or not the parameters are stored as a secure string */ - secureString?: pulumi.Input; + secureString?: pulumi.Input; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + */ + syncStrategy?: pulumi.Input; /** * AWS tags to attach to the parameters */ - tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + tags?: pulumi.Input<{[key: string]: pulumi.Input} | undefined>; + /** + * Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + */ + updateResourceTags?: pulumi.Input; } diff --git a/sdk/nodejs/secretssync/awsSecretsManager.ts b/sdk/nodejs/secretssync/awsSecretsManager.ts index da0e920..a9c6541 100644 --- a/sdk/nodejs/secretssync/awsSecretsManager.ts +++ b/sdk/nodejs/secretssync/awsSecretsManager.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -12,26 +12,10 @@ import * as utilities from "../utilities"; * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * - * const dopplerSecretsManager = new aws.iam.Role("doppler_secrets_manager", { - * name: "doppler_secrets_manager", - * assumeRolePolicy: JSON.stringify({ - * Version: "2012-10-17", - * Statement: [{ - * Effect: "Allow", - * Action: "sts:AssumeRole", - * Principal: { - * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", - * }, - * Condition: { - * StringEquals: { - * "sts:ExternalId": "", - * }, - * }, - * }], - * }), - * inlinePolicies: [{ + * const dopplerSecretsManager = new aws.index.IamRole("doppler_secrets_manager", { + * inlinePolicy: [{ * name: "doppler_secret_manager", * policy: JSON.stringify({ * Version: "2012-10-17", @@ -50,6 +34,22 @@ import * as utilities from "../utilities"; * }], * }), * }], + * name: "doppler_secrets_manager", + * assumeRolePolicy: JSON.stringify({ + * Version: "2012-10-17", + * Statement: [{ + * Effect: "Allow", + * Action: "sts:AssumeRole", + * Principal: { + * AWS: "arn:aws:iam::299900769157:user/doppler-integration-operator", + * }, + * Condition: { + * StringEquals: { + * "sts:ExternalId": "", + * }, + * }, + * }], + * }), * }); * const prod = new doppler.integration.AwsSecretsManager("prod", { * name: "Production", @@ -99,39 +99,55 @@ export class AwsSecretsManager extends pulumi.CustomResource { /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - public readonly deleteBehavior!: pulumi.Output; + declare public readonly deleteBehavior: pulumi.Output; /** * The slug of the integration to use for this sync */ - public readonly integration!: pulumi.Output; + declare public readonly integration: pulumi.Output; /** * The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) */ - public readonly kmsKeyId!: pulumi.Output; + declare public readonly kmsKeyId: pulumi.Output; + /** + * An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + */ + declare public readonly nameTransform: pulumi.Output; /** * The path to the secret in AWS */ - public readonly path!: pulumi.Output; + declare public readonly path: pulumi.Output; + /** + * The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + */ + declare public readonly pathBehavior: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * The AWS region */ - public readonly region!: pulumi.Output; + declare public readonly region: pulumi.Output; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + */ + declare public readonly syncStrategy: pulumi.Output; /** * AWS tags to attach to the secrets */ - public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + declare public readonly tags: pulumi.Output<{[key: string]: string} | undefined>; /** - * If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + * If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. */ - public readonly updateMetadata!: pulumi.Output; + declare public readonly updateMetadata: pulumi.Output; + /** + * Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + */ + declare public readonly updateResourceTags: pulumi.Output; /** * Create a AwsSecretsManager resource with the given unique name, arguments, and options. @@ -146,41 +162,49 @@ export class AwsSecretsManager extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as AwsSecretsManagerState | undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["deleteBehavior"] = state ? state.deleteBehavior : undefined; - resourceInputs["integration"] = state ? state.integration : undefined; - resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined; - resourceInputs["path"] = state ? state.path : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["region"] = state ? state.region : undefined; - resourceInputs["tags"] = state ? state.tags : undefined; - resourceInputs["updateMetadata"] = state ? state.updateMetadata : undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["kmsKeyId"] = state?.kmsKeyId; + resourceInputs["nameTransform"] = state?.nameTransform; + resourceInputs["path"] = state?.path; + resourceInputs["pathBehavior"] = state?.pathBehavior; + resourceInputs["project"] = state?.project; + resourceInputs["region"] = state?.region; + resourceInputs["syncStrategy"] = state?.syncStrategy; + resourceInputs["tags"] = state?.tags; + resourceInputs["updateMetadata"] = state?.updateMetadata; + resourceInputs["updateResourceTags"] = state?.updateResourceTags; } else { const args = argsOrState as AwsSecretsManagerArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.integration === undefined) && !opts.urn) { + if (args?.integration === undefined && !opts.urn) { throw new Error("Missing required property 'integration'"); } - if ((!args || args.path === undefined) && !opts.urn) { + if (args?.path === undefined && !opts.urn) { throw new Error("Missing required property 'path'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.region === undefined) && !opts.urn) { + if (args?.region === undefined && !opts.urn) { throw new Error("Missing required property 'region'"); } - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["deleteBehavior"] = args ? args.deleteBehavior : undefined; - resourceInputs["integration"] = args ? args.integration : undefined; - resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined; - resourceInputs["path"] = args ? args.path : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["region"] = args ? args.region : undefined; - resourceInputs["tags"] = args ? args.tags : undefined; - resourceInputs["updateMetadata"] = args ? args.updateMetadata : undefined; + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["kmsKeyId"] = args?.kmsKeyId; + resourceInputs["nameTransform"] = args?.nameTransform; + resourceInputs["path"] = args?.path; + resourceInputs["pathBehavior"] = args?.pathBehavior; + resourceInputs["project"] = args?.project; + resourceInputs["region"] = args?.region; + resourceInputs["syncStrategy"] = args?.syncStrategy; + resourceInputs["tags"] = args?.tags; + resourceInputs["updateMetadata"] = args?.updateMetadata; + resourceInputs["updateResourceTags"] = args?.updateResourceTags; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AwsSecretsManager.__pulumiType, name, resourceInputs, opts); @@ -194,39 +218,55 @@ export interface AwsSecretsManagerState { /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ - integration?: pulumi.Input; + integration?: pulumi.Input; /** * The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) */ - kmsKeyId?: pulumi.Input; + kmsKeyId?: pulumi.Input; + /** + * An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + */ + nameTransform?: pulumi.Input; /** * The path to the secret in AWS */ - path?: pulumi.Input; + path?: pulumi.Input; + /** + * The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + */ + pathBehavior?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * The AWS region */ - region?: pulumi.Input; + region?: pulumi.Input; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + */ + syncStrategy?: pulumi.Input; /** * AWS tags to attach to the secrets */ - tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + tags?: pulumi.Input<{[key: string]: pulumi.Input} | undefined>; /** - * If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + * If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. */ - updateMetadata?: pulumi.Input; + updateMetadata?: pulumi.Input; + /** + * Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + */ + updateResourceTags?: pulumi.Input; } /** @@ -240,7 +280,7 @@ export interface AwsSecretsManagerArgs { /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ @@ -248,11 +288,19 @@ export interface AwsSecretsManagerArgs { /** * The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) */ - kmsKeyId?: pulumi.Input; + kmsKeyId?: pulumi.Input; + /** + * An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + */ + nameTransform?: pulumi.Input; /** * The path to the secret in AWS */ path: pulumi.Input; + /** + * The behavior to modify the provided path. Either `addDopplerSuffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + */ + pathBehavior?: pulumi.Input; /** * The name of the Doppler project */ @@ -261,12 +309,20 @@ export interface AwsSecretsManagerArgs { * The AWS region */ region: pulumi.Input; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + */ + syncStrategy?: pulumi.Input; /** * AWS tags to attach to the secrets */ - tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + tags?: pulumi.Input<{[key: string]: pulumi.Input} | undefined>; + /** + * If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + */ + updateMetadata?: pulumi.Input; /** - * If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. + * Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) */ - updateMetadata?: pulumi.Input; + updateResourceTags?: pulumi.Input; } diff --git a/sdk/nodejs/secretssync/azureVault.ts b/sdk/nodejs/secretssync/azureVault.ts new file mode 100644 index 0000000..971b9c0 --- /dev/null +++ b/sdk/nodejs/secretssync/azureVault.ts @@ -0,0 +1,183 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage an Azure Vault Doppler sync. + */ +export class AzureVault extends pulumi.CustomResource { + /** + * Get an existing AzureVault resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: AzureVaultState, opts?: pulumi.CustomResourceOptions): AzureVault { + return new AzureVault(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:secretsSync/azureVault:AzureVault'; + + /** + * Returns true if the given object is an instance of AzureVault. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is AzureVault { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AzureVault.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + declare public readonly deleteBehavior: pulumi.Output; + /** + * The slug of the integration to use for this sync + */ + declare public readonly integration: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + */ + declare public readonly singleSecretName: pulumi.Output; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + */ + declare public readonly syncStrategy: pulumi.Output; + /** + * The Azure Vault URI for the vault secrets will be synced to. + */ + declare public readonly vaultUri: pulumi.Output; + + /** + * Create a AzureVault resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: AzureVaultArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AzureVaultArgs | AzureVaultState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AzureVaultState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["project"] = state?.project; + resourceInputs["singleSecretName"] = state?.singleSecretName; + resourceInputs["syncStrategy"] = state?.syncStrategy; + resourceInputs["vaultUri"] = state?.vaultUri; + } else { + const args = argsOrState as AzureVaultArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.syncStrategy === undefined && !opts.urn) { + throw new Error("Missing required property 'syncStrategy'"); + } + if (args?.vaultUri === undefined && !opts.urn) { + throw new Error("Missing required property 'vaultUri'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["project"] = args?.project; + resourceInputs["singleSecretName"] = args?.singleSecretName; + resourceInputs["syncStrategy"] = args?.syncStrategy; + resourceInputs["vaultUri"] = args?.vaultUri; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AzureVault.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AzureVault resources. + */ +export interface AzureVaultState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + */ + singleSecretName?: pulumi.Input; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + */ + syncStrategy?: pulumi.Input; + /** + * The Azure Vault URI for the vault secrets will be synced to. + */ + vaultUri?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AzureVault resource. + */ +export interface AzureVaultArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + */ + singleSecretName?: pulumi.Input; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + */ + syncStrategy: pulumi.Input; + /** + * The Azure Vault URI for the vault secrets will be synced to. + */ + vaultUri: pulumi.Input; +} diff --git a/sdk/nodejs/secretssync/circleci.ts b/sdk/nodejs/secretssync/circleci.ts index c40053c..98706c2 100644 --- a/sdk/nodejs/secretssync/circleci.ts +++ b/sdk/nodejs/secretssync/circleci.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const prod = new doppler.integration.Circleci("prod", { * name: "Production", @@ -59,31 +59,31 @@ export class Circleci extends pulumi.CustomResource { /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - public readonly deleteBehavior!: pulumi.Output; + declare public readonly deleteBehavior: pulumi.Output; /** * The slug of the integration to use for this sync */ - public readonly integration!: pulumi.Output; + declare public readonly integration: pulumi.Output; /** * The organization slug where the resource is located */ - public readonly organizationSlug!: pulumi.Output; + declare public readonly organizationSlug: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * The resource ID (either project or context) to sync to */ - public readonly resourceId!: pulumi.Output; + declare public readonly resourceId: pulumi.Output; /** * Either "project" or "context", based on the resource type to sync to */ - public readonly resourceType!: pulumi.Output; + declare public readonly resourceType: pulumi.Output; /** * Create a Circleci resource with the given unique name, arguments, and options. @@ -98,40 +98,40 @@ export class Circleci extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as CircleciState | undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["deleteBehavior"] = state ? state.deleteBehavior : undefined; - resourceInputs["integration"] = state ? state.integration : undefined; - resourceInputs["organizationSlug"] = state ? state.organizationSlug : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["resourceId"] = state ? state.resourceId : undefined; - resourceInputs["resourceType"] = state ? state.resourceType : undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["organizationSlug"] = state?.organizationSlug; + resourceInputs["project"] = state?.project; + resourceInputs["resourceId"] = state?.resourceId; + resourceInputs["resourceType"] = state?.resourceType; } else { const args = argsOrState as CircleciArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.integration === undefined) && !opts.urn) { + if (args?.integration === undefined && !opts.urn) { throw new Error("Missing required property 'integration'"); } - if ((!args || args.organizationSlug === undefined) && !opts.urn) { + if (args?.organizationSlug === undefined && !opts.urn) { throw new Error("Missing required property 'organizationSlug'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.resourceId === undefined) && !opts.urn) { + if (args?.resourceId === undefined && !opts.urn) { throw new Error("Missing required property 'resourceId'"); } - if ((!args || args.resourceType === undefined) && !opts.urn) { + if (args?.resourceType === undefined && !opts.urn) { throw new Error("Missing required property 'resourceType'"); } - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["deleteBehavior"] = args ? args.deleteBehavior : undefined; - resourceInputs["integration"] = args ? args.integration : undefined; - resourceInputs["organizationSlug"] = args ? args.organizationSlug : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["resourceId"] = args ? args.resourceId : undefined; - resourceInputs["resourceType"] = args ? args.resourceType : undefined; + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["organizationSlug"] = args?.organizationSlug; + resourceInputs["project"] = args?.project; + resourceInputs["resourceId"] = args?.resourceId; + resourceInputs["resourceType"] = args?.resourceType; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Circleci.__pulumiType, name, resourceInputs, opts); @@ -145,31 +145,31 @@ export interface CircleciState { /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ - integration?: pulumi.Input; + integration?: pulumi.Input; /** * The organization slug where the resource is located */ - organizationSlug?: pulumi.Input; + organizationSlug?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * The resource ID (either project or context) to sync to */ - resourceId?: pulumi.Input; + resourceId?: pulumi.Input; /** * Either "project" or "context", based on the resource type to sync to */ - resourceType?: pulumi.Input; + resourceType?: pulumi.Input; } /** @@ -183,7 +183,7 @@ export interface CircleciArgs { /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ diff --git a/sdk/nodejs/secretssync/flyio.ts b/sdk/nodejs/secretssync/flyio.ts index 0572f3d..9662106 100644 --- a/sdk/nodejs/secretssync/flyio.ts +++ b/sdk/nodejs/secretssync/flyio.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "../utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const prod = new doppler.integration.Flyio("prod", { * name: "TF Fly.io", @@ -58,27 +58,27 @@ export class Flyio extends pulumi.CustomResource { /** * The app ID */ - public readonly appId!: pulumi.Output; + declare public readonly appId: pulumi.Output; /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - public readonly deleteBehavior!: pulumi.Output; + declare public readonly deleteBehavior: pulumi.Output; /** * The slug of the integration to use for this sync */ - public readonly integration!: pulumi.Output; + declare public readonly integration: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * Whether or not to restart the Fly.io machines when secrets are updated */ - public readonly restartMachines!: pulumi.Output; + declare public readonly restartMachines: pulumi.Output; /** * Create a Flyio resource with the given unique name, arguments, and options. @@ -93,35 +93,35 @@ export class Flyio extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as FlyioState | undefined; - resourceInputs["appId"] = state ? state.appId : undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["deleteBehavior"] = state ? state.deleteBehavior : undefined; - resourceInputs["integration"] = state ? state.integration : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["restartMachines"] = state ? state.restartMachines : undefined; + resourceInputs["appId"] = state?.appId; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["project"] = state?.project; + resourceInputs["restartMachines"] = state?.restartMachines; } else { const args = argsOrState as FlyioArgs | undefined; - if ((!args || args.appId === undefined) && !opts.urn) { + if (args?.appId === undefined && !opts.urn) { throw new Error("Missing required property 'appId'"); } - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.integration === undefined) && !opts.urn) { + if (args?.integration === undefined && !opts.urn) { throw new Error("Missing required property 'integration'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.restartMachines === undefined) && !opts.urn) { + if (args?.restartMachines === undefined && !opts.urn) { throw new Error("Missing required property 'restartMachines'"); } - resourceInputs["appId"] = args ? args.appId : undefined; - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["deleteBehavior"] = args ? args.deleteBehavior : undefined; - resourceInputs["integration"] = args ? args.integration : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["restartMachines"] = args ? args.restartMachines : undefined; + resourceInputs["appId"] = args?.appId; + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["project"] = args?.project; + resourceInputs["restartMachines"] = args?.restartMachines; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Flyio.__pulumiType, name, resourceInputs, opts); @@ -135,27 +135,27 @@ export interface FlyioState { /** * The app ID */ - appId?: pulumi.Input; + appId?: pulumi.Input; /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ - integration?: pulumi.Input; + integration?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * Whether or not to restart the Fly.io machines when secrets are updated */ - restartMachines?: pulumi.Input; + restartMachines?: pulumi.Input; } /** @@ -173,7 +173,7 @@ export interface FlyioArgs { /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ diff --git a/sdk/nodejs/secretssync/gcpSecretManager.ts b/sdk/nodejs/secretssync/gcpSecretManager.ts new file mode 100644 index 0000000..c5be1af --- /dev/null +++ b/sdk/nodejs/secretssync/gcpSecretManager.ts @@ -0,0 +1,197 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GCP Secret Manager Doppler sync. + */ +export class GcpSecretManager extends pulumi.CustomResource { + /** + * Get an existing GcpSecretManager resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GcpSecretManagerState, opts?: pulumi.CustomResourceOptions): GcpSecretManager { + return new GcpSecretManager(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:secretsSync/gcpSecretManager:GcpSecretManager'; + + /** + * Returns true if the given object is an instance of GcpSecretManager. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GcpSecretManager { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GcpSecretManager.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + declare public readonly deleteBehavior: pulumi.Output; + /** + * Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + */ + declare public readonly format: pulumi.Output; + /** + * The slug of the integration to use for this sync + */ + declare public readonly integration: pulumi.Output; + /** + * The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + */ + declare public readonly name: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + */ + declare public readonly regions: pulumi.Output; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + */ + declare public readonly syncStrategy: pulumi.Output; + + /** + * Create a GcpSecretManager resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GcpSecretManagerArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GcpSecretManagerArgs | GcpSecretManagerState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GcpSecretManagerState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["format"] = state?.format; + resourceInputs["integration"] = state?.integration; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; + resourceInputs["regions"] = state?.regions; + resourceInputs["syncStrategy"] = state?.syncStrategy; + } else { + const args = argsOrState as GcpSecretManagerArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.regions === undefined && !opts.urn) { + throw new Error("Missing required property 'regions'"); + } + if (args?.syncStrategy === undefined && !opts.urn) { + throw new Error("Missing required property 'syncStrategy'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["format"] = args?.format; + resourceInputs["integration"] = args?.integration; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; + resourceInputs["regions"] = args?.regions; + resourceInputs["syncStrategy"] = args?.syncStrategy; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GcpSecretManager.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GcpSecretManager resources. + */ +export interface GcpSecretManagerState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + */ + format?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration?: pulumi.Input; + /** + * The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + */ + regions?: pulumi.Input[] | undefined>; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + */ + syncStrategy?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GcpSecretManager resource. + */ +export interface GcpSecretManagerArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + */ + format?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration: pulumi.Input; + /** + * The name used to store the secret when syncStrategy is set to `single-secret` (note that the integration's `gcpSecretPrefix` will be prepended to this). + */ + name?: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + */ + regions: pulumi.Input[]>; + /** + * Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + */ + syncStrategy: pulumi.Input; +} diff --git a/sdk/nodejs/secretssync/githubActions.ts b/sdk/nodejs/secretssync/githubActions.ts index d1db05e..45f9a60 100644 --- a/sdk/nodejs/secretssync/githubActions.ts +++ b/sdk/nodejs/secretssync/githubActions.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -38,35 +38,39 @@ export class GithubActions extends pulumi.CustomResource { /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - public readonly deleteBehavior!: pulumi.Output; + declare public readonly deleteBehavior: pulumi.Output; /** * The GitHub repo environment name to sync to (only used when `syncTarget` is set to "repo") */ - public readonly environmentName!: pulumi.Output; + declare public readonly environmentName: pulumi.Output; /** * The slug of the integration to use for this sync */ - public readonly integration!: pulumi.Output; + declare public readonly integration: pulumi.Output; /** * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") */ - public readonly orgScope!: pulumi.Output; + declare public readonly orgScope: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") */ - public readonly repoName!: pulumi.Output; + declare public readonly repoName: pulumi.Output; /** * Either "repo" or "org", based on the resource type to sync to */ - public readonly syncTarget!: pulumi.Output; + declare public readonly syncTarget: pulumi.Output; + /** + * When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + */ + declare public readonly syncUnmaskedAsVariables: pulumi.Output; /** * Create a GithubActions resource with the given unique name, arguments, and options. @@ -81,36 +85,38 @@ export class GithubActions extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as GithubActionsState | undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["deleteBehavior"] = state ? state.deleteBehavior : undefined; - resourceInputs["environmentName"] = state ? state.environmentName : undefined; - resourceInputs["integration"] = state ? state.integration : undefined; - resourceInputs["orgScope"] = state ? state.orgScope : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["repoName"] = state ? state.repoName : undefined; - resourceInputs["syncTarget"] = state ? state.syncTarget : undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["environmentName"] = state?.environmentName; + resourceInputs["integration"] = state?.integration; + resourceInputs["orgScope"] = state?.orgScope; + resourceInputs["project"] = state?.project; + resourceInputs["repoName"] = state?.repoName; + resourceInputs["syncTarget"] = state?.syncTarget; + resourceInputs["syncUnmaskedAsVariables"] = state?.syncUnmaskedAsVariables; } else { const args = argsOrState as GithubActionsArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.integration === undefined) && !opts.urn) { + if (args?.integration === undefined && !opts.urn) { throw new Error("Missing required property 'integration'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.syncTarget === undefined) && !opts.urn) { + if (args?.syncTarget === undefined && !opts.urn) { throw new Error("Missing required property 'syncTarget'"); } - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["deleteBehavior"] = args ? args.deleteBehavior : undefined; - resourceInputs["environmentName"] = args ? args.environmentName : undefined; - resourceInputs["integration"] = args ? args.integration : undefined; - resourceInputs["orgScope"] = args ? args.orgScope : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["repoName"] = args ? args.repoName : undefined; - resourceInputs["syncTarget"] = args ? args.syncTarget : undefined; + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["environmentName"] = args?.environmentName; + resourceInputs["integration"] = args?.integration; + resourceInputs["orgScope"] = args?.orgScope; + resourceInputs["project"] = args?.project; + resourceInputs["repoName"] = args?.repoName; + resourceInputs["syncTarget"] = args?.syncTarget; + resourceInputs["syncUnmaskedAsVariables"] = args?.syncUnmaskedAsVariables; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(GithubActions.__pulumiType, name, resourceInputs, opts); @@ -124,35 +130,39 @@ export interface GithubActionsState { /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The GitHub repo environment name to sync to (only used when `syncTarget` is set to "repo") */ - environmentName?: pulumi.Input; + environmentName?: pulumi.Input; /** * The slug of the integration to use for this sync */ - integration?: pulumi.Input; + integration?: pulumi.Input; /** * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") */ - orgScope?: pulumi.Input; + orgScope?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") */ - repoName?: pulumi.Input; + repoName?: pulumi.Input; /** * Either "repo" or "org", based on the resource type to sync to */ - syncTarget?: pulumi.Input; + syncTarget?: pulumi.Input; + /** + * When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + */ + syncUnmaskedAsVariables?: pulumi.Input; } /** @@ -166,11 +176,11 @@ export interface GithubActionsArgs { /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The GitHub repo environment name to sync to (only used when `syncTarget` is set to "repo") */ - environmentName?: pulumi.Input; + environmentName?: pulumi.Input; /** * The slug of the integration to use for this sync */ @@ -178,7 +188,7 @@ export interface GithubActionsArgs { /** * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") */ - orgScope?: pulumi.Input; + orgScope?: pulumi.Input; /** * The name of the Doppler project */ @@ -186,9 +196,13 @@ export interface GithubActionsArgs { /** * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") */ - repoName?: pulumi.Input; + repoName?: pulumi.Input; /** * Either "repo" or "org", based on the resource type to sync to */ syncTarget: pulumi.Input; + /** + * When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + */ + syncUnmaskedAsVariables?: pulumi.Input; } diff --git a/sdk/nodejs/secretssync/githubAgents.ts b/sdk/nodejs/secretssync/githubAgents.ts new file mode 100644 index 0000000..a7c9d56 --- /dev/null +++ b/sdk/nodejs/secretssync/githubAgents.ts @@ -0,0 +1,194 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GitHub Copilot Agents Doppler sync. + */ +export class GithubAgents extends pulumi.CustomResource { + /** + * Get an existing GithubAgents resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GithubAgentsState, opts?: pulumi.CustomResourceOptions): GithubAgents { + return new GithubAgents(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:secretsSync/githubAgents:GithubAgents'; + + /** + * Returns true if the given object is an instance of GithubAgents. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GithubAgents { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GithubAgents.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + declare public readonly deleteBehavior: pulumi.Output; + /** + * The slug of the integration to use for this sync + */ + declare public readonly integration: pulumi.Output; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + declare public readonly orgScope: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + declare public readonly repoName: pulumi.Output; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + declare public readonly syncTarget: pulumi.Output; + /** + * When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + */ + declare public readonly syncUnmaskedAsVariables: pulumi.Output; + + /** + * Create a GithubAgents resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GithubAgentsArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GithubAgentsArgs | GithubAgentsState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GithubAgentsState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["orgScope"] = state?.orgScope; + resourceInputs["project"] = state?.project; + resourceInputs["repoName"] = state?.repoName; + resourceInputs["syncTarget"] = state?.syncTarget; + resourceInputs["syncUnmaskedAsVariables"] = state?.syncUnmaskedAsVariables; + } else { + const args = argsOrState as GithubAgentsArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.syncTarget === undefined && !opts.urn) { + throw new Error("Missing required property 'syncTarget'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["orgScope"] = args?.orgScope; + resourceInputs["project"] = args?.project; + resourceInputs["repoName"] = args?.repoName; + resourceInputs["syncTarget"] = args?.syncTarget; + resourceInputs["syncUnmaskedAsVariables"] = args?.syncUnmaskedAsVariables; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GithubAgents.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GithubAgents resources. + */ +export interface GithubAgentsState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration?: pulumi.Input; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + orgScope?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + repoName?: pulumi.Input; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + syncTarget?: pulumi.Input; + /** + * When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + */ + syncUnmaskedAsVariables?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GithubAgents resource. + */ +export interface GithubAgentsArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration: pulumi.Input; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + orgScope?: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + repoName?: pulumi.Input; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + syncTarget: pulumi.Input; + /** + * When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + */ + syncUnmaskedAsVariables?: pulumi.Input; +} diff --git a/sdk/nodejs/secretssync/githubCodespaces.ts b/sdk/nodejs/secretssync/githubCodespaces.ts new file mode 100644 index 0000000..48effad --- /dev/null +++ b/sdk/nodejs/secretssync/githubCodespaces.ts @@ -0,0 +1,180 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GitHub Codespaces Doppler sync. + */ +export class GithubCodespaces extends pulumi.CustomResource { + /** + * Get an existing GithubCodespaces resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GithubCodespacesState, opts?: pulumi.CustomResourceOptions): GithubCodespaces { + return new GithubCodespaces(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:secretsSync/githubCodespaces:GithubCodespaces'; + + /** + * Returns true if the given object is an instance of GithubCodespaces. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GithubCodespaces { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GithubCodespaces.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + declare public readonly deleteBehavior: pulumi.Output; + /** + * The slug of the integration to use for this sync + */ + declare public readonly integration: pulumi.Output; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + declare public readonly orgScope: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + declare public readonly repoName: pulumi.Output; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + declare public readonly syncTarget: pulumi.Output; + + /** + * Create a GithubCodespaces resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GithubCodespacesArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GithubCodespacesArgs | GithubCodespacesState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GithubCodespacesState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["orgScope"] = state?.orgScope; + resourceInputs["project"] = state?.project; + resourceInputs["repoName"] = state?.repoName; + resourceInputs["syncTarget"] = state?.syncTarget; + } else { + const args = argsOrState as GithubCodespacesArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.syncTarget === undefined && !opts.urn) { + throw new Error("Missing required property 'syncTarget'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["orgScope"] = args?.orgScope; + resourceInputs["project"] = args?.project; + resourceInputs["repoName"] = args?.repoName; + resourceInputs["syncTarget"] = args?.syncTarget; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GithubCodespaces.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GithubCodespaces resources. + */ +export interface GithubCodespacesState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration?: pulumi.Input; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + orgScope?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + repoName?: pulumi.Input; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + syncTarget?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GithubCodespaces resource. + */ +export interface GithubCodespacesArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration: pulumi.Input; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + orgScope?: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + repoName?: pulumi.Input; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + syncTarget: pulumi.Input; +} diff --git a/sdk/nodejs/secretssync/githubDependabot.ts b/sdk/nodejs/secretssync/githubDependabot.ts new file mode 100644 index 0000000..4068ace --- /dev/null +++ b/sdk/nodejs/secretssync/githubDependabot.ts @@ -0,0 +1,180 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manage a GitHub Dependabot Doppler sync. + */ +export class GithubDependabot extends pulumi.CustomResource { + /** + * Get an existing GithubDependabot resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: GithubDependabotState, opts?: pulumi.CustomResourceOptions): GithubDependabot { + return new GithubDependabot(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:secretsSync/githubDependabot:GithubDependabot'; + + /** + * Returns true if the given object is an instance of GithubDependabot. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is GithubDependabot { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === GithubDependabot.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + declare public readonly deleteBehavior: pulumi.Output; + /** + * The slug of the integration to use for this sync + */ + declare public readonly integration: pulumi.Output; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + declare public readonly orgScope: pulumi.Output; + /** + * The name of the Doppler project + */ + declare public readonly project: pulumi.Output; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + declare public readonly repoName: pulumi.Output; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + declare public readonly syncTarget: pulumi.Output; + + /** + * Create a GithubDependabot resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: GithubDependabotArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: GithubDependabotArgs | GithubDependabotState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as GithubDependabotState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["orgScope"] = state?.orgScope; + resourceInputs["project"] = state?.project; + resourceInputs["repoName"] = state?.repoName; + resourceInputs["syncTarget"] = state?.syncTarget; + } else { + const args = argsOrState as GithubDependabotArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.integration === undefined && !opts.urn) { + throw new Error("Missing required property 'integration'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.syncTarget === undefined && !opts.urn) { + throw new Error("Missing required property 'syncTarget'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["orgScope"] = args?.orgScope; + resourceInputs["project"] = args?.project; + resourceInputs["repoName"] = args?.repoName; + resourceInputs["syncTarget"] = args?.syncTarget; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(GithubDependabot.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering GithubDependabot resources. + */ +export interface GithubDependabotState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration?: pulumi.Input; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + orgScope?: pulumi.Input; + /** + * The name of the Doppler project + */ + project?: pulumi.Input; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + repoName?: pulumi.Input; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + syncTarget?: pulumi.Input; +} + +/** + * The set of arguments for constructing a GithubDependabot resource. + */ +export interface GithubDependabotArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. + */ + deleteBehavior?: pulumi.Input; + /** + * The slug of the integration to use for this sync + */ + integration: pulumi.Input; + /** + * Either "all" or "private", based on the which repos you want to have access (only used when `syncTarget` is set to "org") + */ + orgScope?: pulumi.Input; + /** + * The name of the Doppler project + */ + project: pulumi.Input; + /** + * The GitHub repo name to sync to (only used when `syncTarget` is set to "repo") + */ + repoName?: pulumi.Input; + /** + * Either "repo" or "org", based on the resource type to sync to + */ + syncTarget: pulumi.Input; +} diff --git a/sdk/nodejs/secretssync/index.ts b/sdk/nodejs/secretssync/index.ts index 0bb04bc..a4f2c21 100644 --- a/sdk/nodejs/secretssync/index.ts +++ b/sdk/nodejs/secretssync/index.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -15,6 +15,11 @@ export type AwsSecretsManager = import("./awsSecretsManager").AwsSecretsManager; export const AwsSecretsManager: typeof import("./awsSecretsManager").AwsSecretsManager = null as any; utilities.lazyLoad(exports, ["AwsSecretsManager"], () => require("./awsSecretsManager")); +export { AzureVaultArgs, AzureVaultState } from "./azureVault"; +export type AzureVault = import("./azureVault").AzureVault; +export const AzureVault: typeof import("./azureVault").AzureVault = null as any; +utilities.lazyLoad(exports, ["AzureVault"], () => require("./azureVault")); + export { CircleciArgs, CircleciState } from "./circleci"; export type Circleci = import("./circleci").Circleci; export const Circleci: typeof import("./circleci").Circleci = null as any; @@ -25,11 +30,31 @@ export type Flyio = import("./flyio").Flyio; export const Flyio: typeof import("./flyio").Flyio = null as any; utilities.lazyLoad(exports, ["Flyio"], () => require("./flyio")); +export { GcpSecretManagerArgs, GcpSecretManagerState } from "./gcpSecretManager"; +export type GcpSecretManager = import("./gcpSecretManager").GcpSecretManager; +export const GcpSecretManager: typeof import("./gcpSecretManager").GcpSecretManager = null as any; +utilities.lazyLoad(exports, ["GcpSecretManager"], () => require("./gcpSecretManager")); + export { GithubActionsArgs, GithubActionsState } from "./githubActions"; export type GithubActions = import("./githubActions").GithubActions; export const GithubActions: typeof import("./githubActions").GithubActions = null as any; utilities.lazyLoad(exports, ["GithubActions"], () => require("./githubActions")); +export { GithubAgentsArgs, GithubAgentsState } from "./githubAgents"; +export type GithubAgents = import("./githubAgents").GithubAgents; +export const GithubAgents: typeof import("./githubAgents").GithubAgents = null as any; +utilities.lazyLoad(exports, ["GithubAgents"], () => require("./githubAgents")); + +export { GithubCodespacesArgs, GithubCodespacesState } from "./githubCodespaces"; +export type GithubCodespaces = import("./githubCodespaces").GithubCodespaces; +export const GithubCodespaces: typeof import("./githubCodespaces").GithubCodespaces = null as any; +utilities.lazyLoad(exports, ["GithubCodespaces"], () => require("./githubCodespaces")); + +export { GithubDependabotArgs, GithubDependabotState } from "./githubDependabot"; +export type GithubDependabot = import("./githubDependabot").GithubDependabot; +export const GithubDependabot: typeof import("./githubDependabot").GithubDependabot = null as any; +utilities.lazyLoad(exports, ["GithubDependabot"], () => require("./githubDependabot")); + export { TerraformCloudArgs, TerraformCloudState } from "./terraformCloud"; export type TerraformCloud = import("./terraformCloud").TerraformCloud; export const TerraformCloud: typeof import("./terraformCloud").TerraformCloud = null as any; @@ -44,12 +69,22 @@ const _module = { return new AwsParameterStore(name, undefined, { urn }) case "doppler:secretsSync/awsSecretsManager:AwsSecretsManager": return new AwsSecretsManager(name, undefined, { urn }) + case "doppler:secretsSync/azureVault:AzureVault": + return new AzureVault(name, undefined, { urn }) case "doppler:secretsSync/circleci:Circleci": return new Circleci(name, undefined, { urn }) case "doppler:secretsSync/flyio:Flyio": return new Flyio(name, undefined, { urn }) + case "doppler:secretsSync/gcpSecretManager:GcpSecretManager": + return new GcpSecretManager(name, undefined, { urn }) case "doppler:secretsSync/githubActions:GithubActions": return new GithubActions(name, undefined, { urn }) + case "doppler:secretsSync/githubAgents:GithubAgents": + return new GithubAgents(name, undefined, { urn }) + case "doppler:secretsSync/githubCodespaces:GithubCodespaces": + return new GithubCodespaces(name, undefined, { urn }) + case "doppler:secretsSync/githubDependabot:GithubDependabot": + return new GithubDependabot(name, undefined, { urn }) case "doppler:secretsSync/terraformCloud:TerraformCloud": return new TerraformCloud(name, undefined, { urn }) default: @@ -59,7 +94,12 @@ const _module = { }; pulumi.runtime.registerResourceModule("doppler", "secretsSync/awsParameterStore", _module) pulumi.runtime.registerResourceModule("doppler", "secretsSync/awsSecretsManager", _module) +pulumi.runtime.registerResourceModule("doppler", "secretsSync/azureVault", _module) pulumi.runtime.registerResourceModule("doppler", "secretsSync/circleci", _module) pulumi.runtime.registerResourceModule("doppler", "secretsSync/flyio", _module) +pulumi.runtime.registerResourceModule("doppler", "secretsSync/gcpSecretManager", _module) pulumi.runtime.registerResourceModule("doppler", "secretsSync/githubActions", _module) +pulumi.runtime.registerResourceModule("doppler", "secretsSync/githubAgents", _module) +pulumi.runtime.registerResourceModule("doppler", "secretsSync/githubCodespaces", _module) +pulumi.runtime.registerResourceModule("doppler", "secretsSync/githubDependabot", _module) pulumi.runtime.registerResourceModule("doppler", "secretsSync/terraformCloud", _module) diff --git a/sdk/nodejs/secretssync/terraformCloud.ts b/sdk/nodejs/secretssync/terraformCloud.ts index e064318..d983103 100644 --- a/sdk/nodejs/secretssync/terraformCloud.ts +++ b/sdk/nodejs/secretssync/terraformCloud.ts @@ -1,11 +1,38 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** + * Manage a Terraform Cloud Doppler sync. + * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * import * as tfe from "@pulumi/tfe"; + * + * const prod = tfe.workspace({ + * name: "my-workspace-name", + * organization: "my-org-name", + * }); + * const prodTerraformCloud = new doppler.integration.TerraformCloud("prod", { + * name: "Production", + * apiKey: "my_api_key", + * }); + * const backendProd = new doppler.secretssync.TerraformCloud("backend_prod", { + * integration: prodTerraformCloud.id, + * project: "backend", + * config: "prd", + * syncTarget: "workspace", + * workspaceId: prod.id, + * variableSyncType: "terraform", + * nameTransform: "lowercase", + * deleteBehavior: "leave_in_target", + * }); + * ``` */ export class TerraformCloud extends pulumi.CustomResource { /** @@ -38,30 +65,39 @@ export class TerraformCloud extends pulumi.CustomResource { /** * The name of the Doppler config */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - public readonly deleteBehavior!: pulumi.Output; + declare public readonly deleteBehavior: pulumi.Output; /** * The slug of the integration to use for this sync */ - public readonly integration!: pulumi.Output; + declare public readonly integration: pulumi.Output; /** * A name transform to apply before syncing secrets: "none" or "lowercase" */ - public readonly nameTransform!: pulumi.Output; + declare public readonly nameTransform: pulumi.Output; /** * The name of the Doppler project */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * Either "workspace" or "variableSet", based on the resource type to sync to */ - public readonly syncTarget!: pulumi.Output; - public readonly variableSetId!: pulumi.Output; - public readonly variableSyncType!: pulumi.Output; - public readonly workspaceId!: pulumi.Output; + declare public readonly syncTarget: pulumi.Output; + /** + * The Terraform Cloud variable set ID to sync to + */ + declare public readonly variableSetId: pulumi.Output; + /** + * Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + */ + declare public readonly variableSyncType: pulumi.Output; + /** + * The Terraform Cloud workspace ID to sync to + */ + declare public readonly workspaceId: pulumi.Output; /** * Create a TerraformCloud resource with the given unique name, arguments, and options. @@ -76,44 +112,44 @@ export class TerraformCloud extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as TerraformCloudState | undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["deleteBehavior"] = state ? state.deleteBehavior : undefined; - resourceInputs["integration"] = state ? state.integration : undefined; - resourceInputs["nameTransform"] = state ? state.nameTransform : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["syncTarget"] = state ? state.syncTarget : undefined; - resourceInputs["variableSetId"] = state ? state.variableSetId : undefined; - resourceInputs["variableSyncType"] = state ? state.variableSyncType : undefined; - resourceInputs["workspaceId"] = state ? state.workspaceId : undefined; + resourceInputs["config"] = state?.config; + resourceInputs["deleteBehavior"] = state?.deleteBehavior; + resourceInputs["integration"] = state?.integration; + resourceInputs["nameTransform"] = state?.nameTransform; + resourceInputs["project"] = state?.project; + resourceInputs["syncTarget"] = state?.syncTarget; + resourceInputs["variableSetId"] = state?.variableSetId; + resourceInputs["variableSyncType"] = state?.variableSyncType; + resourceInputs["workspaceId"] = state?.workspaceId; } else { const args = argsOrState as TerraformCloudArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.integration === undefined) && !opts.urn) { + if (args?.integration === undefined && !opts.urn) { throw new Error("Missing required property 'integration'"); } - if ((!args || args.nameTransform === undefined) && !opts.urn) { + if (args?.nameTransform === undefined && !opts.urn) { throw new Error("Missing required property 'nameTransform'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.syncTarget === undefined) && !opts.urn) { + if (args?.syncTarget === undefined && !opts.urn) { throw new Error("Missing required property 'syncTarget'"); } - if ((!args || args.variableSyncType === undefined) && !opts.urn) { + if (args?.variableSyncType === undefined && !opts.urn) { throw new Error("Missing required property 'variableSyncType'"); } - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["deleteBehavior"] = args ? args.deleteBehavior : undefined; - resourceInputs["integration"] = args ? args.integration : undefined; - resourceInputs["nameTransform"] = args ? args.nameTransform : undefined; - resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["syncTarget"] = args ? args.syncTarget : undefined; - resourceInputs["variableSetId"] = args ? args.variableSetId : undefined; - resourceInputs["variableSyncType"] = args ? args.variableSyncType : undefined; - resourceInputs["workspaceId"] = args ? args.workspaceId : undefined; + resourceInputs["config"] = args?.config; + resourceInputs["deleteBehavior"] = args?.deleteBehavior; + resourceInputs["integration"] = args?.integration; + resourceInputs["nameTransform"] = args?.nameTransform; + resourceInputs["project"] = args?.project; + resourceInputs["syncTarget"] = args?.syncTarget; + resourceInputs["variableSetId"] = args?.variableSetId; + resourceInputs["variableSyncType"] = args?.variableSyncType; + resourceInputs["workspaceId"] = args?.workspaceId; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TerraformCloud.__pulumiType, name, resourceInputs, opts); @@ -127,30 +163,39 @@ export interface TerraformCloudState { /** * The name of the Doppler config */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ - integration?: pulumi.Input; + integration?: pulumi.Input; /** * A name transform to apply before syncing secrets: "none" or "lowercase" */ - nameTransform?: pulumi.Input; + nameTransform?: pulumi.Input; /** * The name of the Doppler project */ - project?: pulumi.Input; + project?: pulumi.Input; /** * Either "workspace" or "variableSet", based on the resource type to sync to */ - syncTarget?: pulumi.Input; - variableSetId?: pulumi.Input; - variableSyncType?: pulumi.Input; - workspaceId?: pulumi.Input; + syncTarget?: pulumi.Input; + /** + * The Terraform Cloud variable set ID to sync to + */ + variableSetId?: pulumi.Input; + /** + * Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + */ + variableSyncType?: pulumi.Input; + /** + * The Terraform Cloud workspace ID to sync to + */ + workspaceId?: pulumi.Input; } /** @@ -164,7 +209,7 @@ export interface TerraformCloudArgs { /** * The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leaveInTarget` (default) or `deleteFromTarget`. */ - deleteBehavior?: pulumi.Input; + deleteBehavior?: pulumi.Input; /** * The slug of the integration to use for this sync */ @@ -181,7 +226,16 @@ export interface TerraformCloudArgs { * Either "workspace" or "variableSet", based on the resource type to sync to */ syncTarget: pulumi.Input; - variableSetId?: pulumi.Input; + /** + * The Terraform Cloud variable set ID to sync to + */ + variableSetId?: pulumi.Input; + /** + * Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + */ variableSyncType: pulumi.Input; - workspaceId?: pulumi.Input; + /** + * The Terraform Cloud workspace ID to sync to + */ + workspaceId?: pulumi.Input; } diff --git a/sdk/nodejs/serviceAccount.ts b/sdk/nodejs/serviceAccount.ts index 29ca186..fb6685a 100644 --- a/sdk/nodejs/serviceAccount.ts +++ b/sdk/nodejs/serviceAccount.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,15 +11,17 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * - * const ci = new doppler.ServiceAccount("ci", {name: "ci"}); + * const ci = new doppler.ServiceAccount("ci", { + * name: "ci", + * workplaceRole: "collaborator", + * }); * ``` * * ## Import * * import using the service account slug from the URL: - * * https://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug] * * ```sh @@ -57,19 +59,19 @@ export class ServiceAccount extends pulumi.CustomResource { /** * The name of the service account */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * The slug of the service account */ - public /*out*/ readonly slug!: pulumi.Output; + declare public /*out*/ readonly slug: pulumi.Output; /** * A list of the workplace permissions for the service account (or use `workplaceRole`) */ - public readonly workplacePermissions!: pulumi.Output; + declare public readonly workplacePermissions: pulumi.Output; /** * The identifier of the workplace role for the service account (or use `workplacePermissions`) */ - public readonly workplaceRole!: pulumi.Output; + declare public readonly workplaceRole: pulumi.Output; /** * Create a ServiceAccount resource with the given unique name, arguments, and options. @@ -84,18 +86,18 @@ export class ServiceAccount extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ServiceAccountState | undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["slug"] = state ? state.slug : undefined; - resourceInputs["workplacePermissions"] = state ? state.workplacePermissions : undefined; - resourceInputs["workplaceRole"] = state ? state.workplaceRole : undefined; + resourceInputs["name"] = state?.name; + resourceInputs["slug"] = state?.slug; + resourceInputs["workplacePermissions"] = state?.workplacePermissions; + resourceInputs["workplaceRole"] = state?.workplaceRole; } else { const args = argsOrState as ServiceAccountArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["workplacePermissions"] = args ? args.workplacePermissions : undefined; - resourceInputs["workplaceRole"] = args ? args.workplaceRole : undefined; + resourceInputs["name"] = args?.name; + resourceInputs["workplacePermissions"] = args?.workplacePermissions; + resourceInputs["workplaceRole"] = args?.workplaceRole; resourceInputs["slug"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -110,19 +112,19 @@ export interface ServiceAccountState { /** * The name of the service account */ - name?: pulumi.Input; + name?: pulumi.Input; /** * The slug of the service account */ - slug?: pulumi.Input; + slug?: pulumi.Input; /** * A list of the workplace permissions for the service account (or use `workplaceRole`) */ - workplacePermissions?: pulumi.Input[]>; + workplacePermissions?: pulumi.Input[] | undefined>; /** * The identifier of the workplace role for the service account (or use `workplacePermissions`) */ - workplaceRole?: pulumi.Input; + workplaceRole?: pulumi.Input; } /** @@ -136,9 +138,9 @@ export interface ServiceAccountArgs { /** * A list of the workplace permissions for the service account (or use `workplaceRole`) */ - workplacePermissions?: pulumi.Input[]>; + workplacePermissions?: pulumi.Input[] | undefined>; /** * The identifier of the workplace role for the service account (or use `workplacePermissions`) */ - workplaceRole?: pulumi.Input; + workplaceRole?: pulumi.Input; } diff --git a/sdk/nodejs/serviceAccountIdentity.ts b/sdk/nodejs/serviceAccountIdentity.ts new file mode 100644 index 0000000..dd62505 --- /dev/null +++ b/sdk/nodejs/serviceAccountIdentity.ts @@ -0,0 +1,190 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * Manage a Doppler service account identity. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const ci = new doppler.ServiceAccount("ci", { + * name: "ci", + * workplaceRole: "collaborator", + * }); + * const githubOidc = new doppler.ServiceAccountIdentity("github_oidc", { + * configOidc: { + * claims: [ + * { + * key: "aud", + * values: ["https://github.com/DopplerHQ"], + * }, + * { + * key: "sub", + * values: [ + * "repo:DopplerHQ/terraform-provider-doppler:pull_request", + * "repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*", + * ], + * }, + * ], + * discoveryUrl: "https://token.actions.githubusercontent.com", + * claimsType: "wildcard", + * }, + * serviceAccountSlug: ci.slug, + * name: "GitHub Actions OIDC", + * ttlSeconds: 600, + * }); + * ``` + * + * ## Import + * + * ```sh + * $ pulumi import doppler:index/serviceAccountIdentity:ServiceAccountIdentity default . + * ``` + */ +export class ServiceAccountIdentity extends pulumi.CustomResource { + /** + * Get an existing ServiceAccountIdentity resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: ServiceAccountIdentityState, opts?: pulumi.CustomResourceOptions): ServiceAccountIdentity { + return new ServiceAccountIdentity(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/serviceAccountIdentity:ServiceAccountIdentity'; + + /** + * Returns true if the given object is an instance of ServiceAccountIdentity. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is ServiceAccountIdentity { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ServiceAccountIdentity.__pulumiType; + } + + /** + * The OIDC configuration for the identity + */ + declare public readonly configOidc: pulumi.Output; + /** + * The display name of the service account identity + */ + declare public readonly name: pulumi.Output; + /** + * Slug of the service account + */ + declare public readonly serviceAccountSlug: pulumi.Output; + /** + * Slug of the service account identity + */ + declare public /*out*/ readonly slug: pulumi.Output; + /** + * The amount of time, in seconds, that auth tokens for this identity will be valid + */ + declare public readonly ttlSeconds: pulumi.Output; + + /** + * Create a ServiceAccountIdentity resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ServiceAccountIdentityArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ServiceAccountIdentityArgs | ServiceAccountIdentityState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ServiceAccountIdentityState | undefined; + resourceInputs["configOidc"] = state?.configOidc; + resourceInputs["name"] = state?.name; + resourceInputs["serviceAccountSlug"] = state?.serviceAccountSlug; + resourceInputs["slug"] = state?.slug; + resourceInputs["ttlSeconds"] = state?.ttlSeconds; + } else { + const args = argsOrState as ServiceAccountIdentityArgs | undefined; + if (args?.configOidc === undefined && !opts.urn) { + throw new Error("Missing required property 'configOidc'"); + } + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.serviceAccountSlug === undefined && !opts.urn) { + throw new Error("Missing required property 'serviceAccountSlug'"); + } + if (args?.ttlSeconds === undefined && !opts.urn) { + throw new Error("Missing required property 'ttlSeconds'"); + } + resourceInputs["configOidc"] = args?.configOidc; + resourceInputs["name"] = args?.name; + resourceInputs["serviceAccountSlug"] = args?.serviceAccountSlug; + resourceInputs["ttlSeconds"] = args?.ttlSeconds; + resourceInputs["slug"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(ServiceAccountIdentity.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ServiceAccountIdentity resources. + */ +export interface ServiceAccountIdentityState { + /** + * The OIDC configuration for the identity + */ + configOidc?: pulumi.Input; + /** + * The display name of the service account identity + */ + name?: pulumi.Input; + /** + * Slug of the service account + */ + serviceAccountSlug?: pulumi.Input; + /** + * Slug of the service account identity + */ + slug?: pulumi.Input; + /** + * The amount of time, in seconds, that auth tokens for this identity will be valid + */ + ttlSeconds?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ServiceAccountIdentity resource. + */ +export interface ServiceAccountIdentityArgs { + /** + * The OIDC configuration for the identity + */ + configOidc: pulumi.Input; + /** + * The display name of the service account identity + */ + name: pulumi.Input; + /** + * Slug of the service account + */ + serviceAccountSlug: pulumi.Input; + /** + * The amount of time, in seconds, that auth tokens for this identity will be valid + */ + ttlSeconds: pulumi.Input; +} diff --git a/sdk/nodejs/serviceAccountToken.ts b/sdk/nodejs/serviceAccountToken.ts index 2d9049e..dcbcc79 100644 --- a/sdk/nodejs/serviceAccountToken.ts +++ b/sdk/nodejs/serviceAccountToken.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -6,6 +6,23 @@ import * as utilities from "./utilities"; /** * Manage a Doppler service account token. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const ci = new doppler.ServiceAccount("ci", { + * name: "ci", + * workplaceRole: "collaborator", + * }); + * const builderCiToken = new doppler.ServiceAccountToken("builder_ci_token", { + * serviceAccountSlug: ci.slug, + * name: "Builder CI Token", + * expiresAt: "2024-05-30T11:00:00.000Z", + * }); + * ``` */ export class ServiceAccountToken extends pulumi.CustomResource { /** @@ -38,27 +55,27 @@ export class ServiceAccountToken extends pulumi.CustomResource { /** * The api key used to authenticate the service account */ - public /*out*/ readonly apiKey!: pulumi.Output; + declare public /*out*/ readonly apiKey: pulumi.Output; /** * The datetime that the token was created. */ - public /*out*/ readonly createdAt!: pulumi.Output; + declare public /*out*/ readonly createdAt: pulumi.Output; /** * The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked */ - public readonly expiresAt!: pulumi.Output; + declare public readonly expiresAt: pulumi.Output; /** * The display name of the API token */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * Slug of the service account */ - public readonly serviceAccountSlug!: pulumi.Output; + declare public readonly serviceAccountSlug: pulumi.Output; /** * Slug of the service account token */ - public /*out*/ readonly slug!: pulumi.Output; + declare public /*out*/ readonly slug: pulumi.Output; /** * Create a ServiceAccountToken resource with the given unique name, arguments, and options. @@ -73,23 +90,23 @@ export class ServiceAccountToken extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ServiceAccountTokenState | undefined; - resourceInputs["apiKey"] = state ? state.apiKey : undefined; - resourceInputs["createdAt"] = state ? state.createdAt : undefined; - resourceInputs["expiresAt"] = state ? state.expiresAt : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["serviceAccountSlug"] = state ? state.serviceAccountSlug : undefined; - resourceInputs["slug"] = state ? state.slug : undefined; + resourceInputs["apiKey"] = state?.apiKey; + resourceInputs["createdAt"] = state?.createdAt; + resourceInputs["expiresAt"] = state?.expiresAt; + resourceInputs["name"] = state?.name; + resourceInputs["serviceAccountSlug"] = state?.serviceAccountSlug; + resourceInputs["slug"] = state?.slug; } else { const args = argsOrState as ServiceAccountTokenArgs | undefined; - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - if ((!args || args.serviceAccountSlug === undefined) && !opts.urn) { + if (args?.serviceAccountSlug === undefined && !opts.urn) { throw new Error("Missing required property 'serviceAccountSlug'"); } - resourceInputs["expiresAt"] = args ? args.expiresAt : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["serviceAccountSlug"] = args ? args.serviceAccountSlug : undefined; + resourceInputs["expiresAt"] = args?.expiresAt; + resourceInputs["name"] = args?.name; + resourceInputs["serviceAccountSlug"] = args?.serviceAccountSlug; resourceInputs["apiKey"] = undefined /*out*/; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["slug"] = undefined /*out*/; @@ -108,27 +125,27 @@ export interface ServiceAccountTokenState { /** * The api key used to authenticate the service account */ - apiKey?: pulumi.Input; + apiKey?: pulumi.Input; /** * The datetime that the token was created. */ - createdAt?: pulumi.Input; + createdAt?: pulumi.Input; /** * The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked */ - expiresAt?: pulumi.Input; + expiresAt?: pulumi.Input; /** * The display name of the API token */ - name?: pulumi.Input; + name?: pulumi.Input; /** * Slug of the service account */ - serviceAccountSlug?: pulumi.Input; + serviceAccountSlug?: pulumi.Input; /** * Slug of the service account token */ - slug?: pulumi.Input; + slug?: pulumi.Input; } /** @@ -138,7 +155,7 @@ export interface ServiceAccountTokenArgs { /** * The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked */ - expiresAt?: pulumi.Input; + expiresAt?: pulumi.Input; /** * The display name of the API token */ diff --git a/sdk/nodejs/serviceToken.ts b/sdk/nodejs/serviceToken.ts index 7b4425f..057e461 100644 --- a/sdk/nodejs/serviceToken.ts +++ b/sdk/nodejs/serviceToken.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -11,7 +11,7 @@ import * as utilities from "./utilities"; * * ```typescript * import * as pulumi from "@pulumi/pulumi"; - * import * as doppler from "@pulumiverse/doppler"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; * * const backendCiToken = new doppler.ServiceToken("backend_ci_token", { * project: "backend", @@ -52,23 +52,23 @@ export class ServiceToken extends pulumi.CustomResource { /** * The access level (read or read/write) */ - public readonly access!: pulumi.Output; + declare public readonly access: pulumi.Output; /** * The name of the Doppler config where the service token is located */ - public readonly config!: pulumi.Output; + declare public readonly config: pulumi.Output; /** * The key for the Doppler service token */ - public /*out*/ readonly key!: pulumi.Output; + declare public /*out*/ readonly key: pulumi.Output; /** * The name of the Doppler service token */ - public readonly name!: pulumi.Output; + declare public readonly name: pulumi.Output; /** * The name of the Doppler project where the service token is located */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * Create a ServiceToken resource with the given unique name, arguments, and options. @@ -83,26 +83,26 @@ export class ServiceToken extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as ServiceTokenState | undefined; - resourceInputs["access"] = state ? state.access : undefined; - resourceInputs["config"] = state ? state.config : undefined; - resourceInputs["key"] = state ? state.key : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["project"] = state ? state.project : undefined; + resourceInputs["access"] = state?.access; + resourceInputs["config"] = state?.config; + resourceInputs["key"] = state?.key; + resourceInputs["name"] = state?.name; + resourceInputs["project"] = state?.project; } else { const args = argsOrState as ServiceTokenArgs | undefined; - if ((!args || args.config === undefined) && !opts.urn) { + if (args?.config === undefined && !opts.urn) { throw new Error("Missing required property 'config'"); } - if ((!args || args.name === undefined) && !opts.urn) { + if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - resourceInputs["access"] = args ? args.access : undefined; - resourceInputs["config"] = args ? args.config : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["access"] = args?.access; + resourceInputs["config"] = args?.config; + resourceInputs["name"] = args?.name; + resourceInputs["project"] = args?.project; resourceInputs["key"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -119,23 +119,23 @@ export interface ServiceTokenState { /** * The access level (read or read/write) */ - access?: pulumi.Input; + access?: pulumi.Input; /** * The name of the Doppler config where the service token is located */ - config?: pulumi.Input; + config?: pulumi.Input; /** * The key for the Doppler service token */ - key?: pulumi.Input; + key?: pulumi.Input; /** * The name of the Doppler service token */ - name?: pulumi.Input; + name?: pulumi.Input; /** * The name of the Doppler project where the service token is located */ - project?: pulumi.Input; + project?: pulumi.Input; } /** @@ -145,7 +145,7 @@ export interface ServiceTokenArgs { /** * The access level (read or read/write) */ - access?: pulumi.Input; + access?: pulumi.Input; /** * The name of the Doppler config where the service token is located */ diff --git a/sdk/nodejs/tag.ts b/sdk/nodejs/tag.ts new file mode 100644 index 0000000..3dc7f11 --- /dev/null +++ b/sdk/nodejs/tag.ts @@ -0,0 +1,133 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Manage a Doppler tag. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const backend = new doppler.Tag("backend", { + * name: "Backend", + * color: "blue", + * }); + * ``` + * + * ## Import + * + * ```sh + * $ pulumi import doppler:index/tag:Tag default + * ``` + */ +export class Tag extends pulumi.CustomResource { + /** + * Get an existing Tag resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: TagState, opts?: pulumi.CustomResourceOptions): Tag { + return new Tag(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/tag:Tag'; + + /** + * Returns true if the given object is an instance of Tag. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Tag { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Tag.__pulumiType; + } + + /** + * The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + */ + declare public readonly color: pulumi.Output; + /** + * The name of the tag + */ + declare public readonly name: pulumi.Output; + /** + * The slug of the tag. Generated from the name when omitted + */ + declare public readonly slug: pulumi.Output; + + /** + * Create a Tag resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: TagArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: TagArgs | TagState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as TagState | undefined; + resourceInputs["color"] = state?.color; + resourceInputs["name"] = state?.name; + resourceInputs["slug"] = state?.slug; + } else { + const args = argsOrState as TagArgs | undefined; + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["color"] = args?.color; + resourceInputs["name"] = args?.name; + resourceInputs["slug"] = args?.slug; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(Tag.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering Tag resources. + */ +export interface TagState { + /** + * The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + */ + color?: pulumi.Input; + /** + * The name of the tag + */ + name?: pulumi.Input; + /** + * The slug of the tag. Generated from the name when omitted + */ + slug?: pulumi.Input; +} + +/** + * The set of arguments for constructing a Tag resource. + */ +export interface TagArgs { + /** + * The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + */ + color?: pulumi.Input; + /** + * The name of the tag + */ + name: pulumi.Input; + /** + * The slug of the tag. Generated from the name when omitted + */ + slug?: pulumi.Input; +} diff --git a/sdk/nodejs/trustedIps.ts b/sdk/nodejs/trustedIps.ts new file mode 100644 index 0000000..5a5517e --- /dev/null +++ b/sdk/nodejs/trustedIps.ts @@ -0,0 +1,165 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Manage the trusted IP allowlist for a Doppler config. Only requests from the specified IP ranges will be permitted to access the config's secrets via the API. + * + * Requires a **Team or Enterprise plan**. Collaborators and other project roles with the `enclaveProjectConfigTrustedIps` permission have permission to manage trusted ips for a config. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const backendPrd = new doppler.TrustedIps("backend_prd", { + * project: "backend", + * config: "prd", + * trustedIps: [ + * "203.0.113.0/24", + * "198.51.100.5/32", + * "2001:db8::1/128", + * ], + * }); + * const backendStg = new doppler.TrustedIps("backend_stg", { + * project: "backend", + * config: "stg", + * trustedIps: ["203.0.113.0/24"], + * }); + * const backendDev = new doppler.TrustedIps("backend_dev", { + * project: "backend", + * config: "dev", + * trustedIps: ["0.0.0.0/0"], + * }); + * ``` + * + * ## Notes + * + * - **Warning:** Reconfiguring trusted IPs could lock you out of the config if the current client IP is not included in the trusted list. + * - The default state for any config is `["0.0.0.0/0"]` (allow all traffic). Deleting this resource restores that default. + * - Trusted IPs restrict API access only. They do not affect Dashboard logins. + * - IP addresses must be specified in CIDR notation. Use `/32` for an exact IPv4 address and `/128` for an exact IPv6 address (e.g. `1.2.3.4/32` or `2001:db8::1/128`). + * + * ## Import + * + * An existing trusted IP configuration can be imported using `.`: + * + * ```sh + * $ pulumi import doppler:index/trustedIps:TrustedIps backend_prd backend.prd + * ``` + */ +export class TrustedIps extends pulumi.CustomResource { + /** + * Get an existing TrustedIps resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: TrustedIpsState, opts?: pulumi.CustomResourceOptions): TrustedIps { + return new TrustedIps(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/trustedIps:TrustedIps'; + + /** + * Returns true if the given object is an instance of TrustedIps. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is TrustedIps { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === TrustedIps.__pulumiType; + } + + /** + * The name of the Doppler config + */ + declare public readonly config: pulumi.Output; + /** + * The name of the Doppler project where the config is located + */ + declare public readonly project: pulumi.Output; + /** + * List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + */ + declare public readonly trustedIps: pulumi.Output; + + /** + * Create a TrustedIps resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: TrustedIpsArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: TrustedIpsArgs | TrustedIpsState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as TrustedIpsState | undefined; + resourceInputs["config"] = state?.config; + resourceInputs["project"] = state?.project; + resourceInputs["trustedIps"] = state?.trustedIps; + } else { + const args = argsOrState as TrustedIpsArgs | undefined; + if (args?.config === undefined && !opts.urn) { + throw new Error("Missing required property 'config'"); + } + if (args?.project === undefined && !opts.urn) { + throw new Error("Missing required property 'project'"); + } + if (args?.trustedIps === undefined && !opts.urn) { + throw new Error("Missing required property 'trustedIps'"); + } + resourceInputs["config"] = args?.config; + resourceInputs["project"] = args?.project; + resourceInputs["trustedIps"] = args?.trustedIps; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(TrustedIps.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering TrustedIps resources. + */ +export interface TrustedIpsState { + /** + * The name of the Doppler config + */ + config?: pulumi.Input; + /** + * The name of the Doppler project where the config is located + */ + project?: pulumi.Input; + /** + * List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + */ + trustedIps?: pulumi.Input[] | undefined>; +} + +/** + * The set of arguments for constructing a TrustedIps resource. + */ +export interface TrustedIpsArgs { + /** + * The name of the Doppler config + */ + config: pulumi.Input; + /** + * The name of the Doppler project where the config is located + */ + project: pulumi.Input; + /** + * List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + */ + trustedIps: pulumi.Input[]>; +} diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 8fbd4b8..96be031 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -1,55 +1,115 @@ { "compilerOptions": { + // Output "outDir": "bin", - "target": "es2016", - "module": "commonjs", - "moduleResolution": "node", "declaration": true, + "declarationMap": true, "sourceMap": true, "stripInternal": true, - "experimentalDecorators": true, + // Environment + "target": "ES2022", + "module": "nodenext", + "moduleResolution": "nodenext", + "moduleDetection": "force", + "types": ["node"], + // Type Checking + "strict": true, "noFallthroughCasesInSwitch": true, - "forceConsistentCasingInFileNames": true, - "strict": true + "noImplicitReturns": true, + "skipLibCheck": true }, "files": [ "branchConfig.ts", + "changeRequestPolicy.ts", "config/index.ts", "config/vars.ts", "environment.ts", + "getEnvironments.ts", + "getGroup.ts", "getSecrets.ts", "getUser.ts", "group.ts", "groupMember.ts", "groupMembers.ts", "index.ts", + "integration/awsIamUserKeys.ts", + "integration/awsMssql.ts", + "integration/awsMysql.ts", "integration/awsParameterStore.ts", + "integration/awsPostgres.ts", "integration/awsSecretsManager.ts", + "integration/azureDynamicServicePrincipal.ts", + "integration/azureDynamicServicePrincipalOidc.ts", + "integration/azureRotatedServicePrincipal.ts", + "integration/azureRotatedServicePrincipalOidc.ts", + "integration/azureVaultServicePrincipal.ts", "integration/circleci.ts", + "integration/cloudflareTokens.ts", + "integration/externalId.ts", "integration/flyio.ts", + "integration/gcpCloudsqlMysql.ts", + "integration/gcpCloudsqlMysqlOidc.ts", + "integration/gcpCloudsqlPostgres.ts", + "integration/gcpCloudsqlPostgresOidc.ts", + "integration/gcpCloudsqlSqlserver.ts", + "integration/gcpCloudsqlSqlserverOidc.ts", + "integration/gcpSecretManager.ts", + "integration/gcpSecretManagerOidc.ts", + "integration/gcpServiceAccountKeys.ts", "integration/index.ts", + "integration/memberGroup.ts", + "integration/memberServiceAccount.ts", + "integration/memberUser.ts", + "integration/mongodbAtlas.ts", + "integration/openai.ts", + "integration/sendgrid.ts", "integration/terraformCloud.ts", + "integration/twilio.ts", "project.ts", "projectRole.ts", + "projectTag.ts", "projectmember/group.ts", "projectmember/index.ts", "projectmember/serviceAccount.ts", + "projectmember/user.ts", "provider.ts", + "rotatedsecret/awsIamUserKeys.ts", + "rotatedsecret/awsMssql.ts", + "rotatedsecret/awsMysql.ts", + "rotatedsecret/awsPostgres.ts", + "rotatedsecret/cloudflareTokens.ts", + "rotatedsecret/gcpCloudsql.ts", + "rotatedsecret/gcpServiceAccountKeys.ts", + "rotatedsecret/index.ts", + "rotatedsecret/mongodbAtlas.ts", + "rotatedsecret/openai.ts", + "rotatedsecret/sendgrid.ts", + "rotatedsecret/twilio.ts", "secret.ts", + "secretNote.ts", "secretssync/awsParameterStore.ts", "secretssync/awsSecretsManager.ts", + "secretssync/azureVault.ts", "secretssync/circleci.ts", "secretssync/flyio.ts", + "secretssync/gcpSecretManager.ts", "secretssync/githubActions.ts", + "secretssync/githubAgents.ts", + "secretssync/githubCodespaces.ts", + "secretssync/githubDependabot.ts", "secretssync/index.ts", "secretssync/terraformCloud.ts", "serviceAccount.ts", + "serviceAccountIdentity.ts", "serviceAccountToken.ts", "serviceToken.ts", + "tag.ts", + "trustedIps.ts", "types/index.ts", "types/input.ts", "types/output.ts", "utilities.ts", - "webhook.ts" + "webhook.ts", + "workplaceRole.ts" ] } diff --git a/sdk/nodejs/types/index.ts b/sdk/nodejs/types/index.ts index c7b9909..f0db274 100644 --- a/sdk/nodejs/types/index.ts +++ b/sdk/nodejs/types/index.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as utilities from "../utilities"; diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 24525d4..950fcd6 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -1,13 +1,130 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; +export interface ChangeRequestPolicyRules { + /** + * If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + */ + autoAssignReviewers?: pulumi.Input; + /** + * If true, approvals from the author of a change request will be excluded when evaluating this policy + */ + disallowSelfReview?: pulumi.Input; + /** + * Enforces that a specific number of users approve a change request before it can be applied + */ + requiredReviewers?: pulumi.Input[] | undefined>; +} + +export interface ChangeRequestPolicyRulesRequiredReviewer { + /** + * The number of approvals a change request must receive before it can be applied + */ + count: pulumi.Input; + /** + * If set, only approvals from members of these groups will satisfy this rule + */ + groupSlugs?: pulumi.Input[] | undefined>; + /** + * If set, only approvals from these users will satisfy this rule + */ + userSlugs?: pulumi.Input[] | undefined>; +} + +export interface ChangeRequestPolicyTargets { + /** + * Whether or not the policy applies to all projects in the workplace + */ + allProjects?: pulumi.Input; + /** + * A project that the policy will apply to + */ + projects?: pulumi.Input[] | undefined>; +} + +export interface ChangeRequestPolicyTargetsProject { + /** + * Whether or not the policy applies to all configs in the project + */ + all?: pulumi.Input; + /** + * Specific configs the policy applies to + */ + configNames?: pulumi.Input[] | undefined>; + /** + * Entire environments the policy applies to + */ + environmentSlugs?: pulumi.Input[] | undefined>; + /** + * The name of the project to apply the policy to + */ + projectName: pulumi.Input; +} + +export interface ServiceAccountIdentityConfigOidc { + /** + * A set of valid values for a specific claim. At least "aud" and "sub" must be provided + */ + claims: pulumi.Input[]>; + /** + * If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + */ + claimsType?: pulumi.Input; + /** + * The public URL of the OpenID discovery service + */ + discoveryUrl: pulumi.Input; +} + +export interface ServiceAccountIdentityConfigOidcClaim { + /** + * The key of the claim to validate + */ + key: pulumi.Input; + /** + * The set of valid values for this claim + */ + values: pulumi.Input[]>; +} + export interface WebhookAuthentication { - password?: pulumi.Input; - token?: pulumi.Input; + password?: pulumi.Input; + token?: pulumi.Input; type: pulumi.Input; - username?: pulumi.Input; + username?: pulumi.Input; +} +export namespace rotatedSecret { + export interface AwsMssqlCredential { + password: pulumi.Input; + username: pulumi.Input; + } + + export interface AwsMysqlCredential { + password: pulumi.Input; + username: pulumi.Input; + } + + export interface AwsPostgresCredential { + password: pulumi.Input; + username: pulumi.Input; + } + + export interface CloudflareTokensCredential { + value: pulumi.Input; + } + + export interface GcpCloudsqlCredential { + password: pulumi.Input; + userHostName?: pulumi.Input; + username: pulumi.Input; + } + + export interface MongodbAtlasCredential { + password: pulumi.Input; + username: pulumi.Input; + } } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index b3abd68..398f741 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1,10 +1,115 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; +export interface ChangeRequestPolicyRules { + /** + * If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + */ + autoAssignReviewers?: string; + /** + * If true, approvals from the author of a change request will be excluded when evaluating this policy + */ + disallowSelfReview?: boolean; + /** + * Enforces that a specific number of users approve a change request before it can be applied + */ + requiredReviewers?: outputs.ChangeRequestPolicyRulesRequiredReviewer[]; +} + +export interface ChangeRequestPolicyRulesRequiredReviewer { + /** + * The number of approvals a change request must receive before it can be applied + */ + count: number; + /** + * If set, only approvals from members of these groups will satisfy this rule + */ + groupSlugs?: string[]; + /** + * If set, only approvals from these users will satisfy this rule + */ + userSlugs?: string[]; +} + +export interface ChangeRequestPolicyTargets { + /** + * Whether or not the policy applies to all projects in the workplace + */ + allProjects?: boolean; + /** + * A project that the policy will apply to + */ + projects?: outputs.ChangeRequestPolicyTargetsProject[]; +} + +export interface ChangeRequestPolicyTargetsProject { + /** + * Whether or not the policy applies to all configs in the project + */ + all?: boolean; + /** + * Specific configs the policy applies to + */ + configNames?: string[]; + /** + * Entire environments the policy applies to + */ + environmentSlugs?: string[]; + /** + * The name of the project to apply the policy to + */ + projectName: string; +} + +export interface GetEnvironmentsEnvironment { + /** + * When the environment was created + */ + createdAt: string; + /** + * The name of the environment + */ + name: string; + /** + * The project the environment belongs to + */ + project: string; + /** + * The slug of the environment + */ + slug: string; +} + +export interface ServiceAccountIdentityConfigOidc { + /** + * A set of valid values for a specific claim. At least "aud" and "sub" must be provided + */ + claims: outputs.ServiceAccountIdentityConfigOidcClaim[]; + /** + * If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + */ + claimsType?: string; + /** + * The public URL of the OpenID discovery service + */ + discoveryUrl: string; +} + +export interface ServiceAccountIdentityConfigOidcClaim { + /** + * The key of the claim to validate + */ + key: string; + /** + * The set of valid values for this claim + */ + values: string[]; +} + export interface WebhookAuthentication { password?: string; token?: string; @@ -12,3 +117,35 @@ export interface WebhookAuthentication { username?: string; } +export namespace rotatedSecret { + export interface AwsMssqlCredential { + password: string; + username: string; + } + + export interface AwsMysqlCredential { + password: string; + username: string; + } + + export interface AwsPostgresCredential { + password: string; + username: string; + } + + export interface CloudflareTokensCredential { + value: string; + } + + export interface GcpCloudsqlCredential { + password: string; + userHostName?: string; + username: string; + } + + export interface MongodbAtlasCredential { + password: string; + username: string; + } + +} diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index 43fa0af..9c0231b 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** @@ -53,7 +53,7 @@ export function getVersion(): string { /** @internal */ export function resourceOptsDefaults(): any { - return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumiverse" }; + return { version: getVersion(), pluginDownloadURL: "github://api.github.com/DopplerHQ" }; } /** @internal */ @@ -68,6 +68,7 @@ export function lazyLoad(exports: any, props: string[], loadModule: any) { } } +/** @internal */ export async function callAsync( tok: string, props: pulumi.Inputs, diff --git a/sdk/nodejs/webhook.ts b/sdk/nodejs/webhook.ts index b78873a..cf5faf9 100644 --- a/sdk/nodejs/webhook.ts +++ b/sdk/nodejs/webhook.ts @@ -1,4 +1,4 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; @@ -6,6 +6,41 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * Manage a Doppler Webhook. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const ci = new doppler.Webhook("ci", { + * authentication: { + * type: "Bearer", + * token: "my bearer token", + * }, + * project: testProj.name, + * url: "https://localhost/webhook", + * name: "My Webhook", + * secret: "my signing secret-2", + * enabled: true, + * enabledConfigs: [ciGithub.name], + * payload: JSON.stringify({ + * myKey: "my value", + * }), + * }); + * ``` + * + * ## State Management + * + * For security reasons, the Doppler API does not return the fields listed below, which prevents the Terraform provider from checking this external state. + * In other words, the Terraform provider can be used to update these webhook fields but it will be unaware of external changes. + * + * - `secret` + * - `authentication` + * - `payload` + */ export class Webhook extends pulumi.CustomResource { /** * Get an existing Webhook resource's state with the given name, ID, and optional extra @@ -37,35 +72,39 @@ export class Webhook extends pulumi.CustomResource { /** * Authentication method used by the webhook */ - public readonly authentication!: pulumi.Output; + declare public readonly authentication: pulumi.Output; /** * Whether the webhook is enabled or disabled. Default to true. */ - public readonly enabled!: pulumi.Output; + declare public readonly enabled: pulumi.Output; /** * Configs this webhook will trigger for */ - public readonly enabledConfigs!: pulumi.Output; + declare public readonly enabledConfigs: pulumi.Output; + /** + * Name of the webhook + */ + declare public readonly name: pulumi.Output; /** * The webhook's payload as a JSON string. Leave empty to use the default webhook payload */ - public readonly payload!: pulumi.Output; + declare public readonly payload: pulumi.Output; /** * The name of the Doppler project where the webhook is located */ - public readonly project!: pulumi.Output; + declare public readonly project: pulumi.Output; /** * Secret used for request signing */ - public readonly secret!: pulumi.Output; + declare public readonly secret: pulumi.Output; /** * The slug of the Webhook */ - public /*out*/ readonly slug!: pulumi.Output; + declare public /*out*/ readonly slug: pulumi.Output; /** * The URL of the webhook endpoint */ - public readonly url!: pulumi.Output; + declare public readonly url: pulumi.Output; /** * Create a Webhook resource with the given unique name, arguments, and options. @@ -80,29 +119,31 @@ export class Webhook extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as WebhookState | undefined; - resourceInputs["authentication"] = state ? state.authentication : undefined; - resourceInputs["enabled"] = state ? state.enabled : undefined; - resourceInputs["enabledConfigs"] = state ? state.enabledConfigs : undefined; - resourceInputs["payload"] = state ? state.payload : undefined; - resourceInputs["project"] = state ? state.project : undefined; - resourceInputs["secret"] = state ? state.secret : undefined; - resourceInputs["slug"] = state ? state.slug : undefined; - resourceInputs["url"] = state ? state.url : undefined; + resourceInputs["authentication"] = state?.authentication; + resourceInputs["enabled"] = state?.enabled; + resourceInputs["enabledConfigs"] = state?.enabledConfigs; + resourceInputs["name"] = state?.name; + resourceInputs["payload"] = state?.payload; + resourceInputs["project"] = state?.project; + resourceInputs["secret"] = state?.secret; + resourceInputs["slug"] = state?.slug; + resourceInputs["url"] = state?.url; } else { const args = argsOrState as WebhookArgs | undefined; - if ((!args || args.project === undefined) && !opts.urn) { + if (args?.project === undefined && !opts.urn) { throw new Error("Missing required property 'project'"); } - if ((!args || args.url === undefined) && !opts.urn) { + if (args?.url === undefined && !opts.urn) { throw new Error("Missing required property 'url'"); } - resourceInputs["authentication"] = args ? args.authentication : undefined; - resourceInputs["enabled"] = args ? args.enabled : undefined; - resourceInputs["enabledConfigs"] = args ? args.enabledConfigs : undefined; + resourceInputs["authentication"] = args?.authentication; + resourceInputs["enabled"] = args?.enabled; + resourceInputs["enabledConfigs"] = args?.enabledConfigs; + resourceInputs["name"] = args?.name; resourceInputs["payload"] = args?.payload ? pulumi.secret(args.payload) : undefined; - resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["project"] = args?.project; resourceInputs["secret"] = args?.secret ? pulumi.secret(args.secret) : undefined; - resourceInputs["url"] = args ? args.url : undefined; + resourceInputs["url"] = args?.url; resourceInputs["slug"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -119,35 +160,39 @@ export interface WebhookState { /** * Authentication method used by the webhook */ - authentication?: pulumi.Input; + authentication?: pulumi.Input; /** * Whether the webhook is enabled or disabled. Default to true. */ - enabled?: pulumi.Input; + enabled?: pulumi.Input; /** * Configs this webhook will trigger for */ - enabledConfigs?: pulumi.Input[]>; + enabledConfigs?: pulumi.Input[] | undefined>; + /** + * Name of the webhook + */ + name?: pulumi.Input; /** * The webhook's payload as a JSON string. Leave empty to use the default webhook payload */ - payload?: pulumi.Input; + payload?: pulumi.Input; /** * The name of the Doppler project where the webhook is located */ - project?: pulumi.Input; + project?: pulumi.Input; /** * Secret used for request signing */ - secret?: pulumi.Input; + secret?: pulumi.Input; /** * The slug of the Webhook */ - slug?: pulumi.Input; + slug?: pulumi.Input; /** * The URL of the webhook endpoint */ - url?: pulumi.Input; + url?: pulumi.Input; } /** @@ -157,19 +202,23 @@ export interface WebhookArgs { /** * Authentication method used by the webhook */ - authentication?: pulumi.Input; + authentication?: pulumi.Input; /** * Whether the webhook is enabled or disabled. Default to true. */ - enabled?: pulumi.Input; + enabled?: pulumi.Input; /** * Configs this webhook will trigger for */ - enabledConfigs?: pulumi.Input[]>; + enabledConfigs?: pulumi.Input[] | undefined>; + /** + * Name of the webhook + */ + name?: pulumi.Input; /** * The webhook's payload as a JSON string. Leave empty to use the default webhook payload */ - payload?: pulumi.Input; + payload?: pulumi.Input; /** * The name of the Doppler project where the webhook is located */ @@ -177,7 +226,7 @@ export interface WebhookArgs { /** * Secret used for request signing */ - secret?: pulumi.Input; + secret?: pulumi.Input; /** * The URL of the webhook endpoint */ diff --git a/sdk/nodejs/workplaceRole.ts b/sdk/nodejs/workplaceRole.ts new file mode 100644 index 0000000..50c2c6a --- /dev/null +++ b/sdk/nodejs/workplaceRole.ts @@ -0,0 +1,142 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "./utilities"; + +/** + * Manage a Doppler workplace_role. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as doppler from "@dopplerhq/pulumi-doppler"; + * + * const teamManager = new doppler.WorkplaceRole("team_manager", { + * name: "Team Manager", + * permissions: ["team_manage"], + * }); + * ``` + * + * ## Import + * + * ```sh + * $ pulumi import doppler:index/workplaceRole:WorkplaceRole default + * ``` + */ +export class WorkplaceRole extends pulumi.CustomResource { + /** + * Get an existing WorkplaceRole resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: WorkplaceRoleState, opts?: pulumi.CustomResourceOptions): WorkplaceRole { + return new WorkplaceRole(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'doppler:index/workplaceRole:WorkplaceRole'; + + /** + * Returns true if the given object is an instance of WorkplaceRole. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is WorkplaceRole { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === WorkplaceRole.__pulumiType; + } + + /** + * The role's unique identifier + */ + declare public /*out*/ readonly identifier: pulumi.Output; + /** + * Whether or not the role is custom (as opposed to Doppler built-in) + */ + declare public /*out*/ readonly isCustomRole: pulumi.Output; + /** + * The name of the Doppler workplace role + */ + declare public readonly name: pulumi.Output; + /** + * A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + */ + declare public readonly permissions: pulumi.Output; + + /** + * Create a WorkplaceRole resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: WorkplaceRoleArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: WorkplaceRoleArgs | WorkplaceRoleState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as WorkplaceRoleState | undefined; + resourceInputs["identifier"] = state?.identifier; + resourceInputs["isCustomRole"] = state?.isCustomRole; + resourceInputs["name"] = state?.name; + resourceInputs["permissions"] = state?.permissions; + } else { + const args = argsOrState as WorkplaceRoleArgs | undefined; + if (args?.name === undefined && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if (args?.permissions === undefined && !opts.urn) { + throw new Error("Missing required property 'permissions'"); + } + resourceInputs["name"] = args?.name; + resourceInputs["permissions"] = args?.permissions; + resourceInputs["identifier"] = undefined /*out*/; + resourceInputs["isCustomRole"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(WorkplaceRole.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering WorkplaceRole resources. + */ +export interface WorkplaceRoleState { + /** + * The role's unique identifier + */ + identifier?: pulumi.Input; + /** + * Whether or not the role is custom (as opposed to Doppler built-in) + */ + isCustomRole?: pulumi.Input; + /** + * The name of the Doppler workplace role + */ + name?: pulumi.Input; + /** + * A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + */ + permissions?: pulumi.Input[] | undefined>; +} + +/** + * The set of arguments for constructing a WorkplaceRole resource. + */ +export interface WorkplaceRoleArgs { + /** + * The name of the Doppler workplace role + */ + name: pulumi.Input; + /** + * A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + */ + permissions: pulumi.Input[]>; +} diff --git a/sdk/python/.gitattributes b/sdk/python/.gitattributes new file mode 100644 index 0000000..aae64e2 --- /dev/null +++ b/sdk/python/.gitattributes @@ -0,0 +1 @@ +* linguist-generated diff --git a/sdk/python/.gitignore b/sdk/python/.gitignore new file mode 100644 index 0000000..f9d5cf1 --- /dev/null +++ b/sdk/python/.gitignore @@ -0,0 +1,6 @@ +*.pyc +__pycache__ +.mypy_cache +dist +build +*.egg-info diff --git a/sdk/python/Pulumi.yaml b/sdk/python/Pulumi.yaml index e69de29..b5594fb 100644 --- a/sdk/python/Pulumi.yaml +++ b/sdk/python/Pulumi.yaml @@ -0,0 +1,3 @@ +name: doppler +description: A Pulumi resource provider for doppler. +language: python diff --git a/sdk/python/README.md b/sdk/python/README.md index 1732a9a..cc74a93 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -11,13 +11,13 @@ This package is available for several languages/platforms: To use from JavaScript or TypeScript in Node.js, install using either `npm`: ```bash -npm install @pulumiverse/doppler +npm install @dopplerhq/pulumi-doppler ``` or `yarn`: ```bash -yarn add @pulumiverse/doppler +yarn add @dopplerhq/pulumi-doppler ``` ### Python @@ -25,7 +25,7 @@ yarn add @pulumiverse/doppler To use from Python, install using `pip`: ``` -$ pip install pulumiverse-doppler +$ pip install pulumi-doppler ``` ### Go @@ -33,7 +33,7 @@ $ pip install pulumiverse-doppler To use from Go, use `go get` to grab the latest version of the library: ```bash -go get github.com/pulumiverse/pulumi-doppler/sdk/go/... +go get github.com/DopplerHQ/pulumi-doppler/sdk/go/... ``` ### .NET @@ -42,14 +42,21 @@ To use from Dotnet, use `dotnet add package` to install into your project. You m ``` -$ dotnet add package Pulumiverse.Doppler +$ dotnet add package DopplerHQ.Doppler ``` ## Configuration The following configuration points are available for the `doppler` provider: -- `doppler:token` - You need to provide a service account, client, or other token type for this provider to communicate successfully with the Doppler API. +- `doppler:dopplerToken` (environment: `DOPPLER_TOKEN`) - A Doppler personal or service token. Use a service account token for automation; refreshing secrets with restricted visibility requires one. +- `doppler:oidcIdentity` (environment: `DOPPLER_OIDC_IDENTITY`) - The service account identity ID for OIDC authentication, used with one of: + - `doppler:oidcToken` (environment: `DOPPLER_OIDC_TOKEN`) - A JWT for OIDC authentication. + - `doppler:oidcTokenFile` (environment: `DOPPLER_OIDC_TOKEN_FILE`) - A path to a file containing that JWT. +- `doppler:host` (environment: `DOPPLER_API_HOST`) - The Doppler API host. Defaults to `https://api.doppler.com`. +- `doppler:verifyTls` (environment: `DOPPLER_VERIFY_TLS`) - Whether to verify TLS. Defaults to `true`. + +Only one of `dopplerToken` or OIDC may be configured. ## Reference diff --git a/sdk/python/go.mod b/sdk/python/go.mod new file mode 100644 index 0000000..b91fcbc --- /dev/null +++ b/sdk/python/go.mod @@ -0,0 +1,3 @@ +module fake_python_module // Exclude this directory from Go tools + +go 1.17 diff --git a/sdk/python/pulumi_doppler/README.md b/sdk/python/pulumi_doppler/README.md new file mode 100644 index 0000000..7e4e979 --- /dev/null +++ b/sdk/python/pulumi_doppler/README.md @@ -0,0 +1,4 @@ +> This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler) +> distributed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). If you encounter a bug or missing feature, +> first check the [`pulumi-doppler` repo](https://github.com/DopplerHQ/pulumi-doppler/issues); however, if that doesn't turn up anything, +> please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues). \ No newline at end of file diff --git a/sdk/python/pulumi_doppler/__init__.py b/sdk/python/pulumi_doppler/__init__.py new file mode 100644 index 0000000..a70723a --- /dev/null +++ b/sdk/python/pulumi_doppler/__init__.py @@ -0,0 +1,678 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +from . import _utilities +import typing +# Export this package's modules as members: +from .branch_config import * +from .change_request_policy import * +from .environment import * +from .get_environments import * +from .get_group import * +from .get_secrets import * +from .get_user import * +from .group import * +from .group_member import * +from .group_members import * +from .project import * +from .project_role import * +from .project_tag import * +from .provider import * +from .secret import * +from .secret_note import * +from .service_account import * +from .service_account_identity import * +from .service_account_token import * +from .service_token import * +from .tag import * +from .trusted_ips import * +from .webhook import * +from .workplace_role import * +from ._inputs import * +from . import outputs + +# Make subpackages available: +if typing.TYPE_CHECKING: + import pulumi_doppler.config as __config + config = __config + import pulumi_doppler.integration as __integration + integration = __integration + import pulumi_doppler.projectmember as __projectmember + projectmember = __projectmember + import pulumi_doppler.rotatedsecret as __rotatedsecret + rotatedsecret = __rotatedsecret + import pulumi_doppler.secretssync as __secretssync + secretssync = __secretssync +else: + config = _utilities.lazy_import('pulumi_doppler.config') + integration = _utilities.lazy_import('pulumi_doppler.integration') + projectmember = _utilities.lazy_import('pulumi_doppler.projectmember') + rotatedsecret = _utilities.lazy_import('pulumi_doppler.rotatedsecret') + secretssync = _utilities.lazy_import('pulumi_doppler.secretssync') + +_utilities.register( + resource_modules=""" +[ + { + "pkg": "doppler", + "mod": "index/branchConfig", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/branchConfig:BranchConfig": "BranchConfig" + } + }, + { + "pkg": "doppler", + "mod": "index/changeRequestPolicy", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/changeRequestPolicy:ChangeRequestPolicy": "ChangeRequestPolicy" + } + }, + { + "pkg": "doppler", + "mod": "index/environment", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/environment:Environment": "Environment" + } + }, + { + "pkg": "doppler", + "mod": "index/group", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/group:Group": "Group" + } + }, + { + "pkg": "doppler", + "mod": "index/groupMember", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/groupMember:GroupMember": "GroupMember" + } + }, + { + "pkg": "doppler", + "mod": "index/groupMembers", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/groupMembers:GroupMembers": "GroupMembers" + } + }, + { + "pkg": "doppler", + "mod": "index/project", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/project:Project": "Project" + } + }, + { + "pkg": "doppler", + "mod": "index/projectRole", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/projectRole:ProjectRole": "ProjectRole" + } + }, + { + "pkg": "doppler", + "mod": "index/projectTag", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/projectTag:ProjectTag": "ProjectTag" + } + }, + { + "pkg": "doppler", + "mod": "index/secret", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/secret:Secret": "Secret" + } + }, + { + "pkg": "doppler", + "mod": "index/secretNote", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/secretNote:SecretNote": "SecretNote" + } + }, + { + "pkg": "doppler", + "mod": "index/serviceAccount", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/serviceAccount:ServiceAccount": "ServiceAccount" + } + }, + { + "pkg": "doppler", + "mod": "index/serviceAccountIdentity", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/serviceAccountIdentity:ServiceAccountIdentity": "ServiceAccountIdentity" + } + }, + { + "pkg": "doppler", + "mod": "index/serviceAccountToken", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/serviceAccountToken:ServiceAccountToken": "ServiceAccountToken" + } + }, + { + "pkg": "doppler", + "mod": "index/serviceToken", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/serviceToken:ServiceToken": "ServiceToken" + } + }, + { + "pkg": "doppler", + "mod": "index/tag", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/tag:Tag": "Tag" + } + }, + { + "pkg": "doppler", + "mod": "index/trustedIps", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/trustedIps:TrustedIps": "TrustedIps" + } + }, + { + "pkg": "doppler", + "mod": "index/webhook", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/webhook:Webhook": "Webhook" + } + }, + { + "pkg": "doppler", + "mod": "index/workplaceRole", + "fqn": "pulumi_doppler", + "classes": { + "doppler:index/workplaceRole:WorkplaceRole": "WorkplaceRole" + } + }, + { + "pkg": "doppler", + "mod": "integration/awsIamUserKeys", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/awsIamUserKeys:AwsIamUserKeys": "AwsIamUserKeys" + } + }, + { + "pkg": "doppler", + "mod": "integration/awsMssql", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/awsMssql:AwsMssql": "AwsMssql" + } + }, + { + "pkg": "doppler", + "mod": "integration/awsMysql", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/awsMysql:AwsMysql": "AwsMysql" + } + }, + { + "pkg": "doppler", + "mod": "integration/awsParameterStore", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/awsParameterStore:AwsParameterStore": "AwsParameterStore" + } + }, + { + "pkg": "doppler", + "mod": "integration/awsPostgres", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/awsPostgres:AwsPostgres": "AwsPostgres" + } + }, + { + "pkg": "doppler", + "mod": "integration/awsSecretsManager", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/awsSecretsManager:AwsSecretsManager": "AwsSecretsManager" + } + }, + { + "pkg": "doppler", + "mod": "integration/azureDynamicServicePrincipal", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal": "AzureDynamicServicePrincipal" + } + }, + { + "pkg": "doppler", + "mod": "integration/azureDynamicServicePrincipalOidc", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc": "AzureDynamicServicePrincipalOidc" + } + }, + { + "pkg": "doppler", + "mod": "integration/azureRotatedServicePrincipal", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal": "AzureRotatedServicePrincipal" + } + }, + { + "pkg": "doppler", + "mod": "integration/azureRotatedServicePrincipalOidc", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc": "AzureRotatedServicePrincipalOidc" + } + }, + { + "pkg": "doppler", + "mod": "integration/azureVaultServicePrincipal", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal": "AzureVaultServicePrincipal" + } + }, + { + "pkg": "doppler", + "mod": "integration/circleci", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/circleci:Circleci": "Circleci" + } + }, + { + "pkg": "doppler", + "mod": "integration/cloudflareTokens", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/cloudflareTokens:CloudflareTokens": "CloudflareTokens" + } + }, + { + "pkg": "doppler", + "mod": "integration/externalId", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/externalId:ExternalId": "ExternalId" + } + }, + { + "pkg": "doppler", + "mod": "integration/flyio", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/flyio:Flyio": "Flyio" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpCloudsqlMysql", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql": "GcpCloudsqlMysql" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpCloudsqlMysqlOidc", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc": "GcpCloudsqlMysqlOidc" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpCloudsqlPostgres", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres": "GcpCloudsqlPostgres" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpCloudsqlPostgresOidc", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc": "GcpCloudsqlPostgresOidc" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpCloudsqlSqlserver", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver": "GcpCloudsqlSqlserver" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpCloudsqlSqlserverOidc", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc": "GcpCloudsqlSqlserverOidc" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpSecretManager", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpSecretManager:GcpSecretManager": "GcpSecretManager" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpSecretManagerOidc", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc": "GcpSecretManagerOidc" + } + }, + { + "pkg": "doppler", + "mod": "integration/gcpServiceAccountKeys", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys": "GcpServiceAccountKeys" + } + }, + { + "pkg": "doppler", + "mod": "integration/memberGroup", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/memberGroup:MemberGroup": "MemberGroup" + } + }, + { + "pkg": "doppler", + "mod": "integration/memberServiceAccount", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/memberServiceAccount:MemberServiceAccount": "MemberServiceAccount" + } + }, + { + "pkg": "doppler", + "mod": "integration/memberUser", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/memberUser:MemberUser": "MemberUser" + } + }, + { + "pkg": "doppler", + "mod": "integration/mongodbAtlas", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/mongodbAtlas:MongodbAtlas": "MongodbAtlas" + } + }, + { + "pkg": "doppler", + "mod": "integration/openai", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/openai:Openai": "Openai" + } + }, + { + "pkg": "doppler", + "mod": "integration/sendgrid", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/sendgrid:Sendgrid": "Sendgrid" + } + }, + { + "pkg": "doppler", + "mod": "integration/terraformCloud", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/terraformCloud:TerraformCloud": "TerraformCloud" + } + }, + { + "pkg": "doppler", + "mod": "integration/twilio", + "fqn": "pulumi_doppler.integration", + "classes": { + "doppler:integration/twilio:Twilio": "Twilio" + } + }, + { + "pkg": "doppler", + "mod": "projectMember/group", + "fqn": "pulumi_doppler.projectmember", + "classes": { + "doppler:projectMember/group:Group": "Group" + } + }, + { + "pkg": "doppler", + "mod": "projectMember/serviceAccount", + "fqn": "pulumi_doppler.projectmember", + "classes": { + "doppler:projectMember/serviceAccount:ServiceAccount": "ServiceAccount" + } + }, + { + "pkg": "doppler", + "mod": "projectMember/user", + "fqn": "pulumi_doppler.projectmember", + "classes": { + "doppler:projectMember/user:User": "User" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/awsIamUserKeys", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys": "AwsIamUserKeys" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/awsMssql", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/awsMssql:AwsMssql": "AwsMssql" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/awsMysql", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/awsMysql:AwsMysql": "AwsMysql" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/awsPostgres", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/awsPostgres:AwsPostgres": "AwsPostgres" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/cloudflareTokens", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/cloudflareTokens:CloudflareTokens": "CloudflareTokens" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/gcpCloudsql", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/gcpCloudsql:GcpCloudsql": "GcpCloudsql" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/gcpServiceAccountKeys", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys": "GcpServiceAccountKeys" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/mongodbAtlas", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/mongodbAtlas:MongodbAtlas": "MongodbAtlas" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/openai", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/openai:Openai": "Openai" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/sendgrid", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/sendgrid:Sendgrid": "Sendgrid" + } + }, + { + "pkg": "doppler", + "mod": "rotatedSecret/twilio", + "fqn": "pulumi_doppler.rotatedsecret", + "classes": { + "doppler:rotatedSecret/twilio:Twilio": "Twilio" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/awsParameterStore", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/awsParameterStore:AwsParameterStore": "AwsParameterStore" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/awsSecretsManager", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/awsSecretsManager:AwsSecretsManager": "AwsSecretsManager" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/azureVault", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/azureVault:AzureVault": "AzureVault" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/circleci", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/circleci:Circleci": "Circleci" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/flyio", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/flyio:Flyio": "Flyio" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/gcpSecretManager", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/gcpSecretManager:GcpSecretManager": "GcpSecretManager" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/githubActions", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/githubActions:GithubActions": "GithubActions" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/githubAgents", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/githubAgents:GithubAgents": "GithubAgents" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/githubCodespaces", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/githubCodespaces:GithubCodespaces": "GithubCodespaces" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/githubDependabot", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/githubDependabot:GithubDependabot": "GithubDependabot" + } + }, + { + "pkg": "doppler", + "mod": "secretsSync/terraformCloud", + "fqn": "pulumi_doppler.secretssync", + "classes": { + "doppler:secretsSync/terraformCloud:TerraformCloud": "TerraformCloud" + } + } +] +""", + resource_packages=""" +[ + { + "pkg": "doppler", + "token": "pulumi:providers:doppler", + "fqn": "pulumi_doppler", + "class": "Provider" + } +] +""" +) diff --git a/sdk/python/pulumi_doppler/_inputs.py b/sdk/python/pulumi_doppler/_inputs.py new file mode 100644 index 0000000..eaa892b --- /dev/null +++ b/sdk/python/pulumi_doppler/_inputs.py @@ -0,0 +1,479 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = [ + 'ChangeRequestPolicyRulesArgs', + 'ChangeRequestPolicyRulesArgsDict', + 'ChangeRequestPolicyRulesRequiredReviewerArgs', + 'ChangeRequestPolicyRulesRequiredReviewerArgsDict', + 'ChangeRequestPolicyTargetsArgs', + 'ChangeRequestPolicyTargetsArgsDict', + 'ChangeRequestPolicyTargetsProjectArgs', + 'ChangeRequestPolicyTargetsProjectArgsDict', + 'ServiceAccountIdentityConfigOidcArgs', + 'ServiceAccountIdentityConfigOidcArgsDict', + 'ServiceAccountIdentityConfigOidcClaimArgs', + 'ServiceAccountIdentityConfigOidcClaimArgsDict', + 'WebhookAuthenticationArgs', + 'WebhookAuthenticationArgsDict', +] + +class ChangeRequestPolicyRulesArgsDict(TypedDict): + auto_assign_reviewers: NotRequired[pulumi.Input[Optional[_builtins.str]]] + """ + If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + """ + disallow_self_review: NotRequired[pulumi.Input[Optional[_builtins.bool]]] + """ + If true, approvals from the author of a change request will be excluded when evaluating this policy + """ + required_reviewers: NotRequired[pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyRulesRequiredReviewerArgsDict']]]]] + """ + Enforces that a specific number of users approve a change request before it can be applied + """ + +@pulumi.input_type +class ChangeRequestPolicyRulesArgs: + def __init__(__self__, *, + auto_assign_reviewers: pulumi.Input[Optional[_builtins.str]] = None, + disallow_self_review: pulumi.Input[Optional[_builtins.bool]] = None, + required_reviewers: pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyRulesRequiredReviewerArgs']]]] = None): + """ + :param pulumi.Input[_builtins.str] auto_assign_reviewers: If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + :param pulumi.Input[_builtins.bool] disallow_self_review: If true, approvals from the author of a change request will be excluded when evaluating this policy + :param pulumi.Input[Sequence[pulumi.Input['ChangeRequestPolicyRulesRequiredReviewerArgs']]] required_reviewers: Enforces that a specific number of users approve a change request before it can be applied + """ + if auto_assign_reviewers is not None: + pulumi.set(__self__, "auto_assign_reviewers", auto_assign_reviewers) + if disallow_self_review is not None: + pulumi.set(__self__, "disallow_self_review", disallow_self_review) + if required_reviewers is not None: + pulumi.set(__self__, "required_reviewers", required_reviewers) + + @_builtins.property + @pulumi.getter(name="autoAssignReviewers") + def auto_assign_reviewers(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + """ + return pulumi.get(self, "auto_assign_reviewers") + + @auto_assign_reviewers.setter + def auto_assign_reviewers(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "auto_assign_reviewers", value) + + @_builtins.property + @pulumi.getter(name="disallowSelfReview") + def disallow_self_review(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + If true, approvals from the author of a change request will be excluded when evaluating this policy + """ + return pulumi.get(self, "disallow_self_review") + + @disallow_self_review.setter + def disallow_self_review(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "disallow_self_review", value) + + @_builtins.property + @pulumi.getter(name="requiredReviewers") + def required_reviewers(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyRulesRequiredReviewerArgs']]]]: + """ + Enforces that a specific number of users approve a change request before it can be applied + """ + return pulumi.get(self, "required_reviewers") + + @required_reviewers.setter + def required_reviewers(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyRulesRequiredReviewerArgs']]]]): + pulumi.set(self, "required_reviewers", value) + + +class ChangeRequestPolicyRulesRequiredReviewerArgsDict(TypedDict): + count: pulumi.Input[_builtins.int] + """ + The number of approvals a change request must receive before it can be applied + """ + group_slugs: NotRequired[pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]] + """ + If set, only approvals from members of these groups will satisfy this rule + """ + user_slugs: NotRequired[pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]] + """ + If set, only approvals from these users will satisfy this rule + """ + +@pulumi.input_type +class ChangeRequestPolicyRulesRequiredReviewerArgs: + def __init__(__self__, *, + count: pulumi.Input[_builtins.int], + group_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + user_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): + """ + :param pulumi.Input[_builtins.int] count: The number of approvals a change request must receive before it can be applied + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] group_slugs: If set, only approvals from members of these groups will satisfy this rule + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] user_slugs: If set, only approvals from these users will satisfy this rule + """ + pulumi.set(__self__, "count", count) + if group_slugs is not None: + pulumi.set(__self__, "group_slugs", group_slugs) + if user_slugs is not None: + pulumi.set(__self__, "user_slugs", user_slugs) + + @_builtins.property + @pulumi.getter + def count(self) -> pulumi.Input[_builtins.int]: + """ + The number of approvals a change request must receive before it can be applied + """ + return pulumi.get(self, "count") + + @count.setter + def count(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "count", value) + + @_builtins.property + @pulumi.getter(name="groupSlugs") + def group_slugs(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + If set, only approvals from members of these groups will satisfy this rule + """ + return pulumi.get(self, "group_slugs") + + @group_slugs.setter + def group_slugs(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "group_slugs", value) + + @_builtins.property + @pulumi.getter(name="userSlugs") + def user_slugs(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + If set, only approvals from these users will satisfy this rule + """ + return pulumi.get(self, "user_slugs") + + @user_slugs.setter + def user_slugs(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "user_slugs", value) + + +class ChangeRequestPolicyTargetsArgsDict(TypedDict): + all_projects: NotRequired[pulumi.Input[Optional[_builtins.bool]]] + """ + Whether or not the policy applies to all projects in the workplace + """ + projects: NotRequired[pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyTargetsProjectArgsDict']]]]] + """ + A project that the policy will apply to + """ + +@pulumi.input_type +class ChangeRequestPolicyTargetsArgs: + def __init__(__self__, *, + all_projects: pulumi.Input[Optional[_builtins.bool]] = None, + projects: pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyTargetsProjectArgs']]]] = None): + """ + :param pulumi.Input[_builtins.bool] all_projects: Whether or not the policy applies to all projects in the workplace + :param pulumi.Input[Sequence[pulumi.Input['ChangeRequestPolicyTargetsProjectArgs']]] projects: A project that the policy will apply to + """ + if all_projects is not None: + pulumi.set(__self__, "all_projects", all_projects) + if projects is not None: + pulumi.set(__self__, "projects", projects) + + @_builtins.property + @pulumi.getter(name="allProjects") + def all_projects(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the policy applies to all projects in the workplace + """ + return pulumi.get(self, "all_projects") + + @all_projects.setter + def all_projects(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "all_projects", value) + + @_builtins.property + @pulumi.getter + def projects(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyTargetsProjectArgs']]]]: + """ + A project that the policy will apply to + """ + return pulumi.get(self, "projects") + + @projects.setter + def projects(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['ChangeRequestPolicyTargetsProjectArgs']]]]): + pulumi.set(self, "projects", value) + + +class ChangeRequestPolicyTargetsProjectArgsDict(TypedDict): + project_name: pulumi.Input[_builtins.str] + """ + The name of the project to apply the policy to + """ + all: NotRequired[pulumi.Input[Optional[_builtins.bool]]] + """ + Whether or not the policy applies to all configs in the project + """ + config_names: NotRequired[pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]] + """ + Specific configs the policy applies to + """ + environment_slugs: NotRequired[pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]] + """ + Entire environments the policy applies to + """ + +@pulumi.input_type +class ChangeRequestPolicyTargetsProjectArgs: + def __init__(__self__, *, + project_name: pulumi.Input[_builtins.str], + all: pulumi.Input[Optional[_builtins.bool]] = None, + config_names: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + environment_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): + """ + :param pulumi.Input[_builtins.str] project_name: The name of the project to apply the policy to + :param pulumi.Input[_builtins.bool] all: Whether or not the policy applies to all configs in the project + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] config_names: Specific configs the policy applies to + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environment_slugs: Entire environments the policy applies to + """ + pulumi.set(__self__, "project_name", project_name) + if all is not None: + pulumi.set(__self__, "all", all) + if config_names is not None: + pulumi.set(__self__, "config_names", config_names) + if environment_slugs is not None: + pulumi.set(__self__, "environment_slugs", environment_slugs) + + @_builtins.property + @pulumi.getter(name="projectName") + def project_name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the project to apply the policy to + """ + return pulumi.get(self, "project_name") + + @project_name.setter + def project_name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project_name", value) + + @_builtins.property + @pulumi.getter + def all(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the policy applies to all configs in the project + """ + return pulumi.get(self, "all") + + @all.setter + def all(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "all", value) + + @_builtins.property + @pulumi.getter(name="configNames") + def config_names(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + Specific configs the policy applies to + """ + return pulumi.get(self, "config_names") + + @config_names.setter + def config_names(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "config_names", value) + + @_builtins.property + @pulumi.getter(name="environmentSlugs") + def environment_slugs(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + Entire environments the policy applies to + """ + return pulumi.get(self, "environment_slugs") + + @environment_slugs.setter + def environment_slugs(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "environment_slugs", value) + + +class ServiceAccountIdentityConfigOidcArgsDict(TypedDict): + claims: pulumi.Input[Sequence[pulumi.Input['ServiceAccountIdentityConfigOidcClaimArgsDict']]] + """ + A set of valid values for a specific claim. At least "aud" and "sub" must be provided + """ + discovery_url: pulumi.Input[_builtins.str] + """ + The public URL of the OpenID discovery service + """ + claims_type: NotRequired[pulumi.Input[Optional[_builtins.str]]] + """ + If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + """ + +@pulumi.input_type +class ServiceAccountIdentityConfigOidcArgs: + def __init__(__self__, *, + claims: pulumi.Input[Sequence[pulumi.Input['ServiceAccountIdentityConfigOidcClaimArgs']]], + discovery_url: pulumi.Input[_builtins.str], + claims_type: pulumi.Input[Optional[_builtins.str]] = None): + """ + :param pulumi.Input[Sequence[pulumi.Input['ServiceAccountIdentityConfigOidcClaimArgs']]] claims: A set of valid values for a specific claim. At least "aud" and "sub" must be provided + :param pulumi.Input[_builtins.str] discovery_url: The public URL of the OpenID discovery service + :param pulumi.Input[_builtins.str] claims_type: If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + """ + pulumi.set(__self__, "claims", claims) + pulumi.set(__self__, "discovery_url", discovery_url) + if claims_type is not None: + pulumi.set(__self__, "claims_type", claims_type) + + @_builtins.property + @pulumi.getter + def claims(self) -> pulumi.Input[Sequence[pulumi.Input['ServiceAccountIdentityConfigOidcClaimArgs']]]: + """ + A set of valid values for a specific claim. At least "aud" and "sub" must be provided + """ + return pulumi.get(self, "claims") + + @claims.setter + def claims(self, value: pulumi.Input[Sequence[pulumi.Input['ServiceAccountIdentityConfigOidcClaimArgs']]]): + pulumi.set(self, "claims", value) + + @_builtins.property + @pulumi.getter(name="discoveryUrl") + def discovery_url(self) -> pulumi.Input[_builtins.str]: + """ + The public URL of the OpenID discovery service + """ + return pulumi.get(self, "discovery_url") + + @discovery_url.setter + def discovery_url(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "discovery_url", value) + + @_builtins.property + @pulumi.getter(name="claimsType") + def claims_type(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + """ + return pulumi.get(self, "claims_type") + + @claims_type.setter + def claims_type(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "claims_type", value) + + +class ServiceAccountIdentityConfigOidcClaimArgsDict(TypedDict): + key: pulumi.Input[_builtins.str] + """ + The key of the claim to validate + """ + values: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] + """ + The set of valid values for this claim + """ + +@pulumi.input_type +class ServiceAccountIdentityConfigOidcClaimArgs: + def __init__(__self__, *, + key: pulumi.Input[_builtins.str], + values: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + """ + :param pulumi.Input[_builtins.str] key: The key of the claim to validate + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] values: The set of valid values for this claim + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "values", values) + + @_builtins.property + @pulumi.getter + def key(self) -> pulumi.Input[_builtins.str]: + """ + The key of the claim to validate + """ + return pulumi.get(self, "key") + + @key.setter + def key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "key", value) + + @_builtins.property + @pulumi.getter + def values(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: + """ + The set of valid values for this claim + """ + return pulumi.get(self, "values") + + @values.setter + def values(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + pulumi.set(self, "values", value) + + +class WebhookAuthenticationArgsDict(TypedDict): + type: pulumi.Input[_builtins.str] + password: NotRequired[pulumi.Input[Optional[_builtins.str]]] + token: NotRequired[pulumi.Input[Optional[_builtins.str]]] + username: NotRequired[pulumi.Input[Optional[_builtins.str]]] + +@pulumi.input_type +class WebhookAuthenticationArgs: + def __init__(__self__, *, + type: pulumi.Input[_builtins.str], + password: pulumi.Input[Optional[_builtins.str]] = None, + token: pulumi.Input[Optional[_builtins.str]] = None, + username: pulumi.Input[Optional[_builtins.str]] = None): + pulumi.set(__self__, "type", type) + if password is not None: + pulumi.set(__self__, "password", password) + if token is not None: + pulumi.set(__self__, "token", token) + if username is not None: + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def type(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "type") + + @type.setter + def type(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "type", value) + + @_builtins.property + @pulumi.getter + def password(self) -> pulumi.Input[Optional[_builtins.str]]: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "password", value) + + @_builtins.property + @pulumi.getter + def token(self) -> pulumi.Input[Optional[_builtins.str]]: + return pulumi.get(self, "token") + + @token.setter + def token(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "token", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[Optional[_builtins.str]]: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "username", value) + + diff --git a/sdk/python/pulumiverse_doppler/_utilities.py b/sdk/python/pulumi_doppler/_utilities.py similarity index 87% rename from sdk/python/pulumiverse_doppler/_utilities.py rename to sdk/python/pulumi_doppler/_utilities.py index e1b3372..148f74e 100644 --- a/sdk/python/pulumiverse_doppler/_utilities.py +++ b/sdk/python/pulumi_doppler/_utilities.py @@ -1,5 +1,5 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** @@ -13,15 +13,13 @@ import sys import typing import warnings -import base64 import pulumi import pulumi.runtime from pulumi.runtime.sync_await import _sync_await -from pulumi.runtime.proto import resource_pb2 +from packaging.version import Version as PEP440Version from semver import VersionInfo as SemverVersion -from parver import Version as PEP440Version C = typing.TypeVar("C", bound=typing.Callable) @@ -71,30 +69,33 @@ def _get_semver_version(): # ._utilities. is the module we want to query the version for. root_package, *rest = __name__.split('.') - # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask - # for the currently installed version of the root package (i.e. us) and get its version. - # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects # to receive a valid semver string when receiving requests from the language host, so it's our # responsibility as the library to convert our own PEP440 version into a valid semver string. pep440_version_string = importlib.metadata.version(root_package) - pep440_version = PEP440Version.parse(pep440_version_string) + pep440_version = PEP440Version(pep440_version_string) (major, minor, patch) = pep440_version.release prerelease = None - if pep440_version.pre_tag == 'a': - prerelease = f"alpha.{pep440_version.pre}" - elif pep440_version.pre_tag == 'b': - prerelease = f"beta.{pep440_version.pre}" - elif pep440_version.pre_tag == 'rc': - prerelease = f"rc.{pep440_version.pre}" + if pep440_version.pre is not None: + pre_tag, pre_number = pep440_version.pre + if pre_tag == 'a': + prerelease = f"alpha.{pre_number}" + elif pre_tag == 'b': + prerelease = f"beta.{pre_number}" + elif pre_tag == 'rc': + prerelease = f"rc.{pre_number}" elif pep440_version.dev is not None: + # PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge + # between the two, we convert our dev build version into a prerelease tag. This matches what all of our other + # packages do when constructing their own semver string. prerelease = f"dev.{pep440_version.dev}" + elif pep440_version.local is not None: + # PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease, + # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to + # do the reverse conversion here and set the local version as the prerelease tag. + prerelease = pep440_version.local - # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support - # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert - # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing - # their own semver string. return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease) @@ -264,7 +265,7 @@ def call_plain( output = pulumi.runtime.call(tok, props, res, typ) # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency. - result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output))) + result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output))) problem = None if not known: @@ -321,7 +322,7 @@ def deprecated_fn(*args, **kwargs): return decorator def get_plugin_download_url(): - return "github://api.github.com/pulumiverse" + return "github://api.github.com/DopplerHQ" def get_version(): return _version_str diff --git a/sdk/python/pulumi_doppler/branch_config.py b/sdk/python/pulumi_doppler/branch_config.py new file mode 100644 index 0000000..c3ac61b --- /dev/null +++ b/sdk/python/pulumi_doppler/branch_config.py @@ -0,0 +1,411 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['BranchConfigArgs', 'BranchConfig'] + +@pulumi.input_type +class BranchConfigArgs: + def __init__(__self__, *, + environment: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + inheritable: pulumi.Input[Optional[_builtins.bool]] = None, + inherits: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a BranchConfig resource. + + :param pulumi.Input[_builtins.str] environment: The name of the Doppler environment where the config is located + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + :param pulumi.Input[_builtins.bool] inheritable: Whether or not the Doppler config can be inherited by other configs + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] inherits: A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + :param pulumi.Input[_builtins.str] name: The name of the Doppler config + """ + pulumi.set(__self__, "environment", environment) + pulumi.set(__self__, "project", project) + if inheritable is not None: + pulumi.set(__self__, "inheritable", inheritable) + if inherits is not None: + pulumi.set(__self__, "inherits", inherits) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter + def environment(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler environment where the config is located + """ + return pulumi.get(self, "environment") + + @environment.setter + def environment(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "environment", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project where the config is located + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def inheritable(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the Doppler config can be inherited by other configs + """ + return pulumi.get(self, "inheritable") + + @inheritable.setter + def inheritable(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "inheritable", value) + + @_builtins.property + @pulumi.getter + def inherits(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + """ + return pulumi.get(self, "inherits") + + @inherits.setter + def inherits(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "inherits", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _BranchConfigState: + def __init__(__self__, *, + descriptor: pulumi.Input[Optional[_builtins.str]] = None, + environment: pulumi.Input[Optional[_builtins.str]] = None, + inheritable: pulumi.Input[Optional[_builtins.bool]] = None, + inherits: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering BranchConfig resources. + + :param pulumi.Input[_builtins.str] descriptor: The descriptor (project.config) of the Doppler config + :param pulumi.Input[_builtins.str] environment: The name of the Doppler environment where the config is located + :param pulumi.Input[_builtins.bool] inheritable: Whether or not the Doppler config can be inherited by other configs + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] inherits: A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + :param pulumi.Input[_builtins.str] name: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + """ + if descriptor is not None: + pulumi.set(__self__, "descriptor", descriptor) + if environment is not None: + pulumi.set(__self__, "environment", environment) + if inheritable is not None: + pulumi.set(__self__, "inheritable", inheritable) + if inherits is not None: + pulumi.set(__self__, "inherits", inherits) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + + @_builtins.property + @pulumi.getter + def descriptor(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The descriptor (project.config) of the Doppler config + """ + return pulumi.get(self, "descriptor") + + @descriptor.setter + def descriptor(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "descriptor", value) + + @_builtins.property + @pulumi.getter + def environment(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler environment where the config is located + """ + return pulumi.get(self, "environment") + + @environment.setter + def environment(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "environment", value) + + @_builtins.property + @pulumi.getter + def inheritable(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the Doppler config can be inherited by other configs + """ + return pulumi.get(self, "inheritable") + + @inheritable.setter + def inheritable(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "inheritable", value) + + @_builtins.property + @pulumi.getter + def inherits(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + """ + return pulumi.get(self, "inherits") + + @inherits.setter + def inherits(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "inherits", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project where the config is located + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + +@pulumi.type_token("doppler:index/branchConfig:BranchConfig") +class BranchConfig(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + environment: pulumi.Input[Optional[_builtins.str]] = None, + inheritable: pulumi.Input[Optional[_builtins.bool]] = None, + inherits: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler config. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend_ci_github = doppler.BranchConfig("backend_ci_github", + project="backend", + environment="ci", + name="ci_github") + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/branchConfig:BranchConfig default .. + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] environment: The name of the Doppler environment where the config is located + :param pulumi.Input[_builtins.bool] inheritable: Whether or not the Doppler config can be inherited by other configs + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] inherits: A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + :param pulumi.Input[_builtins.str] name: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: BranchConfigArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler config. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend_ci_github = doppler.BranchConfig("backend_ci_github", + project="backend", + environment="ci", + name="ci_github") + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/branchConfig:BranchConfig default .. + ``` + + + :param str resource_name: The name of the resource. + :param BranchConfigArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(BranchConfigArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + environment: pulumi.Input[Optional[_builtins.str]] = None, + inheritable: pulumi.Input[Optional[_builtins.bool]] = None, + inherits: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = BranchConfigArgs.__new__(BranchConfigArgs) + + if environment is None and not opts.urn: + raise TypeError("Missing required property 'environment'") + __props__.__dict__["environment"] = environment + __props__.__dict__["inheritable"] = inheritable + __props__.__dict__["inherits"] = inherits + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["descriptor"] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="doppler:index/config:Config")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(BranchConfig, __self__).__init__( + 'doppler:index/branchConfig:BranchConfig', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + descriptor: pulumi.Input[Optional[_builtins.str]] = None, + environment: pulumi.Input[Optional[_builtins.str]] = None, + inheritable: pulumi.Input[Optional[_builtins.bool]] = None, + inherits: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None) -> 'BranchConfig': + """ + Get an existing BranchConfig resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] descriptor: The descriptor (project.config) of the Doppler config + :param pulumi.Input[_builtins.str] environment: The name of the Doppler environment where the config is located + :param pulumi.Input[_builtins.bool] inheritable: Whether or not the Doppler config can be inherited by other configs + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] inherits: A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + :param pulumi.Input[_builtins.str] name: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _BranchConfigState.__new__(_BranchConfigState) + + __props__.__dict__["descriptor"] = descriptor + __props__.__dict__["environment"] = environment + __props__.__dict__["inheritable"] = inheritable + __props__.__dict__["inherits"] = inherits + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + return BranchConfig(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def descriptor(self) -> pulumi.Output[_builtins.str]: + """ + The descriptor (project.config) of the Doppler config + """ + return pulumi.get(self, "descriptor") + + @_builtins.property + @pulumi.getter + def environment(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler environment where the config is located + """ + return pulumi.get(self, "environment") + + @_builtins.property + @pulumi.getter + def inheritable(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + Whether or not the Doppler config can be inherited by other configs + """ + return pulumi.get(self, "inheritable") + + @_builtins.property + @pulumi.getter + def inherits(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]: + """ + A list of other Doppler config descriptors that this config inherits from. Descriptors match the format "project.config" (e.g. backend.stg), which is most easily retrieved as the computed descriptor of a doppler*config resource (e.g. doppler*config.backend_stg.descriptor) + """ + return pulumi.get(self, "inherits") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project where the config is located + """ + return pulumi.get(self, "project") + diff --git a/sdk/python/pulumi_doppler/change_request_policy.py b/sdk/python/pulumi_doppler/change_request_policy.py new file mode 100644 index 0000000..e957419 --- /dev/null +++ b/sdk/python/pulumi_doppler/change_request_policy.py @@ -0,0 +1,459 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['ChangeRequestPolicyArgs', 'ChangeRequestPolicy'] + +@pulumi.input_type +class ChangeRequestPolicyArgs: + def __init__(__self__, *, + name: pulumi.Input[_builtins.str], + rules: pulumi.Input['ChangeRequestPolicyRulesArgs'], + targets: pulumi.Input['ChangeRequestPolicyTargetsArgs'], + description: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a ChangeRequestPolicy resource. + + :param pulumi.Input[_builtins.str] name: The name of the change request policy + :param pulumi.Input['ChangeRequestPolicyRulesArgs'] rules: Rules that the policy will apply to its targets + :param pulumi.Input['ChangeRequestPolicyTargetsArgs'] targets: Where the policy will apply + :param pulumi.Input[_builtins.str] description: A description of the change request policy + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "rules", rules) + pulumi.set(__self__, "targets", targets) + if description is not None: + pulumi.set(__self__, "description", description) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the change request policy + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def rules(self) -> pulumi.Input['ChangeRequestPolicyRulesArgs']: + """ + Rules that the policy will apply to its targets + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: pulumi.Input['ChangeRequestPolicyRulesArgs']): + pulumi.set(self, "rules", value) + + @_builtins.property + @pulumi.getter + def targets(self) -> pulumi.Input['ChangeRequestPolicyTargetsArgs']: + """ + Where the policy will apply + """ + return pulumi.get(self, "targets") + + @targets.setter + def targets(self, value: pulumi.Input['ChangeRequestPolicyTargetsArgs']): + pulumi.set(self, "targets", value) + + @_builtins.property + @pulumi.getter + def description(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A description of the change request policy + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "description", value) + + +@pulumi.input_type +class _ChangeRequestPolicyState: + def __init__(__self__, *, + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + rules: pulumi.Input[Optional['ChangeRequestPolicyRulesArgs']] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + targets: pulumi.Input[Optional['ChangeRequestPolicyTargetsArgs']] = None): + """ + Input properties used for looking up and filtering ChangeRequestPolicy resources. + + :param pulumi.Input[_builtins.str] description: A description of the change request policy + :param pulumi.Input[_builtins.str] name: The name of the change request policy + :param pulumi.Input['ChangeRequestPolicyRulesArgs'] rules: Rules that the policy will apply to its targets + :param pulumi.Input[_builtins.str] slug: The unique identifier of the change request policy + :param pulumi.Input['ChangeRequestPolicyTargetsArgs'] targets: Where the policy will apply + """ + if description is not None: + pulumi.set(__self__, "description", description) + if name is not None: + pulumi.set(__self__, "name", name) + if rules is not None: + pulumi.set(__self__, "rules", rules) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if targets is not None: + pulumi.set(__self__, "targets", targets) + + @_builtins.property + @pulumi.getter + def description(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A description of the change request policy + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "description", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the change request policy + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def rules(self) -> pulumi.Input[Optional['ChangeRequestPolicyRulesArgs']]: + """ + Rules that the policy will apply to its targets + """ + return pulumi.get(self, "rules") + + @rules.setter + def rules(self, value: pulumi.Input[Optional['ChangeRequestPolicyRulesArgs']]): + pulumi.set(self, "rules", value) + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The unique identifier of the change request policy + """ + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "slug", value) + + @_builtins.property + @pulumi.getter + def targets(self) -> pulumi.Input[Optional['ChangeRequestPolicyTargetsArgs']]: + """ + Where the policy will apply + """ + return pulumi.get(self, "targets") + + @targets.setter + def targets(self, value: pulumi.Input[Optional['ChangeRequestPolicyTargetsArgs']]): + pulumi.set(self, "targets", value) + + +@pulumi.type_token("doppler:index/changeRequestPolicy:ChangeRequestPolicy") +class ChangeRequestPolicy(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + rules: pulumi.Input[Optional[Union['ChangeRequestPolicyRulesArgs', 'ChangeRequestPolicyRulesArgsDict', 'outputs.ChangeRequestPolicyRules']]] = None, + targets: pulumi.Input[Optional[Union['ChangeRequestPolicyTargetsArgs', 'ChangeRequestPolicyTargetsArgsDict', 'outputs.ChangeRequestPolicyTargets']]] = None, + __props__=None): + """ + Manage a Doppler change request policy. + + ## Example Usage + + ```python + import pulumi + from typing import Any + import pulumi_doppler as doppler + + nic = doppler.get_user(email="nic@doppler.com") + emily = doppler.get_user(email="emily@doppler.com") + test_proj = doppler.Project("test_proj", + name="my-test-project", + description="This is a test project") + prd = doppler.Environment("prd", + project=test_proj.name, + slug="prd", + name="prd") + ci = doppler.Environment("ci", + project=test_proj.name, + slug="ci", + name="CI-CD") + ci_github = doppler.BranchConfig("ci_github", + project=test_proj.name, + environment=ci.slug, + name="ci_github") + prod_reviewers = doppler.Group("prod_reviewers", name="Prod Reviewers") + prod_reviewers_group_member: list[doppler.GroupMember] = [] + for prod_reviewers_group_member_range in [{"key": k, "value": v} for [k, v] in enumerate({entry: entry for entry in [nic.slug]})]: + prod_reviewers_group_member.append(doppler.GroupMember(f"prod_reviewers-{prod_reviewers_group_member_range['key']}", + group_slug=prod_reviewers.slug, + user_slug=prod_reviewers_group_member_range["value"])) + prd_review = doppler.ChangeRequestPolicy("prd_review", + rules={ + "required_reviewers": [ + { + "count": 2, + }, + { + "count": 1, + "group_slugs": [prod_reviewers.slug], + "user_slugs": [emily.slug], + }, + ], + "disallow_self_review": True, + "auto_assign_reviewers": "matchCount", + }, + targets={ + "projects": [{ + "project_name": test_proj.name, + "environment_slugs": [prd.slug], + "config_names": [ci_github.name], + }], + }, + name="Prod Review", + description=\"\"\"A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group. + Reviews from the author of the change request are not counted. + This policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config. + \"\"\") + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/changeRequestPolicy:ChangeRequestPolicy + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] description: A description of the change request policy + :param pulumi.Input[_builtins.str] name: The name of the change request policy + :param pulumi.Input[Union['ChangeRequestPolicyRulesArgs', 'ChangeRequestPolicyRulesArgsDict', 'outputs.ChangeRequestPolicyRules']] rules: Rules that the policy will apply to its targets + :param pulumi.Input[Union['ChangeRequestPolicyTargetsArgs', 'ChangeRequestPolicyTargetsArgsDict', 'outputs.ChangeRequestPolicyTargets']] targets: Where the policy will apply + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ChangeRequestPolicyArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler change request policy. + + ## Example Usage + + ```python + import pulumi + from typing import Any + import pulumi_doppler as doppler + + nic = doppler.get_user(email="nic@doppler.com") + emily = doppler.get_user(email="emily@doppler.com") + test_proj = doppler.Project("test_proj", + name="my-test-project", + description="This is a test project") + prd = doppler.Environment("prd", + project=test_proj.name, + slug="prd", + name="prd") + ci = doppler.Environment("ci", + project=test_proj.name, + slug="ci", + name="CI-CD") + ci_github = doppler.BranchConfig("ci_github", + project=test_proj.name, + environment=ci.slug, + name="ci_github") + prod_reviewers = doppler.Group("prod_reviewers", name="Prod Reviewers") + prod_reviewers_group_member: list[doppler.GroupMember] = [] + for prod_reviewers_group_member_range in [{"key": k, "value": v} for [k, v] in enumerate({entry: entry for entry in [nic.slug]})]: + prod_reviewers_group_member.append(doppler.GroupMember(f"prod_reviewers-{prod_reviewers_group_member_range['key']}", + group_slug=prod_reviewers.slug, + user_slug=prod_reviewers_group_member_range["value"])) + prd_review = doppler.ChangeRequestPolicy("prd_review", + rules={ + "required_reviewers": [ + { + "count": 2, + }, + { + "count": 1, + "group_slugs": [prod_reviewers.slug], + "user_slugs": [emily.slug], + }, + ], + "disallow_self_review": True, + "auto_assign_reviewers": "matchCount", + }, + targets={ + "projects": [{ + "project_name": test_proj.name, + "environment_slugs": [prd.slug], + "config_names": [ci_github.name], + }], + }, + name="Prod Review", + description=\"\"\"A change request policy which requires 2 total approvals, and 1 approval from emily or any member of the prod_reviewers group. + Reviews from the author of the change request are not counted. + This policy is enforced in all configs of the prd environment of test_proj, as well as the ci_github branch config. + \"\"\") + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/changeRequestPolicy:ChangeRequestPolicy + ``` + + + :param str resource_name: The name of the resource. + :param ChangeRequestPolicyArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ChangeRequestPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + rules: pulumi.Input[Optional[Union['ChangeRequestPolicyRulesArgs', 'ChangeRequestPolicyRulesArgsDict', 'outputs.ChangeRequestPolicyRules']]] = None, + targets: pulumi.Input[Optional[Union['ChangeRequestPolicyTargetsArgs', 'ChangeRequestPolicyTargetsArgsDict', 'outputs.ChangeRequestPolicyTargets']]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ChangeRequestPolicyArgs.__new__(ChangeRequestPolicyArgs) + + __props__.__dict__["description"] = description + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if rules is None and not opts.urn: + raise TypeError("Missing required property 'rules'") + __props__.__dict__["rules"] = rules + if targets is None and not opts.urn: + raise TypeError("Missing required property 'targets'") + __props__.__dict__["targets"] = targets + __props__.__dict__["slug"] = None + super(ChangeRequestPolicy, __self__).__init__( + 'doppler:index/changeRequestPolicy:ChangeRequestPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + rules: pulumi.Input[Optional[Union['ChangeRequestPolicyRulesArgs', 'ChangeRequestPolicyRulesArgsDict', 'outputs.ChangeRequestPolicyRules']]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + targets: pulumi.Input[Optional[Union['ChangeRequestPolicyTargetsArgs', 'ChangeRequestPolicyTargetsArgsDict', 'outputs.ChangeRequestPolicyTargets']]] = None) -> 'ChangeRequestPolicy': + """ + Get an existing ChangeRequestPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] description: A description of the change request policy + :param pulumi.Input[_builtins.str] name: The name of the change request policy + :param pulumi.Input[Union['ChangeRequestPolicyRulesArgs', 'ChangeRequestPolicyRulesArgsDict', 'outputs.ChangeRequestPolicyRules']] rules: Rules that the policy will apply to its targets + :param pulumi.Input[_builtins.str] slug: The unique identifier of the change request policy + :param pulumi.Input[Union['ChangeRequestPolicyTargetsArgs', 'ChangeRequestPolicyTargetsArgsDict', 'outputs.ChangeRequestPolicyTargets']] targets: Where the policy will apply + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ChangeRequestPolicyState.__new__(_ChangeRequestPolicyState) + + __props__.__dict__["description"] = description + __props__.__dict__["name"] = name + __props__.__dict__["rules"] = rules + __props__.__dict__["slug"] = slug + __props__.__dict__["targets"] = targets + return ChangeRequestPolicy(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + A description of the change request policy + """ + return pulumi.get(self, "description") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the change request policy + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def rules(self) -> pulumi.Output['outputs.ChangeRequestPolicyRules']: + """ + Rules that the policy will apply to its targets + """ + return pulumi.get(self, "rules") + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Output[_builtins.str]: + """ + The unique identifier of the change request policy + """ + return pulumi.get(self, "slug") + + @_builtins.property + @pulumi.getter + def targets(self) -> pulumi.Output['outputs.ChangeRequestPolicyTargets']: + """ + Where the policy will apply + """ + return pulumi.get(self, "targets") + diff --git a/sdk/python/pulumiverse_doppler/config/__init__.py b/sdk/python/pulumi_doppler/config/__init__.py similarity index 66% rename from sdk/python/pulumiverse_doppler/config/__init__.py rename to sdk/python/pulumi_doppler/config/__init__.py index 18853fc..43ec6e2 100644 --- a/sdk/python/pulumiverse_doppler/config/__init__.py +++ b/sdk/python/pulumi_doppler/config/__init__.py @@ -1,7 +1,8 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import builtins as _builtins import sys from .vars import _ExportableConfig diff --git a/sdk/python/pulumi_doppler/config/__init__.pyi b/sdk/python/pulumi_doppler/config/__init__.pyi new file mode 100644 index 0000000..aebbc2e --- /dev/null +++ b/sdk/python/pulumi_doppler/config/__init__.pyi @@ -0,0 +1,46 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +dopplerToken: Optional[str] +""" +A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `doppler_token` or OIDC authentication (`oidc_identity` + `oidc_token`/`oidc_token_file`) may be specified. +""" + +host: Optional[str] +""" +The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. +""" + +oidcIdentity: Optional[str] +""" +The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. +""" + +oidcToken: Optional[str] +""" +A JWT token to use for OIDC authentication. Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. +""" + +oidcTokenFile: Optional[str] +""" +A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. +""" + +verifyTls: Optional[bool] +""" +Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. +""" + diff --git a/sdk/python/pulumi_doppler/config/vars.py b/sdk/python/pulumi_doppler/config/vars.py new file mode 100644 index 0000000..f337ea2 --- /dev/null +++ b/sdk/python/pulumi_doppler/config/vars.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +import types + +__config__ = pulumi.Config('doppler') + + +class _ExportableConfig(types.ModuleType): + @_builtins.property + def doppler_token(self) -> Optional[str]: + """ + A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `doppler_token` or OIDC authentication (`oidc_identity` + `oidc_token`/`oidc_token_file`) may be specified. + """ + return __config__.get('dopplerToken') + + @_builtins.property + def host(self) -> Optional[str]: + """ + The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. + """ + return __config__.get('host') + + @_builtins.property + def oidc_identity(self) -> Optional[str]: + """ + The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + """ + return __config__.get('oidcIdentity') + + @_builtins.property + def oidc_token(self) -> Optional[str]: + """ + A JWT token to use for OIDC authentication. Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + """ + return __config__.get('oidcToken') + + @_builtins.property + def oidc_token_file(self) -> Optional[str]: + """ + A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + """ + return __config__.get('oidcTokenFile') + + @_builtins.property + def verify_tls(self) -> Optional[bool]: + """ + Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. + """ + return __config__.get_bool('verifyTls') + diff --git a/sdk/python/pulumiverse_doppler/environment.py b/sdk/python/pulumi_doppler/environment.py similarity index 61% rename from sdk/python/pulumiverse_doppler/environment.py rename to sdk/python/pulumi_doppler/environment.py index 631e0ef..b470cea 100644 --- a/sdk/python/pulumiverse_doppler/environment.py +++ b/sdk/python/pulumi_doppler/environment.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['EnvironmentArgs', 'Environment'] @@ -14,16 +19,17 @@ @pulumi.input_type class EnvironmentArgs: def __init__(__self__, *, - name: pulumi.Input[str], - project: pulumi.Input[str], - slug: pulumi.Input[str], - personal_configs: Optional[pulumi.Input[bool]] = None): + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + slug: pulumi.Input[_builtins.str], + personal_configs: pulumi.Input[Optional[_builtins.bool]] = None): """ The set of arguments for constructing a Environment resource. - :param pulumi.Input[str] name: The name of the Doppler environment - :param pulumi.Input[str] project: The name of the Doppler project where the environment is located - :param pulumi.Input[str] slug: The slug of the Doppler environment - :param pulumi.Input[bool] personal_configs: Whether or not personal configs are enabled for the environment + + :param pulumi.Input[_builtins.str] name: The name of the Doppler environment + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the environment is located + :param pulumi.Input[_builtins.str] slug: The slug of the Doppler environment + :param pulumi.Input[_builtins.bool] personal_configs: Whether or not personal configs are enabled for the environment """ pulumi.set(__self__, "name", name) pulumi.set(__self__, "project", project) @@ -31,68 +37,69 @@ def __init__(__self__, *, if personal_configs is not None: pulumi.set(__self__, "personal_configs", personal_configs) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler environment """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Input[str]: + def project(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project where the environment is located """ return pulumi.get(self, "project") @project.setter - def project(self, value: pulumi.Input[str]): + def project(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def slug(self) -> pulumi.Input[str]: + def slug(self) -> pulumi.Input[_builtins.str]: """ The slug of the Doppler environment """ return pulumi.get(self, "slug") @slug.setter - def slug(self, value: pulumi.Input[str]): + def slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "slug", value) - @property + @_builtins.property @pulumi.getter(name="personalConfigs") - def personal_configs(self) -> Optional[pulumi.Input[bool]]: + def personal_configs(self) -> pulumi.Input[Optional[_builtins.bool]]: """ Whether or not personal configs are enabled for the environment """ return pulumi.get(self, "personal_configs") @personal_configs.setter - def personal_configs(self, value: Optional[pulumi.Input[bool]]): + def personal_configs(self, value: pulumi.Input[Optional[_builtins.bool]]): pulumi.set(self, "personal_configs", value) @pulumi.input_type class _EnvironmentState: def __init__(__self__, *, - name: Optional[pulumi.Input[str]] = None, - personal_configs: Optional[pulumi.Input[bool]] = None, - project: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None): + name: pulumi.Input[Optional[_builtins.str]] = None, + personal_configs: pulumi.Input[Optional[_builtins.bool]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering Environment resources. - :param pulumi.Input[str] name: The name of the Doppler environment - :param pulumi.Input[bool] personal_configs: Whether or not personal configs are enabled for the environment - :param pulumi.Input[str] project: The name of the Doppler project where the environment is located - :param pulumi.Input[str] slug: The slug of the Doppler environment + + :param pulumi.Input[_builtins.str] name: The name of the Doppler environment + :param pulumi.Input[_builtins.bool] personal_configs: Whether or not personal configs are enabled for the environment + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the environment is located + :param pulumi.Input[_builtins.str] slug: The slug of the Doppler environment """ if name is not None: pulumi.set(__self__, "name", name) @@ -103,64 +110,65 @@ def __init__(__self__, *, if slug is not None: pulumi.set(__self__, "slug", slug) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler environment """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter(name="personalConfigs") - def personal_configs(self) -> Optional[pulumi.Input[bool]]: + def personal_configs(self) -> pulumi.Input[Optional[_builtins.bool]]: """ Whether or not personal configs are enabled for the environment """ return pulumi.get(self, "personal_configs") @personal_configs.setter - def personal_configs(self, value: Optional[pulumi.Input[bool]]): + def personal_configs(self, value: pulumi.Input[Optional[_builtins.bool]]): pulumi.set(self, "personal_configs", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: + def project(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project where the environment is located """ return pulumi.get(self, "project") @project.setter - def project(self, value: Optional[pulumi.Input[str]]): + def project(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def slug(self) -> Optional[pulumi.Input[str]]: + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the Doppler environment """ return pulumi.get(self, "slug") @slug.setter - def slug(self, value: Optional[pulumi.Input[str]]): + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "slug", value) +@pulumi.type_token("doppler:index/environment:Environment") class Environment(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - personal_configs: Optional[pulumi.Input[bool]] = None, - project: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + personal_configs: pulumi.Input[Optional[_builtins.bool]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler environment. @@ -169,7 +177,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler backend_ci = doppler.Environment("backend_ci", project="backend", @@ -183,12 +191,13 @@ def __init__(__self__, $ pulumi import doppler:index/environment:Environment default . ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the Doppler environment - :param pulumi.Input[bool] personal_configs: Whether or not personal configs are enabled for the environment - :param pulumi.Input[str] project: The name of the Doppler project where the environment is located - :param pulumi.Input[str] slug: The slug of the Doppler environment + :param pulumi.Input[_builtins.str] name: The name of the Doppler environment + :param pulumi.Input[_builtins.bool] personal_configs: Whether or not personal configs are enabled for the environment + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the environment is located + :param pulumi.Input[_builtins.str] slug: The slug of the Doppler environment """ ... @overload @@ -203,7 +212,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler backend_ci = doppler.Environment("backend_ci", project="backend", @@ -217,6 +226,7 @@ def __init__(__self__, $ pulumi import doppler:index/environment:Environment default . ``` + :param str resource_name: The name of the resource. :param EnvironmentArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -232,10 +242,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - personal_configs: Optional[pulumi.Input[bool]] = None, - project: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + personal_configs: pulumi.Input[Optional[_builtins.bool]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -265,10 +275,10 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - personal_configs: Optional[pulumi.Input[bool]] = None, - project: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None) -> 'Environment': + name: pulumi.Input[Optional[_builtins.str]] = None, + personal_configs: pulumi.Input[Optional[_builtins.bool]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'Environment': """ Get an existing Environment resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -276,10 +286,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the Doppler environment - :param pulumi.Input[bool] personal_configs: Whether or not personal configs are enabled for the environment - :param pulumi.Input[str] project: The name of the Doppler project where the environment is located - :param pulumi.Input[str] slug: The slug of the Doppler environment + :param pulumi.Input[_builtins.str] name: The name of the Doppler environment + :param pulumi.Input[_builtins.bool] personal_configs: Whether or not personal configs are enabled for the environment + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the environment is located + :param pulumi.Input[_builtins.str] slug: The slug of the Doppler environment """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -291,33 +301,33 @@ def get(resource_name: str, __props__.__dict__["slug"] = slug return Environment(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler environment """ return pulumi.get(self, "name") - @property + @_builtins.property @pulumi.getter(name="personalConfigs") - def personal_configs(self) -> pulumi.Output[Optional[bool]]: + def personal_configs(self) -> pulumi.Output[Optional[_builtins.bool]]: """ Whether or not personal configs are enabled for the environment """ return pulumi.get(self, "personal_configs") - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Output[str]: + def project(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project where the environment is located """ return pulumi.get(self, "project") - @property + @_builtins.property @pulumi.getter - def slug(self) -> pulumi.Output[str]: + def slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the Doppler environment """ diff --git a/sdk/python/pulumi_doppler/get_environments.py b/sdk/python/pulumi_doppler/get_environments.py new file mode 100644 index 0000000..7036520 --- /dev/null +++ b/sdk/python/pulumi_doppler/get_environments.py @@ -0,0 +1,131 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities +from . import outputs + +__all__ = [ + 'GetEnvironmentsResult', + 'AwaitableGetEnvironmentsResult', + 'get_environments', + 'get_environments_output', +] + +@pulumi.output_type +class GetEnvironmentsResult: + """ + A collection of values returned by getEnvironments. + """ + def __init__(__self__, environments=None, id=None, project=None): + if environments and not isinstance(environments, list): + raise TypeError("Expected argument 'environments' to be a list") + pulumi.set(__self__, "environments", environments) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if project and not isinstance(project, str): + raise TypeError("Expected argument 'project' to be a str") + pulumi.set(__self__, "project", project) + + @_builtins.property + @pulumi.getter + def environments(self) -> Sequence['outputs.GetEnvironmentsEnvironmentResult']: + """ + List of environments in the project + """ + return pulumi.get(self, "environments") + + @_builtins.property + @pulumi.getter + def id(self) -> _builtins.str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @_builtins.property + @pulumi.getter + def project(self) -> _builtins.str: + """ + The project to list environments for + """ + return pulumi.get(self, "project") + + +class AwaitableGetEnvironmentsResult(GetEnvironmentsResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetEnvironmentsResult( + environments=self.environments, + id=self.id, + project=self.project) + + +def get_environments(project: Optional[_builtins.str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentsResult: + """ + Retrieve all environments in the project. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + all = doppler.get_environments(project="my-project") + pulumi.export("environmentNames", [env.name for env in all.environments]) + pulumi.export("environmentSlugs", [env.slug for env in all.environments]) + ``` + + + :param _builtins.str project: The project to list environments for + """ + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('doppler:index/getEnvironments:getEnvironments', __args__, opts=opts, typ=GetEnvironmentsResult).value + + return AwaitableGetEnvironmentsResult( + environments=pulumi.get(__ret__, 'environments'), + id=pulumi.get(__ret__, 'id'), + project=pulumi.get(__ret__, 'project')) +def get_environments_output(project: pulumi.Input[Optional[_builtins.str]] = None, + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentsResult]: + """ + Retrieve all environments in the project. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + all = doppler.get_environments(project="my-project") + pulumi.export("environmentNames", [env.name for env in all.environments]) + pulumi.export("environmentSlugs", [env.slug for env in all.environments]) + ``` + + + :param _builtins.str project: The project to list environments for + """ + __args__ = dict() + __args__['project'] = project + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('doppler:index/getEnvironments:getEnvironments', __args__, opts=opts, typ=GetEnvironmentsResult) + return __ret__.apply(lambda __response__: GetEnvironmentsResult( + environments=pulumi.get(__response__, 'environments'), + id=pulumi.get(__response__, 'id'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumi_doppler/get_group.py b/sdk/python/pulumi_doppler/get_group.py new file mode 100644 index 0000000..64266b2 --- /dev/null +++ b/sdk/python/pulumi_doppler/get_group.py @@ -0,0 +1,114 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = [ + 'GetGroupResult', + 'AwaitableGetGroupResult', + 'get_group', + 'get_group_output', +] + +@pulumi.output_type +class GetGroupResult: + """ + A collection of values returned by getGroup. + """ + def __init__(__self__, id=None, name=None, slug=None): + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if slug and not isinstance(slug, str): + raise TypeError("Expected argument 'slug' to be a str") + pulumi.set(__self__, "slug", slug) + + @_builtins.property + @pulumi.getter + def id(self) -> _builtins.str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @_builtins.property + @pulumi.getter + def name(self) -> Optional[_builtins.str]: + """ + The name of the Doppler group + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def slug(self) -> Optional[_builtins.str]: + """ + The slug of the Doppler group + """ + return pulumi.get(self, "slug") + + +class AwaitableGetGroupResult(GetGroupResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetGroupResult( + id=self.id, + name=self.name, + slug=self.slug) + + +def get_group(name: Optional[_builtins.str] = None, + slug: Optional[_builtins.str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupResult: + """ + Retrieve an existing Doppler group. + + + :param _builtins.str name: The name of the Doppler group + :param _builtins.str slug: The slug of the Doppler group + """ + __args__ = dict() + __args__['name'] = name + __args__['slug'] = slug + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('doppler:index/getGroup:getGroup', __args__, opts=opts, typ=GetGroupResult).value + + return AwaitableGetGroupResult( + id=pulumi.get(__ret__, 'id'), + name=pulumi.get(__ret__, 'name'), + slug=pulumi.get(__ret__, 'slug')) +def get_group_output(name: pulumi.Input[Optional[Optional[_builtins.str]]] = None, + slug: pulumi.Input[Optional[Optional[_builtins.str]]] = None, + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGroupResult]: + """ + Retrieve an existing Doppler group. + + + :param _builtins.str name: The name of the Doppler group + :param _builtins.str slug: The slug of the Doppler group + """ + __args__ = dict() + __args__['name'] = name + __args__['slug'] = slug + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('doppler:index/getGroup:getGroup', __args__, opts=opts, typ=GetGroupResult) + return __ret__.apply(lambda __response__: GetGroupResult( + id=pulumi.get(__response__, 'id'), + name=pulumi.get(__response__, 'name'), + slug=pulumi.get(__response__, 'slug'))) diff --git a/sdk/python/pulumiverse_doppler/get_secrets.py b/sdk/python/pulumi_doppler/get_secrets.py similarity index 59% rename from sdk/python/pulumiverse_doppler/get_secrets.py rename to sdk/python/pulumi_doppler/get_secrets.py index 008a561..e2f2082 100644 --- a/sdk/python/pulumiverse_doppler/get_secrets.py +++ b/sdk/python/pulumi_doppler/get_secrets.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -35,33 +40,33 @@ def __init__(__self__, config=None, id=None, map=None, project=None): raise TypeError("Expected argument 'project' to be a str") pulumi.set(__self__, "project", project) - @property + @_builtins.property @pulumi.getter - def config(self) -> Optional[str]: + def config(self) -> Optional[_builtins.str]: """ The name of the Doppler config (required for personal tokens) """ return pulumi.get(self, "config") - @property + @_builtins.property @pulumi.getter - def id(self) -> str: + def id(self) -> _builtins.str: """ The provider-assigned unique ID for this managed resource. """ return pulumi.get(self, "id") - @property + @_builtins.property @pulumi.getter - def map(self) -> Mapping[str, str]: + def map(self) -> Mapping[str, _builtins.str]: """ A mapping of secret names to computed secret values """ return pulumi.get(self, "map") - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[str]: + def project(self) -> Optional[_builtins.str]: """ The name of the Doppler project (required for personal tokens) """ @@ -80,15 +85,15 @@ def __await__(self): project=self.project) -def get_secrets(config: Optional[str] = None, - project: Optional[str] = None, +def get_secrets(config: Optional[_builtins.str] = None, + project: Optional[_builtins.str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecretsResult: """ Retrieve all secrets in the config. - :param str config: The name of the Doppler config (required for personal tokens) - :param str project: The name of the Doppler project (required for personal tokens) + :param _builtins.str config: The name of the Doppler config (required for personal tokens) + :param _builtins.str project: The name of the Doppler project (required for personal tokens) """ __args__ = dict() __args__['config'] = config @@ -101,17 +106,23 @@ def get_secrets(config: Optional[str] = None, id=pulumi.get(__ret__, 'id'), map=pulumi.get(__ret__, 'map'), project=pulumi.get(__ret__, 'project')) - - -@_utilities.lift_output_func(get_secrets) -def get_secrets_output(config: Optional[pulumi.Input[Optional[str]]] = None, - project: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretsResult]: +def get_secrets_output(config: pulumi.Input[Optional[Optional[_builtins.str]]] = None, + project: pulumi.Input[Optional[Optional[_builtins.str]]] = None, + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecretsResult]: """ Retrieve all secrets in the config. - :param str config: The name of the Doppler config (required for personal tokens) - :param str project: The name of the Doppler project (required for personal tokens) + :param _builtins.str config: The name of the Doppler config (required for personal tokens) + :param _builtins.str project: The name of the Doppler project (required for personal tokens) """ - ... + __args__ = dict() + __args__['config'] = config + __args__['project'] = project + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('doppler:index/getSecrets:getSecrets', __args__, opts=opts, typ=GetSecretsResult) + return __ret__.apply(lambda __response__: GetSecretsResult( + config=pulumi.get(__response__, 'config'), + id=pulumi.get(__response__, 'id'), + map=pulumi.get(__response__, 'map'), + project=pulumi.get(__response__, 'project'))) diff --git a/sdk/python/pulumiverse_doppler/get_user.py b/sdk/python/pulumi_doppler/get_user.py similarity index 66% rename from sdk/python/pulumiverse_doppler/get_user.py rename to sdk/python/pulumi_doppler/get_user.py index 0c923e0..f81291d 100644 --- a/sdk/python/pulumiverse_doppler/get_user.py +++ b/sdk/python/pulumi_doppler/get_user.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = [ @@ -32,25 +37,25 @@ def __init__(__self__, email=None, id=None, slug=None): raise TypeError("Expected argument 'slug' to be a str") pulumi.set(__self__, "slug", slug) - @property + @_builtins.property @pulumi.getter - def email(self) -> str: + def email(self) -> _builtins.str: """ The email address of the Doppler user """ return pulumi.get(self, "email") - @property + @_builtins.property @pulumi.getter - def id(self) -> str: + def id(self) -> _builtins.str: """ The provider-assigned unique ID for this managed resource. """ return pulumi.get(self, "id") - @property + @_builtins.property @pulumi.getter - def slug(self) -> str: + def slug(self) -> _builtins.str: """ The slug of the Doppler user """ @@ -68,7 +73,7 @@ def __await__(self): slug=self.slug) -def get_user(email: Optional[str] = None, +def get_user(email: Optional[_builtins.str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetUserResult: """ Retrieve an existing Doppler user. @@ -83,7 +88,7 @@ def get_user(email: Optional[str] = None, ``` - :param str email: The email address of the Doppler user + :param _builtins.str email: The email address of the Doppler user """ __args__ = dict() __args__['email'] = email @@ -94,11 +99,8 @@ def get_user(email: Optional[str] = None, email=pulumi.get(__ret__, 'email'), id=pulumi.get(__ret__, 'id'), slug=pulumi.get(__ret__, 'slug')) - - -@_utilities.lift_output_func(get_user) -def get_user_output(email: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetUserResult]: +def get_user_output(email: pulumi.Input[Optional[_builtins.str]] = None, + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetUserResult]: """ Retrieve an existing Doppler user. @@ -112,6 +114,13 @@ def get_user_output(email: Optional[pulumi.Input[str]] = None, ``` - :param str email: The email address of the Doppler user + :param _builtins.str email: The email address of the Doppler user """ - ... + __args__ = dict() + __args__['email'] = email + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('doppler:index/getUser:getUser', __args__, opts=opts, typ=GetUserResult) + return __ret__.apply(lambda __response__: GetUserResult( + email=pulumi.get(__response__, 'email'), + id=pulumi.get(__response__, 'id'), + slug=pulumi.get(__response__, 'slug'))) diff --git a/sdk/python/pulumi_doppler/group.py b/sdk/python/pulumi_doppler/group.py new file mode 100644 index 0000000..eb38695 --- /dev/null +++ b/sdk/python/pulumi_doppler/group.py @@ -0,0 +1,318 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['GroupArgs', 'Group'] + +@pulumi.input_type +class GroupArgs: + def __init__(__self__, *, + name: pulumi.Input[_builtins.str], + default_project_role: pulumi.Input[Optional[_builtins.str]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a Group resource. + + :param pulumi.Input[_builtins.str] name: The name of the group + :param pulumi.Input[_builtins.str] default_project_role: The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + :param pulumi.Input[_builtins.str] workplace_role: The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + pulumi.set(__self__, "name", name) + if default_project_role is not None: + pulumi.set(__self__, "default_project_role", default_project_role) + if workplace_role is not None: + pulumi.set(__self__, "workplace_role", workplace_role) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the group + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="defaultProjectRole") + def default_project_role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + """ + return pulumi.get(self, "default_project_role") + + @default_project_role.setter + def default_project_role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "default_project_role", value) + + @_builtins.property + @pulumi.getter(name="workplaceRole") + def workplace_role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + return pulumi.get(self, "workplace_role") + + @workplace_role.setter + def workplace_role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "workplace_role", value) + + +@pulumi.input_type +class _GroupState: + def __init__(__self__, *, + default_project_role: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Group resources. + + :param pulumi.Input[_builtins.str] default_project_role: The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + :param pulumi.Input[_builtins.str] name: The name of the group + :param pulumi.Input[_builtins.str] slug: The slug of the group + :param pulumi.Input[_builtins.str] workplace_role: The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + if default_project_role is not None: + pulumi.set(__self__, "default_project_role", default_project_role) + if name is not None: + pulumi.set(__self__, "name", name) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if workplace_role is not None: + pulumi.set(__self__, "workplace_role", workplace_role) + + @_builtins.property + @pulumi.getter(name="defaultProjectRole") + def default_project_role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + """ + return pulumi.get(self, "default_project_role") + + @default_project_role.setter + def default_project_role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "default_project_role", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the group + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the group + """ + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "slug", value) + + @_builtins.property + @pulumi.getter(name="workplaceRole") + def workplace_role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + return pulumi.get(self, "workplace_role") + + @workplace_role.setter + def workplace_role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "workplace_role", value) + + +@pulumi.type_token("doppler:index/group:Group") +class Group(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + default_project_role: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler group. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + engineering = doppler.Group("engineering", + name="engineering", + workplace_role="viewer") + ``` + + ## Import + + import using the group slug from the URL: + https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] + + ```sh + $ pulumi import doppler:index/group:Group default + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] default_project_role: The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + :param pulumi.Input[_builtins.str] name: The name of the group + :param pulumi.Input[_builtins.str] workplace_role: The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GroupArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler group. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + engineering = doppler.Group("engineering", + name="engineering", + workplace_role="viewer") + ``` + + ## Import + + import using the group slug from the URL: + https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] + + ```sh + $ pulumi import doppler:index/group:Group default + ``` + + + :param str resource_name: The name of the resource. + :param GroupArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GroupArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + default_project_role: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GroupArgs.__new__(GroupArgs) + + __props__.__dict__["default_project_role"] = default_project_role + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["workplace_role"] = workplace_role + __props__.__dict__["slug"] = None + super(Group, __self__).__init__( + 'doppler:index/group:Group', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + default_project_role: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None) -> 'Group': + """ + Get an existing Group resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] default_project_role: The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + :param pulumi.Input[_builtins.str] name: The name of the group + :param pulumi.Input[_builtins.str] slug: The slug of the group + :param pulumi.Input[_builtins.str] workplace_role: The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GroupState.__new__(_GroupState) + + __props__.__dict__["default_project_role"] = default_project_role + __props__.__dict__["name"] = name + __props__.__dict__["slug"] = slug + __props__.__dict__["workplace_role"] = workplace_role + return Group(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="defaultProjectRole") + def default_project_role(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The default project role assigned to the group when added to a Doppler project. If set to null, the default project role is inherited from the workplace setting. + """ + return pulumi.get(self, "default_project_role") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the group + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the group + """ + return pulumi.get(self, "slug") + + @_builtins.property + @pulumi.getter(name="workplaceRole") + def workplace_role(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The workplace role assigned to members of the group. If omitted, state will be tracked in Terraform but not updated in Doppler. Use "no_access" to ensure the group has no workplace permissions + """ + return pulumi.get(self, "workplace_role") + diff --git a/sdk/python/pulumiverse_doppler/group_member.py b/sdk/python/pulumi_doppler/group_member.py similarity index 61% rename from sdk/python/pulumiverse_doppler/group_member.py rename to sdk/python/pulumi_doppler/group_member.py index 5ee1e08..6caf534 100644 --- a/sdk/python/pulumiverse_doppler/group_member.py +++ b/sdk/python/pulumi_doppler/group_member.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupMemberArgs', 'GroupMember'] @@ -14,88 +19,91 @@ @pulumi.input_type class GroupMemberArgs: def __init__(__self__, *, - group_slug: pulumi.Input[str], - user_slug: pulumi.Input[str]): + group_slug: pulumi.Input[_builtins.str], + user_slug: pulumi.Input[_builtins.str]): """ The set of arguments for constructing a GroupMember resource. - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] user_slug: The slug of the Doppler workplace user + + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user """ pulumi.set(__self__, "group_slug", group_slug) pulumi.set(__self__, "user_slug", user_slug) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> pulumi.Input[str]: + def group_slug(self) -> pulumi.Input[_builtins.str]: """ The slug of the Doppler group """ return pulumi.get(self, "group_slug") @group_slug.setter - def group_slug(self, value: pulumi.Input[str]): + def group_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "group_slug", value) - @property + @_builtins.property @pulumi.getter(name="userSlug") - def user_slug(self) -> pulumi.Input[str]: + def user_slug(self) -> pulumi.Input[_builtins.str]: """ The slug of the Doppler workplace user """ return pulumi.get(self, "user_slug") @user_slug.setter - def user_slug(self, value: pulumi.Input[str]): + def user_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "user_slug", value) @pulumi.input_type class _GroupMemberState: def __init__(__self__, *, - group_slug: Optional[pulumi.Input[str]] = None, - user_slug: Optional[pulumi.Input[str]] = None): + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering GroupMember resources. - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] user_slug: The slug of the Doppler workplace user + + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user """ if group_slug is not None: pulumi.set(__self__, "group_slug", group_slug) if user_slug is not None: pulumi.set(__self__, "user_slug", user_slug) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> Optional[pulumi.Input[str]]: + def group_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the Doppler group """ return pulumi.get(self, "group_slug") @group_slug.setter - def group_slug(self, value: Optional[pulumi.Input[str]]): + def group_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "group_slug", value) - @property + @_builtins.property @pulumi.getter(name="userSlug") - def user_slug(self) -> Optional[pulumi.Input[str]]: + def user_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the Doppler workplace user """ return pulumi.get(self, "user_slug") @user_slug.setter - def user_slug(self, value: Optional[pulumi.Input[str]]): + def user_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "user_slug", value) +@pulumi.type_token("doppler:index/groupMember:GroupMember") class GroupMember(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - group_slug: Optional[pulumi.Input[str]] = None, - user_slug: Optional[pulumi.Input[str]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler user/group membership. @@ -103,24 +111,42 @@ def __init__(__self__, **Note:** You can also exclusively manage all memberships in a group with a single resource. See the `GroupMembers` resource for more information. + ## Example Usage + + ```python + import pulumi + from typing import Any + import pulumi_doppler as doppler + + engineering = doppler.Group("engineering", name="engineering") + nic = doppler.get_user(email="nic@doppler.com") + andre = doppler.get_user(email="andre@doppler.com") + engineering_group_member: list[doppler.GroupMember] = [] + for engineering_group_member_range in [{"key": k, "value": v} for [k, v] in enumerate({entry: entry for entry in [ + nic.slug, + andre.slug, + ]})]: + engineering_group_member.append(doppler.GroupMember(f"engineering-{engineering_group_member_range['key']}", + group_slug=engineering.slug, + user_slug=engineering_group_member_range["value"])) + ``` + ## Import import using the group slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - and the user slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] ```sh $ pulumi import doppler:index/groupMember:GroupMember default .workplace_user. ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] user_slug: The slug of the Doppler workplace user + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user """ ... @overload @@ -134,20 +160,38 @@ def __init__(__self__, **Note:** You can also exclusively manage all memberships in a group with a single resource. See the `GroupMembers` resource for more information. + ## Example Usage + + ```python + import pulumi + from typing import Any + import pulumi_doppler as doppler + + engineering = doppler.Group("engineering", name="engineering") + nic = doppler.get_user(email="nic@doppler.com") + andre = doppler.get_user(email="andre@doppler.com") + engineering_group_member: list[doppler.GroupMember] = [] + for engineering_group_member_range in [{"key": k, "value": v} for [k, v] in enumerate({entry: entry for entry in [ + nic.slug, + andre.slug, + ]})]: + engineering_group_member.append(doppler.GroupMember(f"engineering-{engineering_group_member_range['key']}", + group_slug=engineering.slug, + user_slug=engineering_group_member_range["value"])) + ``` + ## Import import using the group slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - and the user slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] ```sh $ pulumi import doppler:index/groupMember:GroupMember default .workplace_user. ``` + :param str resource_name: The name of the resource. :param GroupMemberArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -163,8 +207,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - group_slug: Optional[pulumi.Input[str]] = None, - user_slug: Optional[pulumi.Input[str]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -190,8 +234,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - group_slug: Optional[pulumi.Input[str]] = None, - user_slug: Optional[pulumi.Input[str]] = None) -> 'GroupMember': + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'GroupMember': """ Get an existing GroupMember resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -199,8 +243,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] user_slug: The slug of the Doppler workplace user + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -210,17 +254,17 @@ def get(resource_name: str, __props__.__dict__["user_slug"] = user_slug return GroupMember(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> pulumi.Output[str]: + def group_slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the Doppler group """ return pulumi.get(self, "group_slug") - @property + @_builtins.property @pulumi.getter(name="userSlug") - def user_slug(self) -> pulumi.Output[str]: + def user_slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the Doppler workplace user """ diff --git a/sdk/python/pulumiverse_doppler/group_members.py b/sdk/python/pulumi_doppler/group_members.py similarity index 74% rename from sdk/python/pulumiverse_doppler/group_members.py rename to sdk/python/pulumi_doppler/group_members.py index 31c1010..3e13d4e 100644 --- a/sdk/python/pulumiverse_doppler/group_members.py +++ b/sdk/python/pulumi_doppler/group_members.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['GroupMembersArgs', 'GroupMembers'] @@ -14,88 +19,91 @@ @pulumi.input_type class GroupMembersArgs: def __init__(__self__, *, - group_slug: pulumi.Input[str], - user_slugs: pulumi.Input[Sequence[pulumi.Input[str]]]): + group_slug: pulumi.Input[_builtins.str], + user_slugs: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): """ The set of arguments for constructing a GroupMembers resource. - :param pulumi.Input[str] group_slug: The slug of the group - :param pulumi.Input[Sequence[pulumi.Input[str]]] user_slugs: A list of user slugs in the group + + :param pulumi.Input[_builtins.str] group_slug: The slug of the group + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] user_slugs: A list of user slugs in the group """ pulumi.set(__self__, "group_slug", group_slug) pulumi.set(__self__, "user_slugs", user_slugs) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> pulumi.Input[str]: + def group_slug(self) -> pulumi.Input[_builtins.str]: """ The slug of the group """ return pulumi.get(self, "group_slug") @group_slug.setter - def group_slug(self, value: pulumi.Input[str]): + def group_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "group_slug", value) - @property + @_builtins.property @pulumi.getter(name="userSlugs") - def user_slugs(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + def user_slugs(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: """ A list of user slugs in the group """ return pulumi.get(self, "user_slugs") @user_slugs.setter - def user_slugs(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + def user_slugs(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): pulumi.set(self, "user_slugs", value) @pulumi.input_type class _GroupMembersState: def __init__(__self__, *, - group_slug: Optional[pulumi.Input[str]] = None, - user_slugs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): """ Input properties used for looking up and filtering GroupMembers resources. - :param pulumi.Input[str] group_slug: The slug of the group - :param pulumi.Input[Sequence[pulumi.Input[str]]] user_slugs: A list of user slugs in the group + + :param pulumi.Input[_builtins.str] group_slug: The slug of the group + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] user_slugs: A list of user slugs in the group """ if group_slug is not None: pulumi.set(__self__, "group_slug", group_slug) if user_slugs is not None: pulumi.set(__self__, "user_slugs", user_slugs) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> Optional[pulumi.Input[str]]: + def group_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the group """ return pulumi.get(self, "group_slug") @group_slug.setter - def group_slug(self, value: Optional[pulumi.Input[str]]): + def group_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "group_slug", value) - @property + @_builtins.property @pulumi.getter(name="userSlugs") - def user_slugs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def user_slugs(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ A list of user slugs in the group """ return pulumi.get(self, "user_slugs") @user_slugs.setter - def user_slugs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def user_slugs(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "user_slugs", value) +@pulumi.type_token("doppler:index/groupMembers:GroupMembers") class GroupMembers(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - group_slug: Optional[pulumi.Input[str]] = None, - user_slugs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, __props__=None): """ Manage a Doppler group's memberships. @@ -109,7 +117,6 @@ def __init__(__self__, ```python import pulumi import pulumi_doppler as doppler - import pulumiverse_doppler as doppler engineering = doppler.Group("engineering", name="engineering") nic = doppler.get_user(email="nic@doppler.com") @@ -125,21 +132,19 @@ def __init__(__self__, ## Import import using the group slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - and the user slugs from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] ```sh $ pulumi import doppler:index/groupMembers:GroupMembers default ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] group_slug: The slug of the group - :param pulumi.Input[Sequence[pulumi.Input[str]]] user_slugs: A list of user slugs in the group + :param pulumi.Input[_builtins.str] group_slug: The slug of the group + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] user_slugs: A list of user slugs in the group """ ... @overload @@ -159,7 +164,6 @@ def __init__(__self__, ```python import pulumi import pulumi_doppler as doppler - import pulumiverse_doppler as doppler engineering = doppler.Group("engineering", name="engineering") nic = doppler.get_user(email="nic@doppler.com") @@ -175,17 +179,15 @@ def __init__(__self__, ## Import import using the group slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - and the user slugs from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug] ```sh $ pulumi import doppler:index/groupMembers:GroupMembers default ``` + :param str resource_name: The name of the resource. :param GroupMembersArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -201,8 +203,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - group_slug: Optional[pulumi.Input[str]] = None, - user_slugs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -228,8 +230,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - group_slug: Optional[pulumi.Input[str]] = None, - user_slugs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'GroupMembers': + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + user_slugs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'GroupMembers': """ Get an existing GroupMembers resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -237,8 +239,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] group_slug: The slug of the group - :param pulumi.Input[Sequence[pulumi.Input[str]]] user_slugs: A list of user slugs in the group + :param pulumi.Input[_builtins.str] group_slug: The slug of the group + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] user_slugs: A list of user slugs in the group """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -248,17 +250,17 @@ def get(resource_name: str, __props__.__dict__["user_slugs"] = user_slugs return GroupMembers(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> pulumi.Output[str]: + def group_slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the group """ return pulumi.get(self, "group_slug") - @property + @_builtins.property @pulumi.getter(name="userSlugs") - def user_slugs(self) -> pulumi.Output[Sequence[str]]: + def user_slugs(self) -> pulumi.Output[Sequence[_builtins.str]]: """ A list of user slugs in the group """ diff --git a/sdk/python/pulumi_doppler/integration/__init__.py b/sdk/python/pulumi_doppler/integration/__init__.py new file mode 100644 index 0000000..572441f --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/__init__.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +from .. import _utilities +import typing +# Export this package's modules as members: +from .aws_iam_user_keys import * +from .aws_mssql import * +from .aws_mysql import * +from .aws_parameter_store import * +from .aws_postgres import * +from .aws_secrets_manager import * +from .azure_dynamic_service_principal import * +from .azure_dynamic_service_principal_oidc import * +from .azure_rotated_service_principal import * +from .azure_rotated_service_principal_oidc import * +from .azure_vault_service_principal import * +from .circleci import * +from .cloudflare_tokens import * +from .external_id import * +from .flyio import * +from .gcp_cloudsql_mysql import * +from .gcp_cloudsql_mysql_oidc import * +from .gcp_cloudsql_postgres import * +from .gcp_cloudsql_postgres_oidc import * +from .gcp_cloudsql_sqlserver import * +from .gcp_cloudsql_sqlserver_oidc import * +from .gcp_secret_manager import * +from .gcp_secret_manager_oidc import * +from .gcp_service_account_keys import * +from .member_group import * +from .member_service_account import * +from .member_user import * +from .mongodb_atlas import * +from .openai import * +from .sendgrid import * +from .terraform_cloud import * +from .twilio import * diff --git a/sdk/python/pulumi_doppler/integration/aws_iam_user_keys.py b/sdk/python/pulumi_doppler/integration/aws_iam_user_keys.py new file mode 100644 index 0000000..580328a --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/aws_iam_user_keys.py @@ -0,0 +1,240 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsIamUserKeysArgs', 'AwsIamUserKeys'] + +@pulumi.input_type +class AwsIamUserKeysArgs: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AwsIamUserKeys resource. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _AwsIamUserKeysState: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsIamUserKeys resources. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if assume_role_arn is not None: + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/awsIamUserKeys:AwsIamUserKeys") +class AwsIamUserKeys(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a AWS IAM User Keys Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_aws_iam_uk = doppler.integration.AwsIamUserKeys("i_aws_iam_uk", + name="TF AWS IAM UK", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx") + rs_aws_iam_uk = doppler.rotatedsecret.AwsIamUserKeys("rs_aws_iam_uk", + integration=i_aws_iam_uk.id, + project="backend", + config="dev", + name="AWS_IAM_UK", + rotation_period_sec=2592000, + username="xxxxxxxxxxxxx") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsIamUserKeysArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a AWS IAM User Keys Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_aws_iam_uk = doppler.integration.AwsIamUserKeys("i_aws_iam_uk", + name="TF AWS IAM UK", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx") + rs_aws_iam_uk = doppler.rotatedsecret.AwsIamUserKeys("rs_aws_iam_uk", + integration=i_aws_iam_uk.id, + project="backend", + config="dev", + name="AWS_IAM_UK", + rotation_period_sec=2592000, + username="xxxxxxxxxxxxx") + ``` + + + :param str resource_name: The name of the resource. + :param AwsIamUserKeysArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsIamUserKeysArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsIamUserKeysArgs.__new__(AwsIamUserKeysArgs) + + if assume_role_arn is None and not opts.urn: + raise TypeError("Missing required property 'assume_role_arn'") + __props__.__dict__["assume_role_arn"] = assume_role_arn + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + super(AwsIamUserKeys, __self__).__init__( + 'doppler:integration/awsIamUserKeys:AwsIamUserKeys', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsIamUserKeys': + """ + Get an existing AwsIamUserKeys resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsIamUserKeysState.__new__(_AwsIamUserKeysState) + + __props__.__dict__["assume_role_arn"] = assume_role_arn + __props__.__dict__["name"] = name + return AwsIamUserKeys(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Output[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/aws_mssql.py b/sdk/python/pulumi_doppler/integration/aws_mssql.py new file mode 100644 index 0000000..a6d2c21 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/aws_mssql.py @@ -0,0 +1,328 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsMssqlArgs', 'AwsMssql'] + +@pulumi.input_type +class AwsMssqlArgs: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[_builtins.str], + lambda_arn: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AwsMssql resource. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + pulumi.set(__self__, "lambda_arn", lambda_arn) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Input[_builtins.str]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @lambda_arn.setter + def lambda_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "lambda_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _AwsMssqlState: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsMssql resources. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if assume_role_arn is not None: + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + if lambda_arn is not None: + pulumi.set(__self__, "lambda_arn", lambda_arn) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @lambda_arn.setter + def lambda_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "lambda_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/awsMssql:AwsMssql") +class AwsMssql(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a AWS MS SQL Server Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_aws_mssql = doppler.integration.AwsMssql("i_aws_mssql", + name="TF AWS MS SQL Server", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + lambda_arn="arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx") + rs_aws_mssql = doppler.rotatedsecret.AwsMssql("rs_aws_mssql", + credentials=[ + { + "username": "xxxxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_aws_mssql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + host="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + port=1433, + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsMssqlArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a AWS MS SQL Server Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_aws_mssql = doppler.integration.AwsMssql("i_aws_mssql", + name="TF AWS MS SQL Server", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + lambda_arn="arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx") + rs_aws_mssql = doppler.rotatedsecret.AwsMssql("rs_aws_mssql", + credentials=[ + { + "username": "xxxxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_aws_mssql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + host="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + port=1433, + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param AwsMssqlArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsMssqlArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsMssqlArgs.__new__(AwsMssqlArgs) + + if assume_role_arn is None and not opts.urn: + raise TypeError("Missing required property 'assume_role_arn'") + __props__.__dict__["assume_role_arn"] = assume_role_arn + if lambda_arn is None and not opts.urn: + raise TypeError("Missing required property 'lambda_arn'") + __props__.__dict__["lambda_arn"] = lambda_arn + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + super(AwsMssql, __self__).__init__( + 'doppler:integration/awsMssql:AwsMssql', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsMssql': + """ + Get an existing AwsMssql resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsMssqlState.__new__(_AwsMssqlState) + + __props__.__dict__["assume_role_arn"] = assume_role_arn + __props__.__dict__["lambda_arn"] = lambda_arn + __props__.__dict__["name"] = name + return AwsMssql(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Output[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Output[_builtins.str]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/aws_mysql.py b/sdk/python/pulumi_doppler/integration/aws_mysql.py new file mode 100644 index 0000000..571b56c --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/aws_mysql.py @@ -0,0 +1,332 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsMysqlArgs', 'AwsMysql'] + +@pulumi.input_type +class AwsMysqlArgs: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[_builtins.str], + lambda_arn: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AwsMysql resource. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + pulumi.set(__self__, "lambda_arn", lambda_arn) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Input[_builtins.str]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @lambda_arn.setter + def lambda_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "lambda_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _AwsMysqlState: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsMysql resources. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if assume_role_arn is not None: + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + if lambda_arn is not None: + pulumi.set(__self__, "lambda_arn", lambda_arn) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @lambda_arn.setter + def lambda_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "lambda_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/awsMysql:AwsMysql") +class AwsMysql(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a AWS MySQL Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_aws_mysql = doppler.integration.AwsMysql("i_aws_mysql", + name="TF AWS MySQL", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + lambda_arn="arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx") + rs_aws_mysql = doppler.rotatedsecret.AwsMysql("rs_aws_mysql", + credentials=[ + { + "username": "xxxxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_aws_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + host="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + port=3306, + managing_user_username="xxxxxxxx", + managing_user_password="xxxxxxxxxxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsMysqlArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a AWS MySQL Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_aws_mysql = doppler.integration.AwsMysql("i_aws_mysql", + name="TF AWS MySQL", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + lambda_arn="arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx") + rs_aws_mysql = doppler.rotatedsecret.AwsMysql("rs_aws_mysql", + credentials=[ + { + "username": "xxxxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_aws_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + host="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + port=3306, + managing_user_username="xxxxxxxx", + managing_user_password="xxxxxxxxxxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param AwsMysqlArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsMysqlArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsMysqlArgs.__new__(AwsMysqlArgs) + + if assume_role_arn is None and not opts.urn: + raise TypeError("Missing required property 'assume_role_arn'") + __props__.__dict__["assume_role_arn"] = assume_role_arn + if lambda_arn is None and not opts.urn: + raise TypeError("Missing required property 'lambda_arn'") + __props__.__dict__["lambda_arn"] = lambda_arn + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + super(AwsMysql, __self__).__init__( + 'doppler:integration/awsMysql:AwsMysql', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsMysql': + """ + Get an existing AwsMysql resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsMysqlState.__new__(_AwsMysqlState) + + __props__.__dict__["assume_role_arn"] = assume_role_arn + __props__.__dict__["lambda_arn"] = lambda_arn + __props__.__dict__["name"] = name + return AwsMysql(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Output[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Output[_builtins.str]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumiverse_doppler/integration/aws_parameter_store.py b/sdk/python/pulumi_doppler/integration/aws_parameter_store.py similarity index 55% rename from sdk/python/pulumiverse_doppler/integration/aws_parameter_store.py rename to sdk/python/pulumi_doppler/integration/aws_parameter_store.py index 6901418..6a9bf0d 100644 --- a/sdk/python/pulumiverse_doppler/integration/aws_parameter_store.py +++ b/sdk/python/pulumi_doppler/integration/aws_parameter_store.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['AwsParameterStoreArgs', 'AwsParameterStore'] @@ -14,88 +19,91 @@ @pulumi.input_type class AwsParameterStoreArgs: def __init__(__self__, *, - assume_role_arn: pulumi.Input[str], - name: pulumi.Input[str]): + assume_role_arn: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): """ The set of arguments for constructing a AwsParameterStore resource. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ pulumi.set(__self__, "assume_role_arn", assume_role_arn) pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="assumeRoleArn") - def assume_role_arn(self) -> pulumi.Input[str]: + def assume_role_arn(self) -> pulumi.Input[_builtins.str]: """ The ARN of the AWS role for Doppler to assume """ return pulumi.get(self, "assume_role_arn") @assume_role_arn.setter - def assume_role_arn(self, value: pulumi.Input[str]): + def assume_role_arn(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "assume_role_arn", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) @pulumi.input_type class _AwsParameterStoreState: def __init__(__self__, *, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None): + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering AwsParameterStore resources. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ if assume_role_arn is not None: pulumi.set(__self__, "assume_role_arn", assume_role_arn) if name is not None: pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="assumeRoleArn") - def assume_role_arn(self) -> Optional[pulumi.Input[str]]: + def assume_role_arn(self) -> pulumi.Input[Optional[_builtins.str]]: """ The ARN of the AWS role for Doppler to assume """ return pulumi.get(self, "assume_role_arn") @assume_role_arn.setter - def assume_role_arn(self, value: Optional[pulumi.Input[str]]): + def assume_role_arn(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "assume_role_arn", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) +@pulumi.type_token("doppler:integration/awsParameterStore:AwsParameterStore") class AwsParameterStore(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage an AWS Parameter Store Doppler integration. @@ -106,51 +114,51 @@ def __init__(__self__, import pulumi import json import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_parameter_store = aws.iam.Role("doppler_parameter_store", - name="doppler_parameter_store", + import pulumi_doppler as doppler + + doppler_parameter_store = aws.IamRole("doppler_parameter_store", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + ssm:PutParameter, + ssm:LabelParameterVersion, + ssm:DeleteParameter, + ssm:RemoveTagsFromResource, + ssm:GetParameterHistory, + ssm:AddTagsToResource, + ssm:GetParametersByPath, + ssm:GetParameters, + ssm:GetParameter, + ssm:DeleteParameters, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_parameter_store, assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", + Condition: { + StringEquals: { + sts:ExternalId: , }, }, }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "ssm:PutParameter", - "ssm:LabelParameterVersion", - "ssm:DeleteParameter", - "ssm:RemoveTagsFromResource", - "ssm:GetParameterHistory", - "ssm:AddTagsToResource", - "ssm:GetParametersByPath", - "ssm:GetParameters", - "ssm:GetParameter", - "ssm:DeleteParameters", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) + })) prod = doppler.integration.AwsParameterStore("prod", name="Production", - assume_role_arn=doppler_parameter_store.arn) - backend_prod = doppler.secrets_sync.AwsParameterStore("backend_prod", + assume_role_arn=doppler_parameter_store["arn"]) + backend_prod = doppler.secretssync.AwsParameterStore("backend_prod", integration=prod.id, project="backend", config="prd", @@ -163,10 +171,11 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ ... @overload @@ -183,51 +192,51 @@ def __init__(__self__, import pulumi import json import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_parameter_store = aws.iam.Role("doppler_parameter_store", - name="doppler_parameter_store", + import pulumi_doppler as doppler + + doppler_parameter_store = aws.IamRole("doppler_parameter_store", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + ssm:PutParameter, + ssm:LabelParameterVersion, + ssm:DeleteParameter, + ssm:RemoveTagsFromResource, + ssm:GetParameterHistory, + ssm:AddTagsToResource, + ssm:GetParametersByPath, + ssm:GetParameters, + ssm:GetParameter, + ssm:DeleteParameters, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_parameter_store, assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", + Condition: { + StringEquals: { + sts:ExternalId: , }, }, }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "ssm:PutParameter", - "ssm:LabelParameterVersion", - "ssm:DeleteParameter", - "ssm:RemoveTagsFromResource", - "ssm:GetParameterHistory", - "ssm:AddTagsToResource", - "ssm:GetParametersByPath", - "ssm:GetParameters", - "ssm:GetParameter", - "ssm:DeleteParameters", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) + })) prod = doppler.integration.AwsParameterStore("prod", name="Production", - assume_role_arn=doppler_parameter_store.arn) - backend_prod = doppler.secrets_sync.AwsParameterStore("backend_prod", + assume_role_arn=doppler_parameter_store["arn"]) + backend_prod = doppler.secretssync.AwsParameterStore("backend_prod", integration=prod.id, project="backend", config="prd", @@ -240,6 +249,7 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param AwsParameterStoreArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -255,8 +265,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -282,8 +292,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None) -> 'AwsParameterStore': + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsParameterStore': """ Get an existing AwsParameterStore resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -291,8 +301,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -302,17 +312,17 @@ def get(resource_name: str, __props__.__dict__["name"] = name return AwsParameterStore(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="assumeRoleArn") - def assume_role_arn(self) -> pulumi.Output[str]: + def assume_role_arn(self) -> pulumi.Output[_builtins.str]: """ The ARN of the AWS role for Doppler to assume """ return pulumi.get(self, "assume_role_arn") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the integration """ diff --git a/sdk/python/pulumi_doppler/integration/aws_postgres.py b/sdk/python/pulumi_doppler/integration/aws_postgres.py new file mode 100644 index 0000000..893f74d --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/aws_postgres.py @@ -0,0 +1,334 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsPostgresArgs', 'AwsPostgres'] + +@pulumi.input_type +class AwsPostgresArgs: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[_builtins.str], + lambda_arn: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AwsPostgres resource. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + pulumi.set(__self__, "lambda_arn", lambda_arn) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Input[_builtins.str]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @lambda_arn.setter + def lambda_arn(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "lambda_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _AwsPostgresState: + def __init__(__self__, *, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsPostgres resources. + + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if assume_role_arn is not None: + pulumi.set(__self__, "assume_role_arn", assume_role_arn) + if lambda_arn is not None: + pulumi.set(__self__, "lambda_arn", lambda_arn) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @assume_role_arn.setter + def assume_role_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "assume_role_arn", value) + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @lambda_arn.setter + def lambda_arn(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "lambda_arn", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/awsPostgres:AwsPostgres") +class AwsPostgres(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a AWS Postgres Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_aws_postgres = doppler.integration.AwsPostgres("i_aws_postgres", + name="TF AWS Postgres", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + lambda_arn="arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx") + rs_aws_postgres = doppler.rotatedsecret.AwsPostgres("rs_aws_postgres", + credentials=[ + { + "username": "xxxxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_aws_postgres.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + host="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + port=5432, + database="xxxxxxxx", + managing_user_username="xxxxxxxx", + managing_user_password="xxxxxxxxxxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsPostgresArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a AWS Postgres Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_aws_postgres = doppler.integration.AwsPostgres("i_aws_postgres", + name="TF AWS Postgres", + assume_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/xxxxxxxxxxxxxxxx", + lambda_arn="arn:aws:lambda:xxxxxxxxx:xxxxxxxxxxxx:function:xxxxxxxxxxxxxxxxxxxx") + rs_aws_postgres = doppler.rotatedsecret.AwsPostgres("rs_aws_postgres", + credentials=[ + { + "username": "xxxxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_aws_postgres.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + host="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + port=5432, + database="xxxxxxxx", + managing_user_username="xxxxxxxx", + managing_user_password="xxxxxxxxxxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param AwsPostgresArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsPostgresArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsPostgresArgs.__new__(AwsPostgresArgs) + + if assume_role_arn is None and not opts.urn: + raise TypeError("Missing required property 'assume_role_arn'") + __props__.__dict__["assume_role_arn"] = assume_role_arn + if lambda_arn is None and not opts.urn: + raise TypeError("Missing required property 'lambda_arn'") + __props__.__dict__["lambda_arn"] = lambda_arn + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + super(AwsPostgres, __self__).__init__( + 'doppler:integration/awsPostgres:AwsPostgres', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + lambda_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsPostgres': + """ + Get an existing AwsPostgres resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] assume_role_arn: IAM Role ARN for role assumption + :param pulumi.Input[_builtins.str] lambda_arn: The Lambda ARN + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsPostgresState.__new__(_AwsPostgresState) + + __props__.__dict__["assume_role_arn"] = assume_role_arn + __props__.__dict__["lambda_arn"] = lambda_arn + __props__.__dict__["name"] = name + return AwsPostgres(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="assumeRoleArn") + def assume_role_arn(self) -> pulumi.Output[_builtins.str]: + """ + IAM Role ARN for role assumption + """ + return pulumi.get(self, "assume_role_arn") + + @_builtins.property + @pulumi.getter(name="lambdaArn") + def lambda_arn(self) -> pulumi.Output[_builtins.str]: + """ + The Lambda ARN + """ + return pulumi.get(self, "lambda_arn") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumiverse_doppler/integration/aws_secrets_manager.py b/sdk/python/pulumi_doppler/integration/aws_secrets_manager.py similarity index 56% rename from sdk/python/pulumiverse_doppler/integration/aws_secrets_manager.py rename to sdk/python/pulumi_doppler/integration/aws_secrets_manager.py index ded2de3..21893db 100644 --- a/sdk/python/pulumiverse_doppler/integration/aws_secrets_manager.py +++ b/sdk/python/pulumi_doppler/integration/aws_secrets_manager.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['AwsSecretsManagerArgs', 'AwsSecretsManager'] @@ -14,88 +19,91 @@ @pulumi.input_type class AwsSecretsManagerArgs: def __init__(__self__, *, - assume_role_arn: pulumi.Input[str], - name: pulumi.Input[str]): + assume_role_arn: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): """ The set of arguments for constructing a AwsSecretsManager resource. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ pulumi.set(__self__, "assume_role_arn", assume_role_arn) pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="assumeRoleArn") - def assume_role_arn(self) -> pulumi.Input[str]: + def assume_role_arn(self) -> pulumi.Input[_builtins.str]: """ The ARN of the AWS role for Doppler to assume """ return pulumi.get(self, "assume_role_arn") @assume_role_arn.setter - def assume_role_arn(self, value: pulumi.Input[str]): + def assume_role_arn(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "assume_role_arn", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) @pulumi.input_type class _AwsSecretsManagerState: def __init__(__self__, *, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None): + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering AwsSecretsManager resources. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ if assume_role_arn is not None: pulumi.set(__self__, "assume_role_arn", assume_role_arn) if name is not None: pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="assumeRoleArn") - def assume_role_arn(self) -> Optional[pulumi.Input[str]]: + def assume_role_arn(self) -> pulumi.Input[Optional[_builtins.str]]: """ The ARN of the AWS role for Doppler to assume """ return pulumi.get(self, "assume_role_arn") @assume_role_arn.setter - def assume_role_arn(self, value: Optional[pulumi.Input[str]]): + def assume_role_arn(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "assume_role_arn", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) +@pulumi.type_token("doppler:integration/awsSecretsManager:AwsSecretsManager") class AwsSecretsManager(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage an AWS Secrets Manager Doppler integration. @@ -106,48 +114,48 @@ def __init__(__self__, import pulumi import json import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_secrets_manager = aws.iam.Role("doppler_secrets_manager", - name="doppler_secrets_manager", + import pulumi_doppler as doppler + + doppler_secrets_manager = aws.IamRole("doppler_secrets_manager", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + secretsmanager:GetSecretValue, + secretsmanager:DescribeSecret, + secretsmanager:PutSecretValue, + secretsmanager:CreateSecret, + secretsmanager:DeleteSecret, + secretsmanager:TagResource, + secretsmanager:UpdateSecret, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_secrets_manager, assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", + Condition: { + StringEquals: { + sts:ExternalId: , }, }, }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "secretsmanager:GetSecretValue", - "secretsmanager:DescribeSecret", - "secretsmanager:PutSecretValue", - "secretsmanager:CreateSecret", - "secretsmanager:DeleteSecret", - "secretsmanager:TagResource", - "secretsmanager:UpdateSecret", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) + })) prod = doppler.integration.AwsSecretsManager("prod", name="Production", - assume_role_arn=doppler_secrets_manager.arn) - backend_prod = doppler.secrets_sync.AwsSecretsManager("backend_prod", + assume_role_arn=doppler_secrets_manager["arn"]) + backend_prod = doppler.secretssync.AwsSecretsManager("backend_prod", integration=prod.id, project="backend", config="prd", @@ -159,10 +167,11 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ ... @overload @@ -179,48 +188,48 @@ def __init__(__self__, import pulumi import json import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_secrets_manager = aws.iam.Role("doppler_secrets_manager", - name="doppler_secrets_manager", + import pulumi_doppler as doppler + + doppler_secrets_manager = aws.IamRole("doppler_secrets_manager", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + secretsmanager:GetSecretValue, + secretsmanager:DescribeSecret, + secretsmanager:PutSecretValue, + secretsmanager:CreateSecret, + secretsmanager:DeleteSecret, + secretsmanager:TagResource, + secretsmanager:UpdateSecret, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_secrets_manager, assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", + Condition: { + StringEquals: { + sts:ExternalId: , }, }, }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "secretsmanager:GetSecretValue", - "secretsmanager:DescribeSecret", - "secretsmanager:PutSecretValue", - "secretsmanager:CreateSecret", - "secretsmanager:DeleteSecret", - "secretsmanager:TagResource", - "secretsmanager:UpdateSecret", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) + })) prod = doppler.integration.AwsSecretsManager("prod", name="Production", - assume_role_arn=doppler_secrets_manager.arn) - backend_prod = doppler.secrets_sync.AwsSecretsManager("backend_prod", + assume_role_arn=doppler_secrets_manager["arn"]) + backend_prod = doppler.secretssync.AwsSecretsManager("backend_prod", integration=prod.id, project="backend", config="prd", @@ -232,6 +241,7 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param AwsSecretsManagerArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -247,8 +257,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -274,8 +284,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - assume_role_arn: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None) -> 'AwsSecretsManager': + assume_role_arn: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsSecretsManager': """ Get an existing AwsSecretsManager resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -283,8 +293,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] assume_role_arn: The ARN of the AWS role for Doppler to assume - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] assume_role_arn: The ARN of the AWS role for Doppler to assume + :param pulumi.Input[_builtins.str] name: The name of the integration """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -294,17 +304,17 @@ def get(resource_name: str, __props__.__dict__["name"] = name return AwsSecretsManager(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="assumeRoleArn") - def assume_role_arn(self) -> pulumi.Output[str]: + def assume_role_arn(self) -> pulumi.Output[_builtins.str]: """ The ARN of the AWS role for Doppler to assume """ return pulumi.get(self, "assume_role_arn") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the integration """ diff --git a/sdk/python/pulumi_doppler/integration/azure_dynamic_service_principal.py b/sdk/python/pulumi_doppler/integration/azure_dynamic_service_principal.py new file mode 100644 index 0000000..1595809 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/azure_dynamic_service_principal.py @@ -0,0 +1,328 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AzureDynamicServicePrincipalArgs', 'AzureDynamicServicePrincipal'] + +@pulumi.input_type +class AzureDynamicServicePrincipalArgs: + def __init__(__self__, *, + client_id: pulumi.Input[_builtins.str], + client_secret: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + tenant_id: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AzureDynamicServicePrincipal resource. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "client_secret", client_secret) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Input[_builtins.str]: + """ + The client secret of the managing service principal + """ + return pulumi.get(self, "client_secret") + + @client_secret.setter + def client_secret(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_secret", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.input_type +class _AzureDynamicServicePrincipalState: + def __init__(__self__, *, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AzureDynamicServicePrincipal resources. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + if client_id is not None: + pulumi.set(__self__, "client_id", client_id) + if client_secret is not None: + pulumi.set(__self__, "client_secret", client_secret) + if name is not None: + pulumi.set(__self__, "name", name) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The client secret of the managing service principal + """ + return pulumi.get(self, "client_secret") + + @client_secret.setter + def client_secret(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_secret", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.type_token("doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal") +class AzureDynamicServicePrincipal(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an Azure Dynamic Service Principal Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + prod = doppler.integration.AzureDynamicServicePrincipal("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265", + client_secret="kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AzureDynamicServicePrincipalArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an Azure Dynamic Service Principal Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + prod = doppler.integration.AzureDynamicServicePrincipal("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265", + client_secret="kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo") + ``` + + + :param str resource_name: The name of the resource. + :param AzureDynamicServicePrincipalArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AzureDynamicServicePrincipalArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AzureDynamicServicePrincipalArgs.__new__(AzureDynamicServicePrincipalArgs) + + if client_id is None and not opts.urn: + raise TypeError("Missing required property 'client_id'") + __props__.__dict__["client_id"] = client_id + if client_secret is None and not opts.urn: + raise TypeError("Missing required property 'client_secret'") + __props__.__dict__["client_secret"] = None if client_secret is None else pulumi.Output.secret(client_secret) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if tenant_id is None and not opts.urn: + raise TypeError("Missing required property 'tenant_id'") + __props__.__dict__["tenant_id"] = tenant_id + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["clientSecret"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(AzureDynamicServicePrincipal, __self__).__init__( + 'doppler:integration/azureDynamicServicePrincipal:AzureDynamicServicePrincipal', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'AzureDynamicServicePrincipal': + """ + Get an existing AzureDynamicServicePrincipal resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AzureDynamicServicePrincipalState.__new__(_AzureDynamicServicePrincipalState) + + __props__.__dict__["client_id"] = client_id + __props__.__dict__["client_secret"] = client_secret + __props__.__dict__["name"] = name + __props__.__dict__["tenant_id"] = tenant_id + return AzureDynamicServicePrincipal(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Output[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Output[_builtins.str]: + """ + The client secret of the managing service principal + """ + return pulumi.get(self, "client_secret") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Output[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + diff --git a/sdk/python/pulumi_doppler/integration/azure_dynamic_service_principal_oidc.py b/sdk/python/pulumi_doppler/integration/azure_dynamic_service_principal_oidc.py new file mode 100644 index 0000000..6f8d8e4 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/azure_dynamic_service_principal_oidc.py @@ -0,0 +1,380 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AzureDynamicServicePrincipalOidcArgs', 'AzureDynamicServicePrincipalOidc'] + +@pulumi.input_type +class AzureDynamicServicePrincipalOidcArgs: + def __init__(__self__, *, + client_id: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + tenant_id: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AzureDynamicServicePrincipalOidc resource. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.input_type +class _AzureDynamicServicePrincipalOidcState: + def __init__(__self__, *, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + federation_audience: pulumi.Input[Optional[_builtins.str]] = None, + federation_issuer: pulumi.Input[Optional[_builtins.str]] = None, + federation_subject: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AzureDynamicServicePrincipalOidc resources. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] federation_audience: The audience to configure on the federated identity credential + :param pulumi.Input[_builtins.str] federation_issuer: The issuer of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] federation_subject: The subject of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + if client_id is not None: + pulumi.set(__self__, "client_id", client_id) + if federation_audience is not None: + pulumi.set(__self__, "federation_audience", federation_audience) + if federation_issuer is not None: + pulumi.set(__self__, "federation_issuer", federation_issuer) + if federation_subject is not None: + pulumi.set(__self__, "federation_subject", federation_subject) + if name is not None: + pulumi.set(__self__, "name", name) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="federationAudience") + def federation_audience(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The audience to configure on the federated identity credential + """ + return pulumi.get(self, "federation_audience") + + @federation_audience.setter + def federation_audience(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_audience", value) + + @_builtins.property + @pulumi.getter(name="federationIssuer") + def federation_issuer(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The issuer of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_issuer") + + @federation_issuer.setter + def federation_issuer(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_issuer", value) + + @_builtins.property + @pulumi.getter(name="federationSubject") + def federation_subject(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The subject of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_subject") + + @federation_subject.setter + def federation_subject(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_subject", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.type_token("doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc") +class AzureDynamicServicePrincipalOidc(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an Azure Dynamic Service Principal Doppler integration using workload identity federation. + + The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + + ## Example Usage + + ```python + import pulumi + import pulumi_azuread as azuread + import pulumi_doppler as doppler + + doppler_manager = azuread.application(client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265") + prod = doppler.integration.AzureDynamicServicePrincipalOidc("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id=doppler_manager["clientId"]) + doppler_1 = azuread.ApplicationFederatedIdentityCredential("doppler", + application_id=doppler_manager.id, + display_name=doppler-production, + issuer=prod.federation_issuer, + subject=prod.federation_subject, + audiences=[prod.federation_audience]) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AzureDynamicServicePrincipalOidcArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an Azure Dynamic Service Principal Doppler integration using workload identity federation. + + The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + + ## Example Usage + + ```python + import pulumi + import pulumi_azuread as azuread + import pulumi_doppler as doppler + + doppler_manager = azuread.application(client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265") + prod = doppler.integration.AzureDynamicServicePrincipalOidc("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id=doppler_manager["clientId"]) + doppler_1 = azuread.ApplicationFederatedIdentityCredential("doppler", + application_id=doppler_manager.id, + display_name=doppler-production, + issuer=prod.federation_issuer, + subject=prod.federation_subject, + audiences=[prod.federation_audience]) + ``` + + + :param str resource_name: The name of the resource. + :param AzureDynamicServicePrincipalOidcArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AzureDynamicServicePrincipalOidcArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AzureDynamicServicePrincipalOidcArgs.__new__(AzureDynamicServicePrincipalOidcArgs) + + if client_id is None and not opts.urn: + raise TypeError("Missing required property 'client_id'") + __props__.__dict__["client_id"] = client_id + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if tenant_id is None and not opts.urn: + raise TypeError("Missing required property 'tenant_id'") + __props__.__dict__["tenant_id"] = tenant_id + __props__.__dict__["federation_audience"] = None + __props__.__dict__["federation_issuer"] = None + __props__.__dict__["federation_subject"] = None + super(AzureDynamicServicePrincipalOidc, __self__).__init__( + 'doppler:integration/azureDynamicServicePrincipalOidc:AzureDynamicServicePrincipalOidc', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + federation_audience: pulumi.Input[Optional[_builtins.str]] = None, + federation_issuer: pulumi.Input[Optional[_builtins.str]] = None, + federation_subject: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'AzureDynamicServicePrincipalOidc': + """ + Get an existing AzureDynamicServicePrincipalOidc resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] federation_audience: The audience to configure on the federated identity credential + :param pulumi.Input[_builtins.str] federation_issuer: The issuer of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] federation_subject: The subject of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AzureDynamicServicePrincipalOidcState.__new__(_AzureDynamicServicePrincipalOidcState) + + __props__.__dict__["client_id"] = client_id + __props__.__dict__["federation_audience"] = federation_audience + __props__.__dict__["federation_issuer"] = federation_issuer + __props__.__dict__["federation_subject"] = federation_subject + __props__.__dict__["name"] = name + __props__.__dict__["tenant_id"] = tenant_id + return AzureDynamicServicePrincipalOidc(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Output[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @_builtins.property + @pulumi.getter(name="federationAudience") + def federation_audience(self) -> pulumi.Output[_builtins.str]: + """ + The audience to configure on the federated identity credential + """ + return pulumi.get(self, "federation_audience") + + @_builtins.property + @pulumi.getter(name="federationIssuer") + def federation_issuer(self) -> pulumi.Output[_builtins.str]: + """ + The issuer of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_issuer") + + @_builtins.property + @pulumi.getter(name="federationSubject") + def federation_subject(self) -> pulumi.Output[_builtins.str]: + """ + The subject of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_subject") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Output[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + diff --git a/sdk/python/pulumi_doppler/integration/azure_rotated_service_principal.py b/sdk/python/pulumi_doppler/integration/azure_rotated_service_principal.py new file mode 100644 index 0000000..b6d8574 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/azure_rotated_service_principal.py @@ -0,0 +1,328 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AzureRotatedServicePrincipalArgs', 'AzureRotatedServicePrincipal'] + +@pulumi.input_type +class AzureRotatedServicePrincipalArgs: + def __init__(__self__, *, + client_id: pulumi.Input[_builtins.str], + client_secret: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + tenant_id: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AzureRotatedServicePrincipal resource. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "client_secret", client_secret) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Input[_builtins.str]: + """ + The client secret of the managing service principal + """ + return pulumi.get(self, "client_secret") + + @client_secret.setter + def client_secret(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_secret", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.input_type +class _AzureRotatedServicePrincipalState: + def __init__(__self__, *, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AzureRotatedServicePrincipal resources. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + if client_id is not None: + pulumi.set(__self__, "client_id", client_id) + if client_secret is not None: + pulumi.set(__self__, "client_secret", client_secret) + if name is not None: + pulumi.set(__self__, "name", name) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The client secret of the managing service principal + """ + return pulumi.get(self, "client_secret") + + @client_secret.setter + def client_secret(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_secret", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.type_token("doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal") +class AzureRotatedServicePrincipal(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an Azure Rotated Service Principal Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + prod = doppler.integration.AzureRotatedServicePrincipal("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265", + client_secret="kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AzureRotatedServicePrincipalArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an Azure Rotated Service Principal Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + prod = doppler.integration.AzureRotatedServicePrincipal("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265", + client_secret="kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo") + ``` + + + :param str resource_name: The name of the resource. + :param AzureRotatedServicePrincipalArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AzureRotatedServicePrincipalArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AzureRotatedServicePrincipalArgs.__new__(AzureRotatedServicePrincipalArgs) + + if client_id is None and not opts.urn: + raise TypeError("Missing required property 'client_id'") + __props__.__dict__["client_id"] = client_id + if client_secret is None and not opts.urn: + raise TypeError("Missing required property 'client_secret'") + __props__.__dict__["client_secret"] = None if client_secret is None else pulumi.Output.secret(client_secret) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if tenant_id is None and not opts.urn: + raise TypeError("Missing required property 'tenant_id'") + __props__.__dict__["tenant_id"] = tenant_id + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["clientSecret"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(AzureRotatedServicePrincipal, __self__).__init__( + 'doppler:integration/azureRotatedServicePrincipal:AzureRotatedServicePrincipal', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'AzureRotatedServicePrincipal': + """ + Get an existing AzureRotatedServicePrincipal resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] client_secret: The client secret of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AzureRotatedServicePrincipalState.__new__(_AzureRotatedServicePrincipalState) + + __props__.__dict__["client_id"] = client_id + __props__.__dict__["client_secret"] = client_secret + __props__.__dict__["name"] = name + __props__.__dict__["tenant_id"] = tenant_id + return AzureRotatedServicePrincipal(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Output[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Output[_builtins.str]: + """ + The client secret of the managing service principal + """ + return pulumi.get(self, "client_secret") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Output[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + diff --git a/sdk/python/pulumi_doppler/integration/azure_rotated_service_principal_oidc.py b/sdk/python/pulumi_doppler/integration/azure_rotated_service_principal_oidc.py new file mode 100644 index 0000000..a56939c --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/azure_rotated_service_principal_oidc.py @@ -0,0 +1,380 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AzureRotatedServicePrincipalOidcArgs', 'AzureRotatedServicePrincipalOidc'] + +@pulumi.input_type +class AzureRotatedServicePrincipalOidcArgs: + def __init__(__self__, *, + client_id: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + tenant_id: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AzureRotatedServicePrincipalOidc resource. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.input_type +class _AzureRotatedServicePrincipalOidcState: + def __init__(__self__, *, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + federation_audience: pulumi.Input[Optional[_builtins.str]] = None, + federation_issuer: pulumi.Input[Optional[_builtins.str]] = None, + federation_subject: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AzureRotatedServicePrincipalOidc resources. + + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] federation_audience: The audience to configure on the federated identity credential + :param pulumi.Input[_builtins.str] federation_issuer: The issuer of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] federation_subject: The subject of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + if client_id is not None: + pulumi.set(__self__, "client_id", client_id) + if federation_audience is not None: + pulumi.set(__self__, "federation_audience", federation_audience) + if federation_issuer is not None: + pulumi.set(__self__, "federation_issuer", federation_issuer) + if federation_subject is not None: + pulumi.set(__self__, "federation_subject", federation_subject) + if name is not None: + pulumi.set(__self__, "name", name) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="federationAudience") + def federation_audience(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The audience to configure on the federated identity credential + """ + return pulumi.get(self, "federation_audience") + + @federation_audience.setter + def federation_audience(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_audience", value) + + @_builtins.property + @pulumi.getter(name="federationIssuer") + def federation_issuer(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The issuer of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_issuer") + + @federation_issuer.setter + def federation_issuer(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_issuer", value) + + @_builtins.property + @pulumi.getter(name="federationSubject") + def federation_subject(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The subject of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_subject") + + @federation_subject.setter + def federation_subject(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_subject", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.type_token("doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc") +class AzureRotatedServicePrincipalOidc(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an Azure Rotated Service Principal Doppler integration using workload identity federation. + + The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + + ## Example Usage + + ```python + import pulumi + import pulumi_azuread as azuread + import pulumi_doppler as doppler + + doppler_manager = azuread.application(client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265") + prod = doppler.integration.AzureRotatedServicePrincipalOidc("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id=doppler_manager["clientId"]) + doppler_1 = azuread.ApplicationFederatedIdentityCredential("doppler", + application_id=doppler_manager.id, + display_name=doppler-production, + issuer=prod.federation_issuer, + subject=prod.federation_subject, + audiences=[prod.federation_audience]) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AzureRotatedServicePrincipalOidcArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an Azure Rotated Service Principal Doppler integration using workload identity federation. + + The managing app registration must already exist in your tenant, with a service principal, admin-consented Microsoft Graph application permissions, and ownership of the target applications it manages. + + ## Example Usage + + ```python + import pulumi + import pulumi_azuread as azuread + import pulumi_doppler as doppler + + doppler_manager = azuread.application(client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265") + prod = doppler.integration.AzureRotatedServicePrincipalOidc("prod", + name="Production", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e", + client_id=doppler_manager["clientId"]) + doppler_1 = azuread.ApplicationFederatedIdentityCredential("doppler", + application_id=doppler_manager.id, + display_name=doppler-production, + issuer=prod.federation_issuer, + subject=prod.federation_subject, + audiences=[prod.federation_audience]) + ``` + + + :param str resource_name: The name of the resource. + :param AzureRotatedServicePrincipalOidcArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AzureRotatedServicePrincipalOidcArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AzureRotatedServicePrincipalOidcArgs.__new__(AzureRotatedServicePrincipalOidcArgs) + + if client_id is None and not opts.urn: + raise TypeError("Missing required property 'client_id'") + __props__.__dict__["client_id"] = client_id + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if tenant_id is None and not opts.urn: + raise TypeError("Missing required property 'tenant_id'") + __props__.__dict__["tenant_id"] = tenant_id + __props__.__dict__["federation_audience"] = None + __props__.__dict__["federation_issuer"] = None + __props__.__dict__["federation_subject"] = None + super(AzureRotatedServicePrincipalOidc, __self__).__init__( + 'doppler:integration/azureRotatedServicePrincipalOidc:AzureRotatedServicePrincipalOidc', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + federation_audience: pulumi.Input[Optional[_builtins.str]] = None, + federation_issuer: pulumi.Input[Optional[_builtins.str]] = None, + federation_subject: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'AzureRotatedServicePrincipalOidc': + """ + Get an existing AzureRotatedServicePrincipalOidc resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The application (client) ID of the managing service principal + :param pulumi.Input[_builtins.str] federation_audience: The audience to configure on the federated identity credential + :param pulumi.Input[_builtins.str] federation_issuer: The issuer of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] federation_subject: The subject of the OIDC tokens Doppler issues for this integration + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Azure directory (tenant) ID + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AzureRotatedServicePrincipalOidcState.__new__(_AzureRotatedServicePrincipalOidcState) + + __props__.__dict__["client_id"] = client_id + __props__.__dict__["federation_audience"] = federation_audience + __props__.__dict__["federation_issuer"] = federation_issuer + __props__.__dict__["federation_subject"] = federation_subject + __props__.__dict__["name"] = name + __props__.__dict__["tenant_id"] = tenant_id + return AzureRotatedServicePrincipalOidc(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Output[_builtins.str]: + """ + The application (client) ID of the managing service principal + """ + return pulumi.get(self, "client_id") + + @_builtins.property + @pulumi.getter(name="federationAudience") + def federation_audience(self) -> pulumi.Output[_builtins.str]: + """ + The audience to configure on the federated identity credential + """ + return pulumi.get(self, "federation_audience") + + @_builtins.property + @pulumi.getter(name="federationIssuer") + def federation_issuer(self) -> pulumi.Output[_builtins.str]: + """ + The issuer of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_issuer") + + @_builtins.property + @pulumi.getter(name="federationSubject") + def federation_subject(self) -> pulumi.Output[_builtins.str]: + """ + The subject of the OIDC tokens Doppler issues for this integration + """ + return pulumi.get(self, "federation_subject") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Output[_builtins.str]: + """ + The Azure directory (tenant) ID + """ + return pulumi.get(self, "tenant_id") + diff --git a/sdk/python/pulumi_doppler/integration/azure_vault_service_principal.py b/sdk/python/pulumi_doppler/integration/azure_vault_service_principal.py new file mode 100644 index 0000000..39e330a --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/azure_vault_service_principal.py @@ -0,0 +1,328 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AzureVaultServicePrincipalArgs', 'AzureVaultServicePrincipal'] + +@pulumi.input_type +class AzureVaultServicePrincipalArgs: + def __init__(__self__, *, + client_id: pulumi.Input[_builtins.str], + client_secret: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + tenant_id: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AzureVaultServicePrincipal resource. + + :param pulumi.Input[_builtins.str] client_id: The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] client_secret: The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "client_secret", client_secret) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[_builtins.str]: + """ + The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Input[_builtins.str]: + """ + The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "client_secret") + + @client_secret.setter + def client_secret(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "client_secret", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[_builtins.str]: + """ + The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.input_type +class _AzureVaultServicePrincipalState: + def __init__(__self__, *, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AzureVaultServicePrincipal resources. + + :param pulumi.Input[_builtins.str] client_id: The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] client_secret: The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + if client_id is not None: + pulumi.set(__self__, "client_id", client_id) + if client_secret is not None: + pulumi.set(__self__, "client_secret", client_secret) + if name is not None: + pulumi.set(__self__, "name", name) + if tenant_id is not None: + pulumi.set(__self__, "tenant_id", tenant_id) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "client_id") + + @client_id.setter + def client_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_id", value) + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "client_secret") + + @client_secret.setter + def client_secret(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "client_secret", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "tenant_id") + + @tenant_id.setter + def tenant_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "tenant_id", value) + + +@pulumi.type_token("doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal") +class AzureVaultServicePrincipal(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an Azure Vault (Service Principal) Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + prod = doppler.integration.AzureVaultServicePrincipal("prod", + name="prod", + client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265", + client_secret="kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] client_secret: The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AzureVaultServicePrincipalArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an Azure Vault (Service Principal) Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + prod = doppler.integration.AzureVaultServicePrincipal("prod", + name="prod", + client_id="77ed9112-b7f5-4d1d-a60f-198375e7f265", + client_secret="kXOQb4juoe~jEqQVQdeXEFhsgIvkmoE0Qz3jBwPo", + tenant_id="c77d1b3d-6350-4696-b59f-90dae3e0b41e") + ``` + + + :param str resource_name: The name of the resource. + :param AzureVaultServicePrincipalArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AzureVaultServicePrincipalArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AzureVaultServicePrincipalArgs.__new__(AzureVaultServicePrincipalArgs) + + if client_id is None and not opts.urn: + raise TypeError("Missing required property 'client_id'") + __props__.__dict__["client_id"] = client_id + if client_secret is None and not opts.urn: + raise TypeError("Missing required property 'client_secret'") + __props__.__dict__["client_secret"] = None if client_secret is None else pulumi.Output.secret(client_secret) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if tenant_id is None and not opts.urn: + raise TypeError("Missing required property 'tenant_id'") + __props__.__dict__["tenant_id"] = tenant_id + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["clientSecret"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(AzureVaultServicePrincipal, __self__).__init__( + 'doppler:integration/azureVaultServicePrincipal:AzureVaultServicePrincipal', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + client_id: pulumi.Input[Optional[_builtins.str]] = None, + client_secret: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + tenant_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'AzureVaultServicePrincipal': + """ + Get an existing AzureVaultServicePrincipal resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] client_id: The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] client_secret: The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] tenant_id: The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AzureVaultServicePrincipalState.__new__(_AzureVaultServicePrincipalState) + + __props__.__dict__["client_id"] = client_id + __props__.__dict__["client_secret"] = client_secret + __props__.__dict__["name"] = name + __props__.__dict__["tenant_id"] = tenant_id + return AzureVaultServicePrincipal(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="clientId") + def client_id(self) -> pulumi.Output[_builtins.str]: + """ + The Service Principal Client ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "client_id") + + @_builtins.property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> pulumi.Output[_builtins.str]: + """ + The Service Principal Client Secret. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "client_secret") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="tenantId") + def tenant_id(self) -> pulumi.Output[_builtins.str]: + """ + The Service Principal Tenant ID. See https://docs.doppler.com/docs/azure-key-vault#custom-service-principal for details. + """ + return pulumi.get(self, "tenant_id") + diff --git a/sdk/python/pulumiverse_doppler/integration/circleci.py b/sdk/python/pulumi_doppler/integration/circleci.py similarity index 69% rename from sdk/python/pulumiverse_doppler/integration/circleci.py rename to sdk/python/pulumi_doppler/integration/circleci.py index 740dd1b..f90fbbc 100644 --- a/sdk/python/pulumiverse_doppler/integration/circleci.py +++ b/sdk/python/pulumi_doppler/integration/circleci.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['CircleciArgs', 'Circleci'] @@ -14,88 +19,91 @@ @pulumi.input_type class CircleciArgs: def __init__(__self__, *, - api_token: pulumi.Input[str], - name: pulumi.Input[str]): + api_token: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): """ The set of arguments for constructing a Circleci resource. - :param pulumi.Input[str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. + :param pulumi.Input[_builtins.str] name: The name of the integration """ pulumi.set(__self__, "api_token", api_token) pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="apiToken") - def api_token(self) -> pulumi.Input[str]: + def api_token(self) -> pulumi.Input[_builtins.str]: """ A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. """ return pulumi.get(self, "api_token") @api_token.setter - def api_token(self, value: pulumi.Input[str]): + def api_token(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "api_token", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) @pulumi.input_type class _CircleciState: def __init__(__self__, *, - api_token: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None): + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering Circleci resources. - :param pulumi.Input[str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. + :param pulumi.Input[_builtins.str] name: The name of the integration """ if api_token is not None: pulumi.set(__self__, "api_token", api_token) if name is not None: pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="apiToken") - def api_token(self) -> Optional[pulumi.Input[str]]: + def api_token(self) -> pulumi.Input[Optional[_builtins.str]]: """ A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. """ return pulumi.get(self, "api_token") @api_token.setter - def api_token(self, value: Optional[pulumi.Input[str]]): + def api_token(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "api_token", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) +@pulumi.type_token("doppler:integration/circleci:Circleci") class Circleci(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - api_token: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a CircleCI Doppler integration. @@ -104,12 +112,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Circleci("prod", name="Production", api_token="my_api_token") - backend_prod = doppler.secrets_sync.Circleci("backend_prod", + backend_prod = doppler.secretssync.Circleci("backend_prod", integration=prod.id, project="backend", config="prd", @@ -119,10 +127,11 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. + :param pulumi.Input[_builtins.str] name: The name of the integration """ ... @overload @@ -137,12 +146,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Circleci("prod", name="Production", api_token="my_api_token") - backend_prod = doppler.secrets_sync.Circleci("backend_prod", + backend_prod = doppler.secretssync.Circleci("backend_prod", integration=prod.id, project="backend", config="prd", @@ -152,6 +161,7 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param CircleciArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -167,8 +177,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - api_token: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -196,8 +206,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - api_token: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None) -> 'Circleci': + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'Circleci': """ Get an existing Circleci resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -205,8 +215,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] api_token: A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. + :param pulumi.Input[_builtins.str] name: The name of the integration """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -216,17 +226,17 @@ def get(resource_name: str, __props__.__dict__["name"] = name return Circleci(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="apiToken") - def api_token(self) -> pulumi.Output[str]: + def api_token(self) -> pulumi.Output[_builtins.str]: """ A CircleCI API token. See https://docs.doppler.com/docs/circleci for details. """ return pulumi.get(self, "api_token") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the integration """ diff --git a/sdk/python/pulumi_doppler/integration/cloudflare_tokens.py b/sdk/python/pulumi_doppler/integration/cloudflare_tokens.py new file mode 100644 index 0000000..7a9eba8 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/cloudflare_tokens.py @@ -0,0 +1,272 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['CloudflareTokensArgs', 'CloudflareTokens'] + +@pulumi.input_type +class CloudflareTokensArgs: + def __init__(__self__, *, + api_token: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a CloudflareTokens resource. + + :param pulumi.Input[_builtins.str] api_token: The API Token + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "api_token", api_token) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="apiToken") + def api_token(self) -> pulumi.Input[_builtins.str]: + """ + The API Token + """ + return pulumi.get(self, "api_token") + + @api_token.setter + def api_token(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "api_token", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _CloudflareTokensState: + def __init__(__self__, *, + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering CloudflareTokens resources. + + :param pulumi.Input[_builtins.str] api_token: The API Token + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if api_token is not None: + pulumi.set(__self__, "api_token", api_token) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="apiToken") + def api_token(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The API Token + """ + return pulumi.get(self, "api_token") + + @api_token.setter + def api_token(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "api_token", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/cloudflareTokens:CloudflareTokens") +class CloudflareTokens(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Cloudflare Tokens Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + key1 = config.get("key1") + if key1 is None: + key1 = "" + key2 = config.get("key2") + if key2 is None: + key2 = "" + i_cf = doppler.integration.CloudflareTokens("i_cf", + name="TF Cloudflare", + api_token="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") + rs_cf = doppler.rotatedsecret.CloudflareTokens("rs_cf", + credentials=[ + { + "value": key1, + }, + { + "value": key2, + }, + ], + integration=i_cf.id, + project="backend", + config="dev", + name="CLOUDFLARE", + rotation_period_sec=2592000, + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] api_token: The API Token + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CloudflareTokensArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Cloudflare Tokens Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + key1 = config.get("key1") + if key1 is None: + key1 = "" + key2 = config.get("key2") + if key2 is None: + key2 = "" + i_cf = doppler.integration.CloudflareTokens("i_cf", + name="TF Cloudflare", + api_token="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") + rs_cf = doppler.rotatedsecret.CloudflareTokens("rs_cf", + credentials=[ + { + "value": key1, + }, + { + "value": key2, + }, + ], + integration=i_cf.id, + project="backend", + config="dev", + name="CLOUDFLARE", + rotation_period_sec=2592000, + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param CloudflareTokensArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CloudflareTokensArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = CloudflareTokensArgs.__new__(CloudflareTokensArgs) + + if api_token is None and not opts.urn: + raise TypeError("Missing required property 'api_token'") + __props__.__dict__["api_token"] = None if api_token is None else pulumi.Output.secret(api_token) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["apiToken"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(CloudflareTokens, __self__).__init__( + 'doppler:integration/cloudflareTokens:CloudflareTokens', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + api_token: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'CloudflareTokens': + """ + Get an existing CloudflareTokens resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] api_token: The API Token + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _CloudflareTokensState.__new__(_CloudflareTokensState) + + __props__.__dict__["api_token"] = api_token + __props__.__dict__["name"] = name + return CloudflareTokens(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="apiToken") + def api_token(self) -> pulumi.Output[_builtins.str]: + """ + The API Token + """ + return pulumi.get(self, "api_token") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/external_id.py b/sdk/python/pulumi_doppler/integration/external_id.py new file mode 100644 index 0000000..7ed8ab6 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/external_id.py @@ -0,0 +1,154 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['ExternalIdArgs', 'ExternalId'] + +@pulumi.input_type +class ExternalIdArgs: + def __init__(__self__, *, + integration_type: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a ExternalId resource. + + :param pulumi.Input[_builtins.str] integration_type: The integration type for the external id + """ + pulumi.set(__self__, "integration_type", integration_type) + + @_builtins.property + @pulumi.getter(name="integrationType") + def integration_type(self) -> pulumi.Input[_builtins.str]: + """ + The integration type for the external id + """ + return pulumi.get(self, "integration_type") + + @integration_type.setter + def integration_type(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration_type", value) + + +@pulumi.input_type +class _ExternalIdState: + def __init__(__self__, *, + integration_type: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering ExternalId resources. + + :param pulumi.Input[_builtins.str] integration_type: The integration type for the external id + """ + if integration_type is not None: + pulumi.set(__self__, "integration_type", integration_type) + + @_builtins.property + @pulumi.getter(name="integrationType") + def integration_type(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The integration type for the external id + """ + return pulumi.get(self, "integration_type") + + @integration_type.setter + def integration_type(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration_type", value) + + +@pulumi.type_token("doppler:integration/externalId:ExternalId") +class ExternalId(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + integration_type: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Create a ExternalId resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] integration_type: The integration type for the external id + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ExternalIdArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a ExternalId resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param ExternalIdArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ExternalIdArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + integration_type: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ExternalIdArgs.__new__(ExternalIdArgs) + + if integration_type is None and not opts.urn: + raise TypeError("Missing required property 'integration_type'") + __props__.__dict__["integration_type"] = integration_type + super(ExternalId, __self__).__init__( + 'doppler:integration/externalId:ExternalId', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + integration_type: pulumi.Input[Optional[_builtins.str]] = None) -> 'ExternalId': + """ + Get an existing ExternalId resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] integration_type: The integration type for the external id + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ExternalIdState.__new__(_ExternalIdState) + + __props__.__dict__["integration_type"] = integration_type + return ExternalId(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="integrationType") + def integration_type(self) -> pulumi.Output[_builtins.str]: + """ + The integration type for the external id + """ + return pulumi.get(self, "integration_type") + diff --git a/sdk/python/pulumiverse_doppler/integration/flyio.py b/sdk/python/pulumi_doppler/integration/flyio.py similarity index 70% rename from sdk/python/pulumiverse_doppler/integration/flyio.py rename to sdk/python/pulumi_doppler/integration/flyio.py index c251d62..3222a82 100644 --- a/sdk/python/pulumiverse_doppler/integration/flyio.py +++ b/sdk/python/pulumi_doppler/integration/flyio.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['FlyioArgs', 'Flyio'] @@ -14,88 +19,91 @@ @pulumi.input_type class FlyioArgs: def __init__(__self__, *, - api_key: pulumi.Input[str], - name: pulumi.Input[str]): + api_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): """ The set of arguments for constructing a Flyio resource. - :param pulumi.Input[str] api_key: A Fly.io API key. - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] api_key: A Fly.io API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ pulumi.set(__self__, "api_key", api_key) pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> pulumi.Input[str]: + def api_key(self) -> pulumi.Input[_builtins.str]: """ A Fly.io API key. """ return pulumi.get(self, "api_key") @api_key.setter - def api_key(self, value: pulumi.Input[str]): + def api_key(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "api_key", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) @pulumi.input_type class _FlyioState: def __init__(__self__, *, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None): + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering Flyio resources. - :param pulumi.Input[str] api_key: A Fly.io API key. - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] api_key: A Fly.io API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ if api_key is not None: pulumi.set(__self__, "api_key", api_key) if name is not None: pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> Optional[pulumi.Input[str]]: + def api_key(self) -> pulumi.Input[Optional[_builtins.str]]: """ A Fly.io API key. """ return pulumi.get(self, "api_key") @api_key.setter - def api_key(self, value: Optional[pulumi.Input[str]]): + def api_key(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "api_key", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) +@pulumi.type_token("doppler:integration/flyio:Flyio") class Flyio(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Fly.io Doppler integration. @@ -104,12 +112,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Flyio("prod", name="TF Fly.io", api_key="fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") - backend_prod = doppler.secrets_sync.Flyio("backend_prod", + backend_prod = doppler.secretssync.Flyio("backend_prod", integration=prod.id, project="backend", config="prd", @@ -118,10 +126,11 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_key: A Fly.io API key. - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] api_key: A Fly.io API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ ... @overload @@ -136,12 +145,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Flyio("prod", name="TF Fly.io", api_key="fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") - backend_prod = doppler.secrets_sync.Flyio("backend_prod", + backend_prod = doppler.secretssync.Flyio("backend_prod", integration=prod.id, project="backend", config="prd", @@ -150,6 +159,7 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param FlyioArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -165,8 +175,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -194,8 +204,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None) -> 'Flyio': + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'Flyio': """ Get an existing Flyio resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -203,8 +213,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_key: A Fly.io API key. - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] api_key: A Fly.io API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -214,17 +224,17 @@ def get(resource_name: str, __props__.__dict__["name"] = name return Flyio(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> pulumi.Output[str]: + def api_key(self) -> pulumi.Output[_builtins.str]: """ A Fly.io API key. """ return pulumi.get(self, "api_key") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the integration """ diff --git a/sdk/python/pulumi_doppler/integration/gcp_cloudsql_mysql.py b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_mysql.py new file mode 100644 index 0000000..a66ab4e --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_mysql.py @@ -0,0 +1,304 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpCloudsqlMysqlArgs', 'GcpCloudsqlMysql'] + +@pulumi.input_type +class GcpCloudsqlMysqlArgs: + def __init__(__self__, *, + gcp_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpCloudsqlMysql resource. + + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_key", gcp_key) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[_builtins.str]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpCloudsqlMysqlState: + def __init__(__self__, *, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpCloudsqlMysql resources. + + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if gcp_key is not None: + pulumi.set(__self__, "gcp_key", gcp_key) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql") +class GcpCloudsqlMysql(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP CloudSQL MySQL Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "xxxxxxxxxxxxxxxxx", + "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "client_id": "xxxxxxxxxxxxxxxxxxxxx" + } + \"\"\" + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_gcp_mysql = doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", + name="TF GCP MySQL", + gcp_key=gcp_key) + rs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", + credentials=[ + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password2, + }, + ], + integration=i_gcp_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + database_instance="xxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlMysqlArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP CloudSQL MySQL Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "xxxxxxxxxxxxxxxxx", + "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "client_id": "xxxxxxxxxxxxxxxxxxxxx" + } + \"\"\" + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_gcp_mysql = doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", + name="TF GCP MySQL", + gcp_key=gcp_key) + rs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", + credentials=[ + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password2, + }, + ], + integration=i_gcp_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + database_instance="xxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param GcpCloudsqlMysqlArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlMysqlArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlMysqlArgs.__new__(GcpCloudsqlMysqlArgs) + + if gcp_key is None and not opts.urn: + raise TypeError("Missing required property 'gcp_key'") + __props__.__dict__["gcp_key"] = None if gcp_key is None else pulumi.Output.secret(gcp_key) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["gcpKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(GcpCloudsqlMysql, __self__).__init__( + 'doppler:integration/gcpCloudsqlMysql:GcpCloudsqlMysql', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpCloudsqlMysql': + """ + Get an existing GcpCloudsqlMysql resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlMysqlState.__new__(_GcpCloudsqlMysqlState) + + __props__.__dict__["gcp_key"] = gcp_key + __props__.__dict__["name"] = name + return GcpCloudsqlMysql(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Output[_builtins.str]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_cloudsql_mysql_oidc.py b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_mysql_oidc.py new file mode 100644 index 0000000..12b3116 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_mysql_oidc.py @@ -0,0 +1,314 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpCloudsqlMysqlOidcArgs', 'GcpCloudsqlMysqlOidc'] + +@pulumi.input_type +class GcpCloudsqlMysqlOidcArgs: + def __init__(__self__, *, + gcp_project_id: pulumi.Input[_builtins.str], + gcp_workload_identity_provider: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpCloudsqlMysqlOidc resource. + + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpCloudsqlMysqlOidcState: + def __init__(__self__, *, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpCloudsqlMysqlOidc resources. + + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if federation_principal is not None: + pulumi.set(__self__, "federation_principal", federation_principal) + if gcp_project_id is not None: + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + if gcp_workload_identity_provider is not None: + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @federation_principal.setter + def federation_principal(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_principal", value) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc") +class GcpCloudsqlMysqlOidc(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP CloudSQL MySQL Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + prod = doppler.integration.GcpCloudsqlMysqlOidc("prod", + name="Production", + gcp_workload_identity_provider="//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + gcp_project_id="your-gcp-project-id") + doppler_1 = google.ProjectIamMember("doppler", + project=your-gcp-project-id, + role=roles/cloudsql.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlMysqlOidcArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP CloudSQL MySQL Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + prod = doppler.integration.GcpCloudsqlMysqlOidc("prod", + name="Production", + gcp_workload_identity_provider="//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + gcp_project_id="your-gcp-project-id") + doppler_1 = google.ProjectIamMember("doppler", + project=your-gcp-project-id, + role=roles/cloudsql.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param GcpCloudsqlMysqlOidcArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlMysqlOidcArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlMysqlOidcArgs.__new__(GcpCloudsqlMysqlOidcArgs) + + if gcp_project_id is None and not opts.urn: + raise TypeError("Missing required property 'gcp_project_id'") + __props__.__dict__["gcp_project_id"] = gcp_project_id + if gcp_workload_identity_provider is None and not opts.urn: + raise TypeError("Missing required property 'gcp_workload_identity_provider'") + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["federation_principal"] = None + super(GcpCloudsqlMysqlOidc, __self__).__init__( + 'doppler:integration/gcpCloudsqlMysqlOidc:GcpCloudsqlMysqlOidc', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpCloudsqlMysqlOidc': + """ + Get an existing GcpCloudsqlMysqlOidc resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlMysqlOidcState.__new__(_GcpCloudsqlMysqlOidcState) + + __props__.__dict__["federation_principal"] = federation_principal + __props__.__dict__["gcp_project_id"] = gcp_project_id + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + __props__.__dict__["name"] = name + return GcpCloudsqlMysqlOidc(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Output[_builtins.str]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Output[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Output[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_cloudsql_postgres.py b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_postgres.py new file mode 100644 index 0000000..cb0a176 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_postgres.py @@ -0,0 +1,304 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpCloudsqlPostgresArgs', 'GcpCloudsqlPostgres'] + +@pulumi.input_type +class GcpCloudsqlPostgresArgs: + def __init__(__self__, *, + gcp_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpCloudsqlPostgres resource. + + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_key", gcp_key) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[_builtins.str]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpCloudsqlPostgresState: + def __init__(__self__, *, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpCloudsqlPostgres resources. + + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if gcp_key is not None: + pulumi.set(__self__, "gcp_key", gcp_key) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres") +class GcpCloudsqlPostgres(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP CloudSQL Postgres Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "xxxxxxxxxxxxxxxxx", + "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "client_id": "xxxxxxxxxxxxxxxxxxxxx" + } + \"\"\" + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_gcp_mysql = doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", + name="TF GCP MySQL", + gcp_key=gcp_key) + rs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", + credentials=[ + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password2, + }, + ], + integration=i_gcp_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + database_instance="xxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlPostgresArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP CloudSQL Postgres Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "xxxxxxxxxxxxxxxxx", + "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "client_id": "xxxxxxxxxxxxxxxxxxxxx" + } + \"\"\" + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_gcp_mysql = doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", + name="TF GCP MySQL", + gcp_key=gcp_key) + rs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", + credentials=[ + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password2, + }, + ], + integration=i_gcp_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + database_instance="xxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param GcpCloudsqlPostgresArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlPostgresArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlPostgresArgs.__new__(GcpCloudsqlPostgresArgs) + + if gcp_key is None and not opts.urn: + raise TypeError("Missing required property 'gcp_key'") + __props__.__dict__["gcp_key"] = None if gcp_key is None else pulumi.Output.secret(gcp_key) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["gcpKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(GcpCloudsqlPostgres, __self__).__init__( + 'doppler:integration/gcpCloudsqlPostgres:GcpCloudsqlPostgres', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpCloudsqlPostgres': + """ + Get an existing GcpCloudsqlPostgres resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlPostgresState.__new__(_GcpCloudsqlPostgresState) + + __props__.__dict__["gcp_key"] = gcp_key + __props__.__dict__["name"] = name + return GcpCloudsqlPostgres(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Output[_builtins.str]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_cloudsql_postgres_oidc.py b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_postgres_oidc.py new file mode 100644 index 0000000..25086bc --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_postgres_oidc.py @@ -0,0 +1,314 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpCloudsqlPostgresOidcArgs', 'GcpCloudsqlPostgresOidc'] + +@pulumi.input_type +class GcpCloudsqlPostgresOidcArgs: + def __init__(__self__, *, + gcp_project_id: pulumi.Input[_builtins.str], + gcp_workload_identity_provider: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpCloudsqlPostgresOidc resource. + + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpCloudsqlPostgresOidcState: + def __init__(__self__, *, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpCloudsqlPostgresOidc resources. + + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if federation_principal is not None: + pulumi.set(__self__, "federation_principal", federation_principal) + if gcp_project_id is not None: + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + if gcp_workload_identity_provider is not None: + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @federation_principal.setter + def federation_principal(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_principal", value) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc") +class GcpCloudsqlPostgresOidc(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP CloudSQL Postgres Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + prod = doppler.integration.GcpCloudsqlPostgresOidc("prod", + name="Production", + gcp_workload_identity_provider="//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + gcp_project_id="your-gcp-project-id") + doppler_1 = google.ProjectIamMember("doppler", + project=your-gcp-project-id, + role=roles/cloudsql.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlPostgresOidcArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP CloudSQL Postgres Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + prod = doppler.integration.GcpCloudsqlPostgresOidc("prod", + name="Production", + gcp_workload_identity_provider="//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + gcp_project_id="your-gcp-project-id") + doppler_1 = google.ProjectIamMember("doppler", + project=your-gcp-project-id, + role=roles/cloudsql.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param GcpCloudsqlPostgresOidcArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlPostgresOidcArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlPostgresOidcArgs.__new__(GcpCloudsqlPostgresOidcArgs) + + if gcp_project_id is None and not opts.urn: + raise TypeError("Missing required property 'gcp_project_id'") + __props__.__dict__["gcp_project_id"] = gcp_project_id + if gcp_workload_identity_provider is None and not opts.urn: + raise TypeError("Missing required property 'gcp_workload_identity_provider'") + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["federation_principal"] = None + super(GcpCloudsqlPostgresOidc, __self__).__init__( + 'doppler:integration/gcpCloudsqlPostgresOidc:GcpCloudsqlPostgresOidc', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpCloudsqlPostgresOidc': + """ + Get an existing GcpCloudsqlPostgresOidc resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlPostgresOidcState.__new__(_GcpCloudsqlPostgresOidcState) + + __props__.__dict__["federation_principal"] = federation_principal + __props__.__dict__["gcp_project_id"] = gcp_project_id + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + __props__.__dict__["name"] = name + return GcpCloudsqlPostgresOidc(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Output[_builtins.str]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Output[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Output[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_cloudsql_sqlserver.py b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_sqlserver.py new file mode 100644 index 0000000..8a60f61 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_sqlserver.py @@ -0,0 +1,304 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpCloudsqlSqlserverArgs', 'GcpCloudsqlSqlserver'] + +@pulumi.input_type +class GcpCloudsqlSqlserverArgs: + def __init__(__self__, *, + gcp_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpCloudsqlSqlserver resource. + + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_key", gcp_key) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[_builtins.str]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpCloudsqlSqlserverState: + def __init__(__self__, *, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpCloudsqlSqlserver resources. + + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if gcp_key is not None: + pulumi.set(__self__, "gcp_key", gcp_key) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver") +class GcpCloudsqlSqlserver(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP CloudSQL SQL Server Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "xxxxxxxxxxxxxxxxx", + "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "client_id": "xxxxxxxxxxxxxxxxxxxxx" + } + \"\"\" + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_gcp_mysql = doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", + name="TF GCP MySQL", + gcp_key=gcp_key) + rs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", + credentials=[ + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password2, + }, + ], + integration=i_gcp_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + database_instance="xxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlSqlserverArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP CloudSQL SQL Server Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "xxxxxxxxxxxxxxxxx", + "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "private_key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----", + "client_email": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "client_id": "xxxxxxxxxxxxxxxxxxxxx" + } + \"\"\" + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_gcp_mysql = doppler.integration.GcpCloudsqlMysql("i_gcp_mysql", + name="TF GCP MySQL", + gcp_key=gcp_key) + rs_gcp_mysql = doppler.rotatedsecret.GcpCloudsql("rs_gcp_mysql", + credentials=[ + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password1, + }, + { + "username": "xxxxxxxxxxxx", + "user_host_name": "%", + "password": db_password2, + }, + ], + integration=i_gcp_mysql.id, + project="backend", + config="dev", + name="DB", + rotation_period_sec=2592000, + database_instance="xxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param GcpCloudsqlSqlserverArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlSqlserverArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlSqlserverArgs.__new__(GcpCloudsqlSqlserverArgs) + + if gcp_key is None and not opts.urn: + raise TypeError("Missing required property 'gcp_key'") + __props__.__dict__["gcp_key"] = None if gcp_key is None else pulumi.Output.secret(gcp_key) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["gcpKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(GcpCloudsqlSqlserver, __self__).__init__( + 'doppler:integration/gcpCloudsqlSqlserver:GcpCloudsqlSqlserver', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpCloudsqlSqlserver': + """ + Get an existing GcpCloudsqlSqlserver resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The GCP service account key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlSqlserverState.__new__(_GcpCloudsqlSqlserverState) + + __props__.__dict__["gcp_key"] = gcp_key + __props__.__dict__["name"] = name + return GcpCloudsqlSqlserver(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Output[_builtins.str]: + """ + The GCP service account key + """ + return pulumi.get(self, "gcp_key") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_cloudsql_sqlserver_oidc.py b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_sqlserver_oidc.py new file mode 100644 index 0000000..9999fd1 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_cloudsql_sqlserver_oidc.py @@ -0,0 +1,314 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpCloudsqlSqlserverOidcArgs', 'GcpCloudsqlSqlserverOidc'] + +@pulumi.input_type +class GcpCloudsqlSqlserverOidcArgs: + def __init__(__self__, *, + gcp_project_id: pulumi.Input[_builtins.str], + gcp_workload_identity_provider: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpCloudsqlSqlserverOidc resource. + + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpCloudsqlSqlserverOidcState: + def __init__(__self__, *, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpCloudsqlSqlserverOidc resources. + + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if federation_principal is not None: + pulumi.set(__self__, "federation_principal", federation_principal) + if gcp_project_id is not None: + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + if gcp_workload_identity_provider is not None: + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @federation_principal.setter + def federation_principal(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_principal", value) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc") +class GcpCloudsqlSqlserverOidc(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP CloudSQL SQL Server Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + prod = doppler.integration.GcpCloudsqlSqlserverOidc("prod", + name="Production", + gcp_workload_identity_provider="//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + gcp_project_id="your-gcp-project-id") + doppler_1 = google.ProjectIamMember("doppler", + project=your-gcp-project-id, + role=roles/cloudsql.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlSqlserverOidcArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP CloudSQL SQL Server Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + prod = doppler.integration.GcpCloudsqlSqlserverOidc("prod", + name="Production", + gcp_workload_identity_provider="//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/doppler-pool/providers/doppler", + gcp_project_id="your-gcp-project-id") + doppler_1 = google.ProjectIamMember("doppler", + project=your-gcp-project-id, + role=roles/cloudsql.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param GcpCloudsqlSqlserverOidcArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlSqlserverOidcArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlSqlserverOidcArgs.__new__(GcpCloudsqlSqlserverOidcArgs) + + if gcp_project_id is None and not opts.urn: + raise TypeError("Missing required property 'gcp_project_id'") + __props__.__dict__["gcp_project_id"] = gcp_project_id + if gcp_workload_identity_provider is None and not opts.urn: + raise TypeError("Missing required property 'gcp_workload_identity_provider'") + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["federation_principal"] = None + super(GcpCloudsqlSqlserverOidc, __self__).__init__( + 'doppler:integration/gcpCloudsqlSqlserverOidc:GcpCloudsqlSqlserverOidc', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpCloudsqlSqlserverOidc': + """ + Get an existing GcpCloudsqlSqlserverOidc resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlSqlserverOidcState.__new__(_GcpCloudsqlSqlserverOidcState) + + __props__.__dict__["federation_principal"] = federation_principal + __props__.__dict__["gcp_project_id"] = gcp_project_id + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + __props__.__dict__["name"] = name + return GcpCloudsqlSqlserverOidc(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Output[_builtins.str]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Output[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Output[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_secret_manager.py b/sdk/python/pulumi_doppler/integration/gcp_secret_manager.py new file mode 100644 index 0000000..8cfd002 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_secret_manager.py @@ -0,0 +1,312 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpSecretManagerArgs', 'GcpSecretManager'] + +@pulumi.input_type +class GcpSecretManagerArgs: + def __init__(__self__, *, + gcp_key: pulumi.Input[_builtins.str], + gcp_secret_prefix: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpSecretManager resource. + + :param pulumi.Input[_builtins.str] gcp_key: The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "gcp_key", gcp_key) + pulumi.set(__self__, "gcp_secret_prefix", gcp_secret_prefix) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[_builtins.str]: + """ + The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter(name="gcpSecretPrefix") + def gcp_secret_prefix(self) -> pulumi.Input[_builtins.str]: + """ + The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + """ + return pulumi.get(self, "gcp_secret_prefix") + + @gcp_secret_prefix.setter + def gcp_secret_prefix(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_secret_prefix", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpSecretManagerState: + def __init__(__self__, *, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpSecretManager resources. + + :param pulumi.Input[_builtins.str] gcp_key: The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if gcp_key is not None: + pulumi.set(__self__, "gcp_key", gcp_key) + if gcp_secret_prefix is not None: + pulumi.set(__self__, "gcp_secret_prefix", gcp_secret_prefix) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + """ + return pulumi.get(self, "gcp_key") + + @gcp_key.setter + def gcp_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_key", value) + + @_builtins.property + @pulumi.getter(name="gcpSecretPrefix") + def gcp_secret_prefix(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + """ + return pulumi.get(self, "gcp_secret_prefix") + + @gcp_secret_prefix.setter + def gcp_secret_prefix(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_secret_prefix", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpSecretManager:GcpSecretManager") +class GcpSecretManager(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP Secret Manager Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "your-gcp-project-id", + "private_key_id": "...", + "private_key": "-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n", + "client_email": "doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com", + "client_id": "12345678901234567890", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com", + "universe_domain": "googleapis.com" + } + \"\"\" + prod = doppler.integration.GcpSecretManager("prod", + name="prod", + gcp_key=gcp_key, + gcp_secret_prefix="doppler-") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpSecretManagerArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP Secret Manager Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + gcp_key = config.get("gcpKey") + if gcp_key is None: + gcp_key = \"\"\"{ + "type": "service_account", + "project_id": "your-gcp-project-id", + "private_key_id": "...", + "private_key": "-----BEGIN PRIVATE KEY-----\\n ... \\n-----END PRIVATE KEY-----\\n", + "client_email": "doppler-secret-manager@your-gcp-project-id.iam.gserviceaccount.com", + "client_id": "12345678901234567890", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/doppler-secret-manager%40your-gcp-project-id.iam.gserviceaccount.com", + "universe_domain": "googleapis.com" + } + \"\"\" + prod = doppler.integration.GcpSecretManager("prod", + name="prod", + gcp_key=gcp_key, + gcp_secret_prefix="doppler-") + ``` + + + :param str resource_name: The name of the resource. + :param GcpSecretManagerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpSecretManagerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpSecretManagerArgs.__new__(GcpSecretManagerArgs) + + if gcp_key is None and not opts.urn: + raise TypeError("Missing required property 'gcp_key'") + __props__.__dict__["gcp_key"] = None if gcp_key is None else pulumi.Output.secret(gcp_key) + if gcp_secret_prefix is None and not opts.urn: + raise TypeError("Missing required property 'gcp_secret_prefix'") + __props__.__dict__["gcp_secret_prefix"] = gcp_secret_prefix + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["gcpKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(GcpSecretManager, __self__).__init__( + 'doppler:integration/gcpSecretManager:GcpSecretManager', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + gcp_key: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpSecretManager': + """ + Get an existing GcpSecretManager resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_key: The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpSecretManagerState.__new__(_GcpSecretManagerState) + + __props__.__dict__["gcp_key"] = gcp_key + __props__.__dict__["gcp_secret_prefix"] = gcp_secret_prefix + __props__.__dict__["name"] = name + return GcpSecretManager(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="gcpKey") + def gcp_key(self) -> pulumi.Output[_builtins.str]: + """ + The IAM Service Account JSON key. See https://docs.doppler.com/docs/gcp-secret-manager for details. + """ + return pulumi.get(self, "gcp_key") + + @_builtins.property + @pulumi.getter(name="gcpSecretPrefix") + def gcp_secret_prefix(self) -> pulumi.Output[_builtins.str]: + """ + The prefix added to any secret created by this integration in GCP. See https://docs.doppler.com/docs/gcp-secret-manager for details. + """ + return pulumi.get(self, "gcp_secret_prefix") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_secret_manager_oidc.py b/sdk/python/pulumi_doppler/integration/gcp_secret_manager_oidc.py new file mode 100644 index 0000000..291774b --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_secret_manager_oidc.py @@ -0,0 +1,393 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpSecretManagerOidcArgs', 'GcpSecretManagerOidc'] + +@pulumi.input_type +class GcpSecretManagerOidcArgs: + def __init__(__self__, *, + gcp_project_id: pulumi.Input[_builtins.str], + gcp_workload_identity_provider: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a GcpSecretManagerOidc resource. + + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + """ + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + pulumi.set(__self__, "name", name) + if gcp_secret_prefix is not None: + pulumi.set(__self__, "gcp_secret_prefix", gcp_secret_prefix) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="gcpSecretPrefix") + def gcp_secret_prefix(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + """ + return pulumi.get(self, "gcp_secret_prefix") + + @gcp_secret_prefix.setter + def gcp_secret_prefix(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_secret_prefix", value) + + +@pulumi.input_type +class _GcpSecretManagerOidcState: + def __init__(__self__, *, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpSecretManagerOidc resources. + + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if federation_principal is not None: + pulumi.set(__self__, "federation_principal", federation_principal) + if gcp_project_id is not None: + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + if gcp_secret_prefix is not None: + pulumi.set(__self__, "gcp_secret_prefix", gcp_secret_prefix) + if gcp_workload_identity_provider is not None: + pulumi.set(__self__, "gcp_workload_identity_provider", gcp_workload_identity_provider) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @federation_principal.setter + def federation_principal(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "federation_principal", value) + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @gcp_project_id.setter + def gcp_project_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_project_id", value) + + @_builtins.property + @pulumi.getter(name="gcpSecretPrefix") + def gcp_secret_prefix(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + """ + return pulumi.get(self, "gcp_secret_prefix") + + @gcp_secret_prefix.setter + def gcp_secret_prefix(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_secret_prefix", value) + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @gcp_workload_identity_provider.setter + def gcp_workload_identity_provider(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "gcp_workload_identity_provider", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc") +class GcpSecretManagerOidc(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP Secret Manager Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + doppler_1 = google.IamWorkloadIdentityPool("doppler", workload_identity_pool_id=doppler-pool) + doppler_iam_workload_identity_pool_provider = google.IamWorkloadIdentityPoolProvider("doppler", + oidc=[{ + issuerUri: https://api.doppler.com, + }], + workload_identity_pool_id=doppler_1.workload_identity_pool_id, + workload_identity_pool_provider_id=doppler, + attribute_mapping={ + google.subject: assertion.sub, + }, + attribute_condition=assertion.workplace == '') + prod = doppler.integration.GcpSecretManagerOidc("prod", + name="Production", + gcp_workload_identity_provider=f"//iam.googleapis.com/{doppler_iam_workload_identity_pool_provider['name']}", + gcp_project_id="your-gcp-project-id", + gcp_secret_prefix="doppler-") + doppler_project_iam_member = google.ProjectIamMember("doppler", + condition=[{ + title: doppler-prefix-only, + expression: resource.name.startsWith("projects//secrets/doppler-"), + }], + project=your-gcp-project-id, + role=roles/secretmanager.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpSecretManagerOidcArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP Secret Manager Doppler integration using workload identity federation. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + + doppler_1 = google.IamWorkloadIdentityPool("doppler", workload_identity_pool_id=doppler-pool) + doppler_iam_workload_identity_pool_provider = google.IamWorkloadIdentityPoolProvider("doppler", + oidc=[{ + issuerUri: https://api.doppler.com, + }], + workload_identity_pool_id=doppler_1.workload_identity_pool_id, + workload_identity_pool_provider_id=doppler, + attribute_mapping={ + google.subject: assertion.sub, + }, + attribute_condition=assertion.workplace == '') + prod = doppler.integration.GcpSecretManagerOidc("prod", + name="Production", + gcp_workload_identity_provider=f"//iam.googleapis.com/{doppler_iam_workload_identity_pool_provider['name']}", + gcp_project_id="your-gcp-project-id", + gcp_secret_prefix="doppler-") + doppler_project_iam_member = google.ProjectIamMember("doppler", + condition=[{ + title: doppler-prefix-only, + expression: resource.name.startsWith("projects//secrets/doppler-"), + }], + project=your-gcp-project-id, + role=roles/secretmanager.admin, + member=prod.federation_principal) + ``` + + + :param str resource_name: The name of the resource. + :param GcpSecretManagerOidcArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpSecretManagerOidcArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpSecretManagerOidcArgs.__new__(GcpSecretManagerOidcArgs) + + if gcp_project_id is None and not opts.urn: + raise TypeError("Missing required property 'gcp_project_id'") + __props__.__dict__["gcp_project_id"] = gcp_project_id + __props__.__dict__["gcp_secret_prefix"] = gcp_secret_prefix + if gcp_workload_identity_provider is None and not opts.urn: + raise TypeError("Missing required property 'gcp_workload_identity_provider'") + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["federation_principal"] = None + super(GcpSecretManagerOidc, __self__).__init__( + 'doppler:integration/gcpSecretManagerOidc:GcpSecretManagerOidc', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + federation_principal: pulumi.Input[Optional[_builtins.str]] = None, + gcp_project_id: pulumi.Input[Optional[_builtins.str]] = None, + gcp_secret_prefix: pulumi.Input[Optional[_builtins.str]] = None, + gcp_workload_identity_provider: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpSecretManagerOidc': + """ + Get an existing GcpSecretManagerOidc resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] federation_principal: The IAM principal identifier to grant roles to in GCP for this integration + :param pulumi.Input[_builtins.str] gcp_project_id: The ID of the GCP project the integration operates on + :param pulumi.Input[_builtins.str] gcp_secret_prefix: The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + :param pulumi.Input[_builtins.str] gcp_workload_identity_provider: The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpSecretManagerOidcState.__new__(_GcpSecretManagerOidcState) + + __props__.__dict__["federation_principal"] = federation_principal + __props__.__dict__["gcp_project_id"] = gcp_project_id + __props__.__dict__["gcp_secret_prefix"] = gcp_secret_prefix + __props__.__dict__["gcp_workload_identity_provider"] = gcp_workload_identity_provider + __props__.__dict__["name"] = name + return GcpSecretManagerOidc(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="federationPrincipal") + def federation_principal(self) -> pulumi.Output[_builtins.str]: + """ + The IAM principal identifier to grant roles to in GCP for this integration + """ + return pulumi.get(self, "federation_principal") + + @_builtins.property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> pulumi.Output[_builtins.str]: + """ + The ID of the GCP project the integration operates on + """ + return pulumi.get(self, "gcp_project_id") + + @_builtins.property + @pulumi.getter(name="gcpSecretPrefix") + def gcp_secret_prefix(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The prefix added to any secret created by this integration in GCP. Cannot be changed after the integration is created. + """ + return pulumi.get(self, "gcp_secret_prefix") + + @_builtins.property + @pulumi.getter(name="gcpWorkloadIdentityProvider") + def gcp_workload_identity_provider(self) -> pulumi.Output[_builtins.str]: + """ + The full resource name of the workload identity pool provider Doppler federates with, e.g. `//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider`. Note that it uses the numeric project number, not the project ID. + """ + return pulumi.get(self, "gcp_workload_identity_provider") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/gcp_service_account_keys.py b/sdk/python/pulumi_doppler/integration/gcp_service_account_keys.py new file mode 100644 index 0000000..7daaf7c --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/gcp_service_account_keys.py @@ -0,0 +1,358 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpServiceAccountKeysArgs', 'GcpServiceAccountKeys'] + +@pulumi.input_type +class GcpServiceAccountKeysArgs: + def __init__(__self__, *, + external_id: pulumi.Input[_builtins.str], + impersonated_service_account: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpServiceAccountKeys resource. + + :param pulumi.Input[_builtins.str] external_id: The Doppler-generated external id (placed in the service account description field) + :param pulumi.Input[_builtins.str] impersonated_service_account: The service account email of the account to be impersonated + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "external_id", external_id) + pulumi.set(__self__, "impersonated_service_account", impersonated_service_account) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="externalId") + def external_id(self) -> pulumi.Input[_builtins.str]: + """ + The Doppler-generated external id (placed in the service account description field) + """ + return pulumi.get(self, "external_id") + + @external_id.setter + def external_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "external_id", value) + + @_builtins.property + @pulumi.getter(name="impersonatedServiceAccount") + def impersonated_service_account(self) -> pulumi.Input[_builtins.str]: + """ + The service account email of the account to be impersonated + """ + return pulumi.get(self, "impersonated_service_account") + + @impersonated_service_account.setter + def impersonated_service_account(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "impersonated_service_account", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpServiceAccountKeysState: + def __init__(__self__, *, + external_id: pulumi.Input[Optional[_builtins.str]] = None, + impersonated_service_account: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpServiceAccountKeys resources. + + :param pulumi.Input[_builtins.str] external_id: The Doppler-generated external id (placed in the service account description field) + :param pulumi.Input[_builtins.str] impersonated_service_account: The service account email of the account to be impersonated + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if external_id is not None: + pulumi.set(__self__, "external_id", external_id) + if impersonated_service_account is not None: + pulumi.set(__self__, "impersonated_service_account", impersonated_service_account) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="externalId") + def external_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Doppler-generated external id (placed in the service account description field) + """ + return pulumi.get(self, "external_id") + + @external_id.setter + def external_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "external_id", value) + + @_builtins.property + @pulumi.getter(name="impersonatedServiceAccount") + def impersonated_service_account(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The service account email of the account to be impersonated + """ + return pulumi.get(self, "impersonated_service_account") + + @impersonated_service_account.setter + def impersonated_service_account(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "impersonated_service_account", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys") +class GcpServiceAccountKeys(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + external_id: pulumi.Input[Optional[_builtins.str]] = None, + impersonated_service_account: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP Service Account Keys Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + import pulumi_std as std + + i_gcp_sak_extid = doppler.integration.ExternalId("i_gcp_sak_extid", integration_type="gcp_service_account_keys") + gcpsa_doppler_impersonate = google.ServiceAccount("gcpsa_doppler_impersonate", + account_id=xxxxxxxxxxx, + description=std.format(input=doppler_impersonate:%s, + args=[i_gcp_sak_extid.id]).result, + display_name=xxxxxxxxxx) + doppler_rotation_impersonate_policy = google.iam_policy(binding=[ + { + "role": "roles/iam.serviceAccountViewer", + "members": [ + gcpsa_doppler_impersonate["member"], + "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", + ], + }, + { + "role": "roles/iam.serviceAccountTokenCreator", + "members": ["serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com"], + }, + ]) + gcp_policy_impersonate = google.ServiceAccountIamPolicy("gcp_policy_impersonate", + service_account_id=gcpsa_doppler_impersonate.name, + policy_data=doppler_rotation_impersonate_policy.policy_data) + gcpsa_rotated = google.ServiceAccount("gcpsa_rotated", + account_id=xxxxxxxxxxxxxxxxxx, + display_name=xxxxxxxxxxxxxxxxxx) + doppler_rotated_user_policy = google.iam_policy(binding=[{ + "role": "roles/iam.serviceAccountKeyAdmin", + "members": [gcpsa_doppler_impersonate["member"]], + }]) + gcp_policy_rotated = google.ServiceAccountIamPolicy("gcp_policy_rotated", + service_account_id=gcpsa_rotated.name, + policy_data=doppler_rotated_user_policy.policy_data) + i_gcp_sak = doppler.integration.GcpServiceAccountKeys("i_gcp_sak", + name="TF GCP Service Account Keys", + impersonated_service_account=gcpsa_doppler_impersonate["email"], + external_id=i_gcp_sak_extid.id) + rs_gcpsak = doppler.rotatedsecret.GcpServiceAccountKeys("rs_gcpsak", + integration=i_gcp_sak.id, + project="backend", + config="dev", + name="GCP_SERVICE_ACCOUNT", + rotation_period_sec=2592000, + service_account=gcpsa_rotated["email"]) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] external_id: The Doppler-generated external id (placed in the service account description field) + :param pulumi.Input[_builtins.str] impersonated_service_account: The service account email of the account to be impersonated + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpServiceAccountKeysArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP Service Account Keys Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_google as google + import pulumi_std as std + + i_gcp_sak_extid = doppler.integration.ExternalId("i_gcp_sak_extid", integration_type="gcp_service_account_keys") + gcpsa_doppler_impersonate = google.ServiceAccount("gcpsa_doppler_impersonate", + account_id=xxxxxxxxxxx, + description=std.format(input=doppler_impersonate:%s, + args=[i_gcp_sak_extid.id]).result, + display_name=xxxxxxxxxx) + doppler_rotation_impersonate_policy = google.iam_policy(binding=[ + { + "role": "roles/iam.serviceAccountViewer", + "members": [ + gcpsa_doppler_impersonate["member"], + "serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com", + ], + }, + { + "role": "roles/iam.serviceAccountTokenCreator", + "members": ["serviceAccount:operator@doppler-integrations.iam.gserviceaccount.com"], + }, + ]) + gcp_policy_impersonate = google.ServiceAccountIamPolicy("gcp_policy_impersonate", + service_account_id=gcpsa_doppler_impersonate.name, + policy_data=doppler_rotation_impersonate_policy.policy_data) + gcpsa_rotated = google.ServiceAccount("gcpsa_rotated", + account_id=xxxxxxxxxxxxxxxxxx, + display_name=xxxxxxxxxxxxxxxxxx) + doppler_rotated_user_policy = google.iam_policy(binding=[{ + "role": "roles/iam.serviceAccountKeyAdmin", + "members": [gcpsa_doppler_impersonate["member"]], + }]) + gcp_policy_rotated = google.ServiceAccountIamPolicy("gcp_policy_rotated", + service_account_id=gcpsa_rotated.name, + policy_data=doppler_rotated_user_policy.policy_data) + i_gcp_sak = doppler.integration.GcpServiceAccountKeys("i_gcp_sak", + name="TF GCP Service Account Keys", + impersonated_service_account=gcpsa_doppler_impersonate["email"], + external_id=i_gcp_sak_extid.id) + rs_gcpsak = doppler.rotatedsecret.GcpServiceAccountKeys("rs_gcpsak", + integration=i_gcp_sak.id, + project="backend", + config="dev", + name="GCP_SERVICE_ACCOUNT", + rotation_period_sec=2592000, + service_account=gcpsa_rotated["email"]) + ``` + + + :param str resource_name: The name of the resource. + :param GcpServiceAccountKeysArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpServiceAccountKeysArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + external_id: pulumi.Input[Optional[_builtins.str]] = None, + impersonated_service_account: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpServiceAccountKeysArgs.__new__(GcpServiceAccountKeysArgs) + + if external_id is None and not opts.urn: + raise TypeError("Missing required property 'external_id'") + __props__.__dict__["external_id"] = external_id + if impersonated_service_account is None and not opts.urn: + raise TypeError("Missing required property 'impersonated_service_account'") + __props__.__dict__["impersonated_service_account"] = impersonated_service_account + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + super(GcpServiceAccountKeys, __self__).__init__( + 'doppler:integration/gcpServiceAccountKeys:GcpServiceAccountKeys', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + external_id: pulumi.Input[Optional[_builtins.str]] = None, + impersonated_service_account: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpServiceAccountKeys': + """ + Get an existing GcpServiceAccountKeys resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] external_id: The Doppler-generated external id (placed in the service account description field) + :param pulumi.Input[_builtins.str] impersonated_service_account: The service account email of the account to be impersonated + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpServiceAccountKeysState.__new__(_GcpServiceAccountKeysState) + + __props__.__dict__["external_id"] = external_id + __props__.__dict__["impersonated_service_account"] = impersonated_service_account + __props__.__dict__["name"] = name + return GcpServiceAccountKeys(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="externalId") + def external_id(self) -> pulumi.Output[_builtins.str]: + """ + The Doppler-generated external id (placed in the service account description field) + """ + return pulumi.get(self, "external_id") + + @_builtins.property + @pulumi.getter(name="impersonatedServiceAccount") + def impersonated_service_account(self) -> pulumi.Output[_builtins.str]: + """ + The service account email of the account to be impersonated + """ + return pulumi.get(self, "impersonated_service_account") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/member_group.py b/sdk/python/pulumi_doppler/integration/member_group.py new file mode 100644 index 0000000..461a6d9 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/member_group.py @@ -0,0 +1,276 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['MemberGroupArgs', 'MemberGroup'] + +@pulumi.input_type +class MemberGroupArgs: + def __init__(__self__, *, + group_slug: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + role: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a MemberGroup resource. + + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + pulumi.set(__self__, "group_slug", group_slug) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "role", role) + + @_builtins.property + @pulumi.getter(name="groupSlug") + def group_slug(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler group + """ + return pulumi.get(self, "group_slug") + + @group_slug.setter + def group_slug(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "group_slug", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[_builtins.str]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "role", value) + + +@pulumi.input_type +class _MemberGroupState: + def __init__(__self__, *, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering MemberGroup resources. + + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + if group_slug is not None: + pulumi.set(__self__, "group_slug", group_slug) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if role is not None: + pulumi.set(__self__, "role", role) + + @_builtins.property + @pulumi.getter(name="groupSlug") + def group_slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler group + """ + return pulumi.get(self, "group_slug") + + @group_slug.setter + def group_slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "group_slug", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "role", value) + + +@pulumi.type_token("doppler:integration/memberGroup:MemberGroup") +class MemberGroup(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler integration group member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + aws_engineering = doppler.integration.MemberGroup("aws_engineering", + integration=prod["slug"], + group_slug=engineering["slug"], + role="consumer") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MemberGroupArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler integration group member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + aws_engineering = doppler.integration.MemberGroup("aws_engineering", + integration=prod["slug"], + group_slug=engineering["slug"], + role="consumer") + ``` + + + :param str resource_name: The name of the resource. + :param MemberGroupArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MemberGroupArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = MemberGroupArgs.__new__(MemberGroupArgs) + + if group_slug is None and not opts.urn: + raise TypeError("Missing required property 'group_slug'") + __props__.__dict__["group_slug"] = group_slug + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if role is None and not opts.urn: + raise TypeError("Missing required property 'role'") + __props__.__dict__["role"] = role + super(MemberGroup, __self__).__init__( + 'doppler:integration/memberGroup:MemberGroup', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None) -> 'MemberGroup': + """ + Get an existing MemberGroup resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _MemberGroupState.__new__(_MemberGroupState) + + __props__.__dict__["group_slug"] = group_slug + __props__.__dict__["integration"] = integration + __props__.__dict__["role"] = role + return MemberGroup(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="groupSlug") + def group_slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler group + """ + return pulumi.get(self, "group_slug") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Output[_builtins.str]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + diff --git a/sdk/python/pulumi_doppler/integration/member_service_account.py b/sdk/python/pulumi_doppler/integration/member_service_account.py new file mode 100644 index 0000000..122e0c6 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/member_service_account.py @@ -0,0 +1,276 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['MemberServiceAccountArgs', 'MemberServiceAccount'] + +@pulumi.input_type +class MemberServiceAccountArgs: + def __init__(__self__, *, + integration: pulumi.Input[_builtins.str], + role: pulumi.Input[_builtins.str], + service_account_slug: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a MemberServiceAccount resource. + + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account + """ + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "role", role) + pulumi.set(__self__, "service_account_slug", service_account_slug) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[_builtins.str]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "role", value) + + @_builtins.property + @pulumi.getter(name="serviceAccountSlug") + def service_account_slug(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler service account + """ + return pulumi.get(self, "service_account_slug") + + @service_account_slug.setter + def service_account_slug(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "service_account_slug", value) + + +@pulumi.input_type +class _MemberServiceAccountState: + def __init__(__self__, *, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering MemberServiceAccount resources. + + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account + """ + if integration is not None: + pulumi.set(__self__, "integration", integration) + if role is not None: + pulumi.set(__self__, "role", role) + if service_account_slug is not None: + pulumi.set(__self__, "service_account_slug", service_account_slug) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "role", value) + + @_builtins.property + @pulumi.getter(name="serviceAccountSlug") + def service_account_slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler service account + """ + return pulumi.get(self, "service_account_slug") + + @service_account_slug.setter + def service_account_slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "service_account_slug", value) + + +@pulumi.type_token("doppler:integration/memberServiceAccount:MemberServiceAccount") +class MemberServiceAccount(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler integration service account member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + aws_ci = doppler.integration.MemberServiceAccount("aws_ci", + integration=prod["slug"], + service_account_slug=ci["slug"], + role="consumer") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MemberServiceAccountArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler integration service account member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + aws_ci = doppler.integration.MemberServiceAccount("aws_ci", + integration=prod["slug"], + service_account_slug=ci["slug"], + role="consumer") + ``` + + + :param str resource_name: The name of the resource. + :param MemberServiceAccountArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MemberServiceAccountArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = MemberServiceAccountArgs.__new__(MemberServiceAccountArgs) + + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if role is None and not opts.urn: + raise TypeError("Missing required property 'role'") + __props__.__dict__["role"] = role + if service_account_slug is None and not opts.urn: + raise TypeError("Missing required property 'service_account_slug'") + __props__.__dict__["service_account_slug"] = service_account_slug + super(MemberServiceAccount, __self__).__init__( + 'doppler:integration/memberServiceAccount:MemberServiceAccount', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'MemberServiceAccount': + """ + Get an existing MemberServiceAccount resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _MemberServiceAccountState.__new__(_MemberServiceAccountState) + + __props__.__dict__["integration"] = integration + __props__.__dict__["role"] = role + __props__.__dict__["service_account_slug"] = service_account_slug + return MemberServiceAccount(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Output[_builtins.str]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @_builtins.property + @pulumi.getter(name="serviceAccountSlug") + def service_account_slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler service account + """ + return pulumi.get(self, "service_account_slug") + diff --git a/sdk/python/pulumi_doppler/integration/member_user.py b/sdk/python/pulumi_doppler/integration/member_user.py new file mode 100644 index 0000000..b641f41 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/member_user.py @@ -0,0 +1,278 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['MemberUserArgs', 'MemberUser'] + +@pulumi.input_type +class MemberUserArgs: + def __init__(__self__, *, + integration: pulumi.Input[_builtins.str], + role: pulumi.Input[_builtins.str], + user_slug: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a MemberUser resource. + + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "role", role) + pulumi.set(__self__, "user_slug", user_slug) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[_builtins.str]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "role", value) + + @_builtins.property + @pulumi.getter(name="userSlug") + def user_slug(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler workplace user + """ + return pulumi.get(self, "user_slug") + + @user_slug.setter + def user_slug(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "user_slug", value) + + +@pulumi.input_type +class _MemberUserState: + def __init__(__self__, *, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering MemberUser resources. + + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + if integration is not None: + pulumi.set(__self__, "integration", integration) + if role is not None: + pulumi.set(__self__, "role", role) + if user_slug is not None: + pulumi.set(__self__, "user_slug", user_slug) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "role", value) + + @_builtins.property + @pulumi.getter(name="userSlug") + def user_slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler workplace user + """ + return pulumi.get(self, "user_slug") + + @user_slug.setter + def user_slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "user_slug", value) + + +@pulumi.type_token("doppler:integration/memberUser:MemberUser") +class MemberUser(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler integration user member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + brian = doppler.get_user(email="brian@doppler.com") + aws_brian = doppler.integration.MemberUser("aws_brian", + integration=prod["slug"], + user_slug=brian.slug, + role="consumer") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MemberUserArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler integration user member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + brian = doppler.get_user(email="brian@doppler.com") + aws_brian = doppler.integration.MemberUser("aws_brian", + integration=prod["slug"], + user_slug=brian.slug, + role="consumer") + ``` + + + :param str resource_name: The name of the resource. + :param MemberUserArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MemberUserArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = MemberUserArgs.__new__(MemberUserArgs) + + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if role is None and not opts.urn: + raise TypeError("Missing required property 'role'") + __props__.__dict__["role"] = role + if user_slug is None and not opts.urn: + raise TypeError("Missing required property 'user_slug'") + __props__.__dict__["user_slug"] = user_slug + super(MemberUser, __self__).__init__( + 'doppler:integration/memberUser:MemberUser', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'MemberUser': + """ + Get an existing MemberUser resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] integration: The slug of the Doppler integration where the access is applied + :param pulumi.Input[_builtins.str] role: The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _MemberUserState.__new__(_MemberUserState) + + __props__.__dict__["integration"] = integration + __props__.__dict__["role"] = role + __props__.__dict__["user_slug"] = user_slug + return MemberUser(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler integration where the access is applied + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Output[_builtins.str]: + """ + The integration role identifier for the access. Must use either one of the built-in integration role slugs (`admin`, `consumer`, `viewer`, or `no_access`), or the slug for a custom integration role. + """ + return pulumi.get(self, "role") + + @_builtins.property + @pulumi.getter(name="userSlug") + def user_slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler workplace user + """ + return pulumi.get(self, "user_slug") + diff --git a/sdk/python/pulumi_doppler/integration/mongodb_atlas.py b/sdk/python/pulumi_doppler/integration/mongodb_atlas.py new file mode 100644 index 0000000..a5256e6 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/mongodb_atlas.py @@ -0,0 +1,328 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['MongodbAtlasArgs', 'MongodbAtlas'] + +@pulumi.input_type +class MongodbAtlasArgs: + def __init__(__self__, *, + name: pulumi.Input[_builtins.str], + private_key: pulumi.Input[_builtins.str], + public_key: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a MongodbAtlas resource. + + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] private_key: The Private Key + :param pulumi.Input[_builtins.str] public_key: The Public Key + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "private_key", private_key) + pulumi.set(__self__, "public_key", public_key) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="privateKey") + def private_key(self) -> pulumi.Input[_builtins.str]: + """ + The Private Key + """ + return pulumi.get(self, "private_key") + + @private_key.setter + def private_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "private_key", value) + + @_builtins.property + @pulumi.getter(name="publicKey") + def public_key(self) -> pulumi.Input[_builtins.str]: + """ + The Public Key + """ + return pulumi.get(self, "public_key") + + @public_key.setter + def public_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "public_key", value) + + +@pulumi.input_type +class _MongodbAtlasState: + def __init__(__self__, *, + name: pulumi.Input[Optional[_builtins.str]] = None, + private_key: pulumi.Input[Optional[_builtins.str]] = None, + public_key: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering MongodbAtlas resources. + + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] private_key: The Private Key + :param pulumi.Input[_builtins.str] public_key: The Public Key + """ + if name is not None: + pulumi.set(__self__, "name", name) + if private_key is not None: + pulumi.set(__self__, "private_key", private_key) + if public_key is not None: + pulumi.set(__self__, "public_key", public_key) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="privateKey") + def private_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Private Key + """ + return pulumi.get(self, "private_key") + + @private_key.setter + def private_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "private_key", value) + + @_builtins.property + @pulumi.getter(name="publicKey") + def public_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Public Key + """ + return pulumi.get(self, "public_key") + + @public_key.setter + def public_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "public_key", value) + + +@pulumi.type_token("doppler:integration/mongodbAtlas:MongodbAtlas") +class MongodbAtlas(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + private_key: pulumi.Input[Optional[_builtins.str]] = None, + public_key: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a MongoDB Atlas Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_mongodb_atlas = doppler.integration.MongodbAtlas("i_mongodb_atlas", + name="TF MongoDB Atlas", + public_key="xxxxxxxx", + private_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_mongodb_atlas = doppler.rotatedsecret.MongodbAtlas("rs_mongodb_atlas", + credentials=[ + { + "username": "xxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_mongodb_atlas.id, + project="backend", + config="dev", + name="MONGODB", + rotation_period_sec=2592000, + project_id="xxxxxxxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] private_key: The Private Key + :param pulumi.Input[_builtins.str] public_key: The Public Key + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MongodbAtlasArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a MongoDB Atlas Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + config = pulumi.Config() + db_password1 = config.get("dbPassword1") + if db_password1 is None: + db_password1 = "" + db_password2 = config.get("dbPassword2") + if db_password2 is None: + db_password2 = "" + i_mongodb_atlas = doppler.integration.MongodbAtlas("i_mongodb_atlas", + name="TF MongoDB Atlas", + public_key="xxxxxxxx", + private_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_mongodb_atlas = doppler.rotatedsecret.MongodbAtlas("rs_mongodb_atlas", + credentials=[ + { + "username": "xxxxxxxxx", + "password": db_password1, + }, + { + "username": "xxxxxxxxx", + "password": db_password2, + }, + ], + integration=i_mongodb_atlas.id, + project="backend", + config="dev", + name="MONGODB", + rotation_period_sec=2592000, + project_id="xxxxxxxxxxxxxxxxx", + opts = pulumi.ResourceOptions(ignore_changes=["credentials"])) + ``` + + + :param str resource_name: The name of the resource. + :param MongodbAtlasArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MongodbAtlasArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + private_key: pulumi.Input[Optional[_builtins.str]] = None, + public_key: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = MongodbAtlasArgs.__new__(MongodbAtlasArgs) + + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if private_key is None and not opts.urn: + raise TypeError("Missing required property 'private_key'") + __props__.__dict__["private_key"] = None if private_key is None else pulumi.Output.secret(private_key) + if public_key is None and not opts.urn: + raise TypeError("Missing required property 'public_key'") + __props__.__dict__["public_key"] = public_key + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["privateKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(MongodbAtlas, __self__).__init__( + 'doppler:integration/mongodbAtlas:MongodbAtlas', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + private_key: pulumi.Input[Optional[_builtins.str]] = None, + public_key: pulumi.Input[Optional[_builtins.str]] = None) -> 'MongodbAtlas': + """ + Get an existing MongodbAtlas resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] name: The name of the integration + :param pulumi.Input[_builtins.str] private_key: The Private Key + :param pulumi.Input[_builtins.str] public_key: The Public Key + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _MongodbAtlasState.__new__(_MongodbAtlasState) + + __props__.__dict__["name"] = name + __props__.__dict__["private_key"] = private_key + __props__.__dict__["public_key"] = public_key + return MongodbAtlas(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="privateKey") + def private_key(self) -> pulumi.Output[_builtins.str]: + """ + The Private Key + """ + return pulumi.get(self, "private_key") + + @_builtins.property + @pulumi.getter(name="publicKey") + def public_key(self) -> pulumi.Output[_builtins.str]: + """ + The Public Key + """ + return pulumi.get(self, "public_key") + diff --git a/sdk/python/pulumi_doppler/integration/openai.py b/sdk/python/pulumi_doppler/integration/openai.py new file mode 100644 index 0000000..22aad31 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/openai.py @@ -0,0 +1,242 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['OpenaiArgs', 'Openai'] + +@pulumi.input_type +class OpenaiArgs: + def __init__(__self__, *, + admin_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a Openai resource. + + :param pulumi.Input[_builtins.str] admin_key: The OpenAI admin key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "admin_key", admin_key) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="adminKey") + def admin_key(self) -> pulumi.Input[_builtins.str]: + """ + The OpenAI admin key + """ + return pulumi.get(self, "admin_key") + + @admin_key.setter + def admin_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "admin_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _OpenaiState: + def __init__(__self__, *, + admin_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Openai resources. + + :param pulumi.Input[_builtins.str] admin_key: The OpenAI admin key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if admin_key is not None: + pulumi.set(__self__, "admin_key", admin_key) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="adminKey") + def admin_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The OpenAI admin key + """ + return pulumi.get(self, "admin_key") + + @admin_key.setter + def admin_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "admin_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/openai:Openai") +class Openai(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + admin_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an OpenAI Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_openai = doppler.integration.Openai("i_openai", + name="TF OpenAI", + admin_key="sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_openai = doppler.rotatedsecret.Openai("rs_openai", + integration=i_openai.id, + project="backend", + config="dev", + name="OPENAI", + rotation_period_sec=2592000, + project_id="proj_xxxxxxxxxxxxxxxxxxxxxxxx") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] admin_key: The OpenAI admin key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: OpenaiArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an OpenAI Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_openai = doppler.integration.Openai("i_openai", + name="TF OpenAI", + admin_key="sk-admin-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_openai = doppler.rotatedsecret.Openai("rs_openai", + integration=i_openai.id, + project="backend", + config="dev", + name="OPENAI", + rotation_period_sec=2592000, + project_id="proj_xxxxxxxxxxxxxxxxxxxxxxxx") + ``` + + + :param str resource_name: The name of the resource. + :param OpenaiArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(OpenaiArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + admin_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = OpenaiArgs.__new__(OpenaiArgs) + + if admin_key is None and not opts.urn: + raise TypeError("Missing required property 'admin_key'") + __props__.__dict__["admin_key"] = None if admin_key is None else pulumi.Output.secret(admin_key) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["adminKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(Openai, __self__).__init__( + 'doppler:integration/openai:Openai', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + admin_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'Openai': + """ + Get an existing Openai resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] admin_key: The OpenAI admin key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _OpenaiState.__new__(_OpenaiState) + + __props__.__dict__["admin_key"] = admin_key + __props__.__dict__["name"] = name + return Openai(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="adminKey") + def admin_key(self) -> pulumi.Output[_builtins.str]: + """ + The OpenAI admin key + """ + return pulumi.get(self, "admin_key") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/integration/sendgrid.py b/sdk/python/pulumi_doppler/integration/sendgrid.py new file mode 100644 index 0000000..76c9fe6 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/sendgrid.py @@ -0,0 +1,248 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['SendgridArgs', 'Sendgrid'] + +@pulumi.input_type +class SendgridArgs: + def __init__(__self__, *, + api_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a Sendgrid resource. + + :param pulumi.Input[_builtins.str] api_key: The API Key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "api_key", api_key) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="apiKey") + def api_key(self) -> pulumi.Input[_builtins.str]: + """ + The API Key + """ + return pulumi.get(self, "api_key") + + @api_key.setter + def api_key(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "api_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _SendgridState: + def __init__(__self__, *, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Sendgrid resources. + + :param pulumi.Input[_builtins.str] api_key: The API Key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if api_key is not None: + pulumi.set(__self__, "api_key", api_key) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="apiKey") + def api_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The API Key + """ + return pulumi.get(self, "api_key") + + @api_key.setter + def api_key(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "api_key", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/sendgrid:Sendgrid") +class Sendgrid(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a SendGrid Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_sendgrid = doppler.integration.Sendgrid("i_sendgrid", + name="TF SendGrid", + api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_sendgrid = doppler.rotatedsecret.Sendgrid("rs_sendgrid", + integration=i_sendgrid.id, + project="backend", + config="dev", + name="SENDGRID", + rotation_period_sec=2592000, + scopes=[ + "alerts.create", + "alerts.read", + ]) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] api_key: The API Key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SendgridArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a SendGrid Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_sendgrid = doppler.integration.Sendgrid("i_sendgrid", + name="TF SendGrid", + api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_sendgrid = doppler.rotatedsecret.Sendgrid("rs_sendgrid", + integration=i_sendgrid.id, + project="backend", + config="dev", + name="SENDGRID", + rotation_period_sec=2592000, + scopes=[ + "alerts.create", + "alerts.read", + ]) + ``` + + + :param str resource_name: The name of the resource. + :param SendgridArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SendgridArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = SendgridArgs.__new__(SendgridArgs) + + if api_key is None and not opts.urn: + raise TypeError("Missing required property 'api_key'") + __props__.__dict__["api_key"] = None if api_key is None else pulumi.Output.secret(api_key) + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["apiKey"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(Sendgrid, __self__).__init__( + 'doppler:integration/sendgrid:Sendgrid', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'Sendgrid': + """ + Get an existing Sendgrid resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] api_key: The API Key + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _SendgridState.__new__(_SendgridState) + + __props__.__dict__["api_key"] = api_key + __props__.__dict__["name"] = name + return Sendgrid(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="apiKey") + def api_key(self) -> pulumi.Output[_builtins.str]: + """ + The API Key + """ + return pulumi.get(self, "api_key") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumiverse_doppler/integration/terraform_cloud.py b/sdk/python/pulumi_doppler/integration/terraform_cloud.py similarity index 55% rename from sdk/python/pulumiverse_doppler/integration/terraform_cloud.py rename to sdk/python/pulumi_doppler/integration/terraform_cloud.py index f334306..00083a9 100644 --- a/sdk/python/pulumiverse_doppler/integration/terraform_cloud.py +++ b/sdk/python/pulumi_doppler/integration/terraform_cloud.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['TerraformCloudArgs', 'TerraformCloud'] @@ -14,87 +19,123 @@ @pulumi.input_type class TerraformCloudArgs: def __init__(__self__, *, - api_key: pulumi.Input[str], - name: pulumi.Input[str]): + api_key: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): """ The set of arguments for constructing a TerraformCloud resource. - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] api_key: A Terraform Cloud API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ pulumi.set(__self__, "api_key", api_key) pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> pulumi.Input[str]: + def api_key(self) -> pulumi.Input[_builtins.str]: + """ + A Terraform Cloud API key. + """ return pulumi.get(self, "api_key") @api_key.setter - def api_key(self, value: pulumi.Input[str]): + def api_key(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "api_key", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) @pulumi.input_type class _TerraformCloudState: def __init__(__self__, *, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None): + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering TerraformCloud resources. - :param pulumi.Input[str] name: The name of the integration + + :param pulumi.Input[_builtins.str] api_key: A Terraform Cloud API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ if api_key is not None: pulumi.set(__self__, "api_key", api_key) if name is not None: pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> Optional[pulumi.Input[str]]: + def api_key(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A Terraform Cloud API key. + """ return pulumi.get(self, "api_key") @api_key.setter - def api_key(self, value: Optional[pulumi.Input[str]]): + def api_key(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "api_key", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the integration """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) +@pulumi.type_token("doppler:integration/terraformCloud:TerraformCloud") class TerraformCloud(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ + Manage a Terraform Cloud Doppler integration. + ## Example Usage + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_tfe as tfe + + prod = tfe.workspace(name="my-workspace-name", + organization="my-org-name") + prod_terraform_cloud = doppler.integration.TerraformCloud("prod", + name="Production", + api_key="my_api_key") + backend_prod = doppler.secretssync.TerraformCloud("backend_prod", + integration=prod_terraform_cloud.id, + project="backend", + config="prd", + sync_target="workspace", + workspace_id=prod["id"], + variable_sync_type="terraform", + name_transform="lowercase", + delete_behavior="leave_in_target") + ``` + + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] api_key: A Terraform Cloud API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ ... @overload @@ -103,8 +144,32 @@ def __init__(__self__, args: TerraformCloudArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage a Terraform Cloud Doppler integration. + ## Example Usage + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_tfe as tfe + + prod = tfe.workspace(name="my-workspace-name", + organization="my-org-name") + prod_terraform_cloud = doppler.integration.TerraformCloud("prod", + name="Production", + api_key="my_api_key") + backend_prod = doppler.secretssync.TerraformCloud("backend_prod", + integration=prod_terraform_cloud.id, + project="backend", + config="prd", + sync_target="workspace", + workspace_id=prod["id"], + variable_sync_type="terraform", + name_transform="lowercase", + delete_behavior="leave_in_target") + ``` + + :param str resource_name: The name of the resource. :param TerraformCloudArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -120,8 +185,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -149,8 +214,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None) -> 'TerraformCloud': + api_key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'TerraformCloud': """ Get an existing TerraformCloud resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -158,7 +223,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the integration + :param pulumi.Input[_builtins.str] api_key: A Terraform Cloud API key. + :param pulumi.Input[_builtins.str] name: The name of the integration """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -168,14 +234,17 @@ def get(resource_name: str, __props__.__dict__["name"] = name return TerraformCloud(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> pulumi.Output[str]: + def api_key(self) -> pulumi.Output[_builtins.str]: + """ + A Terraform Cloud API key. + """ return pulumi.get(self, "api_key") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the integration """ diff --git a/sdk/python/pulumi_doppler/integration/twilio.py b/sdk/python/pulumi_doppler/integration/twilio.py new file mode 100644 index 0000000..db5fce0 --- /dev/null +++ b/sdk/python/pulumi_doppler/integration/twilio.py @@ -0,0 +1,340 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['TwilioArgs', 'Twilio'] + +@pulumi.input_type +class TwilioArgs: + def __init__(__self__, *, + account_sid: pulumi.Input[_builtins.str], + key_secret: pulumi.Input[_builtins.str], + key_sid: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a Twilio resource. + + :param pulumi.Input[_builtins.str] account_sid: The Account SID + :param pulumi.Input[_builtins.str] key_secret: The Key Secret + :param pulumi.Input[_builtins.str] key_sid: The Key SID (cannot equal accountSID) + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + pulumi.set(__self__, "account_sid", account_sid) + pulumi.set(__self__, "key_secret", key_secret) + pulumi.set(__self__, "key_sid", key_sid) + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="accountSid") + def account_sid(self) -> pulumi.Input[_builtins.str]: + """ + The Account SID + """ + return pulumi.get(self, "account_sid") + + @account_sid.setter + def account_sid(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "account_sid", value) + + @_builtins.property + @pulumi.getter(name="keySecret") + def key_secret(self) -> pulumi.Input[_builtins.str]: + """ + The Key Secret + """ + return pulumi.get(self, "key_secret") + + @key_secret.setter + def key_secret(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "key_secret", value) + + @_builtins.property + @pulumi.getter(name="keySid") + def key_sid(self) -> pulumi.Input[_builtins.str]: + """ + The Key SID (cannot equal accountSID) + """ + return pulumi.get(self, "key_sid") + + @key_sid.setter + def key_sid(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "key_sid", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _TwilioState: + def __init__(__self__, *, + account_sid: pulumi.Input[Optional[_builtins.str]] = None, + key_secret: pulumi.Input[Optional[_builtins.str]] = None, + key_sid: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Twilio resources. + + :param pulumi.Input[_builtins.str] account_sid: The Account SID + :param pulumi.Input[_builtins.str] key_secret: The Key Secret + :param pulumi.Input[_builtins.str] key_sid: The Key SID (cannot equal accountSID) + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + if account_sid is not None: + pulumi.set(__self__, "account_sid", account_sid) + if key_secret is not None: + pulumi.set(__self__, "key_secret", key_secret) + if key_sid is not None: + pulumi.set(__self__, "key_sid", key_sid) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter(name="accountSid") + def account_sid(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Account SID + """ + return pulumi.get(self, "account_sid") + + @account_sid.setter + def account_sid(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "account_sid", value) + + @_builtins.property + @pulumi.getter(name="keySecret") + def key_secret(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Key Secret + """ + return pulumi.get(self, "key_secret") + + @key_secret.setter + def key_secret(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "key_secret", value) + + @_builtins.property + @pulumi.getter(name="keySid") + def key_sid(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Key SID (cannot equal accountSID) + """ + return pulumi.get(self, "key_sid") + + @key_sid.setter + def key_sid(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "key_sid", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.type_token("doppler:integration/twilio:Twilio") +class Twilio(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + account_sid: pulumi.Input[Optional[_builtins.str]] = None, + key_secret: pulumi.Input[Optional[_builtins.str]] = None, + key_sid: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Twilio Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_twilio = doppler.integration.Twilio("i_twilio", + name="TF Twilio", + account_sid="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + key_sid="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + key_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_twilio = doppler.rotatedsecret.Twilio("rs_twilio", + integration=i_twilio.id, + project="backend", + config="dev", + name="TWILIO", + rotation_period_sec=2592000) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] account_sid: The Account SID + :param pulumi.Input[_builtins.str] key_secret: The Key Secret + :param pulumi.Input[_builtins.str] key_sid: The Key SID (cannot equal accountSID) + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TwilioArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Twilio Doppler integration. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + i_twilio = doppler.integration.Twilio("i_twilio", + name="TF Twilio", + account_sid="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + key_sid="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + key_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") + rs_twilio = doppler.rotatedsecret.Twilio("rs_twilio", + integration=i_twilio.id, + project="backend", + config="dev", + name="TWILIO", + rotation_period_sec=2592000) + ``` + + + :param str resource_name: The name of the resource. + :param TwilioArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TwilioArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + account_sid: pulumi.Input[Optional[_builtins.str]] = None, + key_secret: pulumi.Input[Optional[_builtins.str]] = None, + key_sid: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = TwilioArgs.__new__(TwilioArgs) + + if account_sid is None and not opts.urn: + raise TypeError("Missing required property 'account_sid'") + __props__.__dict__["account_sid"] = account_sid + if key_secret is None and not opts.urn: + raise TypeError("Missing required property 'key_secret'") + __props__.__dict__["key_secret"] = None if key_secret is None else pulumi.Output.secret(key_secret) + if key_sid is None and not opts.urn: + raise TypeError("Missing required property 'key_sid'") + __props__.__dict__["key_sid"] = key_sid + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["keySecret"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(Twilio, __self__).__init__( + 'doppler:integration/twilio:Twilio', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + account_sid: pulumi.Input[Optional[_builtins.str]] = None, + key_secret: pulumi.Input[Optional[_builtins.str]] = None, + key_sid: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'Twilio': + """ + Get an existing Twilio resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] account_sid: The Account SID + :param pulumi.Input[_builtins.str] key_secret: The Key Secret + :param pulumi.Input[_builtins.str] key_sid: The Key SID (cannot equal accountSID) + :param pulumi.Input[_builtins.str] name: The name of the integration + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _TwilioState.__new__(_TwilioState) + + __props__.__dict__["account_sid"] = account_sid + __props__.__dict__["key_secret"] = key_secret + __props__.__dict__["key_sid"] = key_sid + __props__.__dict__["name"] = name + return Twilio(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="accountSid") + def account_sid(self) -> pulumi.Output[_builtins.str]: + """ + The Account SID + """ + return pulumi.get(self, "account_sid") + + @_builtins.property + @pulumi.getter(name="keySecret") + def key_secret(self) -> pulumi.Output[_builtins.str]: + """ + The Key Secret + """ + return pulumi.get(self, "key_secret") + + @_builtins.property + @pulumi.getter(name="keySid") + def key_sid(self) -> pulumi.Output[_builtins.str]: + """ + The Key SID (cannot equal accountSID) + """ + return pulumi.get(self, "key_sid") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the integration + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_doppler/outputs.py b/sdk/python/pulumi_doppler/outputs.py new file mode 100644 index 0000000..b4de117 --- /dev/null +++ b/sdk/python/pulumi_doppler/outputs.py @@ -0,0 +1,452 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities +from . import outputs + +__all__ = [ + 'ChangeRequestPolicyRules', + 'ChangeRequestPolicyRulesRequiredReviewer', + 'ChangeRequestPolicyTargets', + 'ChangeRequestPolicyTargetsProject', + 'ServiceAccountIdentityConfigOidc', + 'ServiceAccountIdentityConfigOidcClaim', + 'WebhookAuthentication', + 'GetEnvironmentsEnvironmentResult', +] + +@pulumi.output_type +class ChangeRequestPolicyRules(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "autoAssignReviewers": + suggest = "auto_assign_reviewers" + elif key == "disallowSelfReview": + suggest = "disallow_self_review" + elif key == "requiredReviewers": + suggest = "required_reviewers" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ChangeRequestPolicyRules. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ChangeRequestPolicyRules.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ChangeRequestPolicyRules.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + auto_assign_reviewers: Optional[_builtins.str] = None, + disallow_self_review: Optional[_builtins.bool] = None, + required_reviewers: Optional[Sequence['outputs.ChangeRequestPolicyRulesRequiredReviewer']] = None): + """ + :param _builtins.str auto_assign_reviewers: If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + :param _builtins.bool disallow_self_review: If true, approvals from the author of a change request will be excluded when evaluating this policy + :param Sequence['ChangeRequestPolicyRulesRequiredReviewerArgs'] required_reviewers: Enforces that a specific number of users approve a change request before it can be applied + """ + if auto_assign_reviewers is not None: + pulumi.set(__self__, "auto_assign_reviewers", auto_assign_reviewers) + if disallow_self_review is not None: + pulumi.set(__self__, "disallow_self_review", disallow_self_review) + if required_reviewers is not None: + pulumi.set(__self__, "required_reviewers", required_reviewers) + + @_builtins.property + @pulumi.getter(name="autoAssignReviewers") + def auto_assign_reviewers(self) -> Optional[_builtins.str]: + """ + If set, the strategy used to automatically assign reviewers to CRs targeted by this policy. Valid values: all, matchCount, never (default) + """ + return pulumi.get(self, "auto_assign_reviewers") + + @_builtins.property + @pulumi.getter(name="disallowSelfReview") + def disallow_self_review(self) -> Optional[_builtins.bool]: + """ + If true, approvals from the author of a change request will be excluded when evaluating this policy + """ + return pulumi.get(self, "disallow_self_review") + + @_builtins.property + @pulumi.getter(name="requiredReviewers") + def required_reviewers(self) -> Optional[Sequence['outputs.ChangeRequestPolicyRulesRequiredReviewer']]: + """ + Enforces that a specific number of users approve a change request before it can be applied + """ + return pulumi.get(self, "required_reviewers") + + +@pulumi.output_type +class ChangeRequestPolicyRulesRequiredReviewer(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "groupSlugs": + suggest = "group_slugs" + elif key == "userSlugs": + suggest = "user_slugs" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ChangeRequestPolicyRulesRequiredReviewer. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ChangeRequestPolicyRulesRequiredReviewer.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ChangeRequestPolicyRulesRequiredReviewer.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + count: _builtins.int, + group_slugs: Optional[Sequence[_builtins.str]] = None, + user_slugs: Optional[Sequence[_builtins.str]] = None): + """ + :param _builtins.int count: The number of approvals a change request must receive before it can be applied + :param Sequence[_builtins.str] group_slugs: If set, only approvals from members of these groups will satisfy this rule + :param Sequence[_builtins.str] user_slugs: If set, only approvals from these users will satisfy this rule + """ + pulumi.set(__self__, "count", count) + if group_slugs is not None: + pulumi.set(__self__, "group_slugs", group_slugs) + if user_slugs is not None: + pulumi.set(__self__, "user_slugs", user_slugs) + + @_builtins.property + @pulumi.getter + def count(self) -> _builtins.int: + """ + The number of approvals a change request must receive before it can be applied + """ + return pulumi.get(self, "count") + + @_builtins.property + @pulumi.getter(name="groupSlugs") + def group_slugs(self) -> Optional[Sequence[_builtins.str]]: + """ + If set, only approvals from members of these groups will satisfy this rule + """ + return pulumi.get(self, "group_slugs") + + @_builtins.property + @pulumi.getter(name="userSlugs") + def user_slugs(self) -> Optional[Sequence[_builtins.str]]: + """ + If set, only approvals from these users will satisfy this rule + """ + return pulumi.get(self, "user_slugs") + + +@pulumi.output_type +class ChangeRequestPolicyTargets(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "allProjects": + suggest = "all_projects" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ChangeRequestPolicyTargets. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ChangeRequestPolicyTargets.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ChangeRequestPolicyTargets.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + all_projects: Optional[_builtins.bool] = None, + projects: Optional[Sequence['outputs.ChangeRequestPolicyTargetsProject']] = None): + """ + :param _builtins.bool all_projects: Whether or not the policy applies to all projects in the workplace + :param Sequence['ChangeRequestPolicyTargetsProjectArgs'] projects: A project that the policy will apply to + """ + if all_projects is not None: + pulumi.set(__self__, "all_projects", all_projects) + if projects is not None: + pulumi.set(__self__, "projects", projects) + + @_builtins.property + @pulumi.getter(name="allProjects") + def all_projects(self) -> Optional[_builtins.bool]: + """ + Whether or not the policy applies to all projects in the workplace + """ + return pulumi.get(self, "all_projects") + + @_builtins.property + @pulumi.getter + def projects(self) -> Optional[Sequence['outputs.ChangeRequestPolicyTargetsProject']]: + """ + A project that the policy will apply to + """ + return pulumi.get(self, "projects") + + +@pulumi.output_type +class ChangeRequestPolicyTargetsProject(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "projectName": + suggest = "project_name" + elif key == "configNames": + suggest = "config_names" + elif key == "environmentSlugs": + suggest = "environment_slugs" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ChangeRequestPolicyTargetsProject. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ChangeRequestPolicyTargetsProject.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ChangeRequestPolicyTargetsProject.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + project_name: _builtins.str, + all: Optional[_builtins.bool] = None, + config_names: Optional[Sequence[_builtins.str]] = None, + environment_slugs: Optional[Sequence[_builtins.str]] = None): + """ + :param _builtins.str project_name: The name of the project to apply the policy to + :param _builtins.bool all: Whether or not the policy applies to all configs in the project + :param Sequence[_builtins.str] config_names: Specific configs the policy applies to + :param Sequence[_builtins.str] environment_slugs: Entire environments the policy applies to + """ + pulumi.set(__self__, "project_name", project_name) + if all is not None: + pulumi.set(__self__, "all", all) + if config_names is not None: + pulumi.set(__self__, "config_names", config_names) + if environment_slugs is not None: + pulumi.set(__self__, "environment_slugs", environment_slugs) + + @_builtins.property + @pulumi.getter(name="projectName") + def project_name(self) -> _builtins.str: + """ + The name of the project to apply the policy to + """ + return pulumi.get(self, "project_name") + + @_builtins.property + @pulumi.getter + def all(self) -> Optional[_builtins.bool]: + """ + Whether or not the policy applies to all configs in the project + """ + return pulumi.get(self, "all") + + @_builtins.property + @pulumi.getter(name="configNames") + def config_names(self) -> Optional[Sequence[_builtins.str]]: + """ + Specific configs the policy applies to + """ + return pulumi.get(self, "config_names") + + @_builtins.property + @pulumi.getter(name="environmentSlugs") + def environment_slugs(self) -> Optional[Sequence[_builtins.str]]: + """ + Entire environments the policy applies to + """ + return pulumi.get(self, "environment_slugs") + + +@pulumi.output_type +class ServiceAccountIdentityConfigOidc(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "discoveryUrl": + suggest = "discovery_url" + elif key == "claimsType": + suggest = "claims_type" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ServiceAccountIdentityConfigOidc. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ServiceAccountIdentityConfigOidc.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ServiceAccountIdentityConfigOidc.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + claims: Sequence['outputs.ServiceAccountIdentityConfigOidcClaim'], + discovery_url: _builtins.str, + claims_type: Optional[_builtins.str] = None): + """ + :param Sequence['ServiceAccountIdentityConfigOidcClaimArgs'] claims: A set of valid values for a specific claim. At least "aud" and "sub" must be provided + :param _builtins.str discovery_url: The public URL of the OpenID discovery service + :param _builtins.str claims_type: If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + """ + pulumi.set(__self__, "claims", claims) + pulumi.set(__self__, "discovery_url", discovery_url) + if claims_type is not None: + pulumi.set(__self__, "claims_type", claims_type) + + @_builtins.property + @pulumi.getter + def claims(self) -> Sequence['outputs.ServiceAccountIdentityConfigOidcClaim']: + """ + A set of valid values for a specific claim. At least "aud" and "sub" must be provided + """ + return pulumi.get(self, "claims") + + @_builtins.property + @pulumi.getter(name="discoveryUrl") + def discovery_url(self) -> _builtins.str: + """ + The public URL of the OpenID discovery service + """ + return pulumi.get(self, "discovery_url") + + @_builtins.property + @pulumi.getter(name="claimsType") + def claims_type(self) -> Optional[_builtins.str]: + """ + If "wildcard", wildcard characters will be expanded during claims validation. Defaults to "exact" + """ + return pulumi.get(self, "claims_type") + + +@pulumi.output_type +class ServiceAccountIdentityConfigOidcClaim(dict): + def __init__(__self__, *, + key: _builtins.str, + values: Sequence[_builtins.str]): + """ + :param _builtins.str key: The key of the claim to validate + :param Sequence[_builtins.str] values: The set of valid values for this claim + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "values", values) + + @_builtins.property + @pulumi.getter + def key(self) -> _builtins.str: + """ + The key of the claim to validate + """ + return pulumi.get(self, "key") + + @_builtins.property + @pulumi.getter + def values(self) -> Sequence[_builtins.str]: + """ + The set of valid values for this claim + """ + return pulumi.get(self, "values") + + +@pulumi.output_type +class WebhookAuthentication(dict): + def __init__(__self__, *, + type: _builtins.str, + password: Optional[_builtins.str] = None, + token: Optional[_builtins.str] = None, + username: Optional[_builtins.str] = None): + pulumi.set(__self__, "type", type) + if password is not None: + pulumi.set(__self__, "password", password) + if token is not None: + pulumi.set(__self__, "token", token) + if username is not None: + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def type(self) -> _builtins.str: + return pulumi.get(self, "type") + + @_builtins.property + @pulumi.getter + def password(self) -> Optional[_builtins.str]: + return pulumi.get(self, "password") + + @_builtins.property + @pulumi.getter + def token(self) -> Optional[_builtins.str]: + return pulumi.get(self, "token") + + @_builtins.property + @pulumi.getter + def username(self) -> Optional[_builtins.str]: + return pulumi.get(self, "username") + + +@pulumi.output_type +class GetEnvironmentsEnvironmentResult(dict): + def __init__(__self__, *, + created_at: _builtins.str, + name: _builtins.str, + project: _builtins.str, + slug: _builtins.str): + """ + :param _builtins.str created_at: When the environment was created + :param _builtins.str name: The name of the environment + :param _builtins.str project: The project the environment belongs to + :param _builtins.str slug: The slug of the environment + """ + pulumi.set(__self__, "created_at", created_at) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "slug", slug) + + @_builtins.property + @pulumi.getter(name="createdAt") + def created_at(self) -> _builtins.str: + """ + When the environment was created + """ + return pulumi.get(self, "created_at") + + @_builtins.property + @pulumi.getter + def name(self) -> _builtins.str: + """ + The name of the environment + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> _builtins.str: + """ + The project the environment belongs to + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def slug(self) -> _builtins.str: + """ + The slug of the environment + """ + return pulumi.get(self, "slug") + + diff --git a/sdk/python/pulumiverse_doppler/project.py b/sdk/python/pulumi_doppler/project.py similarity index 68% rename from sdk/python/pulumiverse_doppler/project.py rename to sdk/python/pulumi_doppler/project.py index 29cccdb..748ef93 100644 --- a/sdk/python/pulumiverse_doppler/project.py +++ b/sdk/python/pulumi_doppler/project.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectArgs', 'Project'] @@ -14,89 +19,92 @@ @pulumi.input_type class ProjectArgs: def __init__(__self__, *, - name: pulumi.Input[str], - description: Optional[pulumi.Input[str]] = None): + name: pulumi.Input[_builtins.str], + description: pulumi.Input[Optional[_builtins.str]] = None): """ The set of arguments for constructing a Project resource. - :param pulumi.Input[str] name: The name of the Doppler project - :param pulumi.Input[str] description: The description of the Doppler project + + :param pulumi.Input[_builtins.str] name: The name of the Doppler project + :param pulumi.Input[_builtins.str] description: The description of the Doppler project """ pulumi.set(__self__, "name", name) if description is not None: pulumi.set(__self__, "description", description) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: + def description(self) -> pulumi.Input[Optional[_builtins.str]]: """ The description of the Doppler project """ return pulumi.get(self, "description") @description.setter - def description(self, value: Optional[pulumi.Input[str]]): + def description(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "description", value) @pulumi.input_type class _ProjectState: def __init__(__self__, *, - description: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None): + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering Project resources. - :param pulumi.Input[str] description: The description of the Doppler project - :param pulumi.Input[str] name: The name of the Doppler project + + :param pulumi.Input[_builtins.str] description: The description of the Doppler project + :param pulumi.Input[_builtins.str] name: The name of the Doppler project """ if description is not None: pulumi.set(__self__, "description", description) if name is not None: pulumi.set(__self__, "name", name) - @property + @_builtins.property @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: + def description(self) -> pulumi.Input[Optional[_builtins.str]]: """ The description of the Doppler project """ return pulumi.get(self, "description") @description.setter - def description(self, value: Optional[pulumi.Input[str]]): + def description(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "description", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) +@pulumi.type_token("doppler:index/project:Project") class Project(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - description: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler project. @@ -105,7 +113,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler backend = doppler.Project("backend", name="backend", @@ -118,10 +126,11 @@ def __init__(__self__, $ pulumi import doppler:index/project:Project default ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] description: The description of the Doppler project - :param pulumi.Input[str] name: The name of the Doppler project + :param pulumi.Input[_builtins.str] description: The description of the Doppler project + :param pulumi.Input[_builtins.str] name: The name of the Doppler project """ ... @overload @@ -136,7 +145,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler backend = doppler.Project("backend", name="backend", @@ -149,6 +158,7 @@ def __init__(__self__, $ pulumi import doppler:index/project:Project default ``` + :param str resource_name: The name of the resource. :param ProjectArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -164,8 +174,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - description: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -189,8 +199,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - description: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None) -> 'Project': + description: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None) -> 'Project': """ Get an existing Project resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -198,8 +208,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] description: The description of the Doppler project - :param pulumi.Input[str] name: The name of the Doppler project + :param pulumi.Input[_builtins.str] description: The description of the Doppler project + :param pulumi.Input[_builtins.str] name: The name of the Doppler project """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -209,17 +219,17 @@ def get(resource_name: str, __props__.__dict__["name"] = name return Project(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def description(self) -> pulumi.Output[Optional[str]]: + def description(self) -> pulumi.Output[Optional[_builtins.str]]: """ The description of the Doppler project """ return pulumi.get(self, "description") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project """ diff --git a/sdk/python/pulumiverse_doppler/project_role.py b/sdk/python/pulumi_doppler/project_role.py similarity index 64% rename from sdk/python/pulumiverse_doppler/project_role.py rename to sdk/python/pulumi_doppler/project_role.py index b94200a..c428e04 100644 --- a/sdk/python/pulumiverse_doppler/project_role.py +++ b/sdk/python/pulumi_doppler/project_role.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ProjectRoleArgs', 'ProjectRole'] @@ -14,54 +19,56 @@ @pulumi.input_type class ProjectRoleArgs: def __init__(__self__, *, - name: pulumi.Input[str], - permissions: pulumi.Input[Sequence[pulumi.Input[str]]]): + name: pulumi.Input[_builtins.str], + permissions: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): """ The set of arguments for constructing a ProjectRole resource. - :param pulumi.Input[str] name: The name of the Doppler project role - :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) + + :param pulumi.Input[_builtins.str] name: The name of the Doppler project role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ pulumi.set(__self__, "name", name) pulumi.set(__self__, "permissions", permissions) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project role """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def permissions(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: + def permissions(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: """ A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ return pulumi.get(self, "permissions") @permissions.setter - def permissions(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): + def permissions(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): pulumi.set(self, "permissions", value) @pulumi.input_type class _ProjectRoleState: def __init__(__self__, *, - identifier: Optional[pulumi.Input[str]] = None, - is_custom_role: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + identifier: pulumi.Input[Optional[_builtins.str]] = None, + is_custom_role: pulumi.Input[Optional[_builtins.bool]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): """ Input properties used for looking up and filtering ProjectRole resources. - :param pulumi.Input[str] identifier: The role's unique identifier - :param pulumi.Input[bool] is_custom_role: Whether or not the role is custom (as opposed to Doppler built-in) - :param pulumi.Input[str] name: The name of the Doppler project role - :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) + + :param pulumi.Input[_builtins.str] identifier: The role's unique identifier + :param pulumi.Input[_builtins.bool] is_custom_role: Whether or not the role is custom (as opposed to Doppler built-in) + :param pulumi.Input[_builtins.str] name: The name of the Doppler project role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ if identifier is not None: pulumi.set(__self__, "identifier", identifier) @@ -72,62 +79,63 @@ def __init__(__self__, *, if permissions is not None: pulumi.set(__self__, "permissions", permissions) - @property + @_builtins.property @pulumi.getter - def identifier(self) -> Optional[pulumi.Input[str]]: + def identifier(self) -> pulumi.Input[Optional[_builtins.str]]: """ The role's unique identifier """ return pulumi.get(self, "identifier") @identifier.setter - def identifier(self, value: Optional[pulumi.Input[str]]): + def identifier(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "identifier", value) - @property + @_builtins.property @pulumi.getter(name="isCustomRole") - def is_custom_role(self) -> Optional[pulumi.Input[bool]]: + def is_custom_role(self) -> pulumi.Input[Optional[_builtins.bool]]: """ Whether or not the role is custom (as opposed to Doppler built-in) """ return pulumi.get(self, "is_custom_role") @is_custom_role.setter - def is_custom_role(self, value: Optional[pulumi.Input[bool]]): + def is_custom_role(self, value: pulumi.Input[Optional[_builtins.bool]]): pulumi.set(self, "is_custom_role", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project role """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def permissions(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ return pulumi.get(self, "permissions") @permissions.setter - def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def permissions(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "permissions", value) +@pulumi.type_token("doppler:index/projectRole:ProjectRole") class ProjectRole(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, __props__=None): """ Manage a Doppler project_role. @@ -136,7 +144,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler log_viewer = doppler.ProjectRole("log_viewer", name="Log Viewer", @@ -149,10 +157,11 @@ def __init__(__self__, $ pulumi import doppler:index/projectRole:ProjectRole default ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the Doppler project role - :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) + :param pulumi.Input[_builtins.str] name: The name of the Doppler project role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ ... @overload @@ -167,7 +176,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler log_viewer = doppler.ProjectRole("log_viewer", name="Log Viewer", @@ -180,6 +189,7 @@ def __init__(__self__, $ pulumi import doppler:index/projectRole:ProjectRole default ``` + :param str resource_name: The name of the resource. :param ProjectRoleArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -195,8 +205,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -224,10 +234,10 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - identifier: Optional[pulumi.Input[str]] = None, - is_custom_role: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ProjectRole': + identifier: pulumi.Input[Optional[_builtins.str]] = None, + is_custom_role: pulumi.Input[Optional[_builtins.bool]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'ProjectRole': """ Get an existing ProjectRole resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -235,10 +245,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] identifier: The role's unique identifier - :param pulumi.Input[bool] is_custom_role: Whether or not the role is custom (as opposed to Doppler built-in) - :param pulumi.Input[str] name: The name of the Doppler project role - :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) + :param pulumi.Input[_builtins.str] identifier: The role's unique identifier + :param pulumi.Input[_builtins.bool] is_custom_role: Whether or not the role is custom (as opposed to Doppler built-in) + :param pulumi.Input[_builtins.str] name: The name of the Doppler project role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -250,33 +260,33 @@ def get(resource_name: str, __props__.__dict__["permissions"] = permissions return ProjectRole(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def identifier(self) -> pulumi.Output[str]: + def identifier(self) -> pulumi.Output[_builtins.str]: """ The role's unique identifier """ return pulumi.get(self, "identifier") - @property + @_builtins.property @pulumi.getter(name="isCustomRole") - def is_custom_role(self) -> pulumi.Output[bool]: + def is_custom_role(self) -> pulumi.Output[_builtins.bool]: """ Whether or not the role is custom (as opposed to Doppler built-in) """ return pulumi.get(self, "is_custom_role") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project role """ return pulumi.get(self, "name") - @property + @_builtins.property @pulumi.getter - def permissions(self) -> pulumi.Output[Sequence[str]]: + def permissions(self) -> pulumi.Output[Sequence[_builtins.str]]: """ A list of [Doppler project permissions](https://docs.doppler.com/reference/project_roles-create) """ diff --git a/sdk/python/pulumi_doppler/project_tag.py b/sdk/python/pulumi_doppler/project_tag.py new file mode 100644 index 0000000..5fa99ed --- /dev/null +++ b/sdk/python/pulumi_doppler/project_tag.py @@ -0,0 +1,240 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['ProjectTagArgs', 'ProjectTag'] + +@pulumi.input_type +class ProjectTagArgs: + def __init__(__self__, *, + project: pulumi.Input[_builtins.str], + tag_slug: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a ProjectTag resource. + + :param pulumi.Input[_builtins.str] project: The name of the Doppler project the tag is assigned to + :param pulumi.Input[_builtins.str] tag_slug: The slug of the Doppler tag + """ + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "tag_slug", tag_slug) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project the tag is assigned to + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="tagSlug") + def tag_slug(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler tag + """ + return pulumi.get(self, "tag_slug") + + @tag_slug.setter + def tag_slug(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "tag_slug", value) + + +@pulumi.input_type +class _ProjectTagState: + def __init__(__self__, *, + project: pulumi.Input[Optional[_builtins.str]] = None, + tag_slug: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering ProjectTag resources. + + :param pulumi.Input[_builtins.str] project: The name of the Doppler project the tag is assigned to + :param pulumi.Input[_builtins.str] tag_slug: The slug of the Doppler tag + """ + if project is not None: + pulumi.set(__self__, "project", project) + if tag_slug is not None: + pulumi.set(__self__, "tag_slug", tag_slug) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project the tag is assigned to + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="tagSlug") + def tag_slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler tag + """ + return pulumi.get(self, "tag_slug") + + @tag_slug.setter + def tag_slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "tag_slug", value) + + +@pulumi.type_token("doppler:index/projectTag:ProjectTag") +class ProjectTag(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + tag_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler tag assigned to a project. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend = doppler.Tag("backend", name="Backend") + backend_project_tag = doppler.ProjectTag("backend", + project="backend", + tag_slug=backend.slug) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/projectTag:ProjectTag default . + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] project: The name of the Doppler project the tag is assigned to + :param pulumi.Input[_builtins.str] tag_slug: The slug of the Doppler tag + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ProjectTagArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler tag assigned to a project. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend = doppler.Tag("backend", name="Backend") + backend_project_tag = doppler.ProjectTag("backend", + project="backend", + tag_slug=backend.slug) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/projectTag:ProjectTag default . + ``` + + + :param str resource_name: The name of the resource. + :param ProjectTagArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ProjectTagArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + tag_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ProjectTagArgs.__new__(ProjectTagArgs) + + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if tag_slug is None and not opts.urn: + raise TypeError("Missing required property 'tag_slug'") + __props__.__dict__["tag_slug"] = tag_slug + super(ProjectTag, __self__).__init__( + 'doppler:index/projectTag:ProjectTag', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + tag_slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'ProjectTag': + """ + Get an existing ProjectTag resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] project: The name of the Doppler project the tag is assigned to + :param pulumi.Input[_builtins.str] tag_slug: The slug of the Doppler tag + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ProjectTagState.__new__(_ProjectTagState) + + __props__.__dict__["project"] = project + __props__.__dict__["tag_slug"] = tag_slug + return ProjectTag(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project the tag is assigned to + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="tagSlug") + def tag_slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler tag + """ + return pulumi.get(self, "tag_slug") + diff --git a/sdk/python/pulumiverse_doppler/projectmember/__init__.py b/sdk/python/pulumi_doppler/projectmember/__init__.py similarity index 66% rename from sdk/python/pulumiverse_doppler/projectmember/__init__.py rename to sdk/python/pulumi_doppler/projectmember/__init__.py index 5feda7d..8260a8a 100644 --- a/sdk/python/pulumiverse_doppler/projectmember/__init__.py +++ b/sdk/python/pulumi_doppler/projectmember/__init__.py @@ -1,9 +1,11 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import builtins as _builtins from .. import _utilities import typing # Export this package's modules as members: from .group import * from .service_account import * +from .user import * diff --git a/sdk/python/pulumiverse_doppler/projectmember/group.py b/sdk/python/pulumi_doppler/projectmember/group.py similarity index 52% rename from sdk/python/pulumiverse_doppler/projectmember/group.py rename to sdk/python/pulumi_doppler/projectmember/group.py index 47492b1..6fe9d4e 100644 --- a/sdk/python/pulumiverse_doppler/projectmember/group.py +++ b/sdk/python/pulumi_doppler/projectmember/group.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['GroupArgs', 'Group'] @@ -14,16 +19,17 @@ @pulumi.input_type class GroupArgs: def __init__(__self__, *, - group_slug: pulumi.Input[str], - project: pulumi.Input[str], - role: pulumi.Input[str], - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + group_slug: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + role: pulumi.Input[_builtins.str], + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): """ The set of arguments for constructing a Group resource. - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ pulumi.set(__self__, "group_slug", group_slug) pulumi.set(__self__, "project", project) @@ -31,68 +37,69 @@ def __init__(__self__, *, if environments is not None: pulumi.set(__self__, "environments", environments) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> pulumi.Input[str]: + def group_slug(self) -> pulumi.Input[_builtins.str]: """ The slug of the Doppler group """ return pulumi.get(self, "group_slug") @group_slug.setter - def group_slug(self, value: pulumi.Input[str]): + def group_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "group_slug", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Input[str]: + def project(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project where the access is applied """ return pulumi.get(self, "project") @project.setter - def project(self, value: pulumi.Input[str]): + def project(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def role(self) -> pulumi.Input[str]: + def role(self) -> pulumi.Input[_builtins.str]: """ - The project role identifier for the access + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ return pulumi.get(self, "role") @role.setter - def role(self, value: pulumi.Input[str]): + def role(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "role", value) - @property + @_builtins.property @pulumi.getter - def environments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def environments(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ return pulumi.get(self, "environments") @environments.setter - def environments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def environments(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "environments", value) @pulumi.input_type class _GroupState: def __init__(__self__, *, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - group_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None): + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering Group resources. - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access + + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ if environments is not None: pulumi.set(__self__, "environments", environments) @@ -103,64 +110,65 @@ def __init__(__self__, *, if role is not None: pulumi.set(__self__, "role", role) - @property + @_builtins.property @pulumi.getter - def environments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def environments(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ return pulumi.get(self, "environments") @environments.setter - def environments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def environments(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "environments", value) - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> Optional[pulumi.Input[str]]: + def group_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the Doppler group """ return pulumi.get(self, "group_slug") @group_slug.setter - def group_slug(self, value: Optional[pulumi.Input[str]]): + def group_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "group_slug", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: + def project(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project where the access is applied """ return pulumi.get(self, "project") @project.setter - def project(self, value: Optional[pulumi.Input[str]]): + def project(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def role(self) -> Optional[pulumi.Input[str]]: + def role(self) -> pulumi.Input[Optional[_builtins.str]]: """ - The project role identifier for the access + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ return pulumi.get(self, "role") @role.setter - def role(self, value: Optional[pulumi.Input[str]]): + def role(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "role", value) +@pulumi.type_token("doppler:projectMember/group:Group") class Group(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - group_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler project group member. @@ -169,9 +177,9 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler - backend_engineering = doppler.project_member.Group("backend_engineering", + backend_engineering = doppler.projectmember.Group("backend_engineering", project="backend", group_slug=engineering["slug"], role="collaborator", @@ -181,12 +189,13 @@ def __init__(__self__, ]) ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ ... @overload @@ -201,9 +210,9 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler - backend_engineering = doppler.project_member.Group("backend_engineering", + backend_engineering = doppler.projectmember.Group("backend_engineering", project="backend", group_slug=engineering["slug"], role="collaborator", @@ -213,6 +222,7 @@ def __init__(__self__, ]) ``` + :param str resource_name: The name of the resource. :param GroupArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -228,10 +238,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - group_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -261,10 +271,10 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - group_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None) -> 'Group': + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + group_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None) -> 'Group': """ Get an existing Group resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -272,10 +282,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) - :param pulumi.Input[str] group_slug: The slug of the Doppler group - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] group_slug: The slug of the Doppler group + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -287,35 +297,35 @@ def get(resource_name: str, __props__.__dict__["role"] = role return Group(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def environments(self) -> pulumi.Output[Optional[Sequence[str]]]: + def environments(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]: """ The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ return pulumi.get(self, "environments") - @property + @_builtins.property @pulumi.getter(name="groupSlug") - def group_slug(self) -> pulumi.Output[str]: + def group_slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the Doppler group """ return pulumi.get(self, "group_slug") - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Output[str]: + def project(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project where the access is applied """ return pulumi.get(self, "project") - @property + @_builtins.property @pulumi.getter - def role(self) -> pulumi.Output[str]: + def role(self) -> pulumi.Output[_builtins.str]: """ - The project role identifier for the access + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ return pulumi.get(self, "role") diff --git a/sdk/python/pulumiverse_doppler/projectmember/service_account.py b/sdk/python/pulumi_doppler/projectmember/service_account.py similarity index 53% rename from sdk/python/pulumiverse_doppler/projectmember/service_account.py rename to sdk/python/pulumi_doppler/projectmember/service_account.py index caca04b..13c12ff 100644 --- a/sdk/python/pulumiverse_doppler/projectmember/service_account.py +++ b/sdk/python/pulumi_doppler/projectmember/service_account.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['ServiceAccountArgs', 'ServiceAccount'] @@ -14,16 +19,17 @@ @pulumi.input_type class ServiceAccountArgs: def __init__(__self__, *, - project: pulumi.Input[str], - role: pulumi.Input[str], - service_account_slug: pulumi.Input[str], - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + project: pulumi.Input[_builtins.str], + role: pulumi.Input[_builtins.str], + service_account_slug: pulumi.Input[_builtins.str], + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): """ The set of arguments for constructing a ServiceAccount resource. - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access - :param pulumi.Input[str] service_account_slug: The slug of the Doppler service account - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ pulumi.set(__self__, "project", project) pulumi.set(__self__, "role", role) @@ -31,68 +37,69 @@ def __init__(__self__, *, if environments is not None: pulumi.set(__self__, "environments", environments) - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Input[str]: + def project(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project where the access is applied """ return pulumi.get(self, "project") @project.setter - def project(self, value: pulumi.Input[str]): + def project(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def role(self) -> pulumi.Input[str]: + def role(self) -> pulumi.Input[_builtins.str]: """ - The project role identifier for the access + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ return pulumi.get(self, "role") @role.setter - def role(self, value: pulumi.Input[str]): + def role(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "role", value) - @property + @_builtins.property @pulumi.getter(name="serviceAccountSlug") - def service_account_slug(self) -> pulumi.Input[str]: + def service_account_slug(self) -> pulumi.Input[_builtins.str]: """ The slug of the Doppler service account """ return pulumi.get(self, "service_account_slug") @service_account_slug.setter - def service_account_slug(self, value: pulumi.Input[str]): + def service_account_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "service_account_slug", value) - @property + @_builtins.property @pulumi.getter - def environments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def environments(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ return pulumi.get(self, "environments") @environments.setter - def environments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def environments(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "environments", value) @pulumi.input_type class _ServiceAccountState: def __init__(__self__, *, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None): + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering ServiceAccount resources. - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access - :param pulumi.Input[str] service_account_slug: The slug of the Doppler service account + + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account """ if environments is not None: pulumi.set(__self__, "environments", environments) @@ -103,64 +110,65 @@ def __init__(__self__, *, if service_account_slug is not None: pulumi.set(__self__, "service_account_slug", service_account_slug) - @property + @_builtins.property @pulumi.getter - def environments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def environments(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ return pulumi.get(self, "environments") @environments.setter - def environments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def environments(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "environments", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: + def project(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project where the access is applied """ return pulumi.get(self, "project") @project.setter - def project(self, value: Optional[pulumi.Input[str]]): + def project(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def role(self) -> Optional[pulumi.Input[str]]: + def role(self) -> pulumi.Input[Optional[_builtins.str]]: """ - The project role identifier for the access + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ return pulumi.get(self, "role") @role.setter - def role(self, value: Optional[pulumi.Input[str]]): + def role(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "role", value) - @property + @_builtins.property @pulumi.getter(name="serviceAccountSlug") - def service_account_slug(self) -> Optional[pulumi.Input[str]]: + def service_account_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the Doppler service account """ return pulumi.get(self, "service_account_slug") @service_account_slug.setter - def service_account_slug(self, value: Optional[pulumi.Input[str]]): + def service_account_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "service_account_slug", value) +@pulumi.type_token("doppler:projectMember/serviceAccount:ServiceAccount") class ServiceAccount(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler project service account member. @@ -169,9 +177,9 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler - backend_ci = doppler.project_member.ServiceAccount("backend_ci", + backend_ci = doppler.projectmember.ServiceAccount("backend_ci", project="backend", service_account_slug=ci["slug"], role="viewer", @@ -182,12 +190,13 @@ def __init__(__self__, ]) ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access - :param pulumi.Input[str] service_account_slug: The slug of the Doppler service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account """ ... @overload @@ -202,9 +211,9 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler - backend_ci = doppler.project_member.ServiceAccount("backend_ci", + backend_ci = doppler.projectmember.ServiceAccount("backend_ci", project="backend", service_account_slug=ci["slug"], role="viewer", @@ -215,6 +224,7 @@ def __init__(__self__, ]) ``` + :param str resource_name: The name of the resource. :param ServiceAccountArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -230,10 +240,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -263,10 +273,10 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - project: Optional[pulumi.Input[str]] = None, - role: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None) -> 'ServiceAccount': + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'ServiceAccount': """ Get an existing ServiceAccount resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -274,10 +284,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) - :param pulumi.Input[str] project: The name of the Doppler project where the access is applied - :param pulumi.Input[str] role: The project role identifier for the access - :param pulumi.Input[str] service_account_slug: The slug of the Doppler service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] service_account_slug: The slug of the Doppler service account """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -289,33 +299,33 @@ def get(resource_name: str, __props__.__dict__["service_account_slug"] = service_account_slug return ServiceAccount(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def environments(self) -> pulumi.Output[Optional[Sequence[str]]]: + def environments(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]: """ The environments in the project where this access will apply (null or omitted for roles with access to all environments) """ return pulumi.get(self, "environments") - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Output[str]: + def project(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project where the access is applied """ return pulumi.get(self, "project") - @property + @_builtins.property @pulumi.getter - def role(self) -> pulumi.Output[str]: + def role(self) -> pulumi.Output[_builtins.str]: """ - The project role identifier for the access + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. """ return pulumi.get(self, "role") - @property + @_builtins.property @pulumi.getter(name="serviceAccountSlug") - def service_account_slug(self) -> pulumi.Output[str]: + def service_account_slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the Doppler service account """ diff --git a/sdk/python/pulumi_doppler/projectmember/user.py b/sdk/python/pulumi_doppler/projectmember/user.py new file mode 100644 index 0000000..359ae5c --- /dev/null +++ b/sdk/python/pulumi_doppler/projectmember/user.py @@ -0,0 +1,333 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['UserArgs', 'User'] + +@pulumi.input_type +class UserArgs: + def __init__(__self__, *, + project: pulumi.Input[_builtins.str], + role: pulumi.Input[_builtins.str], + user_slug: pulumi.Input[_builtins.str], + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): + """ + The set of arguments for constructing a User resource. + + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + """ + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "role", role) + pulumi.set(__self__, "user_slug", user_slug) + if environments is not None: + pulumi.set(__self__, "environments", environments) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project where the access is applied + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[_builtins.str]: + """ + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "role", value) + + @_builtins.property + @pulumi.getter(name="userSlug") + def user_slug(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the Doppler workplace user + """ + return pulumi.get(self, "user_slug") + + @user_slug.setter + def user_slug(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "user_slug", value) + + @_builtins.property + @pulumi.getter + def environments(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + The environments in the project where this access will apply (null or omitted for roles with access to all environments) + """ + return pulumi.get(self, "environments") + + @environments.setter + def environments(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "environments", value) + + +@pulumi.input_type +class _UserState: + def __init__(__self__, *, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering User resources. + + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + if environments is not None: + pulumi.set(__self__, "environments", environments) + if project is not None: + pulumi.set(__self__, "project", project) + if role is not None: + pulumi.set(__self__, "role", role) + if user_slug is not None: + pulumi.set(__self__, "user_slug", user_slug) + + @_builtins.property + @pulumi.getter + def environments(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + The environments in the project where this access will apply (null or omitted for roles with access to all environments) + """ + return pulumi.get(self, "environments") + + @environments.setter + def environments(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "environments", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project where the access is applied + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + """ + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "role", value) + + @_builtins.property + @pulumi.getter(name="userSlug") + def user_slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Doppler workplace user + """ + return pulumi.get(self, "user_slug") + + @user_slug.setter + def user_slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "user_slug", value) + + +@pulumi.type_token("doppler:projectMember/user:User") +class User(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler project user member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + brian = doppler.get_user(email="brian@doppler.com") + backend_brian = doppler.projectmember.User("backend_brian", + project="backend", + user_slug=brian.slug, + role="collaborator", + environments=[ + "dev", + "stg", + ]) + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: UserArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler project user member. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + brian = doppler.get_user(email="brian@doppler.com") + backend_brian = doppler.projectmember.User("backend_brian", + project="backend", + user_slug=brian.slug, + role="collaborator", + environments=[ + "dev", + "stg", + ]) + ``` + + + :param str resource_name: The name of the resource. + :param UserArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(UserArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = UserArgs.__new__(UserArgs) + + __props__.__dict__["environments"] = environments + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if role is None and not opts.urn: + raise TypeError("Missing required property 'role'") + __props__.__dict__["role"] = role + if user_slug is None and not opts.urn: + raise TypeError("Missing required property 'user_slug'") + __props__.__dict__["user_slug"] = user_slug + super(User, __self__).__init__( + 'doppler:projectMember/user:User', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + environments: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + role: pulumi.Input[Optional[_builtins.str]] = None, + user_slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'User': + """ + Get an existing User resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] environments: The environments in the project where this access will apply (null or omitted for roles with access to all environments) + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the access is applied + :param pulumi.Input[_builtins.str] role: The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + :param pulumi.Input[_builtins.str] user_slug: The slug of the Doppler workplace user + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _UserState.__new__(_UserState) + + __props__.__dict__["environments"] = environments + __props__.__dict__["project"] = project + __props__.__dict__["role"] = role + __props__.__dict__["user_slug"] = user_slug + return User(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def environments(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]: + """ + The environments in the project where this access will apply (null or omitted for roles with access to all environments) + """ + return pulumi.get(self, "environments") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project where the access is applied + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def role(self) -> pulumi.Output[_builtins.str]: + """ + The project role identifier for the access. Must use either one of the built-in project role slugs (`admin`, `owner`, `collaborator`, or `no_access`), or the slug for a custom project role. + """ + return pulumi.get(self, "role") + + @_builtins.property + @pulumi.getter(name="userSlug") + def user_slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Doppler workplace user + """ + return pulumi.get(self, "user_slug") + diff --git a/sdk/python/pulumi_doppler/provider.py b/sdk/python/pulumi_doppler/provider.py new file mode 100644 index 0000000..b0583fa --- /dev/null +++ b/sdk/python/pulumi_doppler/provider.py @@ -0,0 +1,269 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['ProviderArgs', 'Provider'] + +@pulumi.input_type +class ProviderArgs: + def __init__(__self__, *, + doppler_token: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + oidc_identity: pulumi.Input[Optional[_builtins.str]] = None, + oidc_token: pulumi.Input[Optional[_builtins.str]] = None, + oidc_token_file: pulumi.Input[Optional[_builtins.str]] = None, + verify_tls: pulumi.Input[Optional[_builtins.bool]] = None): + """ + The set of arguments for constructing a Provider resource. + + :param pulumi.Input[_builtins.str] doppler_token: A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `doppler_token` or OIDC authentication (`oidc_identity` + `oidc_token`/`oidc_token_file`) may be specified. + :param pulumi.Input[_builtins.str] host: The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. + :param pulumi.Input[_builtins.str] oidc_identity: The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + :param pulumi.Input[_builtins.str] oidc_token: A JWT token to use for OIDC authentication. Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + :param pulumi.Input[_builtins.str] oidc_token_file: A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + :param pulumi.Input[_builtins.bool] verify_tls: Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. + """ + if doppler_token is not None: + pulumi.set(__self__, "doppler_token", doppler_token) + if host is not None: + pulumi.set(__self__, "host", host) + if oidc_identity is not None: + pulumi.set(__self__, "oidc_identity", oidc_identity) + if oidc_token is not None: + pulumi.set(__self__, "oidc_token", oidc_token) + if oidc_token_file is not None: + pulumi.set(__self__, "oidc_token_file", oidc_token_file) + if verify_tls is not None: + pulumi.set(__self__, "verify_tls", verify_tls) + + @_builtins.property + @pulumi.getter(name="dopplerToken") + def doppler_token(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `doppler_token` or OIDC authentication (`oidc_identity` + `oidc_token`/`oidc_token_file`) may be specified. + """ + return pulumi.get(self, "doppler_token") + + @doppler_token.setter + def doppler_token(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "doppler_token", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter(name="oidcIdentity") + def oidc_identity(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + """ + return pulumi.get(self, "oidc_identity") + + @oidc_identity.setter + def oidc_identity(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "oidc_identity", value) + + @_builtins.property + @pulumi.getter(name="oidcToken") + def oidc_token(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A JWT token to use for OIDC authentication. Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + """ + return pulumi.get(self, "oidc_token") + + @oidc_token.setter + def oidc_token(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "oidc_token", value) + + @_builtins.property + @pulumi.getter(name="oidcTokenFile") + def oidc_token_file(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + """ + return pulumi.get(self, "oidc_token_file") + + @oidc_token_file.setter + def oidc_token_file(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "oidc_token_file", value) + + @_builtins.property + @pulumi.getter(name="verifyTls") + def verify_tls(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. + """ + return pulumi.get(self, "verify_tls") + + @verify_tls.setter + def verify_tls(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "verify_tls", value) + + +@pulumi.type_token("pulumi:providers:doppler") +class Provider(pulumi.ProviderResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + doppler_token: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + oidc_identity: pulumi.Input[Optional[_builtins.str]] = None, + oidc_token: pulumi.Input[Optional[_builtins.str]] = None, + oidc_token_file: pulumi.Input[Optional[_builtins.str]] = None, + verify_tls: pulumi.Input[Optional[_builtins.bool]] = None, + __props__=None): + """ + The provider type for the doppler package. By default, resources use package-wide configuration + settings, however an explicit `Provider` instance may be created and passed during resource + construction to achieve fine-grained programmatic control over provider settings. See the + [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] doppler_token: A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `doppler_token` or OIDC authentication (`oidc_identity` + `oidc_token`/`oidc_token_file`) may be specified. + :param pulumi.Input[_builtins.str] host: The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. + :param pulumi.Input[_builtins.str] oidc_identity: The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + :param pulumi.Input[_builtins.str] oidc_token: A JWT token to use for OIDC authentication. Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + :param pulumi.Input[_builtins.str] oidc_token_file: A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + :param pulumi.Input[_builtins.bool] verify_tls: Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: Optional[ProviderArgs] = None, + opts: Optional[pulumi.ResourceOptions] = None): + """ + The provider type for the doppler package. By default, resources use package-wide configuration + settings, however an explicit `Provider` instance may be created and passed during resource + construction to achieve fine-grained programmatic control over provider settings. See the + [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. + + + :param str resource_name: The name of the resource. + :param ProviderArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + doppler_token: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + oidc_identity: pulumi.Input[Optional[_builtins.str]] = None, + oidc_token: pulumi.Input[Optional[_builtins.str]] = None, + oidc_token_file: pulumi.Input[Optional[_builtins.str]] = None, + verify_tls: pulumi.Input[Optional[_builtins.bool]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ProviderArgs.__new__(ProviderArgs) + + __props__.__dict__["doppler_token"] = None if doppler_token is None else pulumi.Output.secret(doppler_token) + __props__.__dict__["host"] = host + __props__.__dict__["oidc_identity"] = oidc_identity + __props__.__dict__["oidc_token"] = None if oidc_token is None else pulumi.Output.secret(oidc_token) + __props__.__dict__["oidc_token_file"] = oidc_token_file + __props__.__dict__["verify_tls"] = pulumi.Output.from_input(verify_tls).apply(pulumi.runtime.to_json) if verify_tls is not None else None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["dopplerToken", "oidcToken"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(Provider, __self__).__init__( + 'doppler', + resource_name, + __props__, + opts) + + @_builtins.property + @pulumi.getter(name="dopplerToken") + def doppler_token(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. Only one of `doppler_token` or OIDC authentication (`oidc_identity` + `oidc_token`/`oidc_token_file`) may be specified. + """ + return pulumi.get(self, "doppler_token") + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. + """ + return pulumi.get(self, "host") + + @_builtins.property + @pulumi.getter(name="oidcIdentity") + def oidc_identity(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The identity ID (UUID) of the Doppler service account identity for OIDC authentication. This can also be set via the DOPPLER_OIDC_IDENTITY environment variable. + """ + return pulumi.get(self, "oidc_identity") + + @_builtins.property + @pulumi.getter(name="oidcToken") + def oidc_token(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + A JWT token to use for OIDC authentication. Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN environment variable. + """ + return pulumi.get(self, "oidc_token") + + @_builtins.property + @pulumi.getter(name="oidcTokenFile") + def oidc_token_file(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + A path to a file containing a JWT token for OIDC authentication (e.g. a Kubernetes projected service account token). Only one of `oidc_token` or `oidc_token_file` may be set. This can also be set via the DOPPLER_OIDC_TOKEN_FILE environment variable. + """ + return pulumi.get(self, "oidc_token_file") + + @pulumi.output_type + class TerraformConfigResult: + def __init__(__self__, result=None): + if result and not isinstance(result, dict): + raise TypeError("Expected argument 'result' to be a dict") + pulumi.set(__self__, "result", result) + + @_builtins.property + @pulumi.getter + def result(self) -> Mapping[str, Any]: + return pulumi.get(self, "result") + + def terraform_config(__self__) -> pulumi.Output['Provider.TerraformConfigResult']: + """ + This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider. + """ + __args__ = dict() + __args__['__self__'] = __self__ + return pulumi.runtime.call('pulumi:providers:doppler/terraformConfig', __args__, res=__self__, typ=Provider.TerraformConfigResult) + diff --git a/sdk/python/pulumi_doppler/pulumi-plugin.json b/sdk/python/pulumi_doppler/pulumi-plugin.json new file mode 100644 index 0000000..5b514fc --- /dev/null +++ b/sdk/python/pulumi_doppler/pulumi-plugin.json @@ -0,0 +1,6 @@ +{ + "resource": true, + "name": "doppler", + "version": "0.0.0-alpha.0+dev", + "server": "github://api.github.com/DopplerHQ" +} diff --git a/sdk/python/pulumiverse_doppler/py.typed b/sdk/python/pulumi_doppler/py.typed similarity index 100% rename from sdk/python/pulumiverse_doppler/py.typed rename to sdk/python/pulumi_doppler/py.typed diff --git a/sdk/python/pulumi_doppler/rotatedsecret/__init__.py b/sdk/python/pulumi_doppler/rotatedsecret/__init__.py new file mode 100644 index 0000000..875c623 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/__init__.py @@ -0,0 +1,21 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +from .. import _utilities +import typing +# Export this package's modules as members: +from .aws_iam_user_keys import * +from .aws_mssql import * +from .aws_mysql import * +from .aws_postgres import * +from .cloudflare_tokens import * +from .gcp_cloudsql import * +from .gcp_service_account_keys import * +from .mongodb_atlas import * +from .openai import * +from .sendgrid import * +from .twilio import * +from ._inputs import * +from . import outputs diff --git a/sdk/python/pulumi_doppler/rotatedsecret/_inputs.py b/sdk/python/pulumi_doppler/rotatedsecret/_inputs.py new file mode 100644 index 0000000..2022cc3 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/_inputs.py @@ -0,0 +1,218 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = [ + 'AwsMssqlCredentialArgs', + 'AwsMssqlCredentialArgsDict', + 'AwsMysqlCredentialArgs', + 'AwsMysqlCredentialArgsDict', + 'AwsPostgresCredentialArgs', + 'AwsPostgresCredentialArgsDict', + 'CloudflareTokensCredentialArgs', + 'CloudflareTokensCredentialArgsDict', + 'GcpCloudsqlCredentialArgs', + 'GcpCloudsqlCredentialArgsDict', + 'MongodbAtlasCredentialArgs', + 'MongodbAtlasCredentialArgsDict', +] + +class AwsMssqlCredentialArgsDict(TypedDict): + password: pulumi.Input[_builtins.str] + username: pulumi.Input[_builtins.str] + +@pulumi.input_type +class AwsMssqlCredentialArgs: + def __init__(__self__, *, + password: pulumi.Input[_builtins.str], + username: pulumi.Input[_builtins.str]): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "password", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "username", value) + + +class AwsMysqlCredentialArgsDict(TypedDict): + password: pulumi.Input[_builtins.str] + username: pulumi.Input[_builtins.str] + +@pulumi.input_type +class AwsMysqlCredentialArgs: + def __init__(__self__, *, + password: pulumi.Input[_builtins.str], + username: pulumi.Input[_builtins.str]): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "password", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "username", value) + + +class AwsPostgresCredentialArgsDict(TypedDict): + password: pulumi.Input[_builtins.str] + username: pulumi.Input[_builtins.str] + +@pulumi.input_type +class AwsPostgresCredentialArgs: + def __init__(__self__, *, + password: pulumi.Input[_builtins.str], + username: pulumi.Input[_builtins.str]): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "password", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "username", value) + + +class CloudflareTokensCredentialArgsDict(TypedDict): + value: pulumi.Input[_builtins.str] + +@pulumi.input_type +class CloudflareTokensCredentialArgs: + def __init__(__self__, *, + value: pulumi.Input[_builtins.str]): + pulumi.set(__self__, "value", value) + + @_builtins.property + @pulumi.getter + def value(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "value", value) + + +class GcpCloudsqlCredentialArgsDict(TypedDict): + password: pulumi.Input[_builtins.str] + username: pulumi.Input[_builtins.str] + user_host_name: NotRequired[pulumi.Input[Optional[_builtins.str]]] + +@pulumi.input_type +class GcpCloudsqlCredentialArgs: + def __init__(__self__, *, + password: pulumi.Input[_builtins.str], + username: pulumi.Input[_builtins.str], + user_host_name: pulumi.Input[Optional[_builtins.str]] = None): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + if user_host_name is not None: + pulumi.set(__self__, "user_host_name", user_host_name) + + @_builtins.property + @pulumi.getter + def password(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "password", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "username", value) + + @_builtins.property + @pulumi.getter(name="userHostName") + def user_host_name(self) -> pulumi.Input[Optional[_builtins.str]]: + return pulumi.get(self, "user_host_name") + + @user_host_name.setter + def user_host_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "user_host_name", value) + + +class MongodbAtlasCredentialArgsDict(TypedDict): + password: pulumi.Input[_builtins.str] + username: pulumi.Input[_builtins.str] + +@pulumi.input_type +class MongodbAtlasCredentialArgs: + def __init__(__self__, *, + password: pulumi.Input[_builtins.str], + username: pulumi.Input[_builtins.str]): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "password") + + @password.setter + def password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "password", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[_builtins.str]: + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "username", value) + + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/aws_iam_user_keys.py b/sdk/python/pulumi_doppler/rotatedsecret/aws_iam_user_keys.py new file mode 100644 index 0000000..e5d059f --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/aws_iam_user_keys.py @@ -0,0 +1,394 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsIamUserKeysArgs', 'AwsIamUserKeys'] + +@pulumi.input_type +class AwsIamUserKeysArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int], + username: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a AwsIamUserKeys resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] username: The IAM username (excluding ARN and scope prefix) + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[_builtins.str]: + """ + The IAM username (excluding ARN and scope prefix) + """ + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "username", value) + + +@pulumi.input_type +class _AwsIamUserKeysState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + username: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsIamUserKeys resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] username: The IAM username (excluding ARN and scope prefix) + """ + if config is not None: + pulumi.set(__self__, "config", config) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + if username is not None: + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The IAM username (excluding ARN and scope prefix) + """ + return pulumi.get(self, "username") + + @username.setter + def username(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "username", value) + + +@pulumi.type_token("doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys") +class AwsIamUserKeys(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + username: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Create a AwsIamUserKeys resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] username: The IAM username (excluding ARN and scope prefix) + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsIamUserKeysArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a AwsIamUserKeys resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param AwsIamUserKeysArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsIamUserKeysArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + username: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsIamUserKeysArgs.__new__(AwsIamUserKeysArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + if username is None and not opts.urn: + raise TypeError("Missing required property 'username'") + __props__.__dict__["username"] = username + super(AwsIamUserKeys, __self__).__init__( + 'doppler:rotatedSecret/awsIamUserKeys:AwsIamUserKeys', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + username: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsIamUserKeys': + """ + Get an existing AwsIamUserKeys resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] username: The IAM username (excluding ARN and scope prefix) + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsIamUserKeysState.__new__(_AwsIamUserKeysState) + + __props__.__dict__["config"] = config + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + __props__.__dict__["username"] = username + return AwsIamUserKeys(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @_builtins.property + @pulumi.getter + def username(self) -> pulumi.Output[_builtins.str]: + """ + The IAM username (excluding ARN and scope prefix) + """ + return pulumi.get(self, "username") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/aws_mssql.py b/sdk/python/pulumi_doppler/rotatedsecret/aws_mssql.py new file mode 100644 index 0000000..d23e51c --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/aws_mssql.py @@ -0,0 +1,540 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['AwsMssqlArgs', 'AwsMssql'] + +@pulumi.input_type +class AwsMssqlArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + credentials: pulumi.Input[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]], + database: pulumi.Input[_builtins.str], + host: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + port: pulumi.Input[_builtins.int], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a AwsMssql resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "credentials", credentials) + pulumi.set(__self__, "database", database) + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Input[_builtins.str]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @database.setter + def database(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "database", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[_builtins.str]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Input[_builtins.int]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @port.setter + def port(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "port", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.input_type +class _AwsMssqlState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering AwsMssql resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if credentials is not None: + pulumi.set(__self__, "credentials", credentials) + if database is not None: + pulumi.set(__self__, "database", database) + if host is not None: + pulumi.set(__self__, "host", host) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if port is not None: + pulumi.set(__self__, "port", port) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['AwsMssqlCredentialArgs']]]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @database.setter + def database(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "database", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @port.setter + def port(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "port", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/awsMssql:AwsMssql") +class AwsMssql(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsMssqlCredentialArgs', 'AwsMssqlCredentialArgsDict', 'outputs.AwsMssqlCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a AwsMssql resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['AwsMssqlCredentialArgs', 'AwsMssqlCredentialArgsDict', 'outputs.AwsMssqlCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsMssqlArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a AwsMssql resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param AwsMssqlArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsMssqlArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsMssqlCredentialArgs', 'AwsMssqlCredentialArgsDict', 'outputs.AwsMssqlCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsMssqlArgs.__new__(AwsMssqlArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if credentials is None and not opts.urn: + raise TypeError("Missing required property 'credentials'") + __props__.__dict__["credentials"] = credentials + if database is None and not opts.urn: + raise TypeError("Missing required property 'database'") + __props__.__dict__["database"] = database + if host is None and not opts.urn: + raise TypeError("Missing required property 'host'") + __props__.__dict__["host"] = host + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if port is None and not opts.urn: + raise TypeError("Missing required property 'port'") + __props__.__dict__["port"] = port + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + super(AwsMssql, __self__).__init__( + 'doppler:rotatedSecret/awsMssql:AwsMssql', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsMssqlCredentialArgs', 'AwsMssqlCredentialArgsDict', 'outputs.AwsMssqlCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'AwsMssql': + """ + Get an existing AwsMssql resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['AwsMssqlCredentialArgs', 'AwsMssqlCredentialArgsDict', 'outputs.AwsMssqlCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsMssqlState.__new__(_AwsMssqlState) + + __props__.__dict__["config"] = config + __props__.__dict__["credentials"] = credentials + __props__.__dict__["database"] = database + __props__.__dict__["host"] = host + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["port"] = port + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return AwsMssql(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Output[Sequence['outputs.AwsMssqlCredential']]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Output[_builtins.str]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Output[_builtins.str]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Output[_builtins.int]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/aws_mysql.py b/sdk/python/pulumi_doppler/rotatedsecret/aws_mysql.py new file mode 100644 index 0000000..35e2e52 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/aws_mysql.py @@ -0,0 +1,637 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['AwsMysqlArgs', 'AwsMysql'] + +@pulumi.input_type +class AwsMysqlArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + credentials: pulumi.Input[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]], + host: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + managing_user_password: pulumi.Input[_builtins.str], + managing_user_username: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + port: pulumi.Input[_builtins.int], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int], + database: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a AwsMysql resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] database: The DB database + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "credentials", credentials) + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "managing_user_password", managing_user_password) + pulumi.set(__self__, "managing_user_username", managing_user_username) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + if database is not None: + pulumi.set(__self__, "database", database) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[_builtins.str]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="managingUserPassword") + def managing_user_password(self) -> pulumi.Input[_builtins.str]: + """ + The managing user password + """ + return pulumi.get(self, "managing_user_password") + + @managing_user_password.setter + def managing_user_password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "managing_user_password", value) + + @_builtins.property + @pulumi.getter(name="managingUserUsername") + def managing_user_username(self) -> pulumi.Input[_builtins.str]: + """ + The managing user username + """ + return pulumi.get(self, "managing_user_username") + + @managing_user_username.setter + def managing_user_username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "managing_user_username", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Input[_builtins.int]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @port.setter + def port(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "port", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @database.setter + def database(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "database", value) + + +@pulumi.input_type +class _AwsMysqlState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering AwsMysql resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if credentials is not None: + pulumi.set(__self__, "credentials", credentials) + if database is not None: + pulumi.set(__self__, "database", database) + if host is not None: + pulumi.set(__self__, "host", host) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if managing_user_password is not None: + pulumi.set(__self__, "managing_user_password", managing_user_password) + if managing_user_username is not None: + pulumi.set(__self__, "managing_user_username", managing_user_username) + if name is not None: + pulumi.set(__self__, "name", name) + if port is not None: + pulumi.set(__self__, "port", port) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['AwsMysqlCredentialArgs']]]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @database.setter + def database(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "database", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="managingUserPassword") + def managing_user_password(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The managing user password + """ + return pulumi.get(self, "managing_user_password") + + @managing_user_password.setter + def managing_user_password(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "managing_user_password", value) + + @_builtins.property + @pulumi.getter(name="managingUserUsername") + def managing_user_username(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The managing user username + """ + return pulumi.get(self, "managing_user_username") + + @managing_user_username.setter + def managing_user_username(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "managing_user_username", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @port.setter + def port(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "port", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/awsMysql:AwsMysql") +class AwsMysql(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsMysqlCredentialArgs', 'AwsMysqlCredentialArgsDict', 'outputs.AwsMysqlCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a AwsMysql resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['AwsMysqlCredentialArgs', 'AwsMysqlCredentialArgsDict', 'outputs.AwsMysqlCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsMysqlArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a AwsMysql resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param AwsMysqlArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsMysqlArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsMysqlCredentialArgs', 'AwsMysqlCredentialArgsDict', 'outputs.AwsMysqlCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsMysqlArgs.__new__(AwsMysqlArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if credentials is None and not opts.urn: + raise TypeError("Missing required property 'credentials'") + __props__.__dict__["credentials"] = credentials + __props__.__dict__["database"] = database + if host is None and not opts.urn: + raise TypeError("Missing required property 'host'") + __props__.__dict__["host"] = host + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if managing_user_password is None and not opts.urn: + raise TypeError("Missing required property 'managing_user_password'") + __props__.__dict__["managing_user_password"] = None if managing_user_password is None else pulumi.Output.secret(managing_user_password) + if managing_user_username is None and not opts.urn: + raise TypeError("Missing required property 'managing_user_username'") + __props__.__dict__["managing_user_username"] = managing_user_username + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if port is None and not opts.urn: + raise TypeError("Missing required property 'port'") + __props__.__dict__["port"] = port + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["managingUserPassword"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(AwsMysql, __self__).__init__( + 'doppler:rotatedSecret/awsMysql:AwsMysql', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsMysqlCredentialArgs', 'AwsMysqlCredentialArgsDict', 'outputs.AwsMysqlCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'AwsMysql': + """ + Get an existing AwsMysql resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['AwsMysqlCredentialArgs', 'AwsMysqlCredentialArgsDict', 'outputs.AwsMysqlCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsMysqlState.__new__(_AwsMysqlState) + + __props__.__dict__["config"] = config + __props__.__dict__["credentials"] = credentials + __props__.__dict__["database"] = database + __props__.__dict__["host"] = host + __props__.__dict__["integration"] = integration + __props__.__dict__["managing_user_password"] = managing_user_password + __props__.__dict__["managing_user_username"] = managing_user_username + __props__.__dict__["name"] = name + __props__.__dict__["port"] = port + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return AwsMysql(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Output[Sequence['outputs.AwsMysqlCredential']]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Output[_builtins.str]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="managingUserPassword") + def managing_user_password(self) -> pulumi.Output[_builtins.str]: + """ + The managing user password + """ + return pulumi.get(self, "managing_user_password") + + @_builtins.property + @pulumi.getter(name="managingUserUsername") + def managing_user_username(self) -> pulumi.Output[_builtins.str]: + """ + The managing user username + """ + return pulumi.get(self, "managing_user_username") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Output[_builtins.int]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/aws_postgres.py b/sdk/python/pulumi_doppler/rotatedsecret/aws_postgres.py new file mode 100644 index 0000000..c2eb475 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/aws_postgres.py @@ -0,0 +1,685 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['AwsPostgresArgs', 'AwsPostgres'] + +@pulumi.input_type +class AwsPostgresArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + credentials: pulumi.Input[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]], + database: pulumi.Input[_builtins.str], + host: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + managing_user_password: pulumi.Input[_builtins.str], + managing_user_username: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + port: pulumi.Input[_builtins.int], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int], + ssl_ca: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a AwsPostgres resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] ssl_ca: An optional SSL CA for the AWS region the DB is in + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "credentials", credentials) + pulumi.set(__self__, "database", database) + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "managing_user_password", managing_user_password) + pulumi.set(__self__, "managing_user_username", managing_user_username) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + if ssl_ca is not None: + pulumi.set(__self__, "ssl_ca", ssl_ca) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Input[_builtins.str]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @database.setter + def database(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "database", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[_builtins.str]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="managingUserPassword") + def managing_user_password(self) -> pulumi.Input[_builtins.str]: + """ + The managing user password + """ + return pulumi.get(self, "managing_user_password") + + @managing_user_password.setter + def managing_user_password(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "managing_user_password", value) + + @_builtins.property + @pulumi.getter(name="managingUserUsername") + def managing_user_username(self) -> pulumi.Input[_builtins.str]: + """ + The managing user username + """ + return pulumi.get(self, "managing_user_username") + + @managing_user_username.setter + def managing_user_username(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "managing_user_username", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Input[_builtins.int]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @port.setter + def port(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "port", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter(name="sslCa") + def ssl_ca(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + An optional SSL CA for the AWS region the DB is in + """ + return pulumi.get(self, "ssl_ca") + + @ssl_ca.setter + def ssl_ca(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "ssl_ca", value) + + +@pulumi.input_type +class _AwsPostgresState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + ssl_ca: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsPostgres resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] ssl_ca: An optional SSL CA for the AWS region the DB is in + """ + if config is not None: + pulumi.set(__self__, "config", config) + if credentials is not None: + pulumi.set(__self__, "credentials", credentials) + if database is not None: + pulumi.set(__self__, "database", database) + if host is not None: + pulumi.set(__self__, "host", host) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if managing_user_password is not None: + pulumi.set(__self__, "managing_user_password", managing_user_password) + if managing_user_username is not None: + pulumi.set(__self__, "managing_user_username", managing_user_username) + if name is not None: + pulumi.set(__self__, "name", name) + if port is not None: + pulumi.set(__self__, "port", port) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + if ssl_ca is not None: + pulumi.set(__self__, "ssl_ca", ssl_ca) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['AwsPostgresCredentialArgs']]]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @database.setter + def database(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "database", value) + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @host.setter + def host(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "host", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="managingUserPassword") + def managing_user_password(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The managing user password + """ + return pulumi.get(self, "managing_user_password") + + @managing_user_password.setter + def managing_user_password(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "managing_user_password", value) + + @_builtins.property + @pulumi.getter(name="managingUserUsername") + def managing_user_username(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The managing user username + """ + return pulumi.get(self, "managing_user_username") + + @managing_user_username.setter + def managing_user_username(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "managing_user_username", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @port.setter + def port(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "port", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter(name="sslCa") + def ssl_ca(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + An optional SSL CA for the AWS region the DB is in + """ + return pulumi.get(self, "ssl_ca") + + @ssl_ca.setter + def ssl_ca(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "ssl_ca", value) + + +@pulumi.type_token("doppler:rotatedSecret/awsPostgres:AwsPostgres") +class AwsPostgres(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsPostgresCredentialArgs', 'AwsPostgresCredentialArgsDict', 'outputs.AwsPostgresCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + ssl_ca: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Create a AwsPostgres resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['AwsPostgresCredentialArgs', 'AwsPostgresCredentialArgsDict', 'outputs.AwsPostgresCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] ssl_ca: An optional SSL CA for the AWS region the DB is in + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsPostgresArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a AwsPostgres resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param AwsPostgresArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsPostgresArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsPostgresCredentialArgs', 'AwsPostgresCredentialArgsDict', 'outputs.AwsPostgresCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + ssl_ca: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsPostgresArgs.__new__(AwsPostgresArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if credentials is None and not opts.urn: + raise TypeError("Missing required property 'credentials'") + __props__.__dict__["credentials"] = credentials + if database is None and not opts.urn: + raise TypeError("Missing required property 'database'") + __props__.__dict__["database"] = database + if host is None and not opts.urn: + raise TypeError("Missing required property 'host'") + __props__.__dict__["host"] = host + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if managing_user_password is None and not opts.urn: + raise TypeError("Missing required property 'managing_user_password'") + __props__.__dict__["managing_user_password"] = None if managing_user_password is None else pulumi.Output.secret(managing_user_password) + if managing_user_username is None and not opts.urn: + raise TypeError("Missing required property 'managing_user_username'") + __props__.__dict__["managing_user_username"] = managing_user_username + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if port is None and not opts.urn: + raise TypeError("Missing required property 'port'") + __props__.__dict__["port"] = port + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + __props__.__dict__["ssl_ca"] = ssl_ca + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["managingUserPassword"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(AwsPostgres, __self__).__init__( + 'doppler:rotatedSecret/awsPostgres:AwsPostgres', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['AwsPostgresCredentialArgs', 'AwsPostgresCredentialArgsDict', 'outputs.AwsPostgresCredential']]]]] = None, + database: pulumi.Input[Optional[_builtins.str]] = None, + host: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_password: pulumi.Input[Optional[_builtins.str]] = None, + managing_user_username: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + port: pulumi.Input[Optional[_builtins.int]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + ssl_ca: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsPostgres': + """ + Get an existing AwsPostgres resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['AwsPostgresCredentialArgs', 'AwsPostgresCredentialArgsDict', 'outputs.AwsPostgresCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database: The DB database + :param pulumi.Input[_builtins.str] host: The DB Host + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] managing_user_password: The managing user password + :param pulumi.Input[_builtins.str] managing_user_username: The managing user username + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.int] port: The DB Port + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] ssl_ca: An optional SSL CA for the AWS region the DB is in + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsPostgresState.__new__(_AwsPostgresState) + + __props__.__dict__["config"] = config + __props__.__dict__["credentials"] = credentials + __props__.__dict__["database"] = database + __props__.__dict__["host"] = host + __props__.__dict__["integration"] = integration + __props__.__dict__["managing_user_password"] = managing_user_password + __props__.__dict__["managing_user_username"] = managing_user_username + __props__.__dict__["name"] = name + __props__.__dict__["port"] = port + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + __props__.__dict__["ssl_ca"] = ssl_ca + return AwsPostgres(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Output[Sequence['outputs.AwsPostgresCredential']]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @_builtins.property + @pulumi.getter + def database(self) -> pulumi.Output[_builtins.str]: + """ + The DB database + """ + return pulumi.get(self, "database") + + @_builtins.property + @pulumi.getter + def host(self) -> pulumi.Output[_builtins.str]: + """ + The DB Host + """ + return pulumi.get(self, "host") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="managingUserPassword") + def managing_user_password(self) -> pulumi.Output[_builtins.str]: + """ + The managing user password + """ + return pulumi.get(self, "managing_user_password") + + @_builtins.property + @pulumi.getter(name="managingUserUsername") + def managing_user_username(self) -> pulumi.Output[_builtins.str]: + """ + The managing user username + """ + return pulumi.get(self, "managing_user_username") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def port(self) -> pulumi.Output[_builtins.int]: + """ + The DB Port + """ + return pulumi.get(self, "port") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @_builtins.property + @pulumi.getter(name="sslCa") + def ssl_ca(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + An optional SSL CA for the AWS region the DB is in + """ + return pulumi.get(self, "ssl_ca") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/cloudflare_tokens.py b/sdk/python/pulumi_doppler/rotatedsecret/cloudflare_tokens.py new file mode 100644 index 0000000..8bd8925 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/cloudflare_tokens.py @@ -0,0 +1,396 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['CloudflareTokensArgs', 'CloudflareTokens'] + +@pulumi.input_type +class CloudflareTokensArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + credentials: pulumi.Input[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a CloudflareTokens resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "credentials", credentials) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.input_type +class _CloudflareTokensState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering CloudflareTokens resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if credentials is not None: + pulumi.set(__self__, "credentials", credentials) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['CloudflareTokensCredentialArgs']]]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/cloudflareTokens:CloudflareTokens") +class CloudflareTokens(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['CloudflareTokensCredentialArgs', 'CloudflareTokensCredentialArgsDict', 'outputs.CloudflareTokensCredential']]]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a CloudflareTokens resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['CloudflareTokensCredentialArgs', 'CloudflareTokensCredentialArgsDict', 'outputs.CloudflareTokensCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: CloudflareTokensArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a CloudflareTokens resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param CloudflareTokensArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(CloudflareTokensArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['CloudflareTokensCredentialArgs', 'CloudflareTokensCredentialArgsDict', 'outputs.CloudflareTokensCredential']]]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = CloudflareTokensArgs.__new__(CloudflareTokensArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if credentials is None and not opts.urn: + raise TypeError("Missing required property 'credentials'") + __props__.__dict__["credentials"] = credentials + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + super(CloudflareTokens, __self__).__init__( + 'doppler:rotatedSecret/cloudflareTokens:CloudflareTokens', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['CloudflareTokensCredentialArgs', 'CloudflareTokensCredentialArgsDict', 'outputs.CloudflareTokensCredential']]]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'CloudflareTokens': + """ + Get an existing CloudflareTokens resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['CloudflareTokensCredentialArgs', 'CloudflareTokensCredentialArgsDict', 'outputs.CloudflareTokensCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _CloudflareTokensState.__new__(_CloudflareTokensState) + + __props__.__dict__["config"] = config + __props__.__dict__["credentials"] = credentials + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return CloudflareTokens(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Output[Sequence['outputs.CloudflareTokensCredential']]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/gcp_cloudsql.py b/sdk/python/pulumi_doppler/rotatedsecret/gcp_cloudsql.py new file mode 100644 index 0000000..dc470fd --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/gcp_cloudsql.py @@ -0,0 +1,444 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['GcpCloudsqlArgs', 'GcpCloudsql'] + +@pulumi.input_type +class GcpCloudsqlArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + credentials: pulumi.Input[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]], + database_instance: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a GcpCloudsql resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database_instance: Cloud SQL database instance name + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "credentials", credentials) + pulumi.set(__self__, "database_instance", database_instance) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter(name="databaseInstance") + def database_instance(self) -> pulumi.Input[_builtins.str]: + """ + Cloud SQL database instance name + """ + return pulumi.get(self, "database_instance") + + @database_instance.setter + def database_instance(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "database_instance", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.input_type +class _GcpCloudsqlState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]]] = None, + database_instance: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering GcpCloudsql resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database_instance: Cloud SQL database instance name + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if credentials is not None: + pulumi.set(__self__, "credentials", credentials) + if database_instance is not None: + pulumi.set(__self__, "database_instance", database_instance) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['GcpCloudsqlCredentialArgs']]]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter(name="databaseInstance") + def database_instance(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Cloud SQL database instance name + """ + return pulumi.get(self, "database_instance") + + @database_instance.setter + def database_instance(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "database_instance", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/gcpCloudsql:GcpCloudsql") +class GcpCloudsql(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['GcpCloudsqlCredentialArgs', 'GcpCloudsqlCredentialArgsDict', 'outputs.GcpCloudsqlCredential']]]]] = None, + database_instance: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a GcpCloudsql resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['GcpCloudsqlCredentialArgs', 'GcpCloudsqlCredentialArgsDict', 'outputs.GcpCloudsqlCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database_instance: Cloud SQL database instance name + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpCloudsqlArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a GcpCloudsql resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param GcpCloudsqlArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpCloudsqlArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['GcpCloudsqlCredentialArgs', 'GcpCloudsqlCredentialArgsDict', 'outputs.GcpCloudsqlCredential']]]]] = None, + database_instance: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpCloudsqlArgs.__new__(GcpCloudsqlArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if credentials is None and not opts.urn: + raise TypeError("Missing required property 'credentials'") + __props__.__dict__["credentials"] = credentials + if database_instance is None and not opts.urn: + raise TypeError("Missing required property 'database_instance'") + __props__.__dict__["database_instance"] = database_instance + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + super(GcpCloudsql, __self__).__init__( + 'doppler:rotatedSecret/gcpCloudsql:GcpCloudsql', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['GcpCloudsqlCredentialArgs', 'GcpCloudsqlCredentialArgsDict', 'outputs.GcpCloudsqlCredential']]]]] = None, + database_instance: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'GcpCloudsql': + """ + Get an existing GcpCloudsql resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['GcpCloudsqlCredentialArgs', 'GcpCloudsqlCredentialArgsDict', 'outputs.GcpCloudsqlCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] database_instance: Cloud SQL database instance name + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpCloudsqlState.__new__(_GcpCloudsqlState) + + __props__.__dict__["config"] = config + __props__.__dict__["credentials"] = credentials + __props__.__dict__["database_instance"] = database_instance + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return GcpCloudsql(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Output[Sequence['outputs.GcpCloudsqlCredential']]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @_builtins.property + @pulumi.getter(name="databaseInstance") + def database_instance(self) -> pulumi.Output[_builtins.str]: + """ + Cloud SQL database instance name + """ + return pulumi.get(self, "database_instance") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/gcp_service_account_keys.py b/sdk/python/pulumi_doppler/rotatedsecret/gcp_service_account_keys.py new file mode 100644 index 0000000..6641392 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/gcp_service_account_keys.py @@ -0,0 +1,394 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpServiceAccountKeysArgs', 'GcpServiceAccountKeys'] + +@pulumi.input_type +class GcpServiceAccountKeysArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int], + service_account: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a GcpServiceAccountKeys resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] service_account: The Service Account Email whose keys should be rotated + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + pulumi.set(__self__, "service_account", service_account) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter(name="serviceAccount") + def service_account(self) -> pulumi.Input[_builtins.str]: + """ + The Service Account Email whose keys should be rotated + """ + return pulumi.get(self, "service_account") + + @service_account.setter + def service_account(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "service_account", value) + + +@pulumi.input_type +class _GcpServiceAccountKeysState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + service_account: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpServiceAccountKeys resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] service_account: The Service Account Email whose keys should be rotated + """ + if config is not None: + pulumi.set(__self__, "config", config) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + if service_account is not None: + pulumi.set(__self__, "service_account", service_account) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter(name="serviceAccount") + def service_account(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Service Account Email whose keys should be rotated + """ + return pulumi.get(self, "service_account") + + @service_account.setter + def service_account(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "service_account", value) + + +@pulumi.type_token("doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys") +class GcpServiceAccountKeys(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + service_account: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Create a GcpServiceAccountKeys resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] service_account: The Service Account Email whose keys should be rotated + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpServiceAccountKeysArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a GcpServiceAccountKeys resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param GcpServiceAccountKeysArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpServiceAccountKeysArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + service_account: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpServiceAccountKeysArgs.__new__(GcpServiceAccountKeysArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + if service_account is None and not opts.urn: + raise TypeError("Missing required property 'service_account'") + __props__.__dict__["service_account"] = service_account + super(GcpServiceAccountKeys, __self__).__init__( + 'doppler:rotatedSecret/gcpServiceAccountKeys:GcpServiceAccountKeys', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + service_account: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpServiceAccountKeys': + """ + Get an existing GcpServiceAccountKeys resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[_builtins.str] service_account: The Service Account Email whose keys should be rotated + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpServiceAccountKeysState.__new__(_GcpServiceAccountKeysState) + + __props__.__dict__["config"] = config + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + __props__.__dict__["service_account"] = service_account + return GcpServiceAccountKeys(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @_builtins.property + @pulumi.getter(name="serviceAccount") + def service_account(self) -> pulumi.Output[_builtins.str]: + """ + The Service Account Email whose keys should be rotated + """ + return pulumi.get(self, "service_account") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/mongodb_atlas.py b/sdk/python/pulumi_doppler/rotatedsecret/mongodb_atlas.py new file mode 100644 index 0000000..ef25e43 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/mongodb_atlas.py @@ -0,0 +1,444 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['MongodbAtlasArgs', 'MongodbAtlas'] + +@pulumi.input_type +class MongodbAtlasArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + credentials: pulumi.Input[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + project_id: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a MongodbAtlas resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The Mongo DB Atlas Project ID + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "credentials", credentials) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "project_id", project_id) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="projectId") + def project_id(self) -> pulumi.Input[_builtins.str]: + """ + The Mongo DB Atlas Project ID + """ + return pulumi.get(self, "project_id") + + @project_id.setter + def project_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project_id", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.input_type +class _MongodbAtlasState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering MongodbAtlas resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The Mongo DB Atlas Project ID + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if credentials is not None: + pulumi.set(__self__, "credentials", credentials) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if project_id is not None: + pulumi.set(__self__, "project_id", project_id) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Input[Optional[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]]]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @credentials.setter + def credentials(self, value: pulumi.Input[Optional[Sequence[pulumi.Input['MongodbAtlasCredentialArgs']]]]): + pulumi.set(self, "credentials", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="projectId") + def project_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Mongo DB Atlas Project ID + """ + return pulumi.get(self, "project_id") + + @project_id.setter + def project_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project_id", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/mongodbAtlas:MongodbAtlas") +class MongodbAtlas(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['MongodbAtlasCredentialArgs', 'MongodbAtlasCredentialArgsDict', 'outputs.MongodbAtlasCredential']]]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a MongodbAtlas resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['MongodbAtlasCredentialArgs', 'MongodbAtlasCredentialArgsDict', 'outputs.MongodbAtlasCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The Mongo DB Atlas Project ID + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: MongodbAtlasArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a MongodbAtlas resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param MongodbAtlasArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(MongodbAtlasArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['MongodbAtlasCredentialArgs', 'MongodbAtlasCredentialArgsDict', 'outputs.MongodbAtlasCredential']]]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = MongodbAtlasArgs.__new__(MongodbAtlasArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if credentials is None and not opts.urn: + raise TypeError("Missing required property 'credentials'") + __props__.__dict__["credentials"] = credentials + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if project_id is None and not opts.urn: + raise TypeError("Missing required property 'project_id'") + __props__.__dict__["project_id"] = project_id + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + super(MongodbAtlas, __self__).__init__( + 'doppler:rotatedSecret/mongodbAtlas:MongodbAtlas', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + credentials: pulumi.Input[Optional[Sequence[pulumi.Input[Union['MongodbAtlasCredentialArgs', 'MongodbAtlasCredentialArgsDict', 'outputs.MongodbAtlasCredential']]]]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'MongodbAtlas': + """ + Get an existing MongodbAtlas resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[Sequence[pulumi.Input[Union['MongodbAtlasCredentialArgs', 'MongodbAtlasCredentialArgsDict', 'outputs.MongodbAtlasCredential']]]] credentials: Rotated secret credentials + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The Mongo DB Atlas Project ID + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _MongodbAtlasState.__new__(_MongodbAtlasState) + + __props__.__dict__["config"] = config + __props__.__dict__["credentials"] = credentials + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["project_id"] = project_id + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return MongodbAtlas(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def credentials(self) -> pulumi.Output[Sequence['outputs.MongodbAtlasCredential']]: + """ + Rotated secret credentials + """ + return pulumi.get(self, "credentials") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="projectId") + def project_id(self) -> pulumi.Output[_builtins.str]: + """ + The Mongo DB Atlas Project ID + """ + return pulumi.get(self, "project_id") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/openai.py b/sdk/python/pulumi_doppler/rotatedsecret/openai.py new file mode 100644 index 0000000..2294ccc --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/openai.py @@ -0,0 +1,394 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['OpenaiArgs', 'Openai'] + +@pulumi.input_type +class OpenaiArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + project_id: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a Openai resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The OpenAI project ID to create service accounts in + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "project_id", project_id) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="projectId") + def project_id(self) -> pulumi.Input[_builtins.str]: + """ + The OpenAI project ID to create service accounts in + """ + return pulumi.get(self, "project_id") + + @project_id.setter + def project_id(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project_id", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.input_type +class _OpenaiState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering Openai resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The OpenAI project ID to create service accounts in + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if project_id is not None: + pulumi.set(__self__, "project_id", project_id) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="projectId") + def project_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The OpenAI project ID to create service accounts in + """ + return pulumi.get(self, "project_id") + + @project_id.setter + def project_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project_id", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/openai:Openai") +class Openai(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a Openai resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The OpenAI project ID to create service accounts in + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: OpenaiArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a Openai resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param OpenaiArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(OpenaiArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = OpenaiArgs.__new__(OpenaiArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if project_id is None and not opts.urn: + raise TypeError("Missing required property 'project_id'") + __props__.__dict__["project_id"] = project_id + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + super(Openai, __self__).__init__( + 'doppler:rotatedSecret/openai:Openai', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + project_id: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'Openai': + """ + Get an existing Openai resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] project_id: The OpenAI project ID to create service accounts in + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _OpenaiState.__new__(_OpenaiState) + + __props__.__dict__["config"] = config + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["project_id"] = project_id + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return Openai(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="projectId") + def project_id(self) -> pulumi.Output[_builtins.str]: + """ + The OpenAI project ID to create service accounts in + """ + return pulumi.get(self, "project_id") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/outputs.py b/sdk/python/pulumi_doppler/rotatedsecret/outputs.py new file mode 100644 index 0000000..4253f95 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/outputs.py @@ -0,0 +1,157 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = [ + 'AwsMssqlCredential', + 'AwsMysqlCredential', + 'AwsPostgresCredential', + 'CloudflareTokensCredential', + 'GcpCloudsqlCredential', + 'MongodbAtlasCredential', +] + +@pulumi.output_type +class AwsMssqlCredential(dict): + def __init__(__self__, *, + password: _builtins.str, + username: _builtins.str): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> _builtins.str: + return pulumi.get(self, "password") + + @_builtins.property + @pulumi.getter + def username(self) -> _builtins.str: + return pulumi.get(self, "username") + + +@pulumi.output_type +class AwsMysqlCredential(dict): + def __init__(__self__, *, + password: _builtins.str, + username: _builtins.str): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> _builtins.str: + return pulumi.get(self, "password") + + @_builtins.property + @pulumi.getter + def username(self) -> _builtins.str: + return pulumi.get(self, "username") + + +@pulumi.output_type +class AwsPostgresCredential(dict): + def __init__(__self__, *, + password: _builtins.str, + username: _builtins.str): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> _builtins.str: + return pulumi.get(self, "password") + + @_builtins.property + @pulumi.getter + def username(self) -> _builtins.str: + return pulumi.get(self, "username") + + +@pulumi.output_type +class CloudflareTokensCredential(dict): + def __init__(__self__, *, + value: _builtins.str): + pulumi.set(__self__, "value", value) + + @_builtins.property + @pulumi.getter + def value(self) -> _builtins.str: + return pulumi.get(self, "value") + + +@pulumi.output_type +class GcpCloudsqlCredential(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "userHostName": + suggest = "user_host_name" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in GcpCloudsqlCredential. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + GcpCloudsqlCredential.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + GcpCloudsqlCredential.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + password: _builtins.str, + username: _builtins.str, + user_host_name: Optional[_builtins.str] = None): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + if user_host_name is not None: + pulumi.set(__self__, "user_host_name", user_host_name) + + @_builtins.property + @pulumi.getter + def password(self) -> _builtins.str: + return pulumi.get(self, "password") + + @_builtins.property + @pulumi.getter + def username(self) -> _builtins.str: + return pulumi.get(self, "username") + + @_builtins.property + @pulumi.getter(name="userHostName") + def user_host_name(self) -> Optional[_builtins.str]: + return pulumi.get(self, "user_host_name") + + +@pulumi.output_type +class MongodbAtlasCredential(dict): + def __init__(__self__, *, + password: _builtins.str, + username: _builtins.str): + pulumi.set(__self__, "password", password) + pulumi.set(__self__, "username", username) + + @_builtins.property + @pulumi.getter + def password(self) -> _builtins.str: + return pulumi.get(self, "password") + + @_builtins.property + @pulumi.getter + def username(self) -> _builtins.str: + return pulumi.get(self, "username") + + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/sendgrid.py b/sdk/python/pulumi_doppler/rotatedsecret/sendgrid.py new file mode 100644 index 0000000..95987f0 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/sendgrid.py @@ -0,0 +1,394 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['SendgridArgs', 'Sendgrid'] + +@pulumi.input_type +class SendgridArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int], + scopes: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + """ + The set of arguments for constructing a Sendgrid resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scopes: SendGrid scopes + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + pulumi.set(__self__, "scopes", scopes) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter + def scopes(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: + """ + SendGrid scopes + """ + return pulumi.get(self, "scopes") + + @scopes.setter + def scopes(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + pulumi.set(self, "scopes", value) + + +@pulumi.input_type +class _SendgridState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + scopes: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): + """ + Input properties used for looking up and filtering Sendgrid resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scopes: SendGrid scopes + """ + if config is not None: + pulumi.set(__self__, "config", config) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + if scopes is not None: + pulumi.set(__self__, "scopes", scopes) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + @_builtins.property + @pulumi.getter + def scopes(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + SendGrid scopes + """ + return pulumi.get(self, "scopes") + + @scopes.setter + def scopes(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "scopes", value) + + +@pulumi.type_token("doppler:rotatedSecret/sendgrid:Sendgrid") +class Sendgrid(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + scopes: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + __props__=None): + """ + Create a Sendgrid resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scopes: SendGrid scopes + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SendgridArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a Sendgrid resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param SendgridArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SendgridArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + scopes: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = SendgridArgs.__new__(SendgridArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + if scopes is None and not opts.urn: + raise TypeError("Missing required property 'scopes'") + __props__.__dict__["scopes"] = scopes + super(Sendgrid, __self__).__init__( + 'doppler:rotatedSecret/sendgrid:Sendgrid', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + scopes: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'Sendgrid': + """ + Get an existing Sendgrid resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] scopes: SendGrid scopes + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _SendgridState.__new__(_SendgridState) + + __props__.__dict__["config"] = config + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + __props__.__dict__["scopes"] = scopes + return Sendgrid(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @_builtins.property + @pulumi.getter + def scopes(self) -> pulumi.Output[Sequence[_builtins.str]]: + """ + SendGrid scopes + """ + return pulumi.get(self, "scopes") + diff --git a/sdk/python/pulumi_doppler/rotatedsecret/twilio.py b/sdk/python/pulumi_doppler/rotatedsecret/twilio.py new file mode 100644 index 0000000..1065967 --- /dev/null +++ b/sdk/python/pulumi_doppler/rotatedsecret/twilio.py @@ -0,0 +1,346 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['TwilioArgs', 'Twilio'] + +@pulumi.input_type +class TwilioArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + rotation_period_sec: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a Twilio resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.input_type +class _TwilioState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering Twilio resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + if config is not None: + pulumi.set(__self__, "config", config) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if rotation_period_sec is not None: + pulumi.set(__self__, "rotation_period_sec", rotation_period_sec) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + + @rotation_period_sec.setter + def rotation_period_sec(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "rotation_period_sec", value) + + +@pulumi.type_token("doppler:rotatedSecret/twilio:Twilio") +class Twilio(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Create a Twilio resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TwilioArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a Twilio resource with the given unique name, props, and options. + + :param str resource_name: The name of the resource. + :param TwilioArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TwilioArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = TwilioArgs.__new__(TwilioArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if rotation_period_sec is None and not opts.urn: + raise TypeError("Missing required property 'rotation_period_sec'") + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + super(Twilio, __self__).__init__( + 'doppler:rotatedSecret/twilio:Twilio', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + rotation_period_sec: pulumi.Input[Optional[_builtins.int]] = None) -> 'Twilio': + """ + Get an existing Twilio resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this rotated secret + :param pulumi.Input[_builtins.str] name: The name of the rotated secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.int] rotation_period_sec: How frequently to rotate the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _TwilioState.__new__(_TwilioState) + + __props__.__dict__["config"] = config + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["rotation_period_sec"] = rotation_period_sec + return Twilio(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this rotated secret + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the rotated secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="rotationPeriodSec") + def rotation_period_sec(self) -> pulumi.Output[_builtins.int]: + """ + How frequently to rotate the secret + """ + return pulumi.get(self, "rotation_period_sec") + diff --git a/sdk/python/pulumi_doppler/secret.py b/sdk/python/pulumi_doppler/secret.py new file mode 100644 index 0000000..94b42b8 --- /dev/null +++ b/sdk/python/pulumi_doppler/secret.py @@ -0,0 +1,472 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['SecretArgs', 'Secret'] + +@pulumi.input_type +class SecretArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + value: pulumi.Input[_builtins.str], + value_type: pulumi.Input[Optional[_builtins.str]] = None, + visibility: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a Secret resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] name: The name of the Doppler secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] value: The raw secret value + :param pulumi.Input[_builtins.str] value_type: The value type of the secret + :param pulumi.Input[_builtins.str] visibility: The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "value", value) + if value_type is not None: + pulumi.set(__self__, "value_type", value_type) + if visibility is not None: + pulumi.set(__self__, "visibility", visibility) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def value(self) -> pulumi.Input[_builtins.str]: + """ + The raw secret value + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "value", value) + + @_builtins.property + @pulumi.getter(name="valueType") + def value_type(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The value type of the secret + """ + return pulumi.get(self, "value_type") + + @value_type.setter + def value_type(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "value_type", value) + + @_builtins.property + @pulumi.getter + def visibility(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + return pulumi.get(self, "visibility") + + @visibility.setter + def visibility(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "visibility", value) + + +@pulumi.input_type +class _SecretState: + def __init__(__self__, *, + computed: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + value: pulumi.Input[Optional[_builtins.str]] = None, + value_type: pulumi.Input[Optional[_builtins.str]] = None, + visibility: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Secret resources. + + :param pulumi.Input[_builtins.str] computed: The computed secret value, after resolving secret references + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] name: The name of the Doppler secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] value: The raw secret value + :param pulumi.Input[_builtins.str] value_type: The value type of the secret + :param pulumi.Input[_builtins.str] visibility: The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + if computed is not None: + pulumi.set(__self__, "computed", computed) + if config is not None: + pulumi.set(__self__, "config", config) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if value is not None: + pulumi.set(__self__, "value", value) + if value_type is not None: + pulumi.set(__self__, "value_type", value_type) + if visibility is not None: + pulumi.set(__self__, "visibility", visibility) + + @_builtins.property + @pulumi.getter + def computed(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The computed secret value, after resolving secret references + """ + return pulumi.get(self, "computed") + + @computed.setter + def computed(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "computed", value) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler secret + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def value(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The raw secret value + """ + return pulumi.get(self, "value") + + @value.setter + def value(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "value", value) + + @_builtins.property + @pulumi.getter(name="valueType") + def value_type(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The value type of the secret + """ + return pulumi.get(self, "value_type") + + @value_type.setter + def value_type(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "value_type", value) + + @_builtins.property + @pulumi.getter + def visibility(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + return pulumi.get(self, "visibility") + + @visibility.setter + def visibility(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "visibility", value) + + +@pulumi.type_token("doppler:index/secret:Secret") +class Secret(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + value: pulumi.Input[Optional[_builtins.str]] = None, + value_type: pulumi.Input[Optional[_builtins.str]] = None, + visibility: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a single Doppler secret in a config. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_random as random + + db_password = random.Password("db_password", + length=32, + special=True) + db_password_secret = doppler.Secret("db_password", + project="backend", + config="dev", + name="DB_PASSWORD", + value=db_password["result"]) + pulumi.export("resourceValue", pulumi.Output.unsecret(db_password_secret.value)) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/secret:Secret default .. + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] name: The name of the Doppler secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] value: The raw secret value + :param pulumi.Input[_builtins.str] value_type: The value type of the secret + :param pulumi.Input[_builtins.str] visibility: The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SecretArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a single Doppler secret in a config. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_random as random + + db_password = random.Password("db_password", + length=32, + special=True) + db_password_secret = doppler.Secret("db_password", + project="backend", + config="dev", + name="DB_PASSWORD", + value=db_password["result"]) + pulumi.export("resourceValue", pulumi.Output.unsecret(db_password_secret.value)) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/secret:Secret default .. + ``` + + + :param str resource_name: The name of the resource. + :param SecretArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SecretArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + value: pulumi.Input[Optional[_builtins.str]] = None, + value_type: pulumi.Input[Optional[_builtins.str]] = None, + visibility: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = SecretArgs.__new__(SecretArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if value is None and not opts.urn: + raise TypeError("Missing required property 'value'") + __props__.__dict__["value"] = None if value is None else pulumi.Output.secret(value) + __props__.__dict__["value_type"] = value_type + __props__.__dict__["visibility"] = visibility + __props__.__dict__["computed"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["computed", "value"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(Secret, __self__).__init__( + 'doppler:index/secret:Secret', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + computed: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + value: pulumi.Input[Optional[_builtins.str]] = None, + value_type: pulumi.Input[Optional[_builtins.str]] = None, + visibility: pulumi.Input[Optional[_builtins.str]] = None) -> 'Secret': + """ + Get an existing Secret resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] computed: The computed secret value, after resolving secret references + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] name: The name of the Doppler secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] value: The raw secret value + :param pulumi.Input[_builtins.str] value_type: The value type of the secret + :param pulumi.Input[_builtins.str] visibility: The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _SecretState.__new__(_SecretState) + + __props__.__dict__["computed"] = computed + __props__.__dict__["config"] = config + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["value"] = value + __props__.__dict__["value_type"] = value_type + __props__.__dict__["visibility"] = visibility + return Secret(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def computed(self) -> pulumi.Output[_builtins.str]: + """ + The computed secret value, after resolving secret references + """ + return pulumi.get(self, "computed") + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler secret + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def value(self) -> pulumi.Output[_builtins.str]: + """ + The raw secret value + """ + return pulumi.get(self, "value") + + @_builtins.property + @pulumi.getter(name="valueType") + def value_type(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The value type of the secret + """ + return pulumi.get(self, "value_type") + + @_builtins.property + @pulumi.getter + def visibility(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The visibility of the secret. One of `masked`, `unmasked`, or `restricted`. Defaults to `masked`. + """ + return pulumi.get(self, "visibility") + diff --git a/sdk/python/pulumi_doppler/secret_note.py b/sdk/python/pulumi_doppler/secret_note.py new file mode 100644 index 0000000..468ee64 --- /dev/null +++ b/sdk/python/pulumi_doppler/secret_note.py @@ -0,0 +1,280 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['SecretNoteArgs', 'SecretNote'] + +@pulumi.input_type +class SecretNoteArgs: + def __init__(__self__, *, + name: pulumi.Input[_builtins.str], + note: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str]): + """ + The set of arguments for constructing a SecretNote resource. + + :param pulumi.Input[_builtins.str] name: The name of the secret. Notes are scoped per project + secret name and apply across all configs. + :param pulumi.Input[_builtins.str] note: The note content to attach to the secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project that owns the secret + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "note", note) + pulumi.set(__self__, "project", project) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the secret. Notes are scoped per project + secret name and apply across all configs. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def note(self) -> pulumi.Input[_builtins.str]: + """ + The note content to attach to the secret + """ + return pulumi.get(self, "note") + + @note.setter + def note(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "note", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project that owns the secret + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + +@pulumi.input_type +class _SecretNoteState: + def __init__(__self__, *, + name: pulumi.Input[Optional[_builtins.str]] = None, + note: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering SecretNote resources. + + :param pulumi.Input[_builtins.str] name: The name of the secret. Notes are scoped per project + secret name and apply across all configs. + :param pulumi.Input[_builtins.str] note: The note content to attach to the secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project that owns the secret + """ + if name is not None: + pulumi.set(__self__, "name", name) + if note is not None: + pulumi.set(__self__, "note", note) + if project is not None: + pulumi.set(__self__, "project", project) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the secret. Notes are scoped per project + secret name and apply across all configs. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def note(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The note content to attach to the secret + """ + return pulumi.get(self, "note") + + @note.setter + def note(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "note", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project that owns the secret + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + +@pulumi.type_token("doppler:index/secretNote:SecretNote") +class SecretNote(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + note: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage the note attached to a Doppler secret. Notes are scoped per project and secret name, and they apply across all configs in the project. + + The note resource is independent of `Secret`. A note can be declared for a secret managed inside or outside Terraform, as long as the secret exists in at least one config in the project. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + stripe_key = doppler.SecretNote("stripe_key", + project="backend", + name="STRIPE_SECRET_KEY", + note="Owner: payments team. Rotate quarterly via Stripe dashboard.") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] name: The name of the secret. Notes are scoped per project + secret name and apply across all configs. + :param pulumi.Input[_builtins.str] note: The note content to attach to the secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project that owns the secret + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: SecretNoteArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage the note attached to a Doppler secret. Notes are scoped per project and secret name, and they apply across all configs in the project. + + The note resource is independent of `Secret`. A note can be declared for a secret managed inside or outside Terraform, as long as the secret exists in at least one config in the project. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + stripe_key = doppler.SecretNote("stripe_key", + project="backend", + name="STRIPE_SECRET_KEY", + note="Owner: payments team. Rotate quarterly via Stripe dashboard.") + ``` + + + :param str resource_name: The name of the resource. + :param SecretNoteArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(SecretNoteArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + note: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = SecretNoteArgs.__new__(SecretNoteArgs) + + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if note is None and not opts.urn: + raise TypeError("Missing required property 'note'") + __props__.__dict__["note"] = note + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + super(SecretNote, __self__).__init__( + 'doppler:index/secretNote:SecretNote', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + note: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None) -> 'SecretNote': + """ + Get an existing SecretNote resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] name: The name of the secret. Notes are scoped per project + secret name and apply across all configs. + :param pulumi.Input[_builtins.str] note: The note content to attach to the secret + :param pulumi.Input[_builtins.str] project: The name of the Doppler project that owns the secret + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _SecretNoteState.__new__(_SecretNoteState) + + __props__.__dict__["name"] = name + __props__.__dict__["note"] = note + __props__.__dict__["project"] = project + return SecretNote(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the secret. Notes are scoped per project + secret name and apply across all configs. + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def note(self) -> pulumi.Output[_builtins.str]: + """ + The note content to attach to the secret + """ + return pulumi.get(self, "note") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project that owns the secret + """ + return pulumi.get(self, "project") + diff --git a/sdk/python/pulumiverse_doppler/secretssync/__init__.py b/sdk/python/pulumi_doppler/secretssync/__init__.py similarity index 58% rename from sdk/python/pulumiverse_doppler/secretssync/__init__.py rename to sdk/python/pulumi_doppler/secretssync/__init__.py index f6f5253..eb8e7d3 100644 --- a/sdk/python/pulumiverse_doppler/secretssync/__init__.py +++ b/sdk/python/pulumi_doppler/secretssync/__init__.py @@ -1,13 +1,19 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import builtins as _builtins from .. import _utilities import typing # Export this package's modules as members: from .aws_parameter_store import * from .aws_secrets_manager import * +from .azure_vault import * from .circleci import * from .flyio import * +from .gcp_secret_manager import * from .github_actions import * +from .github_agents import * +from .github_codespaces import * +from .github_dependabot import * from .terraform_cloud import * diff --git a/sdk/python/pulumi_doppler/secretssync/aws_parameter_store.py b/sdk/python/pulumi_doppler/secretssync/aws_parameter_store.py new file mode 100644 index 0000000..dd8a253 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/aws_parameter_store.py @@ -0,0 +1,850 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsParameterStoreArgs', 'AwsParameterStore'] + +@pulumi.input_type +class AwsParameterStoreArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + path: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + region: pulumi.Input[_builtins.str], + advanced_parameter: pulumi.Input[Optional[_builtins.bool]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + secure_string: pulumi.Input[Optional[_builtins.bool]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a AwsParameterStore resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] path: The path to the parameters in AWS + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.bool] advanced_parameter: Whether or not the parameters are explicitly stored as an advanced parameter + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.bool] secure_string: Whether or not the parameters are stored as a secure string + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the parameters + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "path", path) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "region", region) + if advanced_parameter is not None: + pulumi.set(__self__, "advanced_parameter", advanced_parameter) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if name_transform is not None: + pulumi.set(__self__, "name_transform", name_transform) + if secure_string is not None: + pulumi.set(__self__, "secure_string", secure_string) + if sync_strategy is not None: + pulumi.set(__self__, "sync_strategy", sync_strategy) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if update_resource_tags is not None: + pulumi.set(__self__, "update_resource_tags", update_resource_tags) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def path(self) -> pulumi.Input[_builtins.str]: + """ + The path to the parameters in AWS + """ + return pulumi.get(self, "path") + + @path.setter + def path(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "path", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def region(self) -> pulumi.Input[_builtins.str]: + """ + The AWS region + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "region", value) + + @_builtins.property + @pulumi.getter(name="advancedParameter") + def advanced_parameter(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the parameters are explicitly stored as an advanced parameter + """ + return pulumi.get(self, "advanced_parameter") + + @advanced_parameter.setter + def advanced_parameter(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "advanced_parameter", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "kms_key_id", value) + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + """ + return pulumi.get(self, "name_transform") + + @name_transform.setter + def name_transform(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name_transform", value) + + @_builtins.property + @pulumi.getter(name="secureString") + def secure_string(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the parameters are stored as a secure string + """ + return pulumi.get(self, "secure_string") + + @secure_string.setter + def secure_string(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "secure_string", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter + def tags(self) -> pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]: + """ + AWS tags to attach to the parameters + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "tags", value) + + @_builtins.property + @pulumi.getter(name="updateResourceTags") + def update_resource_tags(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + return pulumi.get(self, "update_resource_tags") + + @update_resource_tags.setter + def update_resource_tags(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "update_resource_tags", value) + + +@pulumi.input_type +class _AwsParameterStoreState: + def __init__(__self__, *, + advanced_parameter: pulumi.Input[Optional[_builtins.bool]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + secure_string: pulumi.Input[Optional[_builtins.bool]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsParameterStore resources. + + :param pulumi.Input[_builtins.bool] advanced_parameter: Whether or not the parameters are explicitly stored as an advanced parameter + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path: The path to the parameters in AWS + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.bool] secure_string: Whether or not the parameters are stored as a secure string + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the parameters + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + if advanced_parameter is not None: + pulumi.set(__self__, "advanced_parameter", advanced_parameter) + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if name_transform is not None: + pulumi.set(__self__, "name_transform", name_transform) + if path is not None: + pulumi.set(__self__, "path", path) + if project is not None: + pulumi.set(__self__, "project", project) + if region is not None: + pulumi.set(__self__, "region", region) + if secure_string is not None: + pulumi.set(__self__, "secure_string", secure_string) + if sync_strategy is not None: + pulumi.set(__self__, "sync_strategy", sync_strategy) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if update_resource_tags is not None: + pulumi.set(__self__, "update_resource_tags", update_resource_tags) + + @_builtins.property + @pulumi.getter(name="advancedParameter") + def advanced_parameter(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the parameters are explicitly stored as an advanced parameter + """ + return pulumi.get(self, "advanced_parameter") + + @advanced_parameter.setter + def advanced_parameter(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "advanced_parameter", value) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "kms_key_id", value) + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + """ + return pulumi.get(self, "name_transform") + + @name_transform.setter + def name_transform(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name_transform", value) + + @_builtins.property + @pulumi.getter + def path(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The path to the parameters in AWS + """ + return pulumi.get(self, "path") + + @path.setter + def path(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "path", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def region(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The AWS region + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "region", value) + + @_builtins.property + @pulumi.getter(name="secureString") + def secure_string(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the parameters are stored as a secure string + """ + return pulumi.get(self, "secure_string") + + @secure_string.setter + def secure_string(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "secure_string", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter + def tags(self) -> pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]: + """ + AWS tags to attach to the parameters + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "tags", value) + + @_builtins.property + @pulumi.getter(name="updateResourceTags") + def update_resource_tags(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + return pulumi.get(self, "update_resource_tags") + + @update_resource_tags.setter + def update_resource_tags(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "update_resource_tags", value) + + +@pulumi.type_token("doppler:secretsSync/awsParameterStore:AwsParameterStore") +class AwsParameterStore(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + advanced_parameter: pulumi.Input[Optional[_builtins.bool]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + secure_string: pulumi.Input[Optional[_builtins.bool]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an AWS Parameter Store Doppler sync. + + ## Example Usage + + ```python + import pulumi + import json + import pulumi_aws as aws + import pulumi_doppler as doppler + + doppler_parameter_store = aws.IamRole("doppler_parameter_store", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + ssm:PutParameter, + ssm:LabelParameterVersion, + ssm:DeleteParameter, + ssm:RemoveTagsFromResource, + ssm:GetParameterHistory, + ssm:AddTagsToResource, + ssm:GetParametersByPath, + ssm:GetParameters, + ssm:GetParameter, + ssm:DeleteParameters, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_parameter_store, + assume_role_policy=json.dumps({ + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, + }, + Condition: { + StringEquals: { + sts:ExternalId: , + }, + }, + }], + })) + prod = doppler.integration.AwsParameterStore("prod", + name="Production", + assume_role_arn=doppler_parameter_store["arn"]) + backend_prod = doppler.secretssync.AwsParameterStore("backend_prod", + integration=prod.id, + project="backend", + config="prd", + region="us-east-1", + path="/backend/", + secure_string=True, + tags={ + "myTag": "enabled", + }, + delete_behavior="leave_in_target") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.bool] advanced_parameter: Whether or not the parameters are explicitly stored as an advanced parameter + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path: The path to the parameters in AWS + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.bool] secure_string: Whether or not the parameters are stored as a secure string + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the parameters + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsParameterStoreArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an AWS Parameter Store Doppler sync. + + ## Example Usage + + ```python + import pulumi + import json + import pulumi_aws as aws + import pulumi_doppler as doppler + + doppler_parameter_store = aws.IamRole("doppler_parameter_store", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + ssm:PutParameter, + ssm:LabelParameterVersion, + ssm:DeleteParameter, + ssm:RemoveTagsFromResource, + ssm:GetParameterHistory, + ssm:AddTagsToResource, + ssm:GetParametersByPath, + ssm:GetParameters, + ssm:GetParameter, + ssm:DeleteParameters, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_parameter_store, + assume_role_policy=json.dumps({ + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, + }, + Condition: { + StringEquals: { + sts:ExternalId: , + }, + }, + }], + })) + prod = doppler.integration.AwsParameterStore("prod", + name="Production", + assume_role_arn=doppler_parameter_store["arn"]) + backend_prod = doppler.secretssync.AwsParameterStore("backend_prod", + integration=prod.id, + project="backend", + config="prd", + region="us-east-1", + path="/backend/", + secure_string=True, + tags={ + "myTag": "enabled", + }, + delete_behavior="leave_in_target") + ``` + + + :param str resource_name: The name of the resource. + :param AwsParameterStoreArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsParameterStoreArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + advanced_parameter: pulumi.Input[Optional[_builtins.bool]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + secure_string: pulumi.Input[Optional[_builtins.bool]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsParameterStoreArgs.__new__(AwsParameterStoreArgs) + + __props__.__dict__["advanced_parameter"] = advanced_parameter + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["kms_key_id"] = kms_key_id + __props__.__dict__["name_transform"] = name_transform + if path is None and not opts.urn: + raise TypeError("Missing required property 'path'") + __props__.__dict__["path"] = path + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if region is None and not opts.urn: + raise TypeError("Missing required property 'region'") + __props__.__dict__["region"] = region + __props__.__dict__["secure_string"] = secure_string + __props__.__dict__["sync_strategy"] = sync_strategy + __props__.__dict__["tags"] = tags + __props__.__dict__["update_resource_tags"] = update_resource_tags + super(AwsParameterStore, __self__).__init__( + 'doppler:secretsSync/awsParameterStore:AwsParameterStore', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + advanced_parameter: pulumi.Input[Optional[_builtins.bool]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + secure_string: pulumi.Input[Optional[_builtins.bool]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsParameterStore': + """ + Get an existing AwsParameterStore resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.bool] advanced_parameter: Whether or not the parameters are explicitly stored as an advanced parameter + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path: The path to the parameters in AWS + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.bool] secure_string: Whether or not the parameters are stored as a secure string + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the parameters + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsParameterStoreState.__new__(_AwsParameterStoreState) + + __props__.__dict__["advanced_parameter"] = advanced_parameter + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["kms_key_id"] = kms_key_id + __props__.__dict__["name_transform"] = name_transform + __props__.__dict__["path"] = path + __props__.__dict__["project"] = project + __props__.__dict__["region"] = region + __props__.__dict__["secure_string"] = secure_string + __props__.__dict__["sync_strategy"] = sync_strategy + __props__.__dict__["tags"] = tags + __props__.__dict__["update_resource_tags"] = update_resource_tags + return AwsParameterStore(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="advancedParameter") + def advanced_parameter(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + Whether or not the parameters are explicitly stored as an advanced parameter + """ + return pulumi.get(self, "advanced_parameter") + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) + """ + return pulumi.get(self, "kms_key_id") + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + """ + return pulumi.get(self, "name_transform") + + @_builtins.property + @pulumi.getter + def path(self) -> pulumi.Output[_builtins.str]: + """ + The path to the parameters in AWS + """ + return pulumi.get(self, "path") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def region(self) -> pulumi.Output[_builtins.str]: + """ + The AWS region + """ + return pulumi.get(self, "region") + + @_builtins.property + @pulumi.getter(name="secureString") + def secure_string(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + Whether or not the parameters are stored as a secure string + """ + return pulumi.get(self, "secure_string") + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `multi-secret` if unspecified. + """ + return pulumi.get(self, "sync_strategy") + + @_builtins.property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]: + """ + AWS tags to attach to the parameters + """ + return pulumi.get(self, "tags") + + @_builtins.property + @pulumi.getter(name="updateResourceTags") + def update_resource_tags(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + return pulumi.get(self, "update_resource_tags") + diff --git a/sdk/python/pulumi_doppler/secretssync/aws_secrets_manager.py b/sdk/python/pulumi_doppler/secretssync/aws_secrets_manager.py new file mode 100644 index 0000000..fc192df --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/aws_secrets_manager.py @@ -0,0 +1,842 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AwsSecretsManagerArgs', 'AwsSecretsManager'] + +@pulumi.input_type +class AwsSecretsManagerArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + path: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + region: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path_behavior: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_metadata: pulumi.Input[Optional[_builtins.bool]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a AwsSecretsManager resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] path: The path to the secret in AWS + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path_behavior: The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the secrets + :param pulumi.Input[_builtins.bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "path", path) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "region", region) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if name_transform is not None: + pulumi.set(__self__, "name_transform", name_transform) + if path_behavior is not None: + pulumi.set(__self__, "path_behavior", path_behavior) + if sync_strategy is not None: + pulumi.set(__self__, "sync_strategy", sync_strategy) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if update_metadata is not None: + pulumi.set(__self__, "update_metadata", update_metadata) + if update_resource_tags is not None: + pulumi.set(__self__, "update_resource_tags", update_resource_tags) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def path(self) -> pulumi.Input[_builtins.str]: + """ + The path to the secret in AWS + """ + return pulumi.get(self, "path") + + @path.setter + def path(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "path", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def region(self) -> pulumi.Input[_builtins.str]: + """ + The AWS region + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "region", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "kms_key_id", value) + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + """ + return pulumi.get(self, "name_transform") + + @name_transform.setter + def name_transform(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name_transform", value) + + @_builtins.property + @pulumi.getter(name="pathBehavior") + def path_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + """ + return pulumi.get(self, "path_behavior") + + @path_behavior.setter + def path_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "path_behavior", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter + def tags(self) -> pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]: + """ + AWS tags to attach to the secrets + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "tags", value) + + @_builtins.property + @pulumi.getter(name="updateMetadata") + def update_metadata(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + """ + return pulumi.get(self, "update_metadata") + + @update_metadata.setter + def update_metadata(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "update_metadata", value) + + @_builtins.property + @pulumi.getter(name="updateResourceTags") + def update_resource_tags(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + return pulumi.get(self, "update_resource_tags") + + @update_resource_tags.setter + def update_resource_tags(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "update_resource_tags", value) + + +@pulumi.input_type +class _AwsSecretsManagerState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + path_behavior: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_metadata: pulumi.Input[Optional[_builtins.bool]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AwsSecretsManager resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path: The path to the secret in AWS + :param pulumi.Input[_builtins.str] path_behavior: The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the secrets + :param pulumi.Input[_builtins.bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if kms_key_id is not None: + pulumi.set(__self__, "kms_key_id", kms_key_id) + if name_transform is not None: + pulumi.set(__self__, "name_transform", name_transform) + if path is not None: + pulumi.set(__self__, "path", path) + if path_behavior is not None: + pulumi.set(__self__, "path_behavior", path_behavior) + if project is not None: + pulumi.set(__self__, "project", project) + if region is not None: + pulumi.set(__self__, "region", region) + if sync_strategy is not None: + pulumi.set(__self__, "sync_strategy", sync_strategy) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if update_metadata is not None: + pulumi.set(__self__, "update_metadata", update_metadata) + if update_resource_tags is not None: + pulumi.set(__self__, "update_resource_tags", update_resource_tags) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + """ + return pulumi.get(self, "kms_key_id") + + @kms_key_id.setter + def kms_key_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "kms_key_id", value) + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + """ + return pulumi.get(self, "name_transform") + + @name_transform.setter + def name_transform(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name_transform", value) + + @_builtins.property + @pulumi.getter + def path(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The path to the secret in AWS + """ + return pulumi.get(self, "path") + + @path.setter + def path(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "path", value) + + @_builtins.property + @pulumi.getter(name="pathBehavior") + def path_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + """ + return pulumi.get(self, "path_behavior") + + @path_behavior.setter + def path_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "path_behavior", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def region(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The AWS region + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "region", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter + def tags(self) -> pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]: + """ + AWS tags to attach to the secrets + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "tags", value) + + @_builtins.property + @pulumi.getter(name="updateMetadata") + def update_metadata(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + """ + return pulumi.get(self, "update_metadata") + + @update_metadata.setter + def update_metadata(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "update_metadata", value) + + @_builtins.property + @pulumi.getter(name="updateResourceTags") + def update_resource_tags(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + return pulumi.get(self, "update_resource_tags") + + @update_resource_tags.setter + def update_resource_tags(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "update_resource_tags", value) + + +@pulumi.type_token("doppler:secretsSync/awsSecretsManager:AwsSecretsManager") +class AwsSecretsManager(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + path_behavior: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_metadata: pulumi.Input[Optional[_builtins.bool]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an AWS Secrets Manager Doppler sync. + + ## Example Usage + + ```python + import pulumi + import json + import pulumi_aws as aws + import pulumi_doppler as doppler + + doppler_secrets_manager = aws.IamRole("doppler_secrets_manager", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + secretsmanager:GetSecretValue, + secretsmanager:DescribeSecret, + secretsmanager:PutSecretValue, + secretsmanager:CreateSecret, + secretsmanager:DeleteSecret, + secretsmanager:TagResource, + secretsmanager:UpdateSecret, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_secrets_manager, + assume_role_policy=json.dumps({ + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, + }, + Condition: { + StringEquals: { + sts:ExternalId: , + }, + }, + }], + })) + prod = doppler.integration.AwsSecretsManager("prod", + name="Production", + assume_role_arn=doppler_secrets_manager["arn"]) + backend_prod = doppler.secretssync.AwsSecretsManager("backend_prod", + integration=prod.id, + project="backend", + config="prd", + region="us-east-1", + path="/backend/", + tags={ + "myTag": "enabled", + }, + delete_behavior="leave_in_target") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path: The path to the secret in AWS + :param pulumi.Input[_builtins.str] path_behavior: The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the secrets + :param pulumi.Input[_builtins.bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AwsSecretsManagerArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an AWS Secrets Manager Doppler sync. + + ## Example Usage + + ```python + import pulumi + import json + import pulumi_aws as aws + import pulumi_doppler as doppler + + doppler_secrets_manager = aws.IamRole("doppler_secrets_manager", + inline_policy=[{ + name: doppler_secret_manager, + policy: json.dumps({ + Version: 2012-10-17, + Statement: [{ + Action: [ + secretsmanager:GetSecretValue, + secretsmanager:DescribeSecret, + secretsmanager:PutSecretValue, + secretsmanager:CreateSecret, + secretsmanager:DeleteSecret, + secretsmanager:TagResource, + secretsmanager:UpdateSecret, + ], + Effect: Allow, + Resource: *, + }], + }), + }], + name=doppler_secrets_manager, + assume_role_policy=json.dumps({ + Version: 2012-10-17, + Statement: [{ + Effect: Allow, + Action: sts:AssumeRole, + Principal: { + AWS: arn:aws:iam::299900769157:user/doppler-integration-operator, + }, + Condition: { + StringEquals: { + sts:ExternalId: , + }, + }, + }], + })) + prod = doppler.integration.AwsSecretsManager("prod", + name="Production", + assume_role_arn=doppler_secrets_manager["arn"]) + backend_prod = doppler.secretssync.AwsSecretsManager("backend_prod", + integration=prod.id, + project="backend", + config="prd", + region="us-east-1", + path="/backend/", + tags={ + "myTag": "enabled", + }, + delete_behavior="leave_in_target") + ``` + + + :param str resource_name: The name of the resource. + :param AwsSecretsManagerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AwsSecretsManagerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + path_behavior: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_metadata: pulumi.Input[Optional[_builtins.bool]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AwsSecretsManagerArgs.__new__(AwsSecretsManagerArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["kms_key_id"] = kms_key_id + __props__.__dict__["name_transform"] = name_transform + if path is None and not opts.urn: + raise TypeError("Missing required property 'path'") + __props__.__dict__["path"] = path + __props__.__dict__["path_behavior"] = path_behavior + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if region is None and not opts.urn: + raise TypeError("Missing required property 'region'") + __props__.__dict__["region"] = region + __props__.__dict__["sync_strategy"] = sync_strategy + __props__.__dict__["tags"] = tags + __props__.__dict__["update_metadata"] = update_metadata + __props__.__dict__["update_resource_tags"] = update_resource_tags + super(AwsSecretsManager, __self__).__init__( + 'doppler:secretsSync/awsSecretsManager:AwsSecretsManager', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + kms_key_id: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + path: pulumi.Input[Optional[_builtins.str]] = None, + path_behavior: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + region: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[_builtins.str]]]] = None, + update_metadata: pulumi.Input[Optional[_builtins.bool]] = None, + update_resource_tags: pulumi.Input[Optional[_builtins.str]] = None) -> 'AwsSecretsManager': + """ + Get an existing AwsSecretsManager resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + :param pulumi.Input[_builtins.str] name_transform: An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + :param pulumi.Input[_builtins.str] path: The path to the secret in AWS + :param pulumi.Input[_builtins.str] path_behavior: The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] region: The AWS region + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: AWS tags to attach to the secrets + :param pulumi.Input[_builtins.bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + :param pulumi.Input[_builtins.str] update_resource_tags: Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AwsSecretsManagerState.__new__(_AwsSecretsManagerState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["kms_key_id"] = kms_key_id + __props__.__dict__["name_transform"] = name_transform + __props__.__dict__["path"] = path + __props__.__dict__["path_behavior"] = path_behavior + __props__.__dict__["project"] = project + __props__.__dict__["region"] = region + __props__.__dict__["sync_strategy"] = sync_strategy + __props__.__dict__["tags"] = tags + __props__.__dict__["update_metadata"] = update_metadata + __props__.__dict__["update_resource_tags"] = update_resource_tags + return AwsSecretsManager(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="kmsKeyId") + def kms_key_id(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) + """ + return pulumi.get(self, "kms_key_id") + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + An optional secret name transformer (e.g. DOPPLER_CONFIG in lower-kebab would be doppler-config). Valid transformers: none, camel, upper-camel, lower-snake, tf-var, dotnet, dotnet-env, lower-kebab + """ + return pulumi.get(self, "name_transform") + + @_builtins.property + @pulumi.getter + def path(self) -> pulumi.Output[_builtins.str]: + """ + The path to the secret in AWS + """ + return pulumi.get(self, "path") + + @_builtins.property + @pulumi.getter(name="pathBehavior") + def path_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to modify the provided path. Either `add_doppler_suffix` (default) which appends `doppler` to the provided path or `none` which leaves the path unchanged. + """ + return pulumi.get(self, "path_behavior") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def region(self) -> pulumi.Output[_builtins.str]: + """ + The AWS region + """ + return pulumi.get(self, "region") + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). Defaults to `single-secret` if unspecified. + """ + return pulumi.get(self, "sync_strategy") + + @_builtins.property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]: + """ + AWS tags to attach to the secrets + """ + return pulumi.get(self, "tags") + + @_builtins.property + @pulumi.getter(name="updateMetadata") + def update_metadata(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. + """ + return pulumi.get(self, "update_metadata") + + @_builtins.property + @pulumi.getter(name="updateResourceTags") + def update_resource_tags(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Behavior for AWS resource tags on updates (`never` update, `upsert` tags (leaving non-Doppler tags alone), `replace` tags (remove non-Doppler tags)) + """ + return pulumi.get(self, "update_resource_tags") + diff --git a/sdk/python/pulumi_doppler/secretssync/azure_vault.py b/sdk/python/pulumi_doppler/secretssync/azure_vault.py new file mode 100644 index 0000000..850c166 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/azure_vault.py @@ -0,0 +1,442 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['AzureVaultArgs', 'AzureVault'] + +@pulumi.input_type +class AzureVaultArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + sync_strategy: pulumi.Input[_builtins.str], + vault_uri: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + single_secret_name: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a AzureVault resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + :param pulumi.Input[_builtins.str] vault_uri: The Azure Vault URI for the vault secrets will be synced to. + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] single_secret_name: The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "sync_strategy", sync_strategy) + pulumi.set(__self__, "vault_uri", vault_uri) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if single_secret_name is not None: + pulumi.set(__self__, "single_secret_name", single_secret_name) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[_builtins.str]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter(name="vaultUri") + def vault_uri(self) -> pulumi.Input[_builtins.str]: + """ + The Azure Vault URI for the vault secrets will be synced to. + """ + return pulumi.get(self, "vault_uri") + + @vault_uri.setter + def vault_uri(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "vault_uri", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="singleSecretName") + def single_secret_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + """ + return pulumi.get(self, "single_secret_name") + + @single_secret_name.setter + def single_secret_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "single_secret_name", value) + + +@pulumi.input_type +class _AzureVaultState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + single_secret_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + vault_uri: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering AzureVault resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] single_secret_name: The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + :param pulumi.Input[_builtins.str] vault_uri: The Azure Vault URI for the vault secrets will be synced to. + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if project is not None: + pulumi.set(__self__, "project", project) + if single_secret_name is not None: + pulumi.set(__self__, "single_secret_name", single_secret_name) + if sync_strategy is not None: + pulumi.set(__self__, "sync_strategy", sync_strategy) + if vault_uri is not None: + pulumi.set(__self__, "vault_uri", vault_uri) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="singleSecretName") + def single_secret_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + """ + return pulumi.get(self, "single_secret_name") + + @single_secret_name.setter + def single_secret_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "single_secret_name", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter(name="vaultUri") + def vault_uri(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Azure Vault URI for the vault secrets will be synced to. + """ + return pulumi.get(self, "vault_uri") + + @vault_uri.setter + def vault_uri(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "vault_uri", value) + + +@pulumi.type_token("doppler:secretsSync/azureVault:AzureVault") +class AzureVault(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + single_secret_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + vault_uri: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage an Azure Vault Doppler sync. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] single_secret_name: The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + :param pulumi.Input[_builtins.str] vault_uri: The Azure Vault URI for the vault secrets will be synced to. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AzureVaultArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage an Azure Vault Doppler sync. + + + :param str resource_name: The name of the resource. + :param AzureVaultArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(AzureVaultArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + single_secret_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + vault_uri: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = AzureVaultArgs.__new__(AzureVaultArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["single_secret_name"] = single_secret_name + if sync_strategy is None and not opts.urn: + raise TypeError("Missing required property 'sync_strategy'") + __props__.__dict__["sync_strategy"] = sync_strategy + if vault_uri is None and not opts.urn: + raise TypeError("Missing required property 'vault_uri'") + __props__.__dict__["vault_uri"] = vault_uri + super(AzureVault, __self__).__init__( + 'doppler:secretsSync/azureVault:AzureVault', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + single_secret_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + vault_uri: pulumi.Input[Optional[_builtins.str]] = None) -> 'AzureVault': + """ + Get an existing AzureVault resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] single_secret_name: The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + :param pulumi.Input[_builtins.str] vault_uri: The Azure Vault URI for the vault secrets will be synced to. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AzureVaultState.__new__(_AzureVaultState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["project"] = project + __props__.__dict__["single_secret_name"] = single_secret_name + __props__.__dict__["sync_strategy"] = sync_strategy + __props__.__dict__["vault_uri"] = vault_uri + return AzureVault(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="singleSecretName") + def single_secret_name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The name of the secret being synced to when using the "single-secret" sync strategy. Required when using "single-secret" sync strategy. + """ + return pulumi.get(self, "single_secret_name") + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Output[_builtins.str]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + return pulumi.get(self, "sync_strategy") + + @_builtins.property + @pulumi.getter(name="vaultUri") + def vault_uri(self) -> pulumi.Output[_builtins.str]: + """ + The Azure Vault URI for the vault secrets will be synced to. + """ + return pulumi.get(self, "vault_uri") + diff --git a/sdk/python/pulumiverse_doppler/secretssync/circleci.py b/sdk/python/pulumi_doppler/secretssync/circleci.py similarity index 56% rename from sdk/python/pulumiverse_doppler/secretssync/circleci.py rename to sdk/python/pulumi_doppler/secretssync/circleci.py index 19f7a2f..b1527c8 100644 --- a/sdk/python/pulumiverse_doppler/secretssync/circleci.py +++ b/sdk/python/pulumi_doppler/secretssync/circleci.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['CircleciArgs', 'Circleci'] @@ -14,22 +19,23 @@ @pulumi.input_type class CircleciArgs: def __init__(__self__, *, - config: pulumi.Input[str], - integration: pulumi.Input[str], - organization_slug: pulumi.Input[str], - project: pulumi.Input[str], - resource_id: pulumi.Input[str], - resource_type: pulumi.Input[str], - delete_behavior: Optional[pulumi.Input[str]] = None): + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + organization_slug: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + resource_id: pulumi.Input[_builtins.str], + resource_type: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None): """ The set of arguments for constructing a Circleci resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] organization_slug: The organization slug where the resource is located - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] resource_id: The resource ID (either project or context) to sync to - :param pulumi.Input[str] resource_type: Either "project" or "context", based on the resource type to sync to - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] organization_slug: The organization slug where the resource is located + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] resource_id: The resource ID (either project or context) to sync to + :param pulumi.Input[_builtins.str] resource_type: Either "project" or "context", based on the resource type to sync to + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ pulumi.set(__self__, "config", config) pulumi.set(__self__, "integration", integration) @@ -40,110 +46,111 @@ def __init__(__self__, *, if delete_behavior is not None: pulumi.set(__self__, "delete_behavior", delete_behavior) - @property + @_builtins.property @pulumi.getter - def config(self) -> pulumi.Input[str]: + def config(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler config """ return pulumi.get(self, "config") @config.setter - def config(self, value: pulumi.Input[str]): + def config(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "config", value) - @property + @_builtins.property @pulumi.getter - def integration(self) -> pulumi.Input[str]: + def integration(self) -> pulumi.Input[_builtins.str]: """ The slug of the integration to use for this sync """ return pulumi.get(self, "integration") @integration.setter - def integration(self, value: pulumi.Input[str]): + def integration(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "integration", value) - @property + @_builtins.property @pulumi.getter(name="organizationSlug") - def organization_slug(self) -> pulumi.Input[str]: + def organization_slug(self) -> pulumi.Input[_builtins.str]: """ The organization slug where the resource is located """ return pulumi.get(self, "organization_slug") @organization_slug.setter - def organization_slug(self, value: pulumi.Input[str]): + def organization_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "organization_slug", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Input[str]: + def project(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project """ return pulumi.get(self, "project") @project.setter - def project(self, value: pulumi.Input[str]): + def project(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter(name="resourceId") - def resource_id(self) -> pulumi.Input[str]: + def resource_id(self) -> pulumi.Input[_builtins.str]: """ The resource ID (either project or context) to sync to """ return pulumi.get(self, "resource_id") @resource_id.setter - def resource_id(self, value: pulumi.Input[str]): + def resource_id(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "resource_id", value) - @property + @_builtins.property @pulumi.getter(name="resourceType") - def resource_type(self) -> pulumi.Input[str]: + def resource_type(self) -> pulumi.Input[_builtins.str]: """ Either "project" or "context", based on the resource type to sync to """ return pulumi.get(self, "resource_type") @resource_type.setter - def resource_type(self, value: pulumi.Input[str]): + def resource_type(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "resource_type", value) - @property + @_builtins.property @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: """ The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ return pulumi.get(self, "delete_behavior") @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "delete_behavior", value) @pulumi.input_type class _CircleciState: def __init__(__self__, *, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - organization_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - resource_id: Optional[pulumi.Input[str]] = None, - resource_type: Optional[pulumi.Input[str]] = None): + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + organization_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + resource_id: pulumi.Input[Optional[_builtins.str]] = None, + resource_type: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering Circleci resources. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] organization_slug: The organization slug where the resource is located - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] resource_id: The resource ID (either project or context) to sync to - :param pulumi.Input[str] resource_type: Either "project" or "context", based on the resource type to sync to + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] organization_slug: The organization slug where the resource is located + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] resource_id: The resource ID (either project or context) to sync to + :param pulumi.Input[_builtins.str] resource_type: Either "project" or "context", based on the resource type to sync to """ if config is not None: pulumi.set(__self__, "config", config) @@ -160,103 +167,104 @@ def __init__(__self__, *, if resource_type is not None: pulumi.set(__self__, "resource_type", resource_type) - @property + @_builtins.property @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: + def config(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler config """ return pulumi.get(self, "config") @config.setter - def config(self, value: Optional[pulumi.Input[str]]): + def config(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "config", value) - @property + @_builtins.property @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: """ The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ return pulumi.get(self, "delete_behavior") @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "delete_behavior", value) - @property + @_builtins.property @pulumi.getter - def integration(self) -> Optional[pulumi.Input[str]]: + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the integration to use for this sync """ return pulumi.get(self, "integration") @integration.setter - def integration(self, value: Optional[pulumi.Input[str]]): + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "integration", value) - @property + @_builtins.property @pulumi.getter(name="organizationSlug") - def organization_slug(self) -> Optional[pulumi.Input[str]]: + def organization_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The organization slug where the resource is located """ return pulumi.get(self, "organization_slug") @organization_slug.setter - def organization_slug(self, value: Optional[pulumi.Input[str]]): + def organization_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "organization_slug", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: + def project(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project """ return pulumi.get(self, "project") @project.setter - def project(self, value: Optional[pulumi.Input[str]]): + def project(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter(name="resourceId") - def resource_id(self) -> Optional[pulumi.Input[str]]: + def resource_id(self) -> pulumi.Input[Optional[_builtins.str]]: """ The resource ID (either project or context) to sync to """ return pulumi.get(self, "resource_id") @resource_id.setter - def resource_id(self, value: Optional[pulumi.Input[str]]): + def resource_id(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "resource_id", value) - @property + @_builtins.property @pulumi.getter(name="resourceType") - def resource_type(self) -> Optional[pulumi.Input[str]]: + def resource_type(self) -> pulumi.Input[Optional[_builtins.str]]: """ Either "project" or "context", based on the resource type to sync to """ return pulumi.get(self, "resource_type") @resource_type.setter - def resource_type(self, value: Optional[pulumi.Input[str]]): + def resource_type(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "resource_type", value) +@pulumi.type_token("doppler:secretsSync/circleci:Circleci") class Circleci(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - organization_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - resource_id: Optional[pulumi.Input[str]] = None, - resource_type: Optional[pulumi.Input[str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + organization_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + resource_id: pulumi.Input[Optional[_builtins.str]] = None, + resource_type: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a CircleCI Doppler sync. @@ -265,12 +273,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Circleci("prod", name="Production", api_token="my_api_token") - backend_prod = doppler.secrets_sync.Circleci("backend_prod", + backend_prod = doppler.secretssync.Circleci("backend_prod", integration=prod.id, project="backend", config="prd", @@ -280,15 +288,16 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] organization_slug: The organization slug where the resource is located - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] resource_id: The resource ID (either project or context) to sync to - :param pulumi.Input[str] resource_type: Either "project" or "context", based on the resource type to sync to + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] organization_slug: The organization slug where the resource is located + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] resource_id: The resource ID (either project or context) to sync to + :param pulumi.Input[_builtins.str] resource_type: Either "project" or "context", based on the resource type to sync to """ ... @overload @@ -303,12 +312,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Circleci("prod", name="Production", api_token="my_api_token") - backend_prod = doppler.secrets_sync.Circleci("backend_prod", + backend_prod = doppler.secretssync.Circleci("backend_prod", integration=prod.id, project="backend", config="prd", @@ -318,6 +327,7 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param CircleciArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -333,13 +343,13 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - organization_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - resource_id: Optional[pulumi.Input[str]] = None, - resource_type: Optional[pulumi.Input[str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + organization_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + resource_id: pulumi.Input[Optional[_builtins.str]] = None, + resource_type: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -378,13 +388,13 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - organization_slug: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - resource_id: Optional[pulumi.Input[str]] = None, - resource_type: Optional[pulumi.Input[str]] = None) -> 'Circleci': + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + organization_slug: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + resource_id: pulumi.Input[Optional[_builtins.str]] = None, + resource_type: pulumi.Input[Optional[_builtins.str]] = None) -> 'Circleci': """ Get an existing Circleci resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -392,13 +402,13 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] organization_slug: The organization slug where the resource is located - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] resource_id: The resource ID (either project or context) to sync to - :param pulumi.Input[str] resource_type: Either "project" or "context", based on the resource type to sync to + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] organization_slug: The organization slug where the resource is located + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] resource_id: The resource ID (either project or context) to sync to + :param pulumi.Input[_builtins.str] resource_type: Either "project" or "context", based on the resource type to sync to """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -413,57 +423,57 @@ def get(resource_name: str, __props__.__dict__["resource_type"] = resource_type return Circleci(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def config(self) -> pulumi.Output[str]: + def config(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler config """ return pulumi.get(self, "config") - @property + @_builtins.property @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> pulumi.Output[Optional[str]]: + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: """ The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ return pulumi.get(self, "delete_behavior") - @property + @_builtins.property @pulumi.getter - def integration(self) -> pulumi.Output[str]: + def integration(self) -> pulumi.Output[_builtins.str]: """ The slug of the integration to use for this sync """ return pulumi.get(self, "integration") - @property + @_builtins.property @pulumi.getter(name="organizationSlug") - def organization_slug(self) -> pulumi.Output[str]: + def organization_slug(self) -> pulumi.Output[_builtins.str]: """ The organization slug where the resource is located """ return pulumi.get(self, "organization_slug") - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Output[str]: + def project(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project """ return pulumi.get(self, "project") - @property + @_builtins.property @pulumi.getter(name="resourceId") - def resource_id(self) -> pulumi.Output[str]: + def resource_id(self) -> pulumi.Output[_builtins.str]: """ The resource ID (either project or context) to sync to """ return pulumi.get(self, "resource_id") - @property + @_builtins.property @pulumi.getter(name="resourceType") - def resource_type(self) -> pulumi.Output[str]: + def resource_type(self) -> pulumi.Output[_builtins.str]: """ Either "project" or "context", based on the resource type to sync to """ diff --git a/sdk/python/pulumiverse_doppler/secretssync/flyio.py b/sdk/python/pulumi_doppler/secretssync/flyio.py similarity index 57% rename from sdk/python/pulumiverse_doppler/secretssync/flyio.py rename to sdk/python/pulumi_doppler/secretssync/flyio.py index 72ad6d6..bc515d3 100644 --- a/sdk/python/pulumiverse_doppler/secretssync/flyio.py +++ b/sdk/python/pulumi_doppler/secretssync/flyio.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from .. import _utilities __all__ = ['FlyioArgs', 'Flyio'] @@ -14,20 +19,21 @@ @pulumi.input_type class FlyioArgs: def __init__(__self__, *, - app_id: pulumi.Input[str], - config: pulumi.Input[str], - integration: pulumi.Input[str], - project: pulumi.Input[str], - restart_machines: pulumi.Input[bool], - delete_behavior: Optional[pulumi.Input[str]] = None): + app_id: pulumi.Input[_builtins.str], + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + restart_machines: pulumi.Input[_builtins.bool], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None): """ The set of arguments for constructing a Flyio resource. - :param pulumi.Input[str] app_id: The app ID - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + + :param pulumi.Input[_builtins.str] app_id: The app ID + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ pulumi.set(__self__, "app_id", app_id) pulumi.set(__self__, "config", config) @@ -37,96 +43,97 @@ def __init__(__self__, *, if delete_behavior is not None: pulumi.set(__self__, "delete_behavior", delete_behavior) - @property + @_builtins.property @pulumi.getter(name="appId") - def app_id(self) -> pulumi.Input[str]: + def app_id(self) -> pulumi.Input[_builtins.str]: """ The app ID """ return pulumi.get(self, "app_id") @app_id.setter - def app_id(self, value: pulumi.Input[str]): + def app_id(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "app_id", value) - @property + @_builtins.property @pulumi.getter - def config(self) -> pulumi.Input[str]: + def config(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler config """ return pulumi.get(self, "config") @config.setter - def config(self, value: pulumi.Input[str]): + def config(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "config", value) - @property + @_builtins.property @pulumi.getter - def integration(self) -> pulumi.Input[str]: + def integration(self) -> pulumi.Input[_builtins.str]: """ The slug of the integration to use for this sync """ return pulumi.get(self, "integration") @integration.setter - def integration(self, value: pulumi.Input[str]): + def integration(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "integration", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Input[str]: + def project(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project """ return pulumi.get(self, "project") @project.setter - def project(self, value: pulumi.Input[str]): + def project(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter(name="restartMachines") - def restart_machines(self) -> pulumi.Input[bool]: + def restart_machines(self) -> pulumi.Input[_builtins.bool]: """ Whether or not to restart the Fly.io machines when secrets are updated """ return pulumi.get(self, "restart_machines") @restart_machines.setter - def restart_machines(self, value: pulumi.Input[bool]): + def restart_machines(self, value: pulumi.Input[_builtins.bool]): pulumi.set(self, "restart_machines", value) - @property + @_builtins.property @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: """ The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ return pulumi.get(self, "delete_behavior") @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "delete_behavior", value) @pulumi.input_type class _FlyioState: def __init__(__self__, *, - app_id: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - restart_machines: Optional[pulumi.Input[bool]] = None): + app_id: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + restart_machines: pulumi.Input[Optional[_builtins.bool]] = None): """ Input properties used for looking up and filtering Flyio resources. - :param pulumi.Input[str] app_id: The app ID - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated + + :param pulumi.Input[_builtins.str] app_id: The app ID + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated """ if app_id is not None: pulumi.set(__self__, "app_id", app_id) @@ -141,90 +148,91 @@ def __init__(__self__, *, if restart_machines is not None: pulumi.set(__self__, "restart_machines", restart_machines) - @property + @_builtins.property @pulumi.getter(name="appId") - def app_id(self) -> Optional[pulumi.Input[str]]: + def app_id(self) -> pulumi.Input[Optional[_builtins.str]]: """ The app ID """ return pulumi.get(self, "app_id") @app_id.setter - def app_id(self, value: Optional[pulumi.Input[str]]): + def app_id(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "app_id", value) - @property + @_builtins.property @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: + def config(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler config """ return pulumi.get(self, "config") @config.setter - def config(self, value: Optional[pulumi.Input[str]]): + def config(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "config", value) - @property + @_builtins.property @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: """ The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ return pulumi.get(self, "delete_behavior") @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "delete_behavior", value) - @property + @_builtins.property @pulumi.getter - def integration(self) -> Optional[pulumi.Input[str]]: + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the integration to use for this sync """ return pulumi.get(self, "integration") @integration.setter - def integration(self, value: Optional[pulumi.Input[str]]): + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "integration", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: + def project(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project """ return pulumi.get(self, "project") @project.setter - def project(self, value: Optional[pulumi.Input[str]]): + def project(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter(name="restartMachines") - def restart_machines(self) -> Optional[pulumi.Input[bool]]: + def restart_machines(self) -> pulumi.Input[Optional[_builtins.bool]]: """ Whether or not to restart the Fly.io machines when secrets are updated """ return pulumi.get(self, "restart_machines") @restart_machines.setter - def restart_machines(self, value: Optional[pulumi.Input[bool]]): + def restart_machines(self, value: pulumi.Input[Optional[_builtins.bool]]): pulumi.set(self, "restart_machines", value) +@pulumi.type_token("doppler:secretsSync/flyio:Flyio") class Flyio(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - app_id: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - restart_machines: Optional[pulumi.Input[bool]] = None, + app_id: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + restart_machines: pulumi.Input[Optional[_builtins.bool]] = None, __props__=None): """ Manage a Fly.io Doppler sync. @@ -233,12 +241,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Flyio("prod", name="TF Fly.io", api_key="fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") - backend_prod = doppler.secrets_sync.Flyio("backend_prod", + backend_prod = doppler.secretssync.Flyio("backend_prod", integration=prod.id, project="backend", config="prd", @@ -247,14 +255,15 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] app_id: The app ID - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated + :param pulumi.Input[_builtins.str] app_id: The app ID + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated """ ... @overload @@ -269,12 +278,12 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler prod = doppler.integration.Flyio("prod", name="TF Fly.io", api_key="fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") - backend_prod = doppler.secrets_sync.Flyio("backend_prod", + backend_prod = doppler.secretssync.Flyio("backend_prod", integration=prod.id, project="backend", config="prd", @@ -283,6 +292,7 @@ def __init__(__self__, delete_behavior="leave_in_target") ``` + :param str resource_name: The name of the resource. :param FlyioArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -298,12 +308,12 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - app_id: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - restart_machines: Optional[pulumi.Input[bool]] = None, + app_id: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + restart_machines: pulumi.Input[Optional[_builtins.bool]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -339,12 +349,12 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - app_id: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - restart_machines: Optional[pulumi.Input[bool]] = None) -> 'Flyio': + app_id: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + restart_machines: pulumi.Input[Optional[_builtins.bool]] = None) -> 'Flyio': """ Get an existing Flyio resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -352,12 +362,12 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] app_id: The app ID - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated + :param pulumi.Input[_builtins.str] app_id: The app ID + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.bool] restart_machines: Whether or not to restart the Fly.io machines when secrets are updated """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -371,49 +381,49 @@ def get(resource_name: str, __props__.__dict__["restart_machines"] = restart_machines return Flyio(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="appId") - def app_id(self) -> pulumi.Output[str]: + def app_id(self) -> pulumi.Output[_builtins.str]: """ The app ID """ return pulumi.get(self, "app_id") - @property + @_builtins.property @pulumi.getter - def config(self) -> pulumi.Output[str]: + def config(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler config """ return pulumi.get(self, "config") - @property + @_builtins.property @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> pulumi.Output[Optional[str]]: + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: """ The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. """ return pulumi.get(self, "delete_behavior") - @property + @_builtins.property @pulumi.getter - def integration(self) -> pulumi.Output[str]: + def integration(self) -> pulumi.Output[_builtins.str]: """ The slug of the integration to use for this sync """ return pulumi.get(self, "integration") - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Output[str]: + def project(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project """ return pulumi.get(self, "project") - @property + @_builtins.property @pulumi.getter(name="restartMachines") - def restart_machines(self) -> pulumi.Output[bool]: + def restart_machines(self) -> pulumi.Output[_builtins.bool]: """ Whether or not to restart the Fly.io machines when secrets are updated """ diff --git a/sdk/python/pulumi_doppler/secretssync/gcp_secret_manager.py b/sdk/python/pulumi_doppler/secretssync/gcp_secret_manager.py new file mode 100644 index 0000000..b6cdf23 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/gcp_secret_manager.py @@ -0,0 +1,489 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GcpSecretManagerArgs', 'GcpSecretManager'] + +@pulumi.input_type +class GcpSecretManagerArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + regions: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]], + sync_strategy: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + format: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a GcpSecretManager resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] regions: The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] format: Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + :param pulumi.Input[_builtins.str] name: The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "regions", regions) + pulumi.set(__self__, "sync_strategy", sync_strategy) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if format is not None: + pulumi.set(__self__, "format", format) + if name is not None: + pulumi.set(__self__, "name", name) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def regions(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: + """ + The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + """ + return pulumi.get(self, "regions") + + @regions.setter + def regions(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + pulumi.set(self, "regions", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[_builtins.str]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_strategy", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def format(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + """ + return pulumi.get(self, "format") + + @format.setter + def format(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "format", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class _GcpSecretManagerState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + format: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + regions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GcpSecretManager resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] format: Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name: The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] regions: The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if format is not None: + pulumi.set(__self__, "format", format) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name is not None: + pulumi.set(__self__, "name", name) + if project is not None: + pulumi.set(__self__, "project", project) + if regions is not None: + pulumi.set(__self__, "regions", regions) + if sync_strategy is not None: + pulumi.set(__self__, "sync_strategy", sync_strategy) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def format(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + """ + return pulumi.get(self, "format") + + @format.setter + def format(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "format", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def regions(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + """ + return pulumi.get(self, "regions") + + @regions.setter + def regions(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "regions", value) + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + return pulumi.get(self, "sync_strategy") + + @sync_strategy.setter + def sync_strategy(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_strategy", value) + + +@pulumi.type_token("doppler:secretsSync/gcpSecretManager:GcpSecretManager") +class GcpSecretManager(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + format: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + regions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GCP Secret Manager Doppler sync. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] format: Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name: The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] regions: The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GcpSecretManagerArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GCP Secret Manager Doppler sync. + + + :param str resource_name: The name of the resource. + :param GcpSecretManagerArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GcpSecretManagerArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + format: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + regions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GcpSecretManagerArgs.__new__(GcpSecretManagerArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["format"] = format + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if regions is None and not opts.urn: + raise TypeError("Missing required property 'regions'") + __props__.__dict__["regions"] = regions + if sync_strategy is None and not opts.urn: + raise TypeError("Missing required property 'sync_strategy'") + __props__.__dict__["sync_strategy"] = sync_strategy + super(GcpSecretManager, __self__).__init__( + 'doppler:secretsSync/gcpSecretManager:GcpSecretManager', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + format: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + regions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + sync_strategy: pulumi.Input[Optional[_builtins.str]] = None) -> 'GcpSecretManager': + """ + Get an existing GcpSecretManager resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] format: Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name: The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] regions: The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + :param pulumi.Input[_builtins.str] sync_strategy: Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GcpSecretManagerState.__new__(_GcpSecretManagerState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["format"] = format + __props__.__dict__["integration"] = integration + __props__.__dict__["name"] = name + __props__.__dict__["project"] = project + __props__.__dict__["regions"] = regions + __props__.__dict__["sync_strategy"] = sync_strategy + return GcpSecretManager(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def format(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Specifies the format secrets will be stored in. Either `env` or `json`. Defaults to `json`. + """ + return pulumi.get(self, "format") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The name used to store the secret when sync_strategy is set to `single-secret` (note that the integration's `gcp_secret_prefix` will be prepended to this). + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def regions(self) -> pulumi.Output[Sequence[_builtins.str]]: + """ + The GCP regions used for replication. Can include any supported GCP region or `["automatic"]`. + """ + return pulumi.get(self, "regions") + + @_builtins.property + @pulumi.getter(name="syncStrategy") + def sync_strategy(self) -> pulumi.Output[_builtins.str]: + """ + Determines whether secrets are synced to a single secret (`single-secret`) as a JSON object or multiple discrete secrets (`multi-secret`). + """ + return pulumi.get(self, "sync_strategy") + diff --git a/sdk/python/pulumi_doppler/secretssync/github_actions.py b/sdk/python/pulumi_doppler/secretssync/github_actions.py new file mode 100644 index 0000000..f224937 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/github_actions.py @@ -0,0 +1,535 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GithubActionsArgs', 'GithubActions'] + +@pulumi.input_type +class GithubActionsArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + sync_target: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + environment_name: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None): + """ + The set of arguments for constructing a GithubActions resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "sync_target", sync_target) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if environment_name is not None: + pulumi.set(__self__, "environment_name", environment_name) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + if sync_unmasked_as_variables is not None: + pulumi.set(__self__, "sync_unmasked_as_variables", sync_unmasked_as_variables) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="environmentName") + def environment_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "environment_name") + + @environment_name.setter + def environment_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "environment_name", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + @_builtins.property + @pulumi.getter(name="syncUnmaskedAsVariables") + def sync_unmasked_as_variables(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + return pulumi.get(self, "sync_unmasked_as_variables") + + @sync_unmasked_as_variables.setter + def sync_unmasked_as_variables(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "sync_unmasked_as_variables", value) + + +@pulumi.input_type +class _GithubActionsState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + environment_name: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None): + """ + Input properties used for looking up and filtering GithubActions resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if environment_name is not None: + pulumi.set(__self__, "environment_name", environment_name) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if project is not None: + pulumi.set(__self__, "project", project) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + if sync_target is not None: + pulumi.set(__self__, "sync_target", sync_target) + if sync_unmasked_as_variables is not None: + pulumi.set(__self__, "sync_unmasked_as_variables", sync_unmasked_as_variables) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="environmentName") + def environment_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "environment_name") + + @environment_name.setter + def environment_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "environment_name", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="syncUnmaskedAsVariables") + def sync_unmasked_as_variables(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + return pulumi.get(self, "sync_unmasked_as_variables") + + @sync_unmasked_as_variables.setter + def sync_unmasked_as_variables(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "sync_unmasked_as_variables", value) + + +@pulumi.type_token("doppler:secretsSync/githubActions:GithubActions") +class GithubActions(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + environment_name: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None, + __props__=None): + """ + Manage a GitHub Actions Doppler sync. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GithubActionsArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GitHub Actions Doppler sync. + + + :param str resource_name: The name of the resource. + :param GithubActionsArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GithubActionsArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + environment_name: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GithubActionsArgs.__new__(GithubActionsArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["environment_name"] = environment_name + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + if sync_target is None and not opts.urn: + raise TypeError("Missing required property 'sync_target'") + __props__.__dict__["sync_target"] = sync_target + __props__.__dict__["sync_unmasked_as_variables"] = sync_unmasked_as_variables + super(GithubActions, __self__).__init__( + 'doppler:secretsSync/githubActions:GithubActions', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + environment_name: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None) -> 'GithubActions': + """ + Get an existing GithubActions resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GithubActionsState.__new__(_GithubActionsState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["environment_name"] = environment_name + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + __props__.__dict__["sync_target"] = sync_target + __props__.__dict__["sync_unmasked_as_variables"] = sync_unmasked_as_variables + return GithubActions(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter(name="environmentName") + def environment_name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "environment_name") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Output[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @_builtins.property + @pulumi.getter(name="syncUnmaskedAsVariables") + def sync_unmasked_as_variables(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Action Variables. Defaults to `false`. + """ + return pulumi.get(self, "sync_unmasked_as_variables") + diff --git a/sdk/python/pulumi_doppler/secretssync/github_agents.py b/sdk/python/pulumi_doppler/secretssync/github_agents.py new file mode 100644 index 0000000..da44940 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/github_agents.py @@ -0,0 +1,488 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GithubAgentsArgs', 'GithubAgents'] + +@pulumi.input_type +class GithubAgentsArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + sync_target: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None): + """ + The set of arguments for constructing a GithubAgents resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "sync_target", sync_target) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + if sync_unmasked_as_variables is not None: + pulumi.set(__self__, "sync_unmasked_as_variables", sync_unmasked_as_variables) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + @_builtins.property + @pulumi.getter(name="syncUnmaskedAsVariables") + def sync_unmasked_as_variables(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + return pulumi.get(self, "sync_unmasked_as_variables") + + @sync_unmasked_as_variables.setter + def sync_unmasked_as_variables(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "sync_unmasked_as_variables", value) + + +@pulumi.input_type +class _GithubAgentsState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None): + """ + Input properties used for looking up and filtering GithubAgents resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if project is not None: + pulumi.set(__self__, "project", project) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + if sync_target is not None: + pulumi.set(__self__, "sync_target", sync_target) + if sync_unmasked_as_variables is not None: + pulumi.set(__self__, "sync_unmasked_as_variables", sync_unmasked_as_variables) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="syncUnmaskedAsVariables") + def sync_unmasked_as_variables(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + return pulumi.get(self, "sync_unmasked_as_variables") + + @sync_unmasked_as_variables.setter + def sync_unmasked_as_variables(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "sync_unmasked_as_variables", value) + + +@pulumi.type_token("doppler:secretsSync/githubAgents:GithubAgents") +class GithubAgents(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None, + __props__=None): + """ + Manage a GitHub Copilot Agents Doppler sync. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GithubAgentsArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GitHub Copilot Agents Doppler sync. + + + :param str resource_name: The name of the resource. + :param GithubAgentsArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GithubAgentsArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GithubAgentsArgs.__new__(GithubAgentsArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + if sync_target is None and not opts.urn: + raise TypeError("Missing required property 'sync_target'") + __props__.__dict__["sync_target"] = sync_target + __props__.__dict__["sync_unmasked_as_variables"] = sync_unmasked_as_variables + super(GithubAgents, __self__).__init__( + 'doppler:secretsSync/githubAgents:GithubAgents', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + sync_unmasked_as_variables: pulumi.Input[Optional[_builtins.bool]] = None) -> 'GithubAgents': + """ + Get an existing GithubAgents resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.bool] sync_unmasked_as_variables: When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GithubAgentsState.__new__(_GithubAgentsState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + __props__.__dict__["sync_target"] = sync_target + __props__.__dict__["sync_unmasked_as_variables"] = sync_unmasked_as_variables + return GithubAgents(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Output[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @_builtins.property + @pulumi.getter(name="syncUnmaskedAsVariables") + def sync_unmasked_as_variables(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + When enabled, causes secrets with the `unmasked` visibility type to get synced as GitHub Copilot Agents Variables. Defaults to `false`. + """ + return pulumi.get(self, "sync_unmasked_as_variables") + diff --git a/sdk/python/pulumi_doppler/secretssync/github_codespaces.py b/sdk/python/pulumi_doppler/secretssync/github_codespaces.py new file mode 100644 index 0000000..3840fcb --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/github_codespaces.py @@ -0,0 +1,441 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GithubCodespacesArgs', 'GithubCodespaces'] + +@pulumi.input_type +class GithubCodespacesArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + sync_target: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a GithubCodespaces resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "sync_target", sync_target) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + +@pulumi.input_type +class _GithubCodespacesState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GithubCodespaces resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if project is not None: + pulumi.set(__self__, "project", project) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + if sync_target is not None: + pulumi.set(__self__, "sync_target", sync_target) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_target", value) + + +@pulumi.type_token("doppler:secretsSync/githubCodespaces:GithubCodespaces") +class GithubCodespaces(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GitHub Codespaces Doppler sync. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GithubCodespacesArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GitHub Codespaces Doppler sync. + + + :param str resource_name: The name of the resource. + :param GithubCodespacesArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GithubCodespacesArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GithubCodespacesArgs.__new__(GithubCodespacesArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + if sync_target is None and not opts.urn: + raise TypeError("Missing required property 'sync_target'") + __props__.__dict__["sync_target"] = sync_target + super(GithubCodespaces, __self__).__init__( + 'doppler:secretsSync/githubCodespaces:GithubCodespaces', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None) -> 'GithubCodespaces': + """ + Get an existing GithubCodespaces resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GithubCodespacesState.__new__(_GithubCodespacesState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + __props__.__dict__["sync_target"] = sync_target + return GithubCodespaces(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Output[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + diff --git a/sdk/python/pulumi_doppler/secretssync/github_dependabot.py b/sdk/python/pulumi_doppler/secretssync/github_dependabot.py new file mode 100644 index 0000000..fa6e393 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/github_dependabot.py @@ -0,0 +1,441 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['GithubDependabotArgs', 'GithubDependabot'] + +@pulumi.input_type +class GithubDependabotArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + sync_target: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a GithubDependabot resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "sync_target", sync_target) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + +@pulumi.input_type +class _GithubDependabotState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering GithubDependabot resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if org_scope is not None: + pulumi.set(__self__, "org_scope", org_scope) + if project is not None: + pulumi.set(__self__, "project", project) + if repo_name is not None: + pulumi.set(__self__, "repo_name", repo_name) + if sync_target is not None: + pulumi.set(__self__, "sync_target", sync_target) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @org_scope.setter + def org_scope(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "org_scope", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @repo_name.setter + def repo_name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "repo_name", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_target", value) + + +@pulumi.type_token("doppler:secretsSync/githubDependabot:GithubDependabot") +class GithubDependabot(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a GitHub Dependabot Doppler sync. + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: GithubDependabotArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a GitHub Dependabot Doppler sync. + + + :param str resource_name: The name of the resource. + :param GithubDependabotArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(GithubDependabotArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = GithubDependabotArgs.__new__(GithubDependabotArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + if sync_target is None and not opts.urn: + raise TypeError("Missing required property 'sync_target'") + __props__.__dict__["sync_target"] = sync_target + super(GithubDependabot, __self__).__init__( + 'doppler:secretsSync/githubDependabot:GithubDependabot', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + org_scope: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + repo_name: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None) -> 'GithubDependabot': + """ + Get an existing GithubDependabot resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + :param pulumi.Input[_builtins.str] sync_target: Either "repo" or "org", based on the resource type to sync to + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _GithubDependabotState.__new__(_GithubDependabotState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["org_scope"] = org_scope + __props__.__dict__["project"] = project + __props__.__dict__["repo_name"] = repo_name + __props__.__dict__["sync_target"] = sync_target + return GithubDependabot(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="orgScope") + def org_scope(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") + """ + return pulumi.get(self, "org_scope") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="repoName") + def repo_name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The GitHub repo name to sync to (only used when `sync_target` is set to "repo") + """ + return pulumi.get(self, "repo_name") + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Output[_builtins.str]: + """ + Either "repo" or "org", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + diff --git a/sdk/python/pulumi_doppler/secretssync/terraform_cloud.py b/sdk/python/pulumi_doppler/secretssync/terraform_cloud.py new file mode 100644 index 0000000..16f7977 --- /dev/null +++ b/sdk/python/pulumi_doppler/secretssync/terraform_cloud.py @@ -0,0 +1,583 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['TerraformCloudArgs', 'TerraformCloud'] + +@pulumi.input_type +class TerraformCloudArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + integration: pulumi.Input[_builtins.str], + name_transform: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + sync_target: pulumi.Input[_builtins.str], + variable_sync_type: pulumi.Input[_builtins.str], + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + variable_set_id: pulumi.Input[Optional[_builtins.str]] = None, + workspace_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a TerraformCloud resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to + :param pulumi.Input[_builtins.str] variable_sync_type: Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] variable_set_id: The Terraform Cloud variable set ID to sync to + :param pulumi.Input[_builtins.str] workspace_id: The Terraform Cloud workspace ID to sync to + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "integration", integration) + pulumi.set(__self__, "name_transform", name_transform) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "sync_target", sync_target) + pulumi.set(__self__, "variable_sync_type", variable_sync_type) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if variable_set_id is not None: + pulumi.set(__self__, "variable_set_id", variable_set_id) + if workspace_id is not None: + pulumi.set(__self__, "workspace_id", workspace_id) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Input[_builtins.str]: + """ + A name transform to apply before syncing secrets: "none" or "lowercase" + """ + return pulumi.get(self, "name_transform") + + @name_transform.setter + def name_transform(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name_transform", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[_builtins.str]: + """ + Either "workspace" or "variableSet", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="variableSyncType") + def variable_sync_type(self) -> pulumi.Input[_builtins.str]: + """ + Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + """ + return pulumi.get(self, "variable_sync_type") + + @variable_sync_type.setter + def variable_sync_type(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "variable_sync_type", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter(name="variableSetId") + def variable_set_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Terraform Cloud variable set ID to sync to + """ + return pulumi.get(self, "variable_set_id") + + @variable_set_id.setter + def variable_set_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "variable_set_id", value) + + @_builtins.property + @pulumi.getter(name="workspaceId") + def workspace_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Terraform Cloud workspace ID to sync to + """ + return pulumi.get(self, "workspace_id") + + @workspace_id.setter + def workspace_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "workspace_id", value) + + +@pulumi.input_type +class _TerraformCloudState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + variable_set_id: pulumi.Input[Optional[_builtins.str]] = None, + variable_sync_type: pulumi.Input[Optional[_builtins.str]] = None, + workspace_id: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering TerraformCloud resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to + :param pulumi.Input[_builtins.str] variable_set_id: The Terraform Cloud variable set ID to sync to + :param pulumi.Input[_builtins.str] variable_sync_type: Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + :param pulumi.Input[_builtins.str] workspace_id: The Terraform Cloud workspace ID to sync to + """ + if config is not None: + pulumi.set(__self__, "config", config) + if delete_behavior is not None: + pulumi.set(__self__, "delete_behavior", delete_behavior) + if integration is not None: + pulumi.set(__self__, "integration", integration) + if name_transform is not None: + pulumi.set(__self__, "name_transform", name_transform) + if project is not None: + pulumi.set(__self__, "project", project) + if sync_target is not None: + pulumi.set(__self__, "sync_target", sync_target) + if variable_set_id is not None: + pulumi.set(__self__, "variable_set_id", variable_set_id) + if variable_sync_type is not None: + pulumi.set(__self__, "variable_sync_type", variable_sync_type) + if workspace_id is not None: + pulumi.set(__self__, "workspace_id", workspace_id) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @delete_behavior.setter + def delete_behavior(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "delete_behavior", value) + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @integration.setter + def integration(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "integration", value) + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + A name transform to apply before syncing secrets: "none" or "lowercase" + """ + return pulumi.get(self, "name_transform") + + @name_transform.setter + def name_transform(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name_transform", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "workspace" or "variableSet", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @sync_target.setter + def sync_target(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "sync_target", value) + + @_builtins.property + @pulumi.getter(name="variableSetId") + def variable_set_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Terraform Cloud variable set ID to sync to + """ + return pulumi.get(self, "variable_set_id") + + @variable_set_id.setter + def variable_set_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "variable_set_id", value) + + @_builtins.property + @pulumi.getter(name="variableSyncType") + def variable_sync_type(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + """ + return pulumi.get(self, "variable_sync_type") + + @variable_sync_type.setter + def variable_sync_type(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "variable_sync_type", value) + + @_builtins.property + @pulumi.getter(name="workspaceId") + def workspace_id(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The Terraform Cloud workspace ID to sync to + """ + return pulumi.get(self, "workspace_id") + + @workspace_id.setter + def workspace_id(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "workspace_id", value) + + +@pulumi.type_token("doppler:secretsSync/terraformCloud:TerraformCloud") +class TerraformCloud(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + variable_set_id: pulumi.Input[Optional[_builtins.str]] = None, + variable_sync_type: pulumi.Input[Optional[_builtins.str]] = None, + workspace_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Terraform Cloud Doppler sync. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_tfe as tfe + + prod = tfe.workspace(name="my-workspace-name", + organization="my-org-name") + prod_terraform_cloud = doppler.integration.TerraformCloud("prod", + name="Production", + api_key="my_api_key") + backend_prod = doppler.secretssync.TerraformCloud("backend_prod", + integration=prod_terraform_cloud.id, + project="backend", + config="prd", + sync_target="workspace", + workspace_id=prod["id"], + variable_sync_type="terraform", + name_transform="lowercase", + delete_behavior="leave_in_target") + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to + :param pulumi.Input[_builtins.str] variable_set_id: The Terraform Cloud variable set ID to sync to + :param pulumi.Input[_builtins.str] variable_sync_type: Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + :param pulumi.Input[_builtins.str] workspace_id: The Terraform Cloud workspace ID to sync to + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TerraformCloudArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Terraform Cloud Doppler sync. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + import pulumi_tfe as tfe + + prod = tfe.workspace(name="my-workspace-name", + organization="my-org-name") + prod_terraform_cloud = doppler.integration.TerraformCloud("prod", + name="Production", + api_key="my_api_key") + backend_prod = doppler.secretssync.TerraformCloud("backend_prod", + integration=prod_terraform_cloud.id, + project="backend", + config="prd", + sync_target="workspace", + workspace_id=prod["id"], + variable_sync_type="terraform", + name_transform="lowercase", + delete_behavior="leave_in_target") + ``` + + + :param str resource_name: The name of the resource. + :param TerraformCloudArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TerraformCloudArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + variable_set_id: pulumi.Input[Optional[_builtins.str]] = None, + variable_sync_type: pulumi.Input[Optional[_builtins.str]] = None, + workspace_id: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = TerraformCloudArgs.__new__(TerraformCloudArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + if integration is None and not opts.urn: + raise TypeError("Missing required property 'integration'") + __props__.__dict__["integration"] = integration + if name_transform is None and not opts.urn: + raise TypeError("Missing required property 'name_transform'") + __props__.__dict__["name_transform"] = name_transform + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if sync_target is None and not opts.urn: + raise TypeError("Missing required property 'sync_target'") + __props__.__dict__["sync_target"] = sync_target + __props__.__dict__["variable_set_id"] = variable_set_id + if variable_sync_type is None and not opts.urn: + raise TypeError("Missing required property 'variable_sync_type'") + __props__.__dict__["variable_sync_type"] = variable_sync_type + __props__.__dict__["workspace_id"] = workspace_id + super(TerraformCloud, __self__).__init__( + 'doppler:secretsSync/terraformCloud:TerraformCloud', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + delete_behavior: pulumi.Input[Optional[_builtins.str]] = None, + integration: pulumi.Input[Optional[_builtins.str]] = None, + name_transform: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + sync_target: pulumi.Input[Optional[_builtins.str]] = None, + variable_set_id: pulumi.Input[Optional[_builtins.str]] = None, + variable_sync_type: pulumi.Input[Optional[_builtins.str]] = None, + workspace_id: pulumi.Input[Optional[_builtins.str]] = None) -> 'TerraformCloud': + """ + Get an existing TerraformCloud resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + :param pulumi.Input[_builtins.str] integration: The slug of the integration to use for this sync + :param pulumi.Input[_builtins.str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" + :param pulumi.Input[_builtins.str] project: The name of the Doppler project + :param pulumi.Input[_builtins.str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to + :param pulumi.Input[_builtins.str] variable_set_id: The Terraform Cloud variable set ID to sync to + :param pulumi.Input[_builtins.str] variable_sync_type: Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + :param pulumi.Input[_builtins.str] workspace_id: The Terraform Cloud workspace ID to sync to + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _TerraformCloudState.__new__(_TerraformCloudState) + + __props__.__dict__["config"] = config + __props__.__dict__["delete_behavior"] = delete_behavior + __props__.__dict__["integration"] = integration + __props__.__dict__["name_transform"] = name_transform + __props__.__dict__["project"] = project + __props__.__dict__["sync_target"] = sync_target + __props__.__dict__["variable_set_id"] = variable_set_id + __props__.__dict__["variable_sync_type"] = variable_sync_type + __props__.__dict__["workspace_id"] = workspace_id + return TerraformCloud(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter(name="deleteBehavior") + def delete_behavior(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. + """ + return pulumi.get(self, "delete_behavior") + + @_builtins.property + @pulumi.getter + def integration(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the integration to use for this sync + """ + return pulumi.get(self, "integration") + + @_builtins.property + @pulumi.getter(name="nameTransform") + def name_transform(self) -> pulumi.Output[_builtins.str]: + """ + A name transform to apply before syncing secrets: "none" or "lowercase" + """ + return pulumi.get(self, "name_transform") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="syncTarget") + def sync_target(self) -> pulumi.Output[_builtins.str]: + """ + Either "workspace" or "variableSet", based on the resource type to sync to + """ + return pulumi.get(self, "sync_target") + + @_builtins.property + @pulumi.getter(name="variableSetId") + def variable_set_id(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The Terraform Cloud variable set ID to sync to + """ + return pulumi.get(self, "variable_set_id") + + @_builtins.property + @pulumi.getter(name="variableSyncType") + def variable_sync_type(self) -> pulumi.Output[_builtins.str]: + """ + Either "terraform" to sync secrets as Terraform variables or "env" to sync as environment variables + """ + return pulumi.get(self, "variable_sync_type") + + @_builtins.property + @pulumi.getter(name="workspaceId") + def workspace_id(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The Terraform Cloud workspace ID to sync to + """ + return pulumi.get(self, "workspace_id") + diff --git a/sdk/python/pulumiverse_doppler/service_account.py b/sdk/python/pulumi_doppler/service_account.py similarity index 60% rename from sdk/python/pulumiverse_doppler/service_account.py rename to sdk/python/pulumi_doppler/service_account.py index 66e8030..fcf533a 100644 --- a/sdk/python/pulumiverse_doppler/service_account.py +++ b/sdk/python/pulumi_doppler/service_account.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceAccountArgs', 'ServiceAccount'] @@ -14,14 +19,15 @@ @pulumi.input_type class ServiceAccountArgs: def __init__(__self__, *, - name: pulumi.Input[str], - workplace_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - workplace_role: Optional[pulumi.Input[str]] = None): + name: pulumi.Input[_builtins.str], + workplace_permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None): """ The set of arguments for constructing a ServiceAccount resource. - :param pulumi.Input[str] name: The name of the service account - :param pulumi.Input[Sequence[pulumi.Input[str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) - :param pulumi.Input[str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) + + :param pulumi.Input[_builtins.str] name: The name of the service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) + :param pulumi.Input[_builtins.str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) """ pulumi.set(__self__, "name", name) if workplace_permissions is not None: @@ -29,56 +35,57 @@ def __init__(__self__, *, if workplace_role is not None: pulumi.set(__self__, "workplace_role", workplace_role) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the service account """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter(name="workplacePermissions") - def workplace_permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def workplace_permissions(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ A list of the workplace permissions for the service account (or use `workplace_role`) """ return pulumi.get(self, "workplace_permissions") @workplace_permissions.setter - def workplace_permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def workplace_permissions(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "workplace_permissions", value) - @property + @_builtins.property @pulumi.getter(name="workplaceRole") - def workplace_role(self) -> Optional[pulumi.Input[str]]: + def workplace_role(self) -> pulumi.Input[Optional[_builtins.str]]: """ The identifier of the workplace role for the service account (or use `workplace_permissions`) """ return pulumi.get(self, "workplace_role") @workplace_role.setter - def workplace_role(self, value: Optional[pulumi.Input[str]]): + def workplace_role(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "workplace_role", value) @pulumi.input_type class _ServiceAccountState: def __init__(__self__, *, - name: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None, - workplace_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - workplace_role: Optional[pulumi.Input[str]] = None): + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + workplace_permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering ServiceAccount resources. - :param pulumi.Input[str] name: The name of the service account - :param pulumi.Input[str] slug: The slug of the service account - :param pulumi.Input[Sequence[pulumi.Input[str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) - :param pulumi.Input[str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) + + :param pulumi.Input[_builtins.str] name: The name of the service account + :param pulumi.Input[_builtins.str] slug: The slug of the service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) + :param pulumi.Input[_builtins.str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) """ if name is not None: pulumi.set(__self__, "name", name) @@ -89,63 +96,64 @@ def __init__(__self__, *, if workplace_role is not None: pulumi.set(__self__, "workplace_role", workplace_role) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the service account """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def slug(self) -> Optional[pulumi.Input[str]]: + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ The slug of the service account """ return pulumi.get(self, "slug") @slug.setter - def slug(self, value: Optional[pulumi.Input[str]]): + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "slug", value) - @property + @_builtins.property @pulumi.getter(name="workplacePermissions") - def workplace_permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + def workplace_permissions(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: """ A list of the workplace permissions for the service account (or use `workplace_role`) """ return pulumi.get(self, "workplace_permissions") @workplace_permissions.setter - def workplace_permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + def workplace_permissions(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): pulumi.set(self, "workplace_permissions", value) - @property + @_builtins.property @pulumi.getter(name="workplaceRole") - def workplace_role(self) -> Optional[pulumi.Input[str]]: + def workplace_role(self) -> pulumi.Input[Optional[_builtins.str]]: """ The identifier of the workplace role for the service account (or use `workplace_permissions`) """ return pulumi.get(self, "workplace_role") @workplace_role.setter - def workplace_role(self, value: Optional[pulumi.Input[str]]): + def workplace_role(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "workplace_role", value) +@pulumi.type_token("doppler:index/serviceAccount:ServiceAccount") class ServiceAccount(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - workplace_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - workplace_role: Optional[pulumi.Input[str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + workplace_permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler service account. @@ -154,26 +162,28 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler - ci = doppler.ServiceAccount("ci", name="ci") + ci = doppler.ServiceAccount("ci", + name="ci", + workplace_role="collaborator") ``` ## Import import using the service account slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug] ```sh $ pulumi import doppler:index/serviceAccount:ServiceAccount default ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the service account - :param pulumi.Input[Sequence[pulumi.Input[str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) - :param pulumi.Input[str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) + :param pulumi.Input[_builtins.str] name: The name of the service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) + :param pulumi.Input[_builtins.str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) """ ... @overload @@ -188,21 +198,23 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler - ci = doppler.ServiceAccount("ci", name="ci") + ci = doppler.ServiceAccount("ci", + name="ci", + workplace_role="collaborator") ``` ## Import import using the service account slug from the URL: - https://dashboard.doppler.com/workplace/[workplace-slug]/team/service_accounts/[service-account-slug] ```sh $ pulumi import doppler:index/serviceAccount:ServiceAccount default ``` + :param str resource_name: The name of the resource. :param ServiceAccountArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -218,9 +230,9 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - workplace_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - workplace_role: Optional[pulumi.Input[str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + workplace_permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -246,10 +258,10 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - name: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None, - workplace_permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - workplace_role: Optional[pulumi.Input[str]] = None) -> 'ServiceAccount': + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + workplace_permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + workplace_role: pulumi.Input[Optional[_builtins.str]] = None) -> 'ServiceAccount': """ Get an existing ServiceAccount resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -257,10 +269,10 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] name: The name of the service account - :param pulumi.Input[str] slug: The slug of the service account - :param pulumi.Input[Sequence[pulumi.Input[str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) - :param pulumi.Input[str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) + :param pulumi.Input[_builtins.str] name: The name of the service account + :param pulumi.Input[_builtins.str] slug: The slug of the service account + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] workplace_permissions: A list of the workplace permissions for the service account (or use `workplace_role`) + :param pulumi.Input[_builtins.str] workplace_role: The identifier of the workplace role for the service account (or use `workplace_permissions`) """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -272,33 +284,33 @@ def get(resource_name: str, __props__.__dict__["workplace_role"] = workplace_role return ServiceAccount(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the service account """ return pulumi.get(self, "name") - @property + @_builtins.property @pulumi.getter - def slug(self) -> pulumi.Output[str]: + def slug(self) -> pulumi.Output[_builtins.str]: """ The slug of the service account """ return pulumi.get(self, "slug") - @property + @_builtins.property @pulumi.getter(name="workplacePermissions") - def workplace_permissions(self) -> pulumi.Output[Optional[Sequence[str]]]: + def workplace_permissions(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]: """ A list of the workplace permissions for the service account (or use `workplace_role`) """ return pulumi.get(self, "workplace_permissions") - @property + @_builtins.property @pulumi.getter(name="workplaceRole") - def workplace_role(self) -> pulumi.Output[Optional[str]]: + def workplace_role(self) -> pulumi.Output[Optional[_builtins.str]]: """ The identifier of the workplace role for the service account (or use `workplace_permissions`) """ diff --git a/sdk/python/pulumi_doppler/service_account_identity.py b/sdk/python/pulumi_doppler/service_account_identity.py new file mode 100644 index 0000000..27b7e92 --- /dev/null +++ b/sdk/python/pulumi_doppler/service_account_identity.py @@ -0,0 +1,406 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['ServiceAccountIdentityArgs', 'ServiceAccountIdentity'] + +@pulumi.input_type +class ServiceAccountIdentityArgs: + def __init__(__self__, *, + config_oidc: pulumi.Input['ServiceAccountIdentityConfigOidcArgs'], + name: pulumi.Input[_builtins.str], + service_account_slug: pulumi.Input[_builtins.str], + ttl_seconds: pulumi.Input[_builtins.int]): + """ + The set of arguments for constructing a ServiceAccountIdentity resource. + + :param pulumi.Input['ServiceAccountIdentityConfigOidcArgs'] config_oidc: The OIDC configuration for the identity + :param pulumi.Input[_builtins.str] name: The display name of the service account identity + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.int] ttl_seconds: The amount of time, in seconds, that auth tokens for this identity will be valid + """ + pulumi.set(__self__, "config_oidc", config_oidc) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "service_account_slug", service_account_slug) + pulumi.set(__self__, "ttl_seconds", ttl_seconds) + + @_builtins.property + @pulumi.getter(name="configOidc") + def config_oidc(self) -> pulumi.Input['ServiceAccountIdentityConfigOidcArgs']: + """ + The OIDC configuration for the identity + """ + return pulumi.get(self, "config_oidc") + + @config_oidc.setter + def config_oidc(self, value: pulumi.Input['ServiceAccountIdentityConfigOidcArgs']): + pulumi.set(self, "config_oidc", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The display name of the service account identity + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="serviceAccountSlug") + def service_account_slug(self) -> pulumi.Input[_builtins.str]: + """ + Slug of the service account + """ + return pulumi.get(self, "service_account_slug") + + @service_account_slug.setter + def service_account_slug(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "service_account_slug", value) + + @_builtins.property + @pulumi.getter(name="ttlSeconds") + def ttl_seconds(self) -> pulumi.Input[_builtins.int]: + """ + The amount of time, in seconds, that auth tokens for this identity will be valid + """ + return pulumi.get(self, "ttl_seconds") + + @ttl_seconds.setter + def ttl_seconds(self, value: pulumi.Input[_builtins.int]): + pulumi.set(self, "ttl_seconds", value) + + +@pulumi.input_type +class _ServiceAccountIdentityState: + def __init__(__self__, *, + config_oidc: pulumi.Input[Optional['ServiceAccountIdentityConfigOidcArgs']] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + ttl_seconds: pulumi.Input[Optional[_builtins.int]] = None): + """ + Input properties used for looking up and filtering ServiceAccountIdentity resources. + + :param pulumi.Input['ServiceAccountIdentityConfigOidcArgs'] config_oidc: The OIDC configuration for the identity + :param pulumi.Input[_builtins.str] name: The display name of the service account identity + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.str] slug: Slug of the service account identity + :param pulumi.Input[_builtins.int] ttl_seconds: The amount of time, in seconds, that auth tokens for this identity will be valid + """ + if config_oidc is not None: + pulumi.set(__self__, "config_oidc", config_oidc) + if name is not None: + pulumi.set(__self__, "name", name) + if service_account_slug is not None: + pulumi.set(__self__, "service_account_slug", service_account_slug) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if ttl_seconds is not None: + pulumi.set(__self__, "ttl_seconds", ttl_seconds) + + @_builtins.property + @pulumi.getter(name="configOidc") + def config_oidc(self) -> pulumi.Input[Optional['ServiceAccountIdentityConfigOidcArgs']]: + """ + The OIDC configuration for the identity + """ + return pulumi.get(self, "config_oidc") + + @config_oidc.setter + def config_oidc(self, value: pulumi.Input[Optional['ServiceAccountIdentityConfigOidcArgs']]): + pulumi.set(self, "config_oidc", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The display name of the service account identity + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter(name="serviceAccountSlug") + def service_account_slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Slug of the service account + """ + return pulumi.get(self, "service_account_slug") + + @service_account_slug.setter + def service_account_slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "service_account_slug", value) + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Slug of the service account identity + """ + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "slug", value) + + @_builtins.property + @pulumi.getter(name="ttlSeconds") + def ttl_seconds(self) -> pulumi.Input[Optional[_builtins.int]]: + """ + The amount of time, in seconds, that auth tokens for this identity will be valid + """ + return pulumi.get(self, "ttl_seconds") + + @ttl_seconds.setter + def ttl_seconds(self, value: pulumi.Input[Optional[_builtins.int]]): + pulumi.set(self, "ttl_seconds", value) + + +@pulumi.type_token("doppler:index/serviceAccountIdentity:ServiceAccountIdentity") +class ServiceAccountIdentity(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config_oidc: pulumi.Input[Optional[Union['ServiceAccountIdentityConfigOidcArgs', 'ServiceAccountIdentityConfigOidcArgsDict', 'outputs.ServiceAccountIdentityConfigOidc']]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + ttl_seconds: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + """ + Manage a Doppler service account identity. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + ci = doppler.ServiceAccount("ci", + name="ci", + workplace_role="collaborator") + github_oidc = doppler.ServiceAccountIdentity("github_oidc", + config_oidc={ + "claims": [ + { + "key": "aud", + "values": ["https://github.com/DopplerHQ"], + }, + { + "key": "sub", + "values": [ + "repo:DopplerHQ/terraform-provider-doppler:pull_request", + "repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*", + ], + }, + ], + "discovery_url": "https://token.actions.githubusercontent.com", + "claims_type": "wildcard", + }, + service_account_slug=ci.slug, + name="GitHub Actions OIDC", + ttl_seconds=600) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/serviceAccountIdentity:ServiceAccountIdentity default . + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['ServiceAccountIdentityConfigOidcArgs', 'ServiceAccountIdentityConfigOidcArgsDict', 'outputs.ServiceAccountIdentityConfigOidc']] config_oidc: The OIDC configuration for the identity + :param pulumi.Input[_builtins.str] name: The display name of the service account identity + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.int] ttl_seconds: The amount of time, in seconds, that auth tokens for this identity will be valid + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ServiceAccountIdentityArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler service account identity. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + ci = doppler.ServiceAccount("ci", + name="ci", + workplace_role="collaborator") + github_oidc = doppler.ServiceAccountIdentity("github_oidc", + config_oidc={ + "claims": [ + { + "key": "aud", + "values": ["https://github.com/DopplerHQ"], + }, + { + "key": "sub", + "values": [ + "repo:DopplerHQ/terraform-provider-doppler:pull_request", + "repo:DopplerHQ/terraform-provider-doppler:ref:refs/heads/feature*", + ], + }, + ], + "discovery_url": "https://token.actions.githubusercontent.com", + "claims_type": "wildcard", + }, + service_account_slug=ci.slug, + name="GitHub Actions OIDC", + ttl_seconds=600) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/serviceAccountIdentity:ServiceAccountIdentity default . + ``` + + + :param str resource_name: The name of the resource. + :param ServiceAccountIdentityArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ServiceAccountIdentityArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config_oidc: pulumi.Input[Optional[Union['ServiceAccountIdentityConfigOidcArgs', 'ServiceAccountIdentityConfigOidcArgsDict', 'outputs.ServiceAccountIdentityConfigOidc']]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + ttl_seconds: pulumi.Input[Optional[_builtins.int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ServiceAccountIdentityArgs.__new__(ServiceAccountIdentityArgs) + + if config_oidc is None and not opts.urn: + raise TypeError("Missing required property 'config_oidc'") + __props__.__dict__["config_oidc"] = config_oidc + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if service_account_slug is None and not opts.urn: + raise TypeError("Missing required property 'service_account_slug'") + __props__.__dict__["service_account_slug"] = service_account_slug + if ttl_seconds is None and not opts.urn: + raise TypeError("Missing required property 'ttl_seconds'") + __props__.__dict__["ttl_seconds"] = ttl_seconds + __props__.__dict__["slug"] = None + super(ServiceAccountIdentity, __self__).__init__( + 'doppler:index/serviceAccountIdentity:ServiceAccountIdentity', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config_oidc: pulumi.Input[Optional[Union['ServiceAccountIdentityConfigOidcArgs', 'ServiceAccountIdentityConfigOidcArgsDict', 'outputs.ServiceAccountIdentityConfigOidc']]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + ttl_seconds: pulumi.Input[Optional[_builtins.int]] = None) -> 'ServiceAccountIdentity': + """ + Get an existing ServiceAccountIdentity resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['ServiceAccountIdentityConfigOidcArgs', 'ServiceAccountIdentityConfigOidcArgsDict', 'outputs.ServiceAccountIdentityConfigOidc']] config_oidc: The OIDC configuration for the identity + :param pulumi.Input[_builtins.str] name: The display name of the service account identity + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.str] slug: Slug of the service account identity + :param pulumi.Input[_builtins.int] ttl_seconds: The amount of time, in seconds, that auth tokens for this identity will be valid + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ServiceAccountIdentityState.__new__(_ServiceAccountIdentityState) + + __props__.__dict__["config_oidc"] = config_oidc + __props__.__dict__["name"] = name + __props__.__dict__["service_account_slug"] = service_account_slug + __props__.__dict__["slug"] = slug + __props__.__dict__["ttl_seconds"] = ttl_seconds + return ServiceAccountIdentity(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter(name="configOidc") + def config_oidc(self) -> pulumi.Output['outputs.ServiceAccountIdentityConfigOidc']: + """ + The OIDC configuration for the identity + """ + return pulumi.get(self, "config_oidc") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The display name of the service account identity + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter(name="serviceAccountSlug") + def service_account_slug(self) -> pulumi.Output[_builtins.str]: + """ + Slug of the service account + """ + return pulumi.get(self, "service_account_slug") + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Output[_builtins.str]: + """ + Slug of the service account identity + """ + return pulumi.get(self, "slug") + + @_builtins.property + @pulumi.getter(name="ttlSeconds") + def ttl_seconds(self) -> pulumi.Output[_builtins.int]: + """ + The amount of time, in seconds, that auth tokens for this identity will be valid + """ + return pulumi.get(self, "ttl_seconds") + diff --git a/sdk/python/pulumiverse_doppler/service_account_token.py b/sdk/python/pulumi_doppler/service_account_token.py similarity index 56% rename from sdk/python/pulumiverse_doppler/service_account_token.py rename to sdk/python/pulumi_doppler/service_account_token.py index c441c3b..ec604d6 100644 --- a/sdk/python/pulumiverse_doppler/service_account_token.py +++ b/sdk/python/pulumi_doppler/service_account_token.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceAccountTokenArgs', 'ServiceAccountToken'] @@ -14,74 +19,76 @@ @pulumi.input_type class ServiceAccountTokenArgs: def __init__(__self__, *, - name: pulumi.Input[str], - service_account_slug: pulumi.Input[str], - expires_at: Optional[pulumi.Input[str]] = None): + name: pulumi.Input[_builtins.str], + service_account_slug: pulumi.Input[_builtins.str], + expires_at: pulumi.Input[Optional[_builtins.str]] = None): """ The set of arguments for constructing a ServiceAccountToken resource. - :param pulumi.Input[str] name: The display name of the API token - :param pulumi.Input[str] service_account_slug: Slug of the service account - :param pulumi.Input[str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked + + :param pulumi.Input[_builtins.str] name: The display name of the API token + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked """ pulumi.set(__self__, "name", name) pulumi.set(__self__, "service_account_slug", service_account_slug) if expires_at is not None: pulumi.set(__self__, "expires_at", expires_at) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The display name of the API token """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter(name="serviceAccountSlug") - def service_account_slug(self) -> pulumi.Input[str]: + def service_account_slug(self) -> pulumi.Input[_builtins.str]: """ Slug of the service account """ return pulumi.get(self, "service_account_slug") @service_account_slug.setter - def service_account_slug(self, value: pulumi.Input[str]): + def service_account_slug(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "service_account_slug", value) - @property + @_builtins.property @pulumi.getter(name="expiresAt") - def expires_at(self) -> Optional[pulumi.Input[str]]: + def expires_at(self) -> pulumi.Input[Optional[_builtins.str]]: """ The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked """ return pulumi.get(self, "expires_at") @expires_at.setter - def expires_at(self, value: Optional[pulumi.Input[str]]): + def expires_at(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "expires_at", value) @pulumi.input_type class _ServiceAccountTokenState: def __init__(__self__, *, - api_key: Optional[pulumi.Input[str]] = None, - created_at: Optional[pulumi.Input[str]] = None, - expires_at: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None): + api_key: pulumi.Input[Optional[_builtins.str]] = None, + created_at: pulumi.Input[Optional[_builtins.str]] = None, + expires_at: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering ServiceAccountToken resources. - :param pulumi.Input[str] api_key: The api key used to authenticate the service account - :param pulumi.Input[str] created_at: The datetime that the token was created. - :param pulumi.Input[str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked - :param pulumi.Input[str] name: The display name of the API token - :param pulumi.Input[str] service_account_slug: Slug of the service account - :param pulumi.Input[str] slug: Slug of the service account token + + :param pulumi.Input[_builtins.str] api_key: The api key used to authenticate the service account + :param pulumi.Input[_builtins.str] created_at: The datetime that the token was created. + :param pulumi.Input[_builtins.str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked + :param pulumi.Input[_builtins.str] name: The display name of the API token + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.str] slug: Slug of the service account token """ if api_key is not None: pulumi.set(__self__, "api_key", api_key) @@ -96,96 +103,113 @@ def __init__(__self__, *, if slug is not None: pulumi.set(__self__, "slug", slug) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> Optional[pulumi.Input[str]]: + def api_key(self) -> pulumi.Input[Optional[_builtins.str]]: """ The api key used to authenticate the service account """ return pulumi.get(self, "api_key") @api_key.setter - def api_key(self, value: Optional[pulumi.Input[str]]): + def api_key(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "api_key", value) - @property + @_builtins.property @pulumi.getter(name="createdAt") - def created_at(self) -> Optional[pulumi.Input[str]]: + def created_at(self) -> pulumi.Input[Optional[_builtins.str]]: """ The datetime that the token was created. """ return pulumi.get(self, "created_at") @created_at.setter - def created_at(self, value: Optional[pulumi.Input[str]]): + def created_at(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "created_at", value) - @property + @_builtins.property @pulumi.getter(name="expiresAt") - def expires_at(self) -> Optional[pulumi.Input[str]]: + def expires_at(self) -> pulumi.Input[Optional[_builtins.str]]: """ The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked """ return pulumi.get(self, "expires_at") @expires_at.setter - def expires_at(self, value: Optional[pulumi.Input[str]]): + def expires_at(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "expires_at", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The display name of the API token """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter(name="serviceAccountSlug") - def service_account_slug(self) -> Optional[pulumi.Input[str]]: + def service_account_slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ Slug of the service account """ return pulumi.get(self, "service_account_slug") @service_account_slug.setter - def service_account_slug(self, value: Optional[pulumi.Input[str]]): + def service_account_slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "service_account_slug", value) - @property + @_builtins.property @pulumi.getter - def slug(self) -> Optional[pulumi.Input[str]]: + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: """ Slug of the service account token """ return pulumi.get(self, "slug") @slug.setter - def slug(self, value: Optional[pulumi.Input[str]]): + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "slug", value) +@pulumi.type_token("doppler:index/serviceAccountToken:ServiceAccountToken") class ServiceAccountToken(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - expires_at: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None, + expires_at: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler service account token. + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + ci = doppler.ServiceAccount("ci", + name="ci", + workplace_role="collaborator") + builder_ci_token = doppler.ServiceAccountToken("builder_ci_token", + service_account_slug=ci.slug, + name="Builder CI Token", + expires_at="2024-05-30T11:00:00.000Z") + ``` + + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked - :param pulumi.Input[str] name: The display name of the API token - :param pulumi.Input[str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked + :param pulumi.Input[_builtins.str] name: The display name of the API token + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account """ ... @overload @@ -196,6 +220,22 @@ def __init__(__self__, """ Manage a Doppler service account token. + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + ci = doppler.ServiceAccount("ci", + name="ci", + workplace_role="collaborator") + builder_ci_token = doppler.ServiceAccountToken("builder_ci_token", + service_account_slug=ci.slug, + name="Builder CI Token", + expires_at="2024-05-30T11:00:00.000Z") + ``` + + :param str resource_name: The name of the resource. :param ServiceAccountTokenArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -211,9 +251,9 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - expires_at: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None, + expires_at: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -245,12 +285,12 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - api_key: Optional[pulumi.Input[str]] = None, - created_at: Optional[pulumi.Input[str]] = None, - expires_at: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - service_account_slug: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None) -> 'ServiceAccountToken': + api_key: pulumi.Input[Optional[_builtins.str]] = None, + created_at: pulumi.Input[Optional[_builtins.str]] = None, + expires_at: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + service_account_slug: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'ServiceAccountToken': """ Get an existing ServiceAccountToken resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -258,12 +298,12 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_key: The api key used to authenticate the service account - :param pulumi.Input[str] created_at: The datetime that the token was created. - :param pulumi.Input[str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked - :param pulumi.Input[str] name: The display name of the API token - :param pulumi.Input[str] service_account_slug: Slug of the service account - :param pulumi.Input[str] slug: Slug of the service account token + :param pulumi.Input[_builtins.str] api_key: The api key used to authenticate the service account + :param pulumi.Input[_builtins.str] created_at: The datetime that the token was created. + :param pulumi.Input[_builtins.str] expires_at: The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked + :param pulumi.Input[_builtins.str] name: The display name of the API token + :param pulumi.Input[_builtins.str] service_account_slug: Slug of the service account + :param pulumi.Input[_builtins.str] slug: Slug of the service account token """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -277,49 +317,49 @@ def get(resource_name: str, __props__.__dict__["slug"] = slug return ServiceAccountToken(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter(name="apiKey") - def api_key(self) -> pulumi.Output[str]: + def api_key(self) -> pulumi.Output[_builtins.str]: """ The api key used to authenticate the service account """ return pulumi.get(self, "api_key") - @property + @_builtins.property @pulumi.getter(name="createdAt") - def created_at(self) -> pulumi.Output[str]: + def created_at(self) -> pulumi.Output[_builtins.str]: """ The datetime that the token was created. """ return pulumi.get(self, "created_at") - @property + @_builtins.property @pulumi.getter(name="expiresAt") - def expires_at(self) -> pulumi.Output[Optional[str]]: + def expires_at(self) -> pulumi.Output[Optional[_builtins.str]]: """ The datetime at which the API token should expire. If not provided, the API token will remain valid indefinitely unless manually revoked """ return pulumi.get(self, "expires_at") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The display name of the API token """ return pulumi.get(self, "name") - @property + @_builtins.property @pulumi.getter(name="serviceAccountSlug") - def service_account_slug(self) -> pulumi.Output[str]: + def service_account_slug(self) -> pulumi.Output[_builtins.str]: """ Slug of the service account """ return pulumi.get(self, "service_account_slug") - @property + @_builtins.property @pulumi.getter - def slug(self) -> pulumi.Output[str]: + def slug(self) -> pulumi.Output[_builtins.str]: """ Slug of the service account token """ diff --git a/sdk/python/pulumiverse_doppler/service_token.py b/sdk/python/pulumi_doppler/service_token.py similarity index 60% rename from sdk/python/pulumiverse_doppler/service_token.py rename to sdk/python/pulumi_doppler/service_token.py index 4295b2c..d0d8202 100644 --- a/sdk/python/pulumiverse_doppler/service_token.py +++ b/sdk/python/pulumi_doppler/service_token.py @@ -1,12 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** WARNING: this file was generated by pulumi-language-python. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import copy +import builtins as _builtins import warnings +import sys import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias from . import _utilities __all__ = ['ServiceTokenArgs', 'ServiceToken'] @@ -14,16 +19,17 @@ @pulumi.input_type class ServiceTokenArgs: def __init__(__self__, *, - config: pulumi.Input[str], - name: pulumi.Input[str], - project: pulumi.Input[str], - access: Optional[pulumi.Input[str]] = None): + config: pulumi.Input[_builtins.str], + name: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + access: pulumi.Input[Optional[_builtins.str]] = None): """ The set of arguments for constructing a ServiceToken resource. - :param pulumi.Input[str] config: The name of the Doppler config where the service token is located - :param pulumi.Input[str] name: The name of the Doppler service token - :param pulumi.Input[str] project: The name of the Doppler project where the service token is located - :param pulumi.Input[str] access: The access level (read or read/write) + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config where the service token is located + :param pulumi.Input[_builtins.str] name: The name of the Doppler service token + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the service token is located + :param pulumi.Input[_builtins.str] access: The access level (read or read/write) """ pulumi.set(__self__, "config", config) pulumi.set(__self__, "name", name) @@ -31,70 +37,71 @@ def __init__(__self__, *, if access is not None: pulumi.set(__self__, "access", access) - @property + @_builtins.property @pulumi.getter - def config(self) -> pulumi.Input[str]: + def config(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler config where the service token is located """ return pulumi.get(self, "config") @config.setter - def config(self, value: pulumi.Input[str]): + def config(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "config", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def name(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler service token """ return pulumi.get(self, "name") @name.setter - def name(self, value: pulumi.Input[str]): + def name(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Input[str]: + def project(self) -> pulumi.Input[_builtins.str]: """ The name of the Doppler project where the service token is located """ return pulumi.get(self, "project") @project.setter - def project(self, value: pulumi.Input[str]): + def project(self, value: pulumi.Input[_builtins.str]): pulumi.set(self, "project", value) - @property + @_builtins.property @pulumi.getter - def access(self) -> Optional[pulumi.Input[str]]: + def access(self) -> pulumi.Input[Optional[_builtins.str]]: """ The access level (read or read/write) """ return pulumi.get(self, "access") @access.setter - def access(self, value: Optional[pulumi.Input[str]]): + def access(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "access", value) @pulumi.input_type class _ServiceTokenState: def __init__(__self__, *, - access: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None): + access: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None): """ Input properties used for looking up and filtering ServiceToken resources. - :param pulumi.Input[str] access: The access level (read or read/write) - :param pulumi.Input[str] config: The name of the Doppler config where the service token is located - :param pulumi.Input[str] key: The key for the Doppler service token - :param pulumi.Input[str] name: The name of the Doppler service token - :param pulumi.Input[str] project: The name of the Doppler project where the service token is located + + :param pulumi.Input[_builtins.str] access: The access level (read or read/write) + :param pulumi.Input[_builtins.str] config: The name of the Doppler config where the service token is located + :param pulumi.Input[_builtins.str] key: The key for the Doppler service token + :param pulumi.Input[_builtins.str] name: The name of the Doppler service token + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the service token is located """ if access is not None: pulumi.set(__self__, "access", access) @@ -107,76 +114,77 @@ def __init__(__self__, *, if project is not None: pulumi.set(__self__, "project", project) - @property + @_builtins.property @pulumi.getter - def access(self) -> Optional[pulumi.Input[str]]: + def access(self) -> pulumi.Input[Optional[_builtins.str]]: """ The access level (read or read/write) """ return pulumi.get(self, "access") @access.setter - def access(self, value: Optional[pulumi.Input[str]]): + def access(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "access", value) - @property + @_builtins.property @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: + def config(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler config where the service token is located """ return pulumi.get(self, "config") @config.setter - def config(self, value: Optional[pulumi.Input[str]]): + def config(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "config", value) - @property + @_builtins.property @pulumi.getter - def key(self) -> Optional[pulumi.Input[str]]: + def key(self) -> pulumi.Input[Optional[_builtins.str]]: """ The key for the Doppler service token """ return pulumi.get(self, "key") @key.setter - def key(self, value: Optional[pulumi.Input[str]]): + def key(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "key", value) - @property + @_builtins.property @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: + def name(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler service token """ return pulumi.get(self, "name") @name.setter - def name(self, value: Optional[pulumi.Input[str]]): + def name(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "name", value) - @property + @_builtins.property @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: + def project(self) -> pulumi.Input[Optional[_builtins.str]]: """ The name of the Doppler project where the service token is located """ return pulumi.get(self, "project") @project.setter - def project(self, value: Optional[pulumi.Input[str]]): + def project(self, value: pulumi.Input[Optional[_builtins.str]]): pulumi.set(self, "project", value) +@pulumi.type_token("doppler:index/serviceToken:ServiceToken") class ServiceToken(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - access: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, + access: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): """ Manage a Doppler service token. @@ -185,7 +193,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler backend_ci_token = doppler.ServiceToken("backend_ci_token", project="backend", @@ -194,12 +202,13 @@ def __init__(__self__, access="read") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] access: The access level (read or read/write) - :param pulumi.Input[str] config: The name of the Doppler config where the service token is located - :param pulumi.Input[str] name: The name of the Doppler service token - :param pulumi.Input[str] project: The name of the Doppler project where the service token is located + :param pulumi.Input[_builtins.str] access: The access level (read or read/write) + :param pulumi.Input[_builtins.str] config: The name of the Doppler config where the service token is located + :param pulumi.Input[_builtins.str] name: The name of the Doppler service token + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the service token is located """ ... @overload @@ -214,7 +223,7 @@ def __init__(__self__, ```python import pulumi - import pulumiverse_doppler as doppler + import pulumi_doppler as doppler backend_ci_token = doppler.ServiceToken("backend_ci_token", project="backend", @@ -223,6 +232,7 @@ def __init__(__self__, access="read") ``` + :param str resource_name: The name of the resource. :param ServiceTokenArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. @@ -238,10 +248,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - access: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, + access: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -274,11 +284,11 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - access: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - key: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None) -> 'ServiceToken': + access: pulumi.Input[Optional[_builtins.str]] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + key: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None) -> 'ServiceToken': """ Get an existing ServiceToken resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -286,11 +296,11 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] access: The access level (read or read/write) - :param pulumi.Input[str] config: The name of the Doppler config where the service token is located - :param pulumi.Input[str] key: The key for the Doppler service token - :param pulumi.Input[str] name: The name of the Doppler service token - :param pulumi.Input[str] project: The name of the Doppler project where the service token is located + :param pulumi.Input[_builtins.str] access: The access level (read or read/write) + :param pulumi.Input[_builtins.str] config: The name of the Doppler config where the service token is located + :param pulumi.Input[_builtins.str] key: The key for the Doppler service token + :param pulumi.Input[_builtins.str] name: The name of the Doppler service token + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the service token is located """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -303,41 +313,41 @@ def get(resource_name: str, __props__.__dict__["project"] = project return ServiceToken(resource_name, opts=opts, __props__=__props__) - @property + @_builtins.property @pulumi.getter - def access(self) -> pulumi.Output[Optional[str]]: + def access(self) -> pulumi.Output[Optional[_builtins.str]]: """ The access level (read or read/write) """ return pulumi.get(self, "access") - @property + @_builtins.property @pulumi.getter - def config(self) -> pulumi.Output[str]: + def config(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler config where the service token is located """ return pulumi.get(self, "config") - @property + @_builtins.property @pulumi.getter - def key(self) -> pulumi.Output[str]: + def key(self) -> pulumi.Output[_builtins.str]: """ The key for the Doppler service token """ return pulumi.get(self, "key") - @property + @_builtins.property @pulumi.getter - def name(self) -> pulumi.Output[str]: + def name(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler service token """ return pulumi.get(self, "name") - @property + @_builtins.property @pulumi.getter - def project(self) -> pulumi.Output[str]: + def project(self) -> pulumi.Output[_builtins.str]: """ The name of the Doppler project where the service token is located """ diff --git a/sdk/python/pulumi_doppler/tag.py b/sdk/python/pulumi_doppler/tag.py new file mode 100644 index 0000000..b0ef655 --- /dev/null +++ b/sdk/python/pulumi_doppler/tag.py @@ -0,0 +1,284 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['TagArgs', 'Tag'] + +@pulumi.input_type +class TagArgs: + def __init__(__self__, *, + name: pulumi.Input[_builtins.str], + color: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a Tag resource. + + :param pulumi.Input[_builtins.str] name: The name of the tag + :param pulumi.Input[_builtins.str] color: The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + :param pulumi.Input[_builtins.str] slug: The slug of the tag. Generated from the name when omitted + """ + pulumi.set(__self__, "name", name) + if color is not None: + pulumi.set(__self__, "color", color) + if slug is not None: + pulumi.set(__self__, "slug", slug) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the tag + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def color(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + """ + return pulumi.get(self, "color") + + @color.setter + def color(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "color", value) + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the tag. Generated from the name when omitted + """ + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "slug", value) + + +@pulumi.input_type +class _TagState: + def __init__(__self__, *, + color: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Tag resources. + + :param pulumi.Input[_builtins.str] color: The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + :param pulumi.Input[_builtins.str] name: The name of the tag + :param pulumi.Input[_builtins.str] slug: The slug of the tag. Generated from the name when omitted + """ + if color is not None: + pulumi.set(__self__, "color", color) + if name is not None: + pulumi.set(__self__, "name", name) + if slug is not None: + pulumi.set(__self__, "slug", slug) + + @_builtins.property + @pulumi.getter + def color(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + """ + return pulumi.get(self, "color") + + @color.setter + def color(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "color", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the tag + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the tag. Generated from the name when omitted + """ + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "slug", value) + + +@pulumi.type_token("doppler:index/tag:Tag") +class Tag(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + color: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler tag. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend = doppler.Tag("backend", + name="Backend", + color="blue") + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/tag:Tag default + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] color: The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + :param pulumi.Input[_builtins.str] name: The name of the tag + :param pulumi.Input[_builtins.str] slug: The slug of the tag. Generated from the name when omitted + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TagArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler tag. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend = doppler.Tag("backend", + name="Backend", + color="blue") + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/tag:Tag default + ``` + + + :param str resource_name: The name of the resource. + :param TagArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TagArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + color: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = TagArgs.__new__(TagArgs) + + __props__.__dict__["color"] = color + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["slug"] = slug + super(Tag, __self__).__init__( + 'doppler:index/tag:Tag', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + color: pulumi.Input[Optional[_builtins.str]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None) -> 'Tag': + """ + Get an existing Tag resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] color: The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + :param pulumi.Input[_builtins.str] name: The name of the tag + :param pulumi.Input[_builtins.str] slug: The slug of the tag. Generated from the name when omitted + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _TagState.__new__(_TagState) + + __props__.__dict__["color"] = color + __props__.__dict__["name"] = name + __props__.__dict__["slug"] = slug + return Tag(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def color(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The color of the tag. One of `gray` (default), `purple`, `blue`, `green`, `yellow`, `orange`, `red`, or `pink` + """ + return pulumi.get(self, "color") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the tag + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the tag. Generated from the name when omitted + """ + return pulumi.get(self, "slug") + diff --git a/sdk/python/pulumi_doppler/trusted_ips.py b/sdk/python/pulumi_doppler/trusted_ips.py new file mode 100644 index 0000000..cffd0e1 --- /dev/null +++ b/sdk/python/pulumi_doppler/trusted_ips.py @@ -0,0 +1,334 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['TrustedIpsArgs', 'TrustedIps'] + +@pulumi.input_type +class TrustedIpsArgs: + def __init__(__self__, *, + config: pulumi.Input[_builtins.str], + project: pulumi.Input[_builtins.str], + trusted_ips: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + """ + The set of arguments for constructing a TrustedIps resource. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] trusted_ips: List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "trusted_ips", trusted_ips) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project where the config is located + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="trustedIps") + def trusted_ips(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: + """ + List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + return pulumi.get(self, "trusted_ips") + + @trusted_ips.setter + def trusted_ips(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + pulumi.set(self, "trusted_ips", value) + + +@pulumi.input_type +class _TrustedIpsState: + def __init__(__self__, *, + config: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + trusted_ips: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): + """ + Input properties used for looking up and filtering TrustedIps resources. + + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] trusted_ips: List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + if config is not None: + pulumi.set(__self__, "config", config) + if project is not None: + pulumi.set(__self__, "project", project) + if trusted_ips is not None: + pulumi.set(__self__, "trusted_ips", trusted_ips) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @config.setter + def config(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "config", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project where the config is located + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter(name="trustedIps") + def trusted_ips(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + return pulumi.get(self, "trusted_ips") + + @trusted_ips.setter + def trusted_ips(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "trusted_ips", value) + + +@pulumi.type_token("doppler:index/trustedIps:TrustedIps") +class TrustedIps(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + trusted_ips: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + __props__=None): + """ + Manage the trusted IP allowlist for a Doppler config. Only requests from the specified IP ranges will be permitted to access the config's secrets via the API. + + Requires a **Team or Enterprise plan**. Collaborators and other project roles with the `enclave_project_config_trusted_ips` permission have permission to manage trusted ips for a config. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend_prd = doppler.TrustedIps("backend_prd", + project="backend", + config="prd", + trusted_ips=[ + "203.0.113.0/24", + "198.51.100.5/32", + "2001:db8::1/128", + ]) + backend_stg = doppler.TrustedIps("backend_stg", + project="backend", + config="stg", + trusted_ips=["203.0.113.0/24"]) + backend_dev = doppler.TrustedIps("backend_dev", + project="backend", + config="dev", + trusted_ips=["0.0.0.0/0"]) + ``` + + ## Notes + + - **Warning:** Reconfiguring trusted IPs could lock you out of the config if the current client IP is not included in the trusted list. + - The default state for any config is `["0.0.0.0/0"]` (allow all traffic). Deleting this resource restores that default. + - Trusted IPs restrict API access only. They do not affect Dashboard logins. + - IP addresses must be specified in CIDR notation. Use `/32` for an exact IPv4 address and `/128` for an exact IPv6 address (e.g. `1.2.3.4/32` or `2001:db8::1/128`). + + ## Import + + An existing trusted IP configuration can be imported using `.`: + + ```sh + $ pulumi import doppler:index/trustedIps:TrustedIps backend_prd backend.prd + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] trusted_ips: List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: TrustedIpsArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage the trusted IP allowlist for a Doppler config. Only requests from the specified IP ranges will be permitted to access the config's secrets via the API. + + Requires a **Team or Enterprise plan**. Collaborators and other project roles with the `enclave_project_config_trusted_ips` permission have permission to manage trusted ips for a config. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + backend_prd = doppler.TrustedIps("backend_prd", + project="backend", + config="prd", + trusted_ips=[ + "203.0.113.0/24", + "198.51.100.5/32", + "2001:db8::1/128", + ]) + backend_stg = doppler.TrustedIps("backend_stg", + project="backend", + config="stg", + trusted_ips=["203.0.113.0/24"]) + backend_dev = doppler.TrustedIps("backend_dev", + project="backend", + config="dev", + trusted_ips=["0.0.0.0/0"]) + ``` + + ## Notes + + - **Warning:** Reconfiguring trusted IPs could lock you out of the config if the current client IP is not included in the trusted list. + - The default state for any config is `["0.0.0.0/0"]` (allow all traffic). Deleting this resource restores that default. + - Trusted IPs restrict API access only. They do not affect Dashboard logins. + - IP addresses must be specified in CIDR notation. Use `/32` for an exact IPv4 address and `/128` for an exact IPv6 address (e.g. `1.2.3.4/32` or `2001:db8::1/128`). + + ## Import + + An existing trusted IP configuration can be imported using `.`: + + ```sh + $ pulumi import doppler:index/trustedIps:TrustedIps backend_prd backend.prd + ``` + + + :param str resource_name: The name of the resource. + :param TrustedIpsArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(TrustedIpsArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + trusted_ips: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = TrustedIpsArgs.__new__(TrustedIpsArgs) + + if config is None and not opts.urn: + raise TypeError("Missing required property 'config'") + __props__.__dict__["config"] = config + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + if trusted_ips is None and not opts.urn: + raise TypeError("Missing required property 'trusted_ips'") + __props__.__dict__["trusted_ips"] = trusted_ips + super(TrustedIps, __self__).__init__( + 'doppler:index/trustedIps:TrustedIps', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + config: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + trusted_ips: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'TrustedIps': + """ + Get an existing TrustedIps resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] config: The name of the Doppler config + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the config is located + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] trusted_ips: List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _TrustedIpsState.__new__(_TrustedIpsState) + + __props__.__dict__["config"] = config + __props__.__dict__["project"] = project + __props__.__dict__["trusted_ips"] = trusted_ips + return TrustedIps(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def config(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler config + """ + return pulumi.get(self, "config") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project where the config is located + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter(name="trustedIps") + def trusted_ips(self) -> pulumi.Output[Sequence[_builtins.str]]: + """ + List of trusted IP ranges in CIDR notation (e.g. 203.0.113.0/24, 1.2.3.4/32). Use 0.0.0.0/0 to allow all traffic. + """ + return pulumi.get(self, "trusted_ips") + diff --git a/sdk/python/pulumi_doppler/webhook.py b/sdk/python/pulumi_doppler/webhook.py new file mode 100644 index 0000000..9f9df49 --- /dev/null +++ b/sdk/python/pulumi_doppler/webhook.py @@ -0,0 +1,582 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['WebhookArgs', 'Webhook'] + +@pulumi.input_type +class WebhookArgs: + def __init__(__self__, *, + project: pulumi.Input[_builtins.str], + url: pulumi.Input[_builtins.str], + authentication: pulumi.Input[Optional['WebhookAuthenticationArgs']] = None, + enabled: pulumi.Input[Optional[_builtins.bool]] = None, + enabled_configs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + payload: pulumi.Input[Optional[_builtins.str]] = None, + secret: pulumi.Input[Optional[_builtins.str]] = None): + """ + The set of arguments for constructing a Webhook resource. + + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the webhook is located + :param pulumi.Input[_builtins.str] url: The URL of the webhook endpoint + :param pulumi.Input['WebhookAuthenticationArgs'] authentication: Authentication method used by the webhook + :param pulumi.Input[_builtins.bool] enabled: Whether the webhook is enabled or disabled. Default to true. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] enabled_configs: Configs this webhook will trigger for + :param pulumi.Input[_builtins.str] name: Name of the webhook + :param pulumi.Input[_builtins.str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload + :param pulumi.Input[_builtins.str] secret: Secret used for request signing + """ + pulumi.set(__self__, "project", project) + pulumi.set(__self__, "url", url) + if authentication is not None: + pulumi.set(__self__, "authentication", authentication) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if enabled_configs is not None: + pulumi.set(__self__, "enabled_configs", enabled_configs) + if name is not None: + pulumi.set(__self__, "name", name) + if payload is not None: + pulumi.set(__self__, "payload", payload) + if secret is not None: + pulumi.set(__self__, "secret", secret) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler project where the webhook is located + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def url(self) -> pulumi.Input[_builtins.str]: + """ + The URL of the webhook endpoint + """ + return pulumi.get(self, "url") + + @url.setter + def url(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "url", value) + + @_builtins.property + @pulumi.getter + def authentication(self) -> pulumi.Input[Optional['WebhookAuthenticationArgs']]: + """ + Authentication method used by the webhook + """ + return pulumi.get(self, "authentication") + + @authentication.setter + def authentication(self, value: pulumi.Input[Optional['WebhookAuthenticationArgs']]): + pulumi.set(self, "authentication", value) + + @_builtins.property + @pulumi.getter + def enabled(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether the webhook is enabled or disabled. Default to true. + """ + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "enabled", value) + + @_builtins.property + @pulumi.getter(name="enabledConfigs") + def enabled_configs(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + Configs this webhook will trigger for + """ + return pulumi.get(self, "enabled_configs") + + @enabled_configs.setter + def enabled_configs(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "enabled_configs", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Name of the webhook + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def payload(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The webhook's payload as a JSON string. Leave empty to use the default webhook payload + """ + return pulumi.get(self, "payload") + + @payload.setter + def payload(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "payload", value) + + @_builtins.property + @pulumi.getter + def secret(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Secret used for request signing + """ + return pulumi.get(self, "secret") + + @secret.setter + def secret(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "secret", value) + + +@pulumi.input_type +class _WebhookState: + def __init__(__self__, *, + authentication: pulumi.Input[Optional['WebhookAuthenticationArgs']] = None, + enabled: pulumi.Input[Optional[_builtins.bool]] = None, + enabled_configs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + payload: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + secret: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + url: pulumi.Input[Optional[_builtins.str]] = None): + """ + Input properties used for looking up and filtering Webhook resources. + + :param pulumi.Input['WebhookAuthenticationArgs'] authentication: Authentication method used by the webhook + :param pulumi.Input[_builtins.bool] enabled: Whether the webhook is enabled or disabled. Default to true. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] enabled_configs: Configs this webhook will trigger for + :param pulumi.Input[_builtins.str] name: Name of the webhook + :param pulumi.Input[_builtins.str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the webhook is located + :param pulumi.Input[_builtins.str] secret: Secret used for request signing + :param pulumi.Input[_builtins.str] slug: The slug of the Webhook + :param pulumi.Input[_builtins.str] url: The URL of the webhook endpoint + """ + if authentication is not None: + pulumi.set(__self__, "authentication", authentication) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if enabled_configs is not None: + pulumi.set(__self__, "enabled_configs", enabled_configs) + if name is not None: + pulumi.set(__self__, "name", name) + if payload is not None: + pulumi.set(__self__, "payload", payload) + if project is not None: + pulumi.set(__self__, "project", project) + if secret is not None: + pulumi.set(__self__, "secret", secret) + if slug is not None: + pulumi.set(__self__, "slug", slug) + if url is not None: + pulumi.set(__self__, "url", url) + + @_builtins.property + @pulumi.getter + def authentication(self) -> pulumi.Input[Optional['WebhookAuthenticationArgs']]: + """ + Authentication method used by the webhook + """ + return pulumi.get(self, "authentication") + + @authentication.setter + def authentication(self, value: pulumi.Input[Optional['WebhookAuthenticationArgs']]): + pulumi.set(self, "authentication", value) + + @_builtins.property + @pulumi.getter + def enabled(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether the webhook is enabled or disabled. Default to true. + """ + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "enabled", value) + + @_builtins.property + @pulumi.getter(name="enabledConfigs") + def enabled_configs(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + Configs this webhook will trigger for + """ + return pulumi.get(self, "enabled_configs") + + @enabled_configs.setter + def enabled_configs(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "enabled_configs", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Name of the webhook + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def payload(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The webhook's payload as a JSON string. Leave empty to use the default webhook payload + """ + return pulumi.get(self, "payload") + + @payload.setter + def payload(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "payload", value) + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler project where the webhook is located + """ + return pulumi.get(self, "project") + + @project.setter + def project(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "project", value) + + @_builtins.property + @pulumi.getter + def secret(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + Secret used for request signing + """ + return pulumi.get(self, "secret") + + @secret.setter + def secret(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "secret", value) + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The slug of the Webhook + """ + return pulumi.get(self, "slug") + + @slug.setter + def slug(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "slug", value) + + @_builtins.property + @pulumi.getter + def url(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The URL of the webhook endpoint + """ + return pulumi.get(self, "url") + + @url.setter + def url(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "url", value) + + +@pulumi.type_token("doppler:index/webhook:Webhook") +class Webhook(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + authentication: pulumi.Input[Optional[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict', 'outputs.WebhookAuthentication']]] = None, + enabled: pulumi.Input[Optional[_builtins.bool]] = None, + enabled_configs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + payload: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + secret: pulumi.Input[Optional[_builtins.str]] = None, + url: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + """ + Manage a Doppler Webhook. + + ## Example Usage + + ```python + import pulumi + import json + import pulumi_doppler as doppler + + ci = doppler.Webhook("ci", + authentication={ + "type": "Bearer", + "token": "my bearer token", + }, + project=test_proj["name"], + url="https://localhost/webhook", + name="My Webhook", + secret="my signing secret-2", + enabled=True, + enabled_configs=[ci_github["name"]], + payload=json.dumps({ + "myKey": "my value", + })) + ``` + + ## State Management + + For security reasons, the Doppler API does not return the fields listed below, which prevents the Terraform provider from checking this external state. + In other words, the Terraform provider can be used to update these webhook fields but it will be unaware of external changes. + + - `secret` + - `authentication` + - `payload` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict', 'outputs.WebhookAuthentication']] authentication: Authentication method used by the webhook + :param pulumi.Input[_builtins.bool] enabled: Whether the webhook is enabled or disabled. Default to true. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] enabled_configs: Configs this webhook will trigger for + :param pulumi.Input[_builtins.str] name: Name of the webhook + :param pulumi.Input[_builtins.str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the webhook is located + :param pulumi.Input[_builtins.str] secret: Secret used for request signing + :param pulumi.Input[_builtins.str] url: The URL of the webhook endpoint + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: WebhookArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler Webhook. + + ## Example Usage + + ```python + import pulumi + import json + import pulumi_doppler as doppler + + ci = doppler.Webhook("ci", + authentication={ + "type": "Bearer", + "token": "my bearer token", + }, + project=test_proj["name"], + url="https://localhost/webhook", + name="My Webhook", + secret="my signing secret-2", + enabled=True, + enabled_configs=[ci_github["name"]], + payload=json.dumps({ + "myKey": "my value", + })) + ``` + + ## State Management + + For security reasons, the Doppler API does not return the fields listed below, which prevents the Terraform provider from checking this external state. + In other words, the Terraform provider can be used to update these webhook fields but it will be unaware of external changes. + + - `secret` + - `authentication` + - `payload` + + + :param str resource_name: The name of the resource. + :param WebhookArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(WebhookArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + authentication: pulumi.Input[Optional[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict', 'outputs.WebhookAuthentication']]] = None, + enabled: pulumi.Input[Optional[_builtins.bool]] = None, + enabled_configs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + payload: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + secret: pulumi.Input[Optional[_builtins.str]] = None, + url: pulumi.Input[Optional[_builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = WebhookArgs.__new__(WebhookArgs) + + __props__.__dict__["authentication"] = authentication + __props__.__dict__["enabled"] = enabled + __props__.__dict__["enabled_configs"] = enabled_configs + __props__.__dict__["name"] = name + __props__.__dict__["payload"] = None if payload is None else pulumi.Output.secret(payload) + if project is None and not opts.urn: + raise TypeError("Missing required property 'project'") + __props__.__dict__["project"] = project + __props__.__dict__["secret"] = None if secret is None else pulumi.Output.secret(secret) + if url is None and not opts.urn: + raise TypeError("Missing required property 'url'") + __props__.__dict__["url"] = url + __props__.__dict__["slug"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["payload", "secret"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(Webhook, __self__).__init__( + 'doppler:index/webhook:Webhook', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + authentication: pulumi.Input[Optional[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict', 'outputs.WebhookAuthentication']]] = None, + enabled: pulumi.Input[Optional[_builtins.bool]] = None, + enabled_configs: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + payload: pulumi.Input[Optional[_builtins.str]] = None, + project: pulumi.Input[Optional[_builtins.str]] = None, + secret: pulumi.Input[Optional[_builtins.str]] = None, + slug: pulumi.Input[Optional[_builtins.str]] = None, + url: pulumi.Input[Optional[_builtins.str]] = None) -> 'Webhook': + """ + Get an existing Webhook resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict', 'outputs.WebhookAuthentication']] authentication: Authentication method used by the webhook + :param pulumi.Input[_builtins.bool] enabled: Whether the webhook is enabled or disabled. Default to true. + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] enabled_configs: Configs this webhook will trigger for + :param pulumi.Input[_builtins.str] name: Name of the webhook + :param pulumi.Input[_builtins.str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload + :param pulumi.Input[_builtins.str] project: The name of the Doppler project where the webhook is located + :param pulumi.Input[_builtins.str] secret: Secret used for request signing + :param pulumi.Input[_builtins.str] slug: The slug of the Webhook + :param pulumi.Input[_builtins.str] url: The URL of the webhook endpoint + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _WebhookState.__new__(_WebhookState) + + __props__.__dict__["authentication"] = authentication + __props__.__dict__["enabled"] = enabled + __props__.__dict__["enabled_configs"] = enabled_configs + __props__.__dict__["name"] = name + __props__.__dict__["payload"] = payload + __props__.__dict__["project"] = project + __props__.__dict__["secret"] = secret + __props__.__dict__["slug"] = slug + __props__.__dict__["url"] = url + return Webhook(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def authentication(self) -> pulumi.Output[Optional['outputs.WebhookAuthentication']]: + """ + Authentication method used by the webhook + """ + return pulumi.get(self, "authentication") + + @_builtins.property + @pulumi.getter + def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]: + """ + Whether the webhook is enabled or disabled. Default to true. + """ + return pulumi.get(self, "enabled") + + @_builtins.property + @pulumi.getter(name="enabledConfigs") + def enabled_configs(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]: + """ + Configs this webhook will trigger for + """ + return pulumi.get(self, "enabled_configs") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Name of the webhook + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def payload(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + The webhook's payload as a JSON string. Leave empty to use the default webhook payload + """ + return pulumi.get(self, "payload") + + @_builtins.property + @pulumi.getter + def project(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler project where the webhook is located + """ + return pulumi.get(self, "project") + + @_builtins.property + @pulumi.getter + def secret(self) -> pulumi.Output[Optional[_builtins.str]]: + """ + Secret used for request signing + """ + return pulumi.get(self, "secret") + + @_builtins.property + @pulumi.getter + def slug(self) -> pulumi.Output[_builtins.str]: + """ + The slug of the Webhook + """ + return pulumi.get(self, "slug") + + @_builtins.property + @pulumi.getter + def url(self) -> pulumi.Output[_builtins.str]: + """ + The URL of the webhook endpoint + """ + return pulumi.get(self, "url") + diff --git a/sdk/python/pulumi_doppler/workplace_role.py b/sdk/python/pulumi_doppler/workplace_role.py new file mode 100644 index 0000000..c4bc8a5 --- /dev/null +++ b/sdk/python/pulumi_doppler/workplace_role.py @@ -0,0 +1,294 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins as _builtins +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities + +__all__ = ['WorkplaceRoleArgs', 'WorkplaceRole'] + +@pulumi.input_type +class WorkplaceRoleArgs: + def __init__(__self__, *, + name: pulumi.Input[_builtins.str], + permissions: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + """ + The set of arguments for constructing a WorkplaceRole resource. + + :param pulumi.Input[_builtins.str] name: The name of the Doppler workplace role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "permissions", permissions) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[_builtins.str]: + """ + The name of the Doppler workplace role + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[_builtins.str]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def permissions(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]: + """ + A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + return pulumi.get(self, "permissions") + + @permissions.setter + def permissions(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]): + pulumi.set(self, "permissions", value) + + +@pulumi.input_type +class _WorkplaceRoleState: + def __init__(__self__, *, + identifier: pulumi.Input[Optional[_builtins.str]] = None, + is_custom_role: pulumi.Input[Optional[_builtins.bool]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None): + """ + Input properties used for looking up and filtering WorkplaceRole resources. + + :param pulumi.Input[_builtins.str] identifier: The role's unique identifier + :param pulumi.Input[_builtins.bool] is_custom_role: Whether or not the role is custom (as opposed to Doppler built-in) + :param pulumi.Input[_builtins.str] name: The name of the Doppler workplace role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + if identifier is not None: + pulumi.set(__self__, "identifier", identifier) + if is_custom_role is not None: + pulumi.set(__self__, "is_custom_role", is_custom_role) + if name is not None: + pulumi.set(__self__, "name", name) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) + + @_builtins.property + @pulumi.getter + def identifier(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The role's unique identifier + """ + return pulumi.get(self, "identifier") + + @identifier.setter + def identifier(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "identifier", value) + + @_builtins.property + @pulumi.getter(name="isCustomRole") + def is_custom_role(self) -> pulumi.Input[Optional[_builtins.bool]]: + """ + Whether or not the role is custom (as opposed to Doppler built-in) + """ + return pulumi.get(self, "is_custom_role") + + @is_custom_role.setter + def is_custom_role(self, value: pulumi.Input[Optional[_builtins.bool]]): + pulumi.set(self, "is_custom_role", value) + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Input[Optional[_builtins.str]]: + """ + The name of the Doppler workplace role + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[Optional[_builtins.str]]): + pulumi.set(self, "name", value) + + @_builtins.property + @pulumi.getter + def permissions(self) -> pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]: + """ + A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + return pulumi.get(self, "permissions") + + @permissions.setter + def permissions(self, value: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]]): + pulumi.set(self, "permissions", value) + + +@pulumi.type_token("doppler:index/workplaceRole:WorkplaceRole") +class WorkplaceRole(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + __props__=None): + """ + Manage a Doppler workplace_role. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + team_manager = doppler.WorkplaceRole("team_manager", + name="Team Manager", + permissions=["team_manage"]) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/workplaceRole:WorkplaceRole default + ``` + + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] name: The name of the Doppler workplace role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: WorkplaceRoleArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manage a Doppler workplace_role. + + ## Example Usage + + ```python + import pulumi + import pulumi_doppler as doppler + + team_manager = doppler.WorkplaceRole("team_manager", + name="Team Manager", + permissions=["team_manage"]) + ``` + + ## Import + + ```sh + $ pulumi import doppler:index/workplaceRole:WorkplaceRole default + ``` + + + :param str resource_name: The name of the resource. + :param WorkplaceRoleArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(WorkplaceRoleArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = WorkplaceRoleArgs.__new__(WorkplaceRoleArgs) + + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + if permissions is None and not opts.urn: + raise TypeError("Missing required property 'permissions'") + __props__.__dict__["permissions"] = permissions + __props__.__dict__["identifier"] = None + __props__.__dict__["is_custom_role"] = None + super(WorkplaceRole, __self__).__init__( + 'doppler:index/workplaceRole:WorkplaceRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + identifier: pulumi.Input[Optional[_builtins.str]] = None, + is_custom_role: pulumi.Input[Optional[_builtins.bool]] = None, + name: pulumi.Input[Optional[_builtins.str]] = None, + permissions: pulumi.Input[Optional[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'WorkplaceRole': + """ + Get an existing WorkplaceRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[_builtins.str] identifier: The role's unique identifier + :param pulumi.Input[_builtins.bool] is_custom_role: Whether or not the role is custom (as opposed to Doppler built-in) + :param pulumi.Input[_builtins.str] name: The name of the Doppler workplace role + :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permissions: A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _WorkplaceRoleState.__new__(_WorkplaceRoleState) + + __props__.__dict__["identifier"] = identifier + __props__.__dict__["is_custom_role"] = is_custom_role + __props__.__dict__["name"] = name + __props__.__dict__["permissions"] = permissions + return WorkplaceRole(resource_name, opts=opts, __props__=__props__) + + @_builtins.property + @pulumi.getter + def identifier(self) -> pulumi.Output[_builtins.str]: + """ + The role's unique identifier + """ + return pulumi.get(self, "identifier") + + @_builtins.property + @pulumi.getter(name="isCustomRole") + def is_custom_role(self) -> pulumi.Output[_builtins.bool]: + """ + Whether or not the role is custom (as opposed to Doppler built-in) + """ + return pulumi.get(self, "is_custom_role") + + @_builtins.property + @pulumi.getter + def name(self) -> pulumi.Output[_builtins.str]: + """ + The name of the Doppler workplace role + """ + return pulumi.get(self, "name") + + @_builtins.property + @pulumi.getter + def permissions(self) -> pulumi.Output[Sequence[_builtins.str]]: + """ + A list of [Doppler workplace permissions](https://docs.doppler.com/reference/workplace_roles-create) + """ + return pulumi.get(self, "permissions") + diff --git a/sdk/python/pulumiverse_doppler/README.md b/sdk/python/pulumiverse_doppler/README.md deleted file mode 100644 index 3926d39..0000000 --- a/sdk/python/pulumiverse_doppler/README.md +++ /dev/null @@ -1,4 +0,0 @@ -> This provider is a derived work of the [Terraform Provider](https://github.com/DopplerHQ/terraform-provider-doppler) -> distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, -> first check the [`pulumi-doppler` repo](https://github.com/pulumiverse/pulumi-doppler/issues); however, if that doesn't turn up anything, -> please consult the source [`terraform-provider-doppler` repo](https://github.com/DopplerHQ/terraform-provider-doppler/issues). \ No newline at end of file diff --git a/sdk/python/pulumiverse_doppler/__init__.py b/sdk/python/pulumiverse_doppler/__init__.py deleted file mode 100644 index a5268bb..0000000 --- a/sdk/python/pulumiverse_doppler/__init__.py +++ /dev/null @@ -1,257 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -from . import _utilities -import typing -# Export this package's modules as members: -from .branch_config import * -from .environment import * -from .get_secrets import * -from .get_user import * -from .group import * -from .group_member import * -from .group_members import * -from .project import * -from .project_role import * -from .provider import * -from .secret import * -from .service_account import * -from .service_account_token import * -from .service_token import * -from .webhook import * -from ._inputs import * -from . import outputs - -# Make subpackages available: -if typing.TYPE_CHECKING: - import pulumiverse_doppler.config as __config - config = __config - import pulumiverse_doppler.integration as __integration - integration = __integration - import pulumiverse_doppler.projectmember as __projectmember - projectmember = __projectmember - import pulumiverse_doppler.secretssync as __secretssync - secretssync = __secretssync -else: - config = _utilities.lazy_import('pulumiverse_doppler.config') - integration = _utilities.lazy_import('pulumiverse_doppler.integration') - projectmember = _utilities.lazy_import('pulumiverse_doppler.projectmember') - secretssync = _utilities.lazy_import('pulumiverse_doppler.secretssync') - -_utilities.register( - resource_modules=""" -[ - { - "pkg": "doppler", - "mod": "index/branchConfig", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/branchConfig:BranchConfig": "BranchConfig" - } - }, - { - "pkg": "doppler", - "mod": "index/environment", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/environment:Environment": "Environment" - } - }, - { - "pkg": "doppler", - "mod": "index/group", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/group:Group": "Group" - } - }, - { - "pkg": "doppler", - "mod": "index/groupMember", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/groupMember:GroupMember": "GroupMember" - } - }, - { - "pkg": "doppler", - "mod": "index/groupMembers", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/groupMembers:GroupMembers": "GroupMembers" - } - }, - { - "pkg": "doppler", - "mod": "index/project", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/project:Project": "Project" - } - }, - { - "pkg": "doppler", - "mod": "index/projectRole", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/projectRole:ProjectRole": "ProjectRole" - } - }, - { - "pkg": "doppler", - "mod": "index/secret", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/secret:Secret": "Secret" - } - }, - { - "pkg": "doppler", - "mod": "index/serviceAccount", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/serviceAccount:ServiceAccount": "ServiceAccount" - } - }, - { - "pkg": "doppler", - "mod": "index/serviceAccountToken", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/serviceAccountToken:ServiceAccountToken": "ServiceAccountToken" - } - }, - { - "pkg": "doppler", - "mod": "index/serviceToken", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/serviceToken:ServiceToken": "ServiceToken" - } - }, - { - "pkg": "doppler", - "mod": "index/webhook", - "fqn": "pulumiverse_doppler", - "classes": { - "doppler:index/webhook:Webhook": "Webhook" - } - }, - { - "pkg": "doppler", - "mod": "integration/awsParameterStore", - "fqn": "pulumiverse_doppler.integration", - "classes": { - "doppler:integration/awsParameterStore:AwsParameterStore": "AwsParameterStore" - } - }, - { - "pkg": "doppler", - "mod": "integration/awsSecretsManager", - "fqn": "pulumiverse_doppler.integration", - "classes": { - "doppler:integration/awsSecretsManager:AwsSecretsManager": "AwsSecretsManager" - } - }, - { - "pkg": "doppler", - "mod": "integration/circleci", - "fqn": "pulumiverse_doppler.integration", - "classes": { - "doppler:integration/circleci:Circleci": "Circleci" - } - }, - { - "pkg": "doppler", - "mod": "integration/flyio", - "fqn": "pulumiverse_doppler.integration", - "classes": { - "doppler:integration/flyio:Flyio": "Flyio" - } - }, - { - "pkg": "doppler", - "mod": "integration/terraformCloud", - "fqn": "pulumiverse_doppler.integration", - "classes": { - "doppler:integration/terraformCloud:TerraformCloud": "TerraformCloud" - } - }, - { - "pkg": "doppler", - "mod": "projectMember/group", - "fqn": "pulumiverse_doppler.projectmember", - "classes": { - "doppler:projectMember/group:Group": "Group" - } - }, - { - "pkg": "doppler", - "mod": "projectMember/serviceAccount", - "fqn": "pulumiverse_doppler.projectmember", - "classes": { - "doppler:projectMember/serviceAccount:ServiceAccount": "ServiceAccount" - } - }, - { - "pkg": "doppler", - "mod": "secretsSync/awsParameterStore", - "fqn": "pulumiverse_doppler.secretssync", - "classes": { - "doppler:secretsSync/awsParameterStore:AwsParameterStore": "AwsParameterStore" - } - }, - { - "pkg": "doppler", - "mod": "secretsSync/awsSecretsManager", - "fqn": "pulumiverse_doppler.secretssync", - "classes": { - "doppler:secretsSync/awsSecretsManager:AwsSecretsManager": "AwsSecretsManager" - } - }, - { - "pkg": "doppler", - "mod": "secretsSync/circleci", - "fqn": "pulumiverse_doppler.secretssync", - "classes": { - "doppler:secretsSync/circleci:Circleci": "Circleci" - } - }, - { - "pkg": "doppler", - "mod": "secretsSync/flyio", - "fqn": "pulumiverse_doppler.secretssync", - "classes": { - "doppler:secretsSync/flyio:Flyio": "Flyio" - } - }, - { - "pkg": "doppler", - "mod": "secretsSync/githubActions", - "fqn": "pulumiverse_doppler.secretssync", - "classes": { - "doppler:secretsSync/githubActions:GithubActions": "GithubActions" - } - }, - { - "pkg": "doppler", - "mod": "secretsSync/terraformCloud", - "fqn": "pulumiverse_doppler.secretssync", - "classes": { - "doppler:secretsSync/terraformCloud:TerraformCloud": "TerraformCloud" - } - } -] -""", - resource_packages=""" -[ - { - "pkg": "doppler", - "token": "pulumi:providers:doppler", - "fqn": "pulumiverse_doppler", - "class": "Provider" - } -] -""" -) diff --git a/sdk/python/pulumiverse_doppler/_inputs.py b/sdk/python/pulumiverse_doppler/_inputs.py deleted file mode 100644 index 0d0930c..0000000 --- a/sdk/python/pulumiverse_doppler/_inputs.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = [ - 'WebhookAuthenticationArgs', -] - -@pulumi.input_type -class WebhookAuthenticationArgs: - def __init__(__self__, *, - type: pulumi.Input[str], - password: Optional[pulumi.Input[str]] = None, - token: Optional[pulumi.Input[str]] = None, - username: Optional[pulumi.Input[str]] = None): - pulumi.set(__self__, "type", type) - if password is not None: - pulumi.set(__self__, "password", password) - if token is not None: - pulumi.set(__self__, "token", token) - if username is not None: - pulumi.set(__self__, "username", username) - - @property - @pulumi.getter - def type(self) -> pulumi.Input[str]: - return pulumi.get(self, "type") - - @type.setter - def type(self, value: pulumi.Input[str]): - pulumi.set(self, "type", value) - - @property - @pulumi.getter - def password(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "password") - - @password.setter - def password(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "password", value) - - @property - @pulumi.getter - def token(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "token") - - @token.setter - def token(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "token", value) - - @property - @pulumi.getter - def username(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "username") - - @username.setter - def username(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "username", value) - - diff --git a/sdk/python/pulumiverse_doppler/branch_config.py b/sdk/python/pulumiverse_doppler/branch_config.py deleted file mode 100644 index 01ff0be..0000000 --- a/sdk/python/pulumiverse_doppler/branch_config.py +++ /dev/null @@ -1,279 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = ['BranchConfigArgs', 'BranchConfig'] - -@pulumi.input_type -class BranchConfigArgs: - def __init__(__self__, *, - environment: pulumi.Input[str], - project: pulumi.Input[str], - name: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a BranchConfig resource. - :param pulumi.Input[str] environment: The name of the Doppler environment where the config is located - :param pulumi.Input[str] project: The name of the Doppler project where the config is located - :param pulumi.Input[str] name: The name of the Doppler config - """ - pulumi.set(__self__, "environment", environment) - pulumi.set(__self__, "project", project) - if name is not None: - pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def environment(self) -> pulumi.Input[str]: - """ - The name of the Doppler environment where the config is located - """ - return pulumi.get(self, "environment") - - @environment.setter - def environment(self, value: pulumi.Input[str]): - pulumi.set(self, "environment", value) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project where the config is located - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - -@pulumi.input_type -class _BranchConfigState: - def __init__(__self__, *, - environment: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering BranchConfig resources. - :param pulumi.Input[str] environment: The name of the Doppler environment where the config is located - :param pulumi.Input[str] name: The name of the Doppler config - :param pulumi.Input[str] project: The name of the Doppler project where the config is located - """ - if environment is not None: - pulumi.set(__self__, "environment", environment) - if name is not None: - pulumi.set(__self__, "name", name) - if project is not None: - pulumi.set(__self__, "project", project) - - @property - @pulumi.getter - def environment(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler environment where the config is located - """ - return pulumi.get(self, "environment") - - @environment.setter - def environment(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "environment", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project where the config is located - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - -class BranchConfig(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - environment: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - Manage a Doppler config. - - ## Example Usage - - ```python - import pulumi - import pulumiverse_doppler as doppler - - backend_ci_github = doppler.BranchConfig("backend_ci_github", - project="backend", - environment="ci", - name="ci_github") - ``` - - ## Import - - ```sh - $ pulumi import doppler:index/branchConfig:BranchConfig default .. - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] environment: The name of the Doppler environment where the config is located - :param pulumi.Input[str] name: The name of the Doppler config - :param pulumi.Input[str] project: The name of the Doppler project where the config is located - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: BranchConfigArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Manage a Doppler config. - - ## Example Usage - - ```python - import pulumi - import pulumiverse_doppler as doppler - - backend_ci_github = doppler.BranchConfig("backend_ci_github", - project="backend", - environment="ci", - name="ci_github") - ``` - - ## Import - - ```sh - $ pulumi import doppler:index/branchConfig:BranchConfig default .. - ``` - - :param str resource_name: The name of the resource. - :param BranchConfigArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(BranchConfigArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - environment: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = BranchConfigArgs.__new__(BranchConfigArgs) - - if environment is None and not opts.urn: - raise TypeError("Missing required property 'environment'") - __props__.__dict__["environment"] = environment - __props__.__dict__["name"] = name - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="doppler:index/config:Config")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(BranchConfig, __self__).__init__( - 'doppler:index/branchConfig:BranchConfig', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - environment: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None) -> 'BranchConfig': - """ - Get an existing BranchConfig resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] environment: The name of the Doppler environment where the config is located - :param pulumi.Input[str] name: The name of the Doppler config - :param pulumi.Input[str] project: The name of the Doppler project where the config is located - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _BranchConfigState.__new__(_BranchConfigState) - - __props__.__dict__["environment"] = environment - __props__.__dict__["name"] = name - __props__.__dict__["project"] = project - return BranchConfig(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def environment(self) -> pulumi.Output[str]: - """ - The name of the Doppler environment where the config is located - """ - return pulumi.get(self, "environment") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project where the config is located - """ - return pulumi.get(self, "project") - diff --git a/sdk/python/pulumiverse_doppler/config/__init__.pyi b/sdk/python/pulumiverse_doppler/config/__init__.pyi deleted file mode 100644 index a0dfb8e..0000000 --- a/sdk/python/pulumiverse_doppler/config/__init__.pyi +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from .. import _utilities - -dopplerToken: Optional[str] -""" -A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. -""" - -host: Optional[str] -""" -The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. -""" - -verifyTls: Optional[bool] -""" -Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. -""" - diff --git a/sdk/python/pulumiverse_doppler/config/vars.py b/sdk/python/pulumiverse_doppler/config/vars.py deleted file mode 100644 index a9f8436..0000000 --- a/sdk/python/pulumiverse_doppler/config/vars.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from .. import _utilities - -import types - -__config__ = pulumi.Config('doppler') - - -class _ExportableConfig(types.ModuleType): - @property - def doppler_token(self) -> Optional[str]: - """ - A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - """ - return __config__.get('dopplerToken') - - @property - def host(self) -> Optional[str]: - """ - The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. - """ - return __config__.get('host') - - @property - def verify_tls(self) -> Optional[bool]: - """ - Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. - """ - return __config__.get_bool('verifyTls') - diff --git a/sdk/python/pulumiverse_doppler/group.py b/sdk/python/pulumiverse_doppler/group.py deleted file mode 100644 index 0adc019..0000000 --- a/sdk/python/pulumiverse_doppler/group.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = ['GroupArgs', 'Group'] - -@pulumi.input_type -class GroupArgs: - def __init__(__self__, *, - name: pulumi.Input[str], - default_project_role: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a Group resource. - :param pulumi.Input[str] name: The name of the group - :param pulumi.Input[str] default_project_role: The default project role assigned to the group when added to a Doppler project - """ - pulumi.set(__self__, "name", name) - if default_project_role is not None: - pulumi.set(__self__, "default_project_role", default_project_role) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The name of the group - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="defaultProjectRole") - def default_project_role(self) -> Optional[pulumi.Input[str]]: - """ - The default project role assigned to the group when added to a Doppler project - """ - return pulumi.get(self, "default_project_role") - - @default_project_role.setter - def default_project_role(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "default_project_role", value) - - -@pulumi.input_type -class _GroupState: - def __init__(__self__, *, - default_project_role: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering Group resources. - :param pulumi.Input[str] default_project_role: The default project role assigned to the group when added to a Doppler project - :param pulumi.Input[str] name: The name of the group - :param pulumi.Input[str] slug: The slug of the group - """ - if default_project_role is not None: - pulumi.set(__self__, "default_project_role", default_project_role) - if name is not None: - pulumi.set(__self__, "name", name) - if slug is not None: - pulumi.set(__self__, "slug", slug) - - @property - @pulumi.getter(name="defaultProjectRole") - def default_project_role(self) -> Optional[pulumi.Input[str]]: - """ - The default project role assigned to the group when added to a Doppler project - """ - return pulumi.get(self, "default_project_role") - - @default_project_role.setter - def default_project_role(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "default_project_role", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The name of the group - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter - def slug(self) -> Optional[pulumi.Input[str]]: - """ - The slug of the group - """ - return pulumi.get(self, "slug") - - @slug.setter - def slug(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "slug", value) - - -class Group(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - default_project_role: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - Manage a Doppler group. - - ## Example Usage - - ```python - import pulumi - import pulumiverse_doppler as doppler - - engineering = doppler.Group("engineering", name="engineering") - ``` - - ## Import - - import using the group slug from the URL: - - https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - - ```sh - $ pulumi import doppler:index/group:Group default - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] default_project_role: The default project role assigned to the group when added to a Doppler project - :param pulumi.Input[str] name: The name of the group - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: GroupArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Manage a Doppler group. - - ## Example Usage - - ```python - import pulumi - import pulumiverse_doppler as doppler - - engineering = doppler.Group("engineering", name="engineering") - ``` - - ## Import - - import using the group slug from the URL: - - https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug] - - ```sh - $ pulumi import doppler:index/group:Group default - ``` - - :param str resource_name: The name of the resource. - :param GroupArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(GroupArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - default_project_role: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = GroupArgs.__new__(GroupArgs) - - __props__.__dict__["default_project_role"] = default_project_role - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") - __props__.__dict__["name"] = name - __props__.__dict__["slug"] = None - super(Group, __self__).__init__( - 'doppler:index/group:Group', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - default_project_role: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None) -> 'Group': - """ - Get an existing Group resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] default_project_role: The default project role assigned to the group when added to a Doppler project - :param pulumi.Input[str] name: The name of the group - :param pulumi.Input[str] slug: The slug of the group - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _GroupState.__new__(_GroupState) - - __props__.__dict__["default_project_role"] = default_project_role - __props__.__dict__["name"] = name - __props__.__dict__["slug"] = slug - return Group(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter(name="defaultProjectRole") - def default_project_role(self) -> pulumi.Output[Optional[str]]: - """ - The default project role assigned to the group when added to a Doppler project - """ - return pulumi.get(self, "default_project_role") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - The name of the group - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter - def slug(self) -> pulumi.Output[str]: - """ - The slug of the group - """ - return pulumi.get(self, "slug") - diff --git a/sdk/python/pulumiverse_doppler/integration/__init__.py b/sdk/python/pulumiverse_doppler/integration/__init__.py deleted file mode 100644 index 07e2e8e..0000000 --- a/sdk/python/pulumiverse_doppler/integration/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -from .. import _utilities -import typing -# Export this package's modules as members: -from .aws_parameter_store import * -from .aws_secrets_manager import * -from .circleci import * -from .flyio import * -from .terraform_cloud import * diff --git a/sdk/python/pulumiverse_doppler/outputs.py b/sdk/python/pulumiverse_doppler/outputs.py deleted file mode 100644 index 1c0f177..0000000 --- a/sdk/python/pulumiverse_doppler/outputs.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = [ - 'WebhookAuthentication', -] - -@pulumi.output_type -class WebhookAuthentication(dict): - def __init__(__self__, *, - type: str, - password: Optional[str] = None, - token: Optional[str] = None, - username: Optional[str] = None): - pulumi.set(__self__, "type", type) - if password is not None: - pulumi.set(__self__, "password", password) - if token is not None: - pulumi.set(__self__, "token", token) - if username is not None: - pulumi.set(__self__, "username", username) - - @property - @pulumi.getter - def type(self) -> str: - return pulumi.get(self, "type") - - @property - @pulumi.getter - def password(self) -> Optional[str]: - return pulumi.get(self, "password") - - @property - @pulumi.getter - def token(self) -> Optional[str]: - return pulumi.get(self, "token") - - @property - @pulumi.getter - def username(self) -> Optional[str]: - return pulumi.get(self, "username") - - diff --git a/sdk/python/pulumiverse_doppler/provider.py b/sdk/python/pulumiverse_doppler/provider.py deleted file mode 100644 index 983ee12..0000000 --- a/sdk/python/pulumiverse_doppler/provider.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = ['ProviderArgs', 'Provider'] - -@pulumi.input_type -class ProviderArgs: - def __init__(__self__, *, - doppler_token: pulumi.Input[str], - host: Optional[pulumi.Input[str]] = None, - verify_tls: Optional[pulumi.Input[bool]] = None): - """ - The set of arguments for constructing a Provider resource. - :param pulumi.Input[str] doppler_token: A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - :param pulumi.Input[str] host: The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. - :param pulumi.Input[bool] verify_tls: Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. - """ - pulumi.set(__self__, "doppler_token", doppler_token) - if host is not None: - pulumi.set(__self__, "host", host) - if verify_tls is not None: - pulumi.set(__self__, "verify_tls", verify_tls) - - @property - @pulumi.getter(name="dopplerToken") - def doppler_token(self) -> pulumi.Input[str]: - """ - A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - """ - return pulumi.get(self, "doppler_token") - - @doppler_token.setter - def doppler_token(self, value: pulumi.Input[str]): - pulumi.set(self, "doppler_token", value) - - @property - @pulumi.getter - def host(self) -> Optional[pulumi.Input[str]]: - """ - The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. - """ - return pulumi.get(self, "host") - - @host.setter - def host(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "host", value) - - @property - @pulumi.getter(name="verifyTls") - def verify_tls(self) -> Optional[pulumi.Input[bool]]: - """ - Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. - """ - return pulumi.get(self, "verify_tls") - - @verify_tls.setter - def verify_tls(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "verify_tls", value) - - -class Provider(pulumi.ProviderResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - doppler_token: Optional[pulumi.Input[str]] = None, - host: Optional[pulumi.Input[str]] = None, - verify_tls: Optional[pulumi.Input[bool]] = None, - __props__=None): - """ - The provider type for the doppler package. By default, resources use package-wide configuration - settings, however an explicit `Provider` instance may be created and passed during resource - construction to achieve fine-grained programmatic control over provider settings. See the - [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] doppler_token: A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - :param pulumi.Input[str] host: The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. - :param pulumi.Input[bool] verify_tls: Whether or not to verify TLS. This can also be set via the DOPPLER_VERIFY_TLS environment variable. - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: ProviderArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - The provider type for the doppler package. By default, resources use package-wide configuration - settings, however an explicit `Provider` instance may be created and passed during resource - construction to achieve fine-grained programmatic control over provider settings. See the - [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information. - - :param str resource_name: The name of the resource. - :param ProviderArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - doppler_token: Optional[pulumi.Input[str]] = None, - host: Optional[pulumi.Input[str]] = None, - verify_tls: Optional[pulumi.Input[bool]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = ProviderArgs.__new__(ProviderArgs) - - if doppler_token is None and not opts.urn: - raise TypeError("Missing required property 'doppler_token'") - __props__.__dict__["doppler_token"] = doppler_token - __props__.__dict__["host"] = host - __props__.__dict__["verify_tls"] = pulumi.Output.from_input(verify_tls).apply(pulumi.runtime.to_json) if verify_tls is not None else None - super(Provider, __self__).__init__( - 'doppler', - resource_name, - __props__, - opts) - - @property - @pulumi.getter(name="dopplerToken") - def doppler_token(self) -> pulumi.Output[str]: - """ - A Doppler token, either a personal or service token. This can also be set via the DOPPLER_TOKEN environment variable. - """ - return pulumi.get(self, "doppler_token") - - @property - @pulumi.getter - def host(self) -> pulumi.Output[Optional[str]]: - """ - The Doppler API host (i.e. https://api.doppler.com). This can also be set via the DOPPLER_API_HOST environment variable. - """ - return pulumi.get(self, "host") - diff --git a/sdk/python/pulumiverse_doppler/pulumi-plugin.json b/sdk/python/pulumiverse_doppler/pulumi-plugin.json deleted file mode 100644 index eda4744..0000000 --- a/sdk/python/pulumiverse_doppler/pulumi-plugin.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "resource": true, - "name": "doppler", - "server": "github://api.github.com/pulumiverse" -} diff --git a/sdk/python/pulumiverse_doppler/secret.py b/sdk/python/pulumiverse_doppler/secret.py deleted file mode 100644 index d6838f6..0000000 --- a/sdk/python/pulumiverse_doppler/secret.py +++ /dev/null @@ -1,379 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = ['SecretArgs', 'Secret'] - -@pulumi.input_type -class SecretArgs: - def __init__(__self__, *, - config: pulumi.Input[str], - name: pulumi.Input[str], - project: pulumi.Input[str], - value: pulumi.Input[str], - visibility: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a Secret resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] name: The name of the Doppler secret - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] value: The raw secret value - :param pulumi.Input[str] visibility: The visibility of the secret - """ - pulumi.set(__self__, "config", config) - pulumi.set(__self__, "name", name) - pulumi.set(__self__, "project", project) - pulumi.set(__self__, "value", value) - if visibility is not None: - pulumi.set(__self__, "visibility", visibility) - - @property - @pulumi.getter - def config(self) -> pulumi.Input[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: pulumi.Input[str]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter - def name(self) -> pulumi.Input[str]: - """ - The name of the Doppler secret - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: - """ - The raw secret value - """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) - - @property - @pulumi.getter - def visibility(self) -> Optional[pulumi.Input[str]]: - """ - The visibility of the secret - """ - return pulumi.get(self, "visibility") - - @visibility.setter - def visibility(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "visibility", value) - - -@pulumi.input_type -class _SecretState: - def __init__(__self__, *, - computed: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - value: Optional[pulumi.Input[str]] = None, - visibility: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering Secret resources. - :param pulumi.Input[str] computed: The computed secret value, after resolving secret references - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] name: The name of the Doppler secret - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] value: The raw secret value - :param pulumi.Input[str] visibility: The visibility of the secret - """ - if computed is not None: - pulumi.set(__self__, "computed", computed) - if config is not None: - pulumi.set(__self__, "config", config) - if name is not None: - pulumi.set(__self__, "name", name) - if project is not None: - pulumi.set(__self__, "project", project) - if value is not None: - pulumi.set(__self__, "value", value) - if visibility is not None: - pulumi.set(__self__, "visibility", visibility) - - @property - @pulumi.getter - def computed(self) -> Optional[pulumi.Input[str]]: - """ - The computed secret value, after resolving secret references - """ - return pulumi.get(self, "computed") - - @computed.setter - def computed(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "computed", value) - - @property - @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler secret - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def value(self) -> Optional[pulumi.Input[str]]: - """ - The raw secret value - """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "value", value) - - @property - @pulumi.getter - def visibility(self) -> Optional[pulumi.Input[str]]: - """ - The visibility of the secret - """ - return pulumi.get(self, "visibility") - - @visibility.setter - def visibility(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "visibility", value) - - -class Secret(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - value: Optional[pulumi.Input[str]] = None, - visibility: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - Manage a single Doppler secret in a config. - - ## Import - - ```sh - $ pulumi import doppler:index/secret:Secret default .. - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] name: The name of the Doppler secret - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] value: The raw secret value - :param pulumi.Input[str] visibility: The visibility of the secret - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: SecretArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Manage a single Doppler secret in a config. - - ## Import - - ```sh - $ pulumi import doppler:index/secret:Secret default .. - ``` - - :param str resource_name: The name of the resource. - :param SecretArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(SecretArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - value: Optional[pulumi.Input[str]] = None, - visibility: Optional[pulumi.Input[str]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = SecretArgs.__new__(SecretArgs) - - if config is None and not opts.urn: - raise TypeError("Missing required property 'config'") - __props__.__dict__["config"] = config - if name is None and not opts.urn: - raise TypeError("Missing required property 'name'") - __props__.__dict__["name"] = name - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - if value is None and not opts.urn: - raise TypeError("Missing required property 'value'") - __props__.__dict__["value"] = None if value is None else pulumi.Output.secret(value) - __props__.__dict__["visibility"] = visibility - __props__.__dict__["computed"] = None - secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["computed", "value"]) - opts = pulumi.ResourceOptions.merge(opts, secret_opts) - super(Secret, __self__).__init__( - 'doppler:index/secret:Secret', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - computed: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - value: Optional[pulumi.Input[str]] = None, - visibility: Optional[pulumi.Input[str]] = None) -> 'Secret': - """ - Get an existing Secret resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] computed: The computed secret value, after resolving secret references - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] name: The name of the Doppler secret - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] value: The raw secret value - :param pulumi.Input[str] visibility: The visibility of the secret - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _SecretState.__new__(_SecretState) - - __props__.__dict__["computed"] = computed - __props__.__dict__["config"] = config - __props__.__dict__["name"] = name - __props__.__dict__["project"] = project - __props__.__dict__["value"] = value - __props__.__dict__["visibility"] = visibility - return Secret(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def computed(self) -> pulumi.Output[str]: - """ - The computed secret value, after resolving secret references - """ - return pulumi.get(self, "computed") - - @property - @pulumi.getter - def config(self) -> pulumi.Output[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - The name of the Doppler secret - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @property - @pulumi.getter - def value(self) -> pulumi.Output[str]: - """ - The raw secret value - """ - return pulumi.get(self, "value") - - @property - @pulumi.getter - def visibility(self) -> pulumi.Output[Optional[str]]: - """ - The visibility of the secret - """ - return pulumi.get(self, "visibility") - diff --git a/sdk/python/pulumiverse_doppler/secretssync/aws_parameter_store.py b/sdk/python/pulumiverse_doppler/secretssync/aws_parameter_store.py deleted file mode 100644 index c6ef4d4..0000000 --- a/sdk/python/pulumiverse_doppler/secretssync/aws_parameter_store.py +++ /dev/null @@ -1,652 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from .. import _utilities - -__all__ = ['AwsParameterStoreArgs', 'AwsParameterStore'] - -@pulumi.input_type -class AwsParameterStoreArgs: - def __init__(__self__, *, - config: pulumi.Input[str], - integration: pulumi.Input[str], - path: pulumi.Input[str], - project: pulumi.Input[str], - region: pulumi.Input[str], - delete_behavior: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - secure_string: Optional[pulumi.Input[bool]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): - """ - The set of arguments for constructing a AwsParameterStore resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] path: The path to the parameters in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - :param pulumi.Input[bool] secure_string: Whether or not the parameters are stored as a secure string - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the parameters - """ - pulumi.set(__self__, "config", config) - pulumi.set(__self__, "integration", integration) - pulumi.set(__self__, "path", path) - pulumi.set(__self__, "project", project) - pulumi.set(__self__, "region", region) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if kms_key_id is not None: - pulumi.set(__self__, "kms_key_id", kms_key_id) - if secure_string is not None: - pulumi.set(__self__, "secure_string", secure_string) - if tags is not None: - pulumi.set(__self__, "tags", tags) - - @property - @pulumi.getter - def config(self) -> pulumi.Input[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: pulumi.Input[str]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter - def integration(self) -> pulumi.Input[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: pulumi.Input[str]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter - def path(self) -> pulumi.Input[str]: - """ - The path to the parameters in AWS - """ - return pulumi.get(self, "path") - - @path.setter - def path(self, value: pulumi.Input[str]): - pulumi.set(self, "path", value) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def region(self) -> pulumi.Input[str]: - """ - The AWS region - """ - return pulumi.get(self, "region") - - @region.setter - def region(self, value: pulumi.Input[str]): - pulumi.set(self, "region", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter(name="kmsKeyId") - def kms_key_id(self) -> Optional[pulumi.Input[str]]: - """ - The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - """ - return pulumi.get(self, "kms_key_id") - - @kms_key_id.setter - def kms_key_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "kms_key_id", value) - - @property - @pulumi.getter(name="secureString") - def secure_string(self) -> Optional[pulumi.Input[bool]]: - """ - Whether or not the parameters are stored as a secure string - """ - return pulumi.get(self, "secure_string") - - @secure_string.setter - def secure_string(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "secure_string", value) - - @property - @pulumi.getter - def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: - """ - AWS tags to attach to the parameters - """ - return pulumi.get(self, "tags") - - @tags.setter - def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): - pulumi.set(self, "tags", value) - - -@pulumi.input_type -class _AwsParameterStoreState: - def __init__(__self__, *, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - secure_string: Optional[pulumi.Input[bool]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): - """ - Input properties used for looking up and filtering AwsParameterStore resources. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - :param pulumi.Input[str] path: The path to the parameters in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[bool] secure_string: Whether or not the parameters are stored as a secure string - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the parameters - """ - if config is not None: - pulumi.set(__self__, "config", config) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if integration is not None: - pulumi.set(__self__, "integration", integration) - if kms_key_id is not None: - pulumi.set(__self__, "kms_key_id", kms_key_id) - if path is not None: - pulumi.set(__self__, "path", path) - if project is not None: - pulumi.set(__self__, "project", project) - if region is not None: - pulumi.set(__self__, "region", region) - if secure_string is not None: - pulumi.set(__self__, "secure_string", secure_string) - if tags is not None: - pulumi.set(__self__, "tags", tags) - - @property - @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter - def integration(self) -> Optional[pulumi.Input[str]]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter(name="kmsKeyId") - def kms_key_id(self) -> Optional[pulumi.Input[str]]: - """ - The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - """ - return pulumi.get(self, "kms_key_id") - - @kms_key_id.setter - def kms_key_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "kms_key_id", value) - - @property - @pulumi.getter - def path(self) -> Optional[pulumi.Input[str]]: - """ - The path to the parameters in AWS - """ - return pulumi.get(self, "path") - - @path.setter - def path(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "path", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def region(self) -> Optional[pulumi.Input[str]]: - """ - The AWS region - """ - return pulumi.get(self, "region") - - @region.setter - def region(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "region", value) - - @property - @pulumi.getter(name="secureString") - def secure_string(self) -> Optional[pulumi.Input[bool]]: - """ - Whether or not the parameters are stored as a secure string - """ - return pulumi.get(self, "secure_string") - - @secure_string.setter - def secure_string(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "secure_string", value) - - @property - @pulumi.getter - def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: - """ - AWS tags to attach to the parameters - """ - return pulumi.get(self, "tags") - - @tags.setter - def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): - pulumi.set(self, "tags", value) - - -class AwsParameterStore(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - secure_string: Optional[pulumi.Input[bool]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - __props__=None): - """ - Manage an AWS Parameter Store Doppler sync. - - ## Example Usage - - ```python - import pulumi - import json - import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_parameter_store = aws.iam.Role("doppler_parameter_store", - name="doppler_parameter_store", - assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", - }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", - }, - }, - }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "ssm:PutParameter", - "ssm:LabelParameterVersion", - "ssm:DeleteParameter", - "ssm:RemoveTagsFromResource", - "ssm:GetParameterHistory", - "ssm:AddTagsToResource", - "ssm:GetParametersByPath", - "ssm:GetParameters", - "ssm:GetParameter", - "ssm:DeleteParameters", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) - prod = doppler.integration.AwsParameterStore("prod", - name="Production", - assume_role_arn=doppler_parameter_store.arn) - backend_prod = doppler.secrets_sync.AwsParameterStore("backend_prod", - integration=prod.id, - project="backend", - config="prd", - region="us-east-1", - path="/backend/", - secure_string=True, - tags={ - "myTag": "enabled", - }, - delete_behavior="leave_in_target") - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - :param pulumi.Input[str] path: The path to the parameters in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[bool] secure_string: Whether or not the parameters are stored as a secure string - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the parameters - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: AwsParameterStoreArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Manage an AWS Parameter Store Doppler sync. - - ## Example Usage - - ```python - import pulumi - import json - import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_parameter_store = aws.iam.Role("doppler_parameter_store", - name="doppler_parameter_store", - assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", - }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", - }, - }, - }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "ssm:PutParameter", - "ssm:LabelParameterVersion", - "ssm:DeleteParameter", - "ssm:RemoveTagsFromResource", - "ssm:GetParameterHistory", - "ssm:AddTagsToResource", - "ssm:GetParametersByPath", - "ssm:GetParameters", - "ssm:GetParameter", - "ssm:DeleteParameters", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) - prod = doppler.integration.AwsParameterStore("prod", - name="Production", - assume_role_arn=doppler_parameter_store.arn) - backend_prod = doppler.secrets_sync.AwsParameterStore("backend_prod", - integration=prod.id, - project="backend", - config="prd", - region="us-east-1", - path="/backend/", - secure_string=True, - tags={ - "myTag": "enabled", - }, - delete_behavior="leave_in_target") - ``` - - :param str resource_name: The name of the resource. - :param AwsParameterStoreArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(AwsParameterStoreArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - secure_string: Optional[pulumi.Input[bool]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = AwsParameterStoreArgs.__new__(AwsParameterStoreArgs) - - if config is None and not opts.urn: - raise TypeError("Missing required property 'config'") - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - if integration is None and not opts.urn: - raise TypeError("Missing required property 'integration'") - __props__.__dict__["integration"] = integration - __props__.__dict__["kms_key_id"] = kms_key_id - if path is None and not opts.urn: - raise TypeError("Missing required property 'path'") - __props__.__dict__["path"] = path - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - if region is None and not opts.urn: - raise TypeError("Missing required property 'region'") - __props__.__dict__["region"] = region - __props__.__dict__["secure_string"] = secure_string - __props__.__dict__["tags"] = tags - super(AwsParameterStore, __self__).__init__( - 'doppler:secretsSync/awsParameterStore:AwsParameterStore', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - secure_string: Optional[pulumi.Input[bool]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'AwsParameterStore': - """ - Get an existing AwsParameterStore resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - :param pulumi.Input[str] path: The path to the parameters in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[bool] secure_string: Whether or not the parameters are stored as a secure string - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the parameters - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _AwsParameterStoreState.__new__(_AwsParameterStoreState) - - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - __props__.__dict__["integration"] = integration - __props__.__dict__["kms_key_id"] = kms_key_id - __props__.__dict__["path"] = path - __props__.__dict__["project"] = project - __props__.__dict__["region"] = region - __props__.__dict__["secure_string"] = secure_string - __props__.__dict__["tags"] = tags - return AwsParameterStore(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def config(self) -> pulumi.Output[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> pulumi.Output[Optional[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @property - @pulumi.getter - def integration(self) -> pulumi.Output[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @property - @pulumi.getter(name="kmsKeyId") - def kms_key_id(self) -> pulumi.Output[Optional[str]]: - """ - The AWS KMS key used to encrypt the parameter (ID, Alias, or ARN) - """ - return pulumi.get(self, "kms_key_id") - - @property - @pulumi.getter - def path(self) -> pulumi.Output[str]: - """ - The path to the parameters in AWS - """ - return pulumi.get(self, "path") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @property - @pulumi.getter - def region(self) -> pulumi.Output[str]: - """ - The AWS region - """ - return pulumi.get(self, "region") - - @property - @pulumi.getter(name="secureString") - def secure_string(self) -> pulumi.Output[Optional[bool]]: - """ - Whether or not the parameters are stored as a secure string - """ - return pulumi.get(self, "secure_string") - - @property - @pulumi.getter - def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: - """ - AWS tags to attach to the parameters - """ - return pulumi.get(self, "tags") - diff --git a/sdk/python/pulumiverse_doppler/secretssync/aws_secrets_manager.py b/sdk/python/pulumiverse_doppler/secretssync/aws_secrets_manager.py deleted file mode 100644 index 826ca15..0000000 --- a/sdk/python/pulumiverse_doppler/secretssync/aws_secrets_manager.py +++ /dev/null @@ -1,644 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from .. import _utilities - -__all__ = ['AwsSecretsManagerArgs', 'AwsSecretsManager'] - -@pulumi.input_type -class AwsSecretsManagerArgs: - def __init__(__self__, *, - config: pulumi.Input[str], - integration: pulumi.Input[str], - path: pulumi.Input[str], - project: pulumi.Input[str], - region: pulumi.Input[str], - delete_behavior: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - update_metadata: Optional[pulumi.Input[bool]] = None): - """ - The set of arguments for constructing a AwsSecretsManager resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] path: The path to the secret in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the secrets - :param pulumi.Input[bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - pulumi.set(__self__, "config", config) - pulumi.set(__self__, "integration", integration) - pulumi.set(__self__, "path", path) - pulumi.set(__self__, "project", project) - pulumi.set(__self__, "region", region) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if kms_key_id is not None: - pulumi.set(__self__, "kms_key_id", kms_key_id) - if tags is not None: - pulumi.set(__self__, "tags", tags) - if update_metadata is not None: - pulumi.set(__self__, "update_metadata", update_metadata) - - @property - @pulumi.getter - def config(self) -> pulumi.Input[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: pulumi.Input[str]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter - def integration(self) -> pulumi.Input[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: pulumi.Input[str]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter - def path(self) -> pulumi.Input[str]: - """ - The path to the secret in AWS - """ - return pulumi.get(self, "path") - - @path.setter - def path(self, value: pulumi.Input[str]): - pulumi.set(self, "path", value) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def region(self) -> pulumi.Input[str]: - """ - The AWS region - """ - return pulumi.get(self, "region") - - @region.setter - def region(self, value: pulumi.Input[str]): - pulumi.set(self, "region", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter(name="kmsKeyId") - def kms_key_id(self) -> Optional[pulumi.Input[str]]: - """ - The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - """ - return pulumi.get(self, "kms_key_id") - - @kms_key_id.setter - def kms_key_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "kms_key_id", value) - - @property - @pulumi.getter - def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: - """ - AWS tags to attach to the secrets - """ - return pulumi.get(self, "tags") - - @tags.setter - def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): - pulumi.set(self, "tags", value) - - @property - @pulumi.getter(name="updateMetadata") - def update_metadata(self) -> Optional[pulumi.Input[bool]]: - """ - If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - return pulumi.get(self, "update_metadata") - - @update_metadata.setter - def update_metadata(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "update_metadata", value) - - -@pulumi.input_type -class _AwsSecretsManagerState: - def __init__(__self__, *, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - update_metadata: Optional[pulumi.Input[bool]] = None): - """ - Input properties used for looking up and filtering AwsSecretsManager resources. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - :param pulumi.Input[str] path: The path to the secret in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the secrets - :param pulumi.Input[bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - if config is not None: - pulumi.set(__self__, "config", config) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if integration is not None: - pulumi.set(__self__, "integration", integration) - if kms_key_id is not None: - pulumi.set(__self__, "kms_key_id", kms_key_id) - if path is not None: - pulumi.set(__self__, "path", path) - if project is not None: - pulumi.set(__self__, "project", project) - if region is not None: - pulumi.set(__self__, "region", region) - if tags is not None: - pulumi.set(__self__, "tags", tags) - if update_metadata is not None: - pulumi.set(__self__, "update_metadata", update_metadata) - - @property - @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter - def integration(self) -> Optional[pulumi.Input[str]]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter(name="kmsKeyId") - def kms_key_id(self) -> Optional[pulumi.Input[str]]: - """ - The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - """ - return pulumi.get(self, "kms_key_id") - - @kms_key_id.setter - def kms_key_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "kms_key_id", value) - - @property - @pulumi.getter - def path(self) -> Optional[pulumi.Input[str]]: - """ - The path to the secret in AWS - """ - return pulumi.get(self, "path") - - @path.setter - def path(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "path", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def region(self) -> Optional[pulumi.Input[str]]: - """ - The AWS region - """ - return pulumi.get(self, "region") - - @region.setter - def region(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "region", value) - - @property - @pulumi.getter - def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: - """ - AWS tags to attach to the secrets - """ - return pulumi.get(self, "tags") - - @tags.setter - def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): - pulumi.set(self, "tags", value) - - @property - @pulumi.getter(name="updateMetadata") - def update_metadata(self) -> Optional[pulumi.Input[bool]]: - """ - If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - return pulumi.get(self, "update_metadata") - - @update_metadata.setter - def update_metadata(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "update_metadata", value) - - -class AwsSecretsManager(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - update_metadata: Optional[pulumi.Input[bool]] = None, - __props__=None): - """ - Manage an AWS Secrets Manager Doppler sync. - - ## Example Usage - - ```python - import pulumi - import json - import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_secrets_manager = aws.iam.Role("doppler_secrets_manager", - name="doppler_secrets_manager", - assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", - }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", - }, - }, - }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "secretsmanager:GetSecretValue", - "secretsmanager:DescribeSecret", - "secretsmanager:PutSecretValue", - "secretsmanager:CreateSecret", - "secretsmanager:DeleteSecret", - "secretsmanager:TagResource", - "secretsmanager:UpdateSecret", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) - prod = doppler.integration.AwsSecretsManager("prod", - name="Production", - assume_role_arn=doppler_secrets_manager.arn) - backend_prod = doppler.secrets_sync.AwsSecretsManager("backend_prod", - integration=prod.id, - project="backend", - config="prd", - region="us-east-1", - path="/backend/", - tags={ - "myTag": "enabled", - }, - delete_behavior="leave_in_target") - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - :param pulumi.Input[str] path: The path to the secret in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the secrets - :param pulumi.Input[bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: AwsSecretsManagerArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Manage an AWS Secrets Manager Doppler sync. - - ## Example Usage - - ```python - import pulumi - import json - import pulumi_aws as aws - import pulumiverse_doppler as doppler - - doppler_secrets_manager = aws.iam.Role("doppler_secrets_manager", - name="doppler_secrets_manager", - assume_role_policy=json.dumps({ - "Version": "2012-10-17", - "Statement": [{ - "Effect": "Allow", - "Action": "sts:AssumeRole", - "Principal": { - "AWS": "arn:aws:iam::299900769157:user/doppler-integration-operator", - }, - "Condition": { - "StringEquals": { - "sts:ExternalId": "", - }, - }, - }], - }), - inline_policies=[{ - "name": "doppler_secret_manager", - "policy": json.dumps({ - "version": "2012-10-17", - "statement": [{ - "action": [ - "secretsmanager:GetSecretValue", - "secretsmanager:DescribeSecret", - "secretsmanager:PutSecretValue", - "secretsmanager:CreateSecret", - "secretsmanager:DeleteSecret", - "secretsmanager:TagResource", - "secretsmanager:UpdateSecret", - ], - "effect": "Allow", - "resource": "*", - }], - }), - }]) - prod = doppler.integration.AwsSecretsManager("prod", - name="Production", - assume_role_arn=doppler_secrets_manager.arn) - backend_prod = doppler.secrets_sync.AwsSecretsManager("backend_prod", - integration=prod.id, - project="backend", - config="prd", - region="us-east-1", - path="/backend/", - tags={ - "myTag": "enabled", - }, - delete_behavior="leave_in_target") - ``` - - :param str resource_name: The name of the resource. - :param AwsSecretsManagerArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(AwsSecretsManagerArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - update_metadata: Optional[pulumi.Input[bool]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = AwsSecretsManagerArgs.__new__(AwsSecretsManagerArgs) - - if config is None and not opts.urn: - raise TypeError("Missing required property 'config'") - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - if integration is None and not opts.urn: - raise TypeError("Missing required property 'integration'") - __props__.__dict__["integration"] = integration - __props__.__dict__["kms_key_id"] = kms_key_id - if path is None and not opts.urn: - raise TypeError("Missing required property 'path'") - __props__.__dict__["path"] = path - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - if region is None and not opts.urn: - raise TypeError("Missing required property 'region'") - __props__.__dict__["region"] = region - __props__.__dict__["tags"] = tags - __props__.__dict__["update_metadata"] = update_metadata - super(AwsSecretsManager, __self__).__init__( - 'doppler:secretsSync/awsSecretsManager:AwsSecretsManager', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - kms_key_id: Optional[pulumi.Input[str]] = None, - path: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - region: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - update_metadata: Optional[pulumi.Input[bool]] = None) -> 'AwsSecretsManager': - """ - Get an existing AwsSecretsManager resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] kms_key_id: The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - :param pulumi.Input[str] path: The path to the secret in AWS - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] region: The AWS region - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: AWS tags to attach to the secrets - :param pulumi.Input[bool] update_metadata: If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _AwsSecretsManagerState.__new__(_AwsSecretsManagerState) - - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - __props__.__dict__["integration"] = integration - __props__.__dict__["kms_key_id"] = kms_key_id - __props__.__dict__["path"] = path - __props__.__dict__["project"] = project - __props__.__dict__["region"] = region - __props__.__dict__["tags"] = tags - __props__.__dict__["update_metadata"] = update_metadata - return AwsSecretsManager(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def config(self) -> pulumi.Output[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> pulumi.Output[Optional[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @property - @pulumi.getter - def integration(self) -> pulumi.Output[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @property - @pulumi.getter(name="kmsKeyId") - def kms_key_id(self) -> pulumi.Output[Optional[str]]: - """ - The AWS KMS key used to encrypt the secret (ID, Alias, or ARN) - """ - return pulumi.get(self, "kms_key_id") - - @property - @pulumi.getter - def path(self) -> pulumi.Output[str]: - """ - The path to the secret in AWS - """ - return pulumi.get(self, "path") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @property - @pulumi.getter - def region(self) -> pulumi.Output[str]: - """ - The AWS region - """ - return pulumi.get(self, "region") - - @property - @pulumi.getter - def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: - """ - AWS tags to attach to the secrets - """ - return pulumi.get(self, "tags") - - @property - @pulumi.getter(name="updateMetadata") - def update_metadata(self) -> pulumi.Output[Optional[bool]]: - """ - If enabled, Doppler will update the AWS secret metadata (e.g. KMS key) during every sync. If disabled, Doppler will only set secret metadata for new AWS secrets. Note that Doppler never updates tags for existing AWS secrets. - """ - return pulumi.get(self, "update_metadata") - diff --git a/sdk/python/pulumiverse_doppler/secretssync/github_actions.py b/sdk/python/pulumiverse_doppler/secretssync/github_actions.py deleted file mode 100644 index a2691a1..0000000 --- a/sdk/python/pulumiverse_doppler/secretssync/github_actions.py +++ /dev/null @@ -1,478 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from .. import _utilities - -__all__ = ['GithubActionsArgs', 'GithubActions'] - -@pulumi.input_type -class GithubActionsArgs: - def __init__(__self__, *, - config: pulumi.Input[str], - integration: pulumi.Input[str], - project: pulumi.Input[str], - sync_target: pulumi.Input[str], - delete_behavior: Optional[pulumi.Input[str]] = None, - environment_name: Optional[pulumi.Input[str]] = None, - org_scope: Optional[pulumi.Input[str]] = None, - repo_name: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a GithubActions resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] sync_target: Either "repo" or "org", based on the resource type to sync to - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - :param pulumi.Input[str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - """ - pulumi.set(__self__, "config", config) - pulumi.set(__self__, "integration", integration) - pulumi.set(__self__, "project", project) - pulumi.set(__self__, "sync_target", sync_target) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if environment_name is not None: - pulumi.set(__self__, "environment_name", environment_name) - if org_scope is not None: - pulumi.set(__self__, "org_scope", org_scope) - if repo_name is not None: - pulumi.set(__self__, "repo_name", repo_name) - - @property - @pulumi.getter - def config(self) -> pulumi.Input[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: pulumi.Input[str]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter - def integration(self) -> pulumi.Input[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: pulumi.Input[str]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter(name="syncTarget") - def sync_target(self) -> pulumi.Input[str]: - """ - Either "repo" or "org", based on the resource type to sync to - """ - return pulumi.get(self, "sync_target") - - @sync_target.setter - def sync_target(self, value: pulumi.Input[str]): - pulumi.set(self, "sync_target", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter(name="environmentName") - def environment_name(self) -> Optional[pulumi.Input[str]]: - """ - The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - """ - return pulumi.get(self, "environment_name") - - @environment_name.setter - def environment_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "environment_name", value) - - @property - @pulumi.getter(name="orgScope") - def org_scope(self) -> Optional[pulumi.Input[str]]: - """ - Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - """ - return pulumi.get(self, "org_scope") - - @org_scope.setter - def org_scope(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "org_scope", value) - - @property - @pulumi.getter(name="repoName") - def repo_name(self) -> Optional[pulumi.Input[str]]: - """ - The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - """ - return pulumi.get(self, "repo_name") - - @repo_name.setter - def repo_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "repo_name", value) - - -@pulumi.input_type -class _GithubActionsState: - def __init__(__self__, *, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - environment_name: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - org_scope: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - repo_name: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering GithubActions resources. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] sync_target: Either "repo" or "org", based on the resource type to sync to - """ - if config is not None: - pulumi.set(__self__, "config", config) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if environment_name is not None: - pulumi.set(__self__, "environment_name", environment_name) - if integration is not None: - pulumi.set(__self__, "integration", integration) - if org_scope is not None: - pulumi.set(__self__, "org_scope", org_scope) - if project is not None: - pulumi.set(__self__, "project", project) - if repo_name is not None: - pulumi.set(__self__, "repo_name", repo_name) - if sync_target is not None: - pulumi.set(__self__, "sync_target", sync_target) - - @property - @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter(name="environmentName") - def environment_name(self) -> Optional[pulumi.Input[str]]: - """ - The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - """ - return pulumi.get(self, "environment_name") - - @environment_name.setter - def environment_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "environment_name", value) - - @property - @pulumi.getter - def integration(self) -> Optional[pulumi.Input[str]]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter(name="orgScope") - def org_scope(self) -> Optional[pulumi.Input[str]]: - """ - Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - """ - return pulumi.get(self, "org_scope") - - @org_scope.setter - def org_scope(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "org_scope", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter(name="repoName") - def repo_name(self) -> Optional[pulumi.Input[str]]: - """ - The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - """ - return pulumi.get(self, "repo_name") - - @repo_name.setter - def repo_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "repo_name", value) - - @property - @pulumi.getter(name="syncTarget") - def sync_target(self) -> Optional[pulumi.Input[str]]: - """ - Either "repo" or "org", based on the resource type to sync to - """ - return pulumi.get(self, "sync_target") - - @sync_target.setter - def sync_target(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "sync_target", value) - - -class GithubActions(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - environment_name: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - org_scope: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - repo_name: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - Manage a GitHub Actions Doppler sync. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] sync_target: Either "repo" or "org", based on the resource type to sync to - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: GithubActionsArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Manage a GitHub Actions Doppler sync. - - :param str resource_name: The name of the resource. - :param GithubActionsArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(GithubActionsArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - environment_name: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - org_scope: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - repo_name: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = GithubActionsArgs.__new__(GithubActionsArgs) - - if config is None and not opts.urn: - raise TypeError("Missing required property 'config'") - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - __props__.__dict__["environment_name"] = environment_name - if integration is None and not opts.urn: - raise TypeError("Missing required property 'integration'") - __props__.__dict__["integration"] = integration - __props__.__dict__["org_scope"] = org_scope - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - __props__.__dict__["repo_name"] = repo_name - if sync_target is None and not opts.urn: - raise TypeError("Missing required property 'sync_target'") - __props__.__dict__["sync_target"] = sync_target - super(GithubActions, __self__).__init__( - 'doppler:secretsSync/githubActions:GithubActions', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - environment_name: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - org_scope: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - repo_name: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None) -> 'GithubActions': - """ - Get an existing GithubActions resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] environment_name: The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] org_scope: Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] repo_name: The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - :param pulumi.Input[str] sync_target: Either "repo" or "org", based on the resource type to sync to - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _GithubActionsState.__new__(_GithubActionsState) - - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - __props__.__dict__["environment_name"] = environment_name - __props__.__dict__["integration"] = integration - __props__.__dict__["org_scope"] = org_scope - __props__.__dict__["project"] = project - __props__.__dict__["repo_name"] = repo_name - __props__.__dict__["sync_target"] = sync_target - return GithubActions(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def config(self) -> pulumi.Output[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> pulumi.Output[Optional[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @property - @pulumi.getter(name="environmentName") - def environment_name(self) -> pulumi.Output[Optional[str]]: - """ - The GitHub repo environment name to sync to (only used when `sync_target` is set to "repo") - """ - return pulumi.get(self, "environment_name") - - @property - @pulumi.getter - def integration(self) -> pulumi.Output[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @property - @pulumi.getter(name="orgScope") - def org_scope(self) -> pulumi.Output[Optional[str]]: - """ - Either "all" or "private", based on the which repos you want to have access (only used when `sync_target` is set to "org") - """ - return pulumi.get(self, "org_scope") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @property - @pulumi.getter(name="repoName") - def repo_name(self) -> pulumi.Output[Optional[str]]: - """ - The GitHub repo name to sync to (only used when `sync_target` is set to "repo") - """ - return pulumi.get(self, "repo_name") - - @property - @pulumi.getter(name="syncTarget") - def sync_target(self) -> pulumi.Output[str]: - """ - Either "repo" or "org", based on the resource type to sync to - """ - return pulumi.get(self, "sync_target") - diff --git a/sdk/python/pulumiverse_doppler/secretssync/terraform_cloud.py b/sdk/python/pulumiverse_doppler/secretssync/terraform_cloud.py deleted file mode 100644 index 2c3b6de..0000000 --- a/sdk/python/pulumiverse_doppler/secretssync/terraform_cloud.py +++ /dev/null @@ -1,488 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from .. import _utilities - -__all__ = ['TerraformCloudArgs', 'TerraformCloud'] - -@pulumi.input_type -class TerraformCloudArgs: - def __init__(__self__, *, - config: pulumi.Input[str], - integration: pulumi.Input[str], - name_transform: pulumi.Input[str], - project: pulumi.Input[str], - sync_target: pulumi.Input[str], - variable_sync_type: pulumi.Input[str], - delete_behavior: Optional[pulumi.Input[str]] = None, - variable_set_id: Optional[pulumi.Input[str]] = None, - workspace_id: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a TerraformCloud resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - pulumi.set(__self__, "config", config) - pulumi.set(__self__, "integration", integration) - pulumi.set(__self__, "name_transform", name_transform) - pulumi.set(__self__, "project", project) - pulumi.set(__self__, "sync_target", sync_target) - pulumi.set(__self__, "variable_sync_type", variable_sync_type) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if variable_set_id is not None: - pulumi.set(__self__, "variable_set_id", variable_set_id) - if workspace_id is not None: - pulumi.set(__self__, "workspace_id", workspace_id) - - @property - @pulumi.getter - def config(self) -> pulumi.Input[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: pulumi.Input[str]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter - def integration(self) -> pulumi.Input[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: pulumi.Input[str]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter(name="nameTransform") - def name_transform(self) -> pulumi.Input[str]: - """ - A name transform to apply before syncing secrets: "none" or "lowercase" - """ - return pulumi.get(self, "name_transform") - - @name_transform.setter - def name_transform(self, value: pulumi.Input[str]): - pulumi.set(self, "name_transform", value) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter(name="syncTarget") - def sync_target(self) -> pulumi.Input[str]: - """ - Either "workspace" or "variableSet", based on the resource type to sync to - """ - return pulumi.get(self, "sync_target") - - @sync_target.setter - def sync_target(self, value: pulumi.Input[str]): - pulumi.set(self, "sync_target", value) - - @property - @pulumi.getter(name="variableSyncType") - def variable_sync_type(self) -> pulumi.Input[str]: - return pulumi.get(self, "variable_sync_type") - - @variable_sync_type.setter - def variable_sync_type(self, value: pulumi.Input[str]): - pulumi.set(self, "variable_sync_type", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter(name="variableSetId") - def variable_set_id(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "variable_set_id") - - @variable_set_id.setter - def variable_set_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "variable_set_id", value) - - @property - @pulumi.getter(name="workspaceId") - def workspace_id(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "workspace_id") - - @workspace_id.setter - def workspace_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "workspace_id", value) - - -@pulumi.input_type -class _TerraformCloudState: - def __init__(__self__, *, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - name_transform: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None, - variable_set_id: Optional[pulumi.Input[str]] = None, - variable_sync_type: Optional[pulumi.Input[str]] = None, - workspace_id: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering TerraformCloud resources. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to - """ - if config is not None: - pulumi.set(__self__, "config", config) - if delete_behavior is not None: - pulumi.set(__self__, "delete_behavior", delete_behavior) - if integration is not None: - pulumi.set(__self__, "integration", integration) - if name_transform is not None: - pulumi.set(__self__, "name_transform", name_transform) - if project is not None: - pulumi.set(__self__, "project", project) - if sync_target is not None: - pulumi.set(__self__, "sync_target", sync_target) - if variable_set_id is not None: - pulumi.set(__self__, "variable_set_id", variable_set_id) - if variable_sync_type is not None: - pulumi.set(__self__, "variable_sync_type", variable_sync_type) - if workspace_id is not None: - pulumi.set(__self__, "workspace_id", workspace_id) - - @property - @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @config.setter - def config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "config", value) - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> Optional[pulumi.Input[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @delete_behavior.setter - def delete_behavior(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "delete_behavior", value) - - @property - @pulumi.getter - def integration(self) -> Optional[pulumi.Input[str]]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @integration.setter - def integration(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "integration", value) - - @property - @pulumi.getter(name="nameTransform") - def name_transform(self) -> Optional[pulumi.Input[str]]: - """ - A name transform to apply before syncing secrets: "none" or "lowercase" - """ - return pulumi.get(self, "name_transform") - - @name_transform.setter - def name_transform(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name_transform", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter(name="syncTarget") - def sync_target(self) -> Optional[pulumi.Input[str]]: - """ - Either "workspace" or "variableSet", based on the resource type to sync to - """ - return pulumi.get(self, "sync_target") - - @sync_target.setter - def sync_target(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "sync_target", value) - - @property - @pulumi.getter(name="variableSetId") - def variable_set_id(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "variable_set_id") - - @variable_set_id.setter - def variable_set_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "variable_set_id", value) - - @property - @pulumi.getter(name="variableSyncType") - def variable_sync_type(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "variable_sync_type") - - @variable_sync_type.setter - def variable_sync_type(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "variable_sync_type", value) - - @property - @pulumi.getter(name="workspaceId") - def workspace_id(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "workspace_id") - - @workspace_id.setter - def workspace_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "workspace_id", value) - - -class TerraformCloud(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - name_transform: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None, - variable_set_id: Optional[pulumi.Input[str]] = None, - variable_sync_type: Optional[pulumi.Input[str]] = None, - workspace_id: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - ## Example Usage - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: TerraformCloudArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - ## Example Usage - - :param str resource_name: The name of the resource. - :param TerraformCloudArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(TerraformCloudArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - name_transform: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None, - variable_set_id: Optional[pulumi.Input[str]] = None, - variable_sync_type: Optional[pulumi.Input[str]] = None, - workspace_id: Optional[pulumi.Input[str]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = TerraformCloudArgs.__new__(TerraformCloudArgs) - - if config is None and not opts.urn: - raise TypeError("Missing required property 'config'") - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - if integration is None and not opts.urn: - raise TypeError("Missing required property 'integration'") - __props__.__dict__["integration"] = integration - if name_transform is None and not opts.urn: - raise TypeError("Missing required property 'name_transform'") - __props__.__dict__["name_transform"] = name_transform - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - if sync_target is None and not opts.urn: - raise TypeError("Missing required property 'sync_target'") - __props__.__dict__["sync_target"] = sync_target - __props__.__dict__["variable_set_id"] = variable_set_id - if variable_sync_type is None and not opts.urn: - raise TypeError("Missing required property 'variable_sync_type'") - __props__.__dict__["variable_sync_type"] = variable_sync_type - __props__.__dict__["workspace_id"] = workspace_id - super(TerraformCloud, __self__).__init__( - 'doppler:secretsSync/terraformCloud:TerraformCloud', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - config: Optional[pulumi.Input[str]] = None, - delete_behavior: Optional[pulumi.Input[str]] = None, - integration: Optional[pulumi.Input[str]] = None, - name_transform: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - sync_target: Optional[pulumi.Input[str]] = None, - variable_set_id: Optional[pulumi.Input[str]] = None, - variable_sync_type: Optional[pulumi.Input[str]] = None, - workspace_id: Optional[pulumi.Input[str]] = None) -> 'TerraformCloud': - """ - Get an existing TerraformCloud resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] config: The name of the Doppler config - :param pulumi.Input[str] delete_behavior: The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - :param pulumi.Input[str] integration: The slug of the integration to use for this sync - :param pulumi.Input[str] name_transform: A name transform to apply before syncing secrets: "none" or "lowercase" - :param pulumi.Input[str] project: The name of the Doppler project - :param pulumi.Input[str] sync_target: Either "workspace" or "variableSet", based on the resource type to sync to - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _TerraformCloudState.__new__(_TerraformCloudState) - - __props__.__dict__["config"] = config - __props__.__dict__["delete_behavior"] = delete_behavior - __props__.__dict__["integration"] = integration - __props__.__dict__["name_transform"] = name_transform - __props__.__dict__["project"] = project - __props__.__dict__["sync_target"] = sync_target - __props__.__dict__["variable_set_id"] = variable_set_id - __props__.__dict__["variable_sync_type"] = variable_sync_type - __props__.__dict__["workspace_id"] = workspace_id - return TerraformCloud(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def config(self) -> pulumi.Output[str]: - """ - The name of the Doppler config - """ - return pulumi.get(self, "config") - - @property - @pulumi.getter(name="deleteBehavior") - def delete_behavior(self) -> pulumi.Output[Optional[str]]: - """ - The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either `leave_in_target` (default) or `delete_from_target`. - """ - return pulumi.get(self, "delete_behavior") - - @property - @pulumi.getter - def integration(self) -> pulumi.Output[str]: - """ - The slug of the integration to use for this sync - """ - return pulumi.get(self, "integration") - - @property - @pulumi.getter(name="nameTransform") - def name_transform(self) -> pulumi.Output[str]: - """ - A name transform to apply before syncing secrets: "none" or "lowercase" - """ - return pulumi.get(self, "name_transform") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project - """ - return pulumi.get(self, "project") - - @property - @pulumi.getter(name="syncTarget") - def sync_target(self) -> pulumi.Output[str]: - """ - Either "workspace" or "variableSet", based on the resource type to sync to - """ - return pulumi.get(self, "sync_target") - - @property - @pulumi.getter(name="variableSetId") - def variable_set_id(self) -> pulumi.Output[Optional[str]]: - return pulumi.get(self, "variable_set_id") - - @property - @pulumi.getter(name="variableSyncType") - def variable_sync_type(self) -> pulumi.Output[str]: - return pulumi.get(self, "variable_sync_type") - - @property - @pulumi.getter(name="workspaceId") - def workspace_id(self) -> pulumi.Output[Optional[str]]: - return pulumi.get(self, "workspace_id") - diff --git a/sdk/python/pulumiverse_doppler/webhook.py b/sdk/python/pulumiverse_doppler/webhook.py deleted file mode 100644 index 0cec364..0000000 --- a/sdk/python/pulumiverse_doppler/webhook.py +++ /dev/null @@ -1,459 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities -from . import outputs -from ._inputs import * - -__all__ = ['WebhookArgs', 'Webhook'] - -@pulumi.input_type -class WebhookArgs: - def __init__(__self__, *, - project: pulumi.Input[str], - url: pulumi.Input[str], - authentication: Optional[pulumi.Input['WebhookAuthenticationArgs']] = None, - enabled: Optional[pulumi.Input[bool]] = None, - enabled_configs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - payload: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a Webhook resource. - :param pulumi.Input[str] project: The name of the Doppler project where the webhook is located - :param pulumi.Input[str] url: The URL of the webhook endpoint - :param pulumi.Input['WebhookAuthenticationArgs'] authentication: Authentication method used by the webhook - :param pulumi.Input[bool] enabled: Whether the webhook is enabled or disabled. Default to true. - :param pulumi.Input[Sequence[pulumi.Input[str]]] enabled_configs: Configs this webhook will trigger for - :param pulumi.Input[str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload - :param pulumi.Input[str] secret: Secret used for request signing - """ - pulumi.set(__self__, "project", project) - pulumi.set(__self__, "url", url) - if authentication is not None: - pulumi.set(__self__, "authentication", authentication) - if enabled is not None: - pulumi.set(__self__, "enabled", enabled) - if enabled_configs is not None: - pulumi.set(__self__, "enabled_configs", enabled_configs) - if payload is not None: - pulumi.set(__self__, "payload", payload) - if secret is not None: - pulumi.set(__self__, "secret", secret) - - @property - @pulumi.getter - def project(self) -> pulumi.Input[str]: - """ - The name of the Doppler project where the webhook is located - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: pulumi.Input[str]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def url(self) -> pulumi.Input[str]: - """ - The URL of the webhook endpoint - """ - return pulumi.get(self, "url") - - @url.setter - def url(self, value: pulumi.Input[str]): - pulumi.set(self, "url", value) - - @property - @pulumi.getter - def authentication(self) -> Optional[pulumi.Input['WebhookAuthenticationArgs']]: - """ - Authentication method used by the webhook - """ - return pulumi.get(self, "authentication") - - @authentication.setter - def authentication(self, value: Optional[pulumi.Input['WebhookAuthenticationArgs']]): - pulumi.set(self, "authentication", value) - - @property - @pulumi.getter - def enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Whether the webhook is enabled or disabled. Default to true. - """ - return pulumi.get(self, "enabled") - - @enabled.setter - def enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enabled", value) - - @property - @pulumi.getter(name="enabledConfigs") - def enabled_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Configs this webhook will trigger for - """ - return pulumi.get(self, "enabled_configs") - - @enabled_configs.setter - def enabled_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "enabled_configs", value) - - @property - @pulumi.getter - def payload(self) -> Optional[pulumi.Input[str]]: - """ - The webhook's payload as a JSON string. Leave empty to use the default webhook payload - """ - return pulumi.get(self, "payload") - - @payload.setter - def payload(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "payload", value) - - @property - @pulumi.getter - def secret(self) -> Optional[pulumi.Input[str]]: - """ - Secret used for request signing - """ - return pulumi.get(self, "secret") - - @secret.setter - def secret(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "secret", value) - - -@pulumi.input_type -class _WebhookState: - def __init__(__self__, *, - authentication: Optional[pulumi.Input['WebhookAuthenticationArgs']] = None, - enabled: Optional[pulumi.Input[bool]] = None, - enabled_configs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - payload: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None, - url: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering Webhook resources. - :param pulumi.Input['WebhookAuthenticationArgs'] authentication: Authentication method used by the webhook - :param pulumi.Input[bool] enabled: Whether the webhook is enabled or disabled. Default to true. - :param pulumi.Input[Sequence[pulumi.Input[str]]] enabled_configs: Configs this webhook will trigger for - :param pulumi.Input[str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload - :param pulumi.Input[str] project: The name of the Doppler project where the webhook is located - :param pulumi.Input[str] secret: Secret used for request signing - :param pulumi.Input[str] slug: The slug of the Webhook - :param pulumi.Input[str] url: The URL of the webhook endpoint - """ - if authentication is not None: - pulumi.set(__self__, "authentication", authentication) - if enabled is not None: - pulumi.set(__self__, "enabled", enabled) - if enabled_configs is not None: - pulumi.set(__self__, "enabled_configs", enabled_configs) - if payload is not None: - pulumi.set(__self__, "payload", payload) - if project is not None: - pulumi.set(__self__, "project", project) - if secret is not None: - pulumi.set(__self__, "secret", secret) - if slug is not None: - pulumi.set(__self__, "slug", slug) - if url is not None: - pulumi.set(__self__, "url", url) - - @property - @pulumi.getter - def authentication(self) -> Optional[pulumi.Input['WebhookAuthenticationArgs']]: - """ - Authentication method used by the webhook - """ - return pulumi.get(self, "authentication") - - @authentication.setter - def authentication(self, value: Optional[pulumi.Input['WebhookAuthenticationArgs']]): - pulumi.set(self, "authentication", value) - - @property - @pulumi.getter - def enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Whether the webhook is enabled or disabled. Default to true. - """ - return pulumi.get(self, "enabled") - - @enabled.setter - def enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enabled", value) - - @property - @pulumi.getter(name="enabledConfigs") - def enabled_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Configs this webhook will trigger for - """ - return pulumi.get(self, "enabled_configs") - - @enabled_configs.setter - def enabled_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "enabled_configs", value) - - @property - @pulumi.getter - def payload(self) -> Optional[pulumi.Input[str]]: - """ - The webhook's payload as a JSON string. Leave empty to use the default webhook payload - """ - return pulumi.get(self, "payload") - - @payload.setter - def payload(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "payload", value) - - @property - @pulumi.getter - def project(self) -> Optional[pulumi.Input[str]]: - """ - The name of the Doppler project where the webhook is located - """ - return pulumi.get(self, "project") - - @project.setter - def project(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "project", value) - - @property - @pulumi.getter - def secret(self) -> Optional[pulumi.Input[str]]: - """ - Secret used for request signing - """ - return pulumi.get(self, "secret") - - @secret.setter - def secret(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "secret", value) - - @property - @pulumi.getter - def slug(self) -> Optional[pulumi.Input[str]]: - """ - The slug of the Webhook - """ - return pulumi.get(self, "slug") - - @slug.setter - def slug(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "slug", value) - - @property - @pulumi.getter - def url(self) -> Optional[pulumi.Input[str]]: - """ - The URL of the webhook endpoint - """ - return pulumi.get(self, "url") - - @url.setter - def url(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "url", value) - - -class Webhook(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - authentication: Optional[pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict']]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - enabled_configs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - payload: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None, - url: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - Create a Webhook resource with the given unique name, props, and options. - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict']] authentication: Authentication method used by the webhook - :param pulumi.Input[bool] enabled: Whether the webhook is enabled or disabled. Default to true. - :param pulumi.Input[Sequence[pulumi.Input[str]]] enabled_configs: Configs this webhook will trigger for - :param pulumi.Input[str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload - :param pulumi.Input[str] project: The name of the Doppler project where the webhook is located - :param pulumi.Input[str] secret: Secret used for request signing - :param pulumi.Input[str] url: The URL of the webhook endpoint - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: WebhookArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Create a Webhook resource with the given unique name, props, and options. - :param str resource_name: The name of the resource. - :param WebhookArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(WebhookArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - authentication: Optional[pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict']]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - enabled_configs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - payload: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None, - url: Optional[pulumi.Input[str]] = None, - __props__=None): - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = WebhookArgs.__new__(WebhookArgs) - - __props__.__dict__["authentication"] = authentication - __props__.__dict__["enabled"] = enabled - __props__.__dict__["enabled_configs"] = enabled_configs - __props__.__dict__["payload"] = None if payload is None else pulumi.Output.secret(payload) - if project is None and not opts.urn: - raise TypeError("Missing required property 'project'") - __props__.__dict__["project"] = project - __props__.__dict__["secret"] = None if secret is None else pulumi.Output.secret(secret) - if url is None and not opts.urn: - raise TypeError("Missing required property 'url'") - __props__.__dict__["url"] = url - __props__.__dict__["slug"] = None - secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["payload", "secret"]) - opts = pulumi.ResourceOptions.merge(opts, secret_opts) - super(Webhook, __self__).__init__( - 'doppler:index/webhook:Webhook', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - authentication: Optional[pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict']]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - enabled_configs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - payload: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None, - slug: Optional[pulumi.Input[str]] = None, - url: Optional[pulumi.Input[str]] = None) -> 'Webhook': - """ - Get an existing Webhook resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Union['WebhookAuthenticationArgs', 'WebhookAuthenticationArgsDict']] authentication: Authentication method used by the webhook - :param pulumi.Input[bool] enabled: Whether the webhook is enabled or disabled. Default to true. - :param pulumi.Input[Sequence[pulumi.Input[str]]] enabled_configs: Configs this webhook will trigger for - :param pulumi.Input[str] payload: The webhook's payload as a JSON string. Leave empty to use the default webhook payload - :param pulumi.Input[str] project: The name of the Doppler project where the webhook is located - :param pulumi.Input[str] secret: Secret used for request signing - :param pulumi.Input[str] slug: The slug of the Webhook - :param pulumi.Input[str] url: The URL of the webhook endpoint - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _WebhookState.__new__(_WebhookState) - - __props__.__dict__["authentication"] = authentication - __props__.__dict__["enabled"] = enabled - __props__.__dict__["enabled_configs"] = enabled_configs - __props__.__dict__["payload"] = payload - __props__.__dict__["project"] = project - __props__.__dict__["secret"] = secret - __props__.__dict__["slug"] = slug - __props__.__dict__["url"] = url - return Webhook(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def authentication(self) -> pulumi.Output[Optional['outputs.WebhookAuthentication']]: - """ - Authentication method used by the webhook - """ - return pulumi.get(self, "authentication") - - @property - @pulumi.getter - def enabled(self) -> pulumi.Output[Optional[bool]]: - """ - Whether the webhook is enabled or disabled. Default to true. - """ - return pulumi.get(self, "enabled") - - @property - @pulumi.getter(name="enabledConfigs") - def enabled_configs(self) -> pulumi.Output[Optional[Sequence[str]]]: - """ - Configs this webhook will trigger for - """ - return pulumi.get(self, "enabled_configs") - - @property - @pulumi.getter - def payload(self) -> pulumi.Output[Optional[str]]: - """ - The webhook's payload as a JSON string. Leave empty to use the default webhook payload - """ - return pulumi.get(self, "payload") - - @property - @pulumi.getter - def project(self) -> pulumi.Output[str]: - """ - The name of the Doppler project where the webhook is located - """ - return pulumi.get(self, "project") - - @property - @pulumi.getter - def secret(self) -> pulumi.Output[Optional[str]]: - """ - Secret used for request signing - """ - return pulumi.get(self, "secret") - - @property - @pulumi.getter - def slug(self) -> pulumi.Output[str]: - """ - The slug of the Webhook - """ - return pulumi.get(self, "slug") - - @property - @pulumi.getter - def url(self) -> pulumi.Output[str]: - """ - The URL of the webhook endpoint - """ - return pulumi.get(self, "url") - diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml new file mode 100644 index 0000000..41bb3e9 --- /dev/null +++ b/sdk/python/pyproject.toml @@ -0,0 +1,22 @@ +[project] + name = "pulumi_doppler" + description = "A Pulumi package for managing Doppler projects, secrets, and access." + dependencies = ["packaging>=24.0", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11,<5; python_version < \"3.11\""] + keywords = ["pulumi", "doppler", "secrets", "secrets-management", "category/cloud"] + readme = "README.md" + requires-python = ">=3.9" + version = "0.0.0a0+dev" + [project.license] + text = "Apache-2.0" + [project.urls] + Homepage = "https://www.doppler.com" + Repository = "https://github.com/DopplerHQ/pulumi-doppler" + +[build-system] + requires = ["setuptools>=61.0"] + build-backend = "setuptools.build_meta" + +[tool] + [tool.setuptools] + [tool.setuptools.package-data] + pulumi_doppler = ["py.typed", "pulumi-plugin.json"] diff --git a/sdk/python/setup.py b/sdk/python/setup.py deleted file mode 100644 index b7ac88d..0000000 --- a/sdk/python/setup.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import errno -from setuptools import setup, find_packages -from setuptools.command.install import install -from subprocess import check_call - - -VERSION = "0.0.0" -def readme(): - try: - with open('README.md', encoding='utf-8') as f: - return f.read() - except FileNotFoundError: - return "doppler Pulumi Package - Development Version" - - -setup(name='pulumiverse_doppler', - python_requires='>=3.8', - version=VERSION, - description="A Pulumi package for creating and managing doppler cloud resources.", - long_description=readme(), - long_description_content_type='text/markdown', - keywords='pulumi doppler category/cloud', - url='https://www.pulumi.com', - project_urls={ - 'Repository': 'https://github.com/pulumiverse/pulumi-doppler' - }, - license='Apache-2.0', - packages=find_packages(), - package_data={ - 'pulumiverse_doppler': [ - 'py.typed', - 'pulumi-plugin.json', - ] - }, - install_requires=[ - 'parver>=0.2.1', - 'pulumi>=3.0.0,<4.0.0', - 'semver>=2.8.1' - ], - zip_safe=False)