1. Packages
  2. Launch Darkly
  3. API Docs
  4. getProject
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

launchdarkly.getProject

Explore with Pulumi AI

Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

Provides a LaunchDarkly project data source.

This data source allows you to retrieve project information from your LaunchDarkly organization.

Note: LaunchDarkly data sources do not provide access to the project’s environments. If you wish to import environment configurations as data sources you must use the launchdarkly.Environment data source.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Launchdarkly = Pulumi.Launchdarkly;

return await Deployment.RunAsync(() => 
{
    var example = Launchdarkly.GetProject.Invoke(new()
    {
        Key = "example-project",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err = launchdarkly.LookupProject(ctx, &launchdarkly.LookupProjectArgs{
			Key: "example-project",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.launchdarkly.LaunchdarklyFunctions;
import com.pulumi.launchdarkly.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 = LaunchdarklyFunctions.getProject(GetProjectArgs.builder()
            .key("example-project")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@pulumi/launchdarkly";

const example = launchdarkly.getProject({
    key: "example-project",
});
Copy
import pulumi
import pulumi_launchdarkly as launchdarkly

example = launchdarkly.get_project(key="example-project")
Copy
variables:
  example:
    fn::invoke:
      Function: launchdarkly:getProject
      Arguments:
        key: example-project
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(key: Optional[str] = None,
                tags: Optional[Sequence[str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(key: Optional[pulumi.Input[str]] = None,
                tags: Optional[pulumi.Input[Sequence[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: launchdarkly:index/getProject:getProject
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Key This property is required. string
The project's unique key.
Tags List<string>
The project's set of tags.
Key This property is required. string
The project's unique key.
Tags []string
The project's set of tags.
key This property is required. String
The project's unique key.
tags List<String>
The project's set of tags.
key This property is required. string
The project's unique key.
tags string[]
The project's set of tags.
key This property is required. str
The project's unique key.
tags Sequence[str]
The project's set of tags.
key This property is required. String
The project's unique key.
tags List<String>
The project's set of tags.

getProject Result

The following output properties are available:

ClientSideAvailabilities List<Lbrlabs.PulumiPackage.Launchdarkly.Outputs.GetProjectClientSideAvailability>
Deprecated A map describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block. Please migrate to default_client_side_availability to maintain future compatability.

Deprecated: 'client_side_availability' is now deprecated. Please migrate to 'default_client_side_availability' to maintain future compatability.

DefaultClientSideAvailabilities List<Lbrlabs.PulumiPackage.Launchdarkly.Outputs.GetProjectDefaultClientSideAvailability>
A block describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block.
Id string
The provider-assigned unique ID for this managed resource.
Key string
Name string
The project's name.
Tags List<string>
The project's set of tags.
ClientSideAvailabilities []GetProjectClientSideAvailability
Deprecated A map describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block. Please migrate to default_client_side_availability to maintain future compatability.

Deprecated: 'client_side_availability' is now deprecated. Please migrate to 'default_client_side_availability' to maintain future compatability.

DefaultClientSideAvailabilities []GetProjectDefaultClientSideAvailability
A block describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block.
Id string
The provider-assigned unique ID for this managed resource.
Key string
Name string
The project's name.
Tags []string
The project's set of tags.
clientSideAvailabilities List<GetProjectClientSideAvailability>
Deprecated A map describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block. Please migrate to default_client_side_availability to maintain future compatability.

Deprecated: 'client_side_availability' is now deprecated. Please migrate to 'default_client_side_availability' to maintain future compatability.

defaultClientSideAvailabilities List<GetProjectDefaultClientSideAvailability>
A block describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block.
id String
The provider-assigned unique ID for this managed resource.
key String
name String
The project's name.
tags List<String>
The project's set of tags.
clientSideAvailabilities GetProjectClientSideAvailability[]
Deprecated A map describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block. Please migrate to default_client_side_availability to maintain future compatability.

Deprecated: 'client_side_availability' is now deprecated. Please migrate to 'default_client_side_availability' to maintain future compatability.

defaultClientSideAvailabilities GetProjectDefaultClientSideAvailability[]
A block describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block.
id string
The provider-assigned unique ID for this managed resource.
key string
name string
The project's name.
tags string[]
The project's set of tags.
client_side_availabilities Sequence[GetProjectClientSideAvailability]
Deprecated A map describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block. Please migrate to default_client_side_availability to maintain future compatability.

Deprecated: 'client_side_availability' is now deprecated. Please migrate to 'default_client_side_availability' to maintain future compatability.

default_client_side_availabilities Sequence[GetProjectDefaultClientSideAvailability]
A block describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block.
id str
The provider-assigned unique ID for this managed resource.
key str
name str
The project's name.
tags Sequence[str]
The project's set of tags.
clientSideAvailabilities List<Property Map>
Deprecated A map describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block. Please migrate to default_client_side_availability to maintain future compatability.

Deprecated: 'client_side_availability' is now deprecated. Please migrate to 'default_client_side_availability' to maintain future compatability.

defaultClientSideAvailabilities List<Property Map>
A block describing which client-side SDKs can use new flags by default. To learn more, read Nested Client-Side Availability Block.
id String
The provider-assigned unique ID for this managed resource.
key String
name String
The project's name.
tags List<String>
The project's set of tags.

Supporting Types

GetProjectClientSideAvailability

UsingEnvironmentId bool
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
UsingMobileKey bool
When set to true, the flags in this project are available to SDKs using a mobile key by default.
UsingEnvironmentId bool
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
UsingMobileKey bool
When set to true, the flags in this project are available to SDKs using a mobile key by default.
usingEnvironmentId Boolean
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
usingMobileKey Boolean
When set to true, the flags in this project are available to SDKs using a mobile key by default.
usingEnvironmentId boolean
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
usingMobileKey boolean
When set to true, the flags in this project are available to SDKs using a mobile key by default.
using_environment_id bool
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
using_mobile_key bool
When set to true, the flags in this project are available to SDKs using a mobile key by default.
usingEnvironmentId Boolean
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
usingMobileKey Boolean
When set to true, the flags in this project are available to SDKs using a mobile key by default.

GetProjectDefaultClientSideAvailability

UsingEnvironmentId This property is required. bool
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
UsingMobileKey This property is required. bool
When set to true, the flags in this project are available to SDKs using a mobile key by default.
UsingEnvironmentId This property is required. bool
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
UsingMobileKey This property is required. bool
When set to true, the flags in this project are available to SDKs using a mobile key by default.
usingEnvironmentId This property is required. Boolean
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
usingMobileKey This property is required. Boolean
When set to true, the flags in this project are available to SDKs using a mobile key by default.
usingEnvironmentId This property is required. boolean
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
usingMobileKey This property is required. boolean
When set to true, the flags in this project are available to SDKs using a mobile key by default.
using_environment_id This property is required. bool
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
using_mobile_key This property is required. bool
When set to true, the flags in this project are available to SDKs using a mobile key by default.
usingEnvironmentId This property is required. Boolean
When set to true, the flags in this project are available to SDKs using the client-side ID by default.
usingMobileKey This property is required. Boolean
When set to true, the flags in this project are available to SDKs using a mobile key by default.

Package Details

Repository
launchdarkly lbrlabs/pulumi-launchdarkly
License
Notes
This Pulumi package is based on the launchdarkly Terraform Provider.
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs