1. Packages
  2. Event Store Cloud
  3. API Docs
  4. getProject
Event Store Cloud v0.2.17 published on Tuesday, Jan 21, 2025 by EventStore

eventstorecloud.getProject

Explore with Pulumi AI

Event Store Cloud v0.2.17 published on Tuesday, Jan 21, 2025 by EventStore

Retrieves data for an existing Project resource

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using EventStoreCloud = Pulumi.EventStoreCloud;

return await Deployment.RunAsync(() => 
{
    var example = EventStoreCloud.GetProject.Invoke(new()
    {
        Name = "Example Project",
    });

    return new Dictionary<string, object?>
    {
        ["projectId"] = example.Apply(getProjectResult => getProjectResult.Id),
    };
});
Copy
package main

import (
	"github.com/EventStore/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, &eventstorecloud.LookupProjectArgs{
			Name: "Example Project",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("projectId", example.Id)
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.eventstorecloud.EventstorecloudFunctions;
import com.pulumi.eventstorecloud.inputs.GetProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = EventstorecloudFunctions.getProject(GetProjectArgs.builder()
            .name("Example Project")
            .build());

        ctx.export("projectId", example.applyValue(getProjectResult -> getProjectResult.id()));
    }
}
Copy
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);
Copy
import pulumi
import pulumi_eventstorecloud as eventstorecloud

example = eventstorecloud.get_project(name="Example Project")
pulumi.export("projectId", example.id)
Copy
variables:
  example:
    fn::invoke:
      Function: eventstorecloud:getProject
      Arguments:
        name: Example Project
outputs:
  projectId: ${example.id}
Copy

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>
Copy
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]
Copy
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
public static Output<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: eventstorecloud:index/getProject:getProject
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name This property is required. string
name This property is required. String
name This property is required. string
name This property is required. str
name This property is required. 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
eventstorecloud EventStore/pulumi-eventstorecloud
License
Apache-2.0
Notes
This Pulumi package is based on the eventstorecloud Terraform Provider.
Event Store Cloud v0.2.17 published on Tuesday, Jan 21, 2025 by EventStore