Aiven

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

getMysqlUser

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

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

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

    }
}
import pulumi
import pulumi_aiven as aiven

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

Using getMysqlUser

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 getMysqlUser(args: GetMysqlUserArgs, opts?: InvokeOptions): Promise<GetMysqlUserResult>
function getMysqlUserOutput(args: GetMysqlUserOutputArgs, opts?: InvokeOptions): Output<GetMysqlUserResult>
def get_mysql_user(project: Optional[str] = None,
                   service_name: Optional[str] = None,
                   username: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetMysqlUserResult
def get_mysql_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[GetMysqlUserResult]
func LookupMysqlUser(ctx *Context, args *LookupMysqlUserArgs, opts ...InvokeOption) (*LookupMysqlUserResult, error)
func LookupMysqlUserOutput(ctx *Context, args *LookupMysqlUserOutputArgs, opts ...InvokeOption) LookupMysqlUserResultOutput

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

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

getMysqlUser Result

The following output properties are available:

AccessCert string
AccessKey string
Authentication string
Id string

The provider-assigned unique ID for this managed resource.

Password string
Project string
ServiceName string
Type string
Username string
AccessCert string
AccessKey string
Authentication string
Id string

The provider-assigned unique ID for this managed resource.

Password string
Project string
ServiceName string
Type string
Username string
accessCert String
accessKey String
authentication String
id String

The provider-assigned unique ID for this managed resource.

password String
project String
serviceName String
type String
username String
accessCert string
accessKey string
authentication string
id string

The provider-assigned unique ID for this managed resource.

password string
project string
serviceName string
type string
username string
access_cert str
access_key str
authentication str
id str

The provider-assigned unique ID for this managed resource.

password str
project str
service_name str
type str
username str
accessCert String
accessKey String
authentication String
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.