Doppler v0.7.1 published on Monday, May 27, 2024 by Pulumiverse
doppler.getUser
Explore with Pulumi AI
Retrieve an existing Doppler user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as doppler from "@pulumi/doppler";
const nic = doppler.getUser({
email: "nic@doppler.com",
});
import pulumi
import pulumi_doppler as doppler
nic = doppler.get_user(email="nic@doppler.com")
package main
import (
"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.GetUser(ctx, &doppler.GetUserArgs{
Email: "nic@doppler.com",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Doppler = Pulumi.Doppler;
return await Deployment.RunAsync(() =>
{
var nic = Doppler.GetUser.Invoke(new()
{
Email = "nic@doppler.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.doppler.DopplerFunctions;
import com.pulumi.doppler.inputs.GetUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var nic = DopplerFunctions.getUser(GetUserArgs.builder()
.email("nic@doppler.com")
.build());
}
}
variables:
nic:
fn::invoke:
Function: doppler:getUser
Arguments:
email: nic@doppler.com
Using getUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
def get_user(email: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(email: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
func GetUser(ctx *Context, args *GetUserArgs, opts ...InvokeOption) (*GetUserResult, error)
func GetUserOutput(ctx *Context, args *GetUserOutputArgs, opts ...InvokeOption) GetUserResultOutput
> Note: This function is named GetUser
in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: doppler:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- Email string
- The email address of the Doppler user
- Email string
- The email address of the Doppler user
- email String
- The email address of the Doppler user
- email string
- The email address of the Doppler user
- email str
- The email address of the Doppler user
- email String
- The email address of the Doppler user
getUser Result
The following output properties are available:
Package Details
- Repository
- doppler pulumiverse/pulumi-doppler
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
doppler
Terraform Provider.