Aiven

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

getClickhouse

The Clickhouse data source provides information about the existing Aiven Clickhouse service.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var clickhouse = Output.Create(Aiven.GetClickhouse.InvokeAsync(new Aiven.GetClickhouseArgs
        {
            Project = data.Aiven_project.Pr1.Project,
            ServiceName = "<SERVICE_NAME>",
        }));
    }

}
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.LookupClickhouse(ctx, &GetClickhouseArgs{
			Project:     data.Aiven_project.Pr1.Project,
			ServiceName: "<SERVICE_NAME>",
		}, 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 clickhouse = Output.of(AivenFunctions.getClickhouse(GetClickhouseArgs.builder()
            .project(data.aiven_project().pr1().project())
            .serviceName("<SERVICE_NAME>")
            .build()));

    }
}
import pulumi
import pulumi_aiven as aiven

clickhouse = aiven.get_clickhouse(project=data["aiven_project"]["pr1"]["project"],
    service_name="<SERVICE_NAME>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const clickhouse = aiven.getClickhouse({
    project: data.aiven_project.pr1.project,
    serviceName: "<SERVICE_NAME>",
});
variables:
  clickhouse:
    Fn::Invoke:
      Function: aiven:getClickhouse
      Arguments:
        project: ${data.aiven_project.pr1.project}
        serviceName: <SERVICE_NAME>

Using getClickhouse

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 getClickhouse(args: GetClickhouseArgs, opts?: InvokeOptions): Promise<GetClickhouseResult>
function getClickhouseOutput(args: GetClickhouseOutputArgs, opts?: InvokeOptions): Output<GetClickhouseResult>
def get_clickhouse(project: Optional[str] = None,
                   service_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetClickhouseResult
def get_clickhouse_output(project: Optional[pulumi.Input[str]] = None,
                   service_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetClickhouseResult]
func LookupClickhouse(ctx *Context, args *LookupClickhouseArgs, opts ...InvokeOption) (*LookupClickhouseResult, error)
func LookupClickhouseOutput(ctx *Context, args *LookupClickhouseOutputArgs, opts ...InvokeOption) LookupClickhouseResultOutput

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

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

The following arguments are supported:

Project string
ServiceName string
Project string
ServiceName string
project String
serviceName String
project string
serviceName string
project String
serviceName String

getClickhouse Result

The following output properties are available:

Supporting Types

GetClickhouseClickhouseUserConfig

GetClickhouseComponent

Component string
Host string
KafkaAuthenticationMethod string
Port int
Route string
Ssl bool
Usage string
Component string
Host string
KafkaAuthenticationMethod string
Port int
Route string
Ssl bool
Usage string
component String
host String
kafkaAuthenticationMethod String
port Integer
route String
ssl Boolean
usage String
component string
host string
kafkaAuthenticationMethod string
port number
route string
ssl boolean
usage string
component String
host String
kafkaAuthenticationMethod String
port Number
route String
ssl Boolean
usage String

GetClickhouseServiceIntegration

GetClickhouseTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value 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.