Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

getPgUser

The PG User data source provides information about the existing Aiven PG User.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var user = Output.Create(Aiven.GetPgUser.InvokeAsync(new Aiven.GetPgUserArgs
        {
            Project = "my-project",
            ServiceName = "my-service",
            Username = "user1",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupPgUser(ctx, &GetPgUserArgs{
			Project:     "my-project",
			ServiceName: "my-service",
			Username:    "user1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var user = Output.of(AivenFunctions.getPgUser(GetPgUserArgs.builder()
            .project("my-project")
            .serviceName("my-service")
            .username("user1")
            .build()));

    }
}
import pulumi
import pulumi_aiven as aiven

user = aiven.get_pg_user(project="my-project",
    service_name="my-service",
    username="user1")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const user = pulumi.output(aiven.getPgUser({
    project: "my-project",
    serviceName: "my-service",
    username: "user1",
}));
variables:
  user:
    Fn::Invoke:
      Function: aiven:getPgUser
      Arguments:
        project: my-project
        serviceName: my-service
        username: user1

Using getPgUser

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 getPgUser(args: GetPgUserArgs, opts?: InvokeOptions): Promise<GetPgUserResult>
function getPgUserOutput(args: GetPgUserOutputArgs, opts?: InvokeOptions): Output<GetPgUserResult>
def get_pg_user(project: Optional[str] = None,
                service_name: Optional[str] = None,
                username: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetPgUserResult
def get_pg_user_output(project: Optional[pulumi.Input[str]] = None,
                service_name: Optional[pulumi.Input[str]] = None,
                username: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetPgUserResult]
func LookupPgUser(ctx *Context, args *LookupPgUserArgs, opts ...InvokeOption) (*LookupPgUserResult, error)
func LookupPgUserOutput(ctx *Context, args *LookupPgUserOutputArgs, opts ...InvokeOption) LookupPgUserResultOutput

> Note: This function is named LookupPgUser in the Go SDK.

public static class GetPgUser 
{
    public static Task<GetPgUserResult> InvokeAsync(GetPgUserArgs args, InvokeOptions? opts = null)
    public static Output<GetPgUserResult> Invoke(GetPgUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPgUserResult> getPgUser(GetPgUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aiven:index/getPgUser:getPgUser
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Project string
ServiceName string
Username string
Project string
ServiceName string
Username string
project String
serviceName String
username String
project string
serviceName string
username string
project String
serviceName String
username String

getPgUser Result

The following output properties are available:

AccessCert string
AccessKey string
Id string

The provider-assigned unique ID for this managed resource.

Password string
PgAllowReplication bool
Project string
ServiceName string
Type string
Username string
AccessCert string
AccessKey string
Id string

The provider-assigned unique ID for this managed resource.

Password string
PgAllowReplication bool
Project string
ServiceName string
Type string
Username string
accessCert String
accessKey String
id String

The provider-assigned unique ID for this managed resource.

password String
pgAllowReplication Boolean
project String
serviceName String
type String
username String
accessCert string
accessKey string
id string

The provider-assigned unique ID for this managed resource.

password string
pgAllowReplication boolean
project string
serviceName string
type string
username string
access_cert str
access_key str
id str

The provider-assigned unique ID for this managed resource.

password str
pg_allow_replication bool
project str
service_name str
type str
username str
accessCert String
accessKey String
id String

The provider-assigned unique ID for this managed resource.

password String
pgAllowReplication Boolean
project String
serviceName String
type String
username String

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.