Aiven

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

getOpensearchUser

The Opensearch User data source provides information about the existing Aiven Cassandra User.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var user = Output.Create(Aiven.GetOpensearchUser.InvokeAsync(new Aiven.GetOpensearchUserArgs
        {
            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.LookupOpensearchUser(ctx, &GetOpensearchUserArgs{
			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.getOpensearchUser(GetOpensearchUserArgs.builder()
            .project("my-project")
            .serviceName("my-service")
            .username("user1")
            .build()));

    }
}
import pulumi
import pulumi_aiven as aiven

user = aiven.get_opensearch_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.getOpensearchUser({
    project: "my-project",
    serviceName: "my-service",
    username: "user1",
}));
variables:
  user:
    Fn::Invoke:
      Function: aiven:getOpensearchUser
      Arguments:
        project: my-project
        serviceName: my-service
        username: user1

Using getOpensearchUser

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 getOpensearchUser(args: GetOpensearchUserArgs, opts?: InvokeOptions): Promise<GetOpensearchUserResult>
function getOpensearchUserOutput(args: GetOpensearchUserOutputArgs, opts?: InvokeOptions): Output<GetOpensearchUserResult>
def get_opensearch_user(project: Optional[str] = None,
                        service_name: Optional[str] = None,
                        username: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetOpensearchUserResult
def get_opensearch_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[GetOpensearchUserResult]
func LookupOpensearchUser(ctx *Context, args *LookupOpensearchUserArgs, opts ...InvokeOption) (*LookupOpensearchUserResult, error)
func LookupOpensearchUserOutput(ctx *Context, args *LookupOpensearchUserOutputArgs, opts ...InvokeOption) LookupOpensearchUserResultOutput

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

public static class GetOpensearchUser 
{
    public static Task<GetOpensearchUserResult> InvokeAsync(GetOpensearchUserArgs args, InvokeOptions? opts = null)
    public static Output<GetOpensearchUserResult> Invoke(GetOpensearchUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOpensearchUserResult> getOpensearchUser(GetOpensearchUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aiven:index/getOpensearchUser:getOpensearchUser
  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

getOpensearchUser Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Password string
Project string
ServiceName string
Type string
Username string
Id string

The provider-assigned unique ID for this managed resource.

Password string
Project string
ServiceName string
Type string
Username string
id String

The provider-assigned unique ID for this managed resource.

password String
project String
serviceName String
type String
username String
id string

The provider-assigned unique ID for this managed resource.

password string
project string
serviceName string
type string
username string
id str

The provider-assigned unique ID for this managed resource.

password str
project str
service_name str
type str
username str
id String

The provider-assigned unique ID for this managed resource.

password String
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.