Interface CloudfunctionsFunctionSecretVolumesVersions

    • Method Detail

      • getPath

        @Stability(Stable)
        @NotNull
        String getPath()
        Relative path of the file under the mount path where the secret value for this version will be fetched and made available.

        For example, setting the mount_path as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#path CloudfunctionsFunction#path}

      • getVersion

        @Stability(Stable)
        @NotNull
        String getVersion()
        Version of the secret (version number or the string "latest").

        It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions_function#version CloudfunctionsFunction#version}