Aiven
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
- Service
Name string - Username string
- Project string
- Service
Name string - Username string
- project String
- service
Name String - username String
- project string
- service
Name string - username string
- project str
- service_
name str - username str
- project String
- service
Name String - username String
getPgUser Result
The following output properties are available:
- Access
Cert string - Access
Key string - Id string
The provider-assigned unique ID for this managed resource.
- Password string
- Pg
Allow boolReplication - Project string
- Service
Name string - Type string
- Username string
- Access
Cert string - Access
Key string - Id string
The provider-assigned unique ID for this managed resource.
- Password string
- Pg
Allow boolReplication - Project string
- Service
Name string - Type string
- Username string
- access
Cert String - access
Key String - id String
The provider-assigned unique ID for this managed resource.
- password String
- pg
Allow BooleanReplication - project String
- service
Name String - type String
- username String
- access
Cert string - access
Key string - id string
The provider-assigned unique ID for this managed resource.
- password string
- pg
Allow booleanReplication - project string
- service
Name 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_ boolreplication - project str
- service_
name str - type str
- username str
- access
Cert String - access
Key String - id String
The provider-assigned unique ID for this managed resource.
- password String
- pg
Allow BooleanReplication - project String
- service
Name 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.