Event Store Cloud

Community
Package contributed by a community member
v0.2.3 published on Monday, Mar 7, 2022 by EventStore

getProject

Retrieves data for an existing Project resource

Example Usage

using Pulumi;
using EventStoreCloud = Pulumi.EventStoreCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(EventStoreCloud.GetProject.InvokeAsync(new EventStoreCloud.GetProjectArgs
        {
            Name = "Example Project",
        }));
        this.ProjectId = example.Apply(example => example.Id);
    }

    [Output("projectId")]
    public Output<string> ProjectId { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := eventstorecloud.LookupProject(ctx, &GetProjectArgs{
			Name: "Example Project",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("projectId", example.Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_eventstorecloud as eventstorecloud

example = eventstorecloud.get_project(name="Example Project")
pulumi.export("projectId", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as eventstorecloud from "@pulumi/eventstorecloud";

const example = eventstorecloud.getProject({
    name: "Example Project",
});
export const projectId = example.then(example => example.id);

Coming soon!

Using getProject

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 getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
def get_project(name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput

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

public static class GetProject 
{
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: eventstorecloud:index/getProject:getProject
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string
Name string
name String
name string
name str
name String

getProject Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string
Id string

The provider-assigned unique ID for this managed resource.

Name string
id String

The provider-assigned unique ID for this managed resource.

name String
id string

The provider-assigned unique ID for this managed resource.

name string
id str

The provider-assigned unique ID for this managed resource.

name str
id String

The provider-assigned unique ID for this managed resource.

name String

Package Details

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

This Pulumi package is based on the eventstorecloud Terraform Provider.