launchdarkly.getProject
Explore with Pulumi AI
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",
});
});
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
})
}
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());
}
}
import pulumi
import pulumi_launchdarkly as launchdarkly
example = launchdarkly.get_project(key="example-project")
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@pulumi/launchdarkly";
const example = launchdarkly.getProject({
key: "example-project",
});
variables:
example:
fn::invoke:
Function: launchdarkly:getProject
Arguments:
key: example-project
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(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]
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: launchdarkly:index/getProject:getProject
arguments:
# arguments dictionary
The following arguments are supported:
- Key string
- The project's unique key.
- List<string>
- The project's set of tags.
- Key string
- The project's unique key.
- []string
- The project's set of tags.
- key String
- The project's unique key.
- List<String>
- The project's set of tags.
- key string
- The project's unique key.
- string[]
- The project's set of tags.
- key str
- The project's unique key.
- Sequence[str]
- The project's set of tags.
- key String
- The project's unique key.
- List<String>
- The project's set of tags.
getProject Result
The following output properties are available:
- Client
Side List<Lbrlabs.Availabilities Pulumi Package. Launchdarkly. Outputs. Get Project Client Side Availability> - 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. - Default
Client List<Lbrlabs.Side Availabilities Pulumi Package. Launchdarkly. Outputs. Get Project Default Client Side Availability> - 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.
- List<string>
- The project's set of tags.
- Client
Side []GetAvailabilities Project Client Side Availability - 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. - Default
Client []GetSide Availabilities Project Default Client Side Availability - 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.
- []string
- The project's set of tags.
- client
Side List<GetAvailabilities Project Client Side Availability> - 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. - default
Client List<GetSide Availabilities Project Default Client Side Availability> - 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.
- List<String>
- The project's set of tags.
- client
Side GetAvailabilities Project Client Side Availability[] - 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. - default
Client GetSide Availabilities Project Default Client Side Availability[] - 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.
- string[]
- The project's set of tags.
- client_
side_ Sequence[Getavailabilities Project Client Side Availability] - 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. - default_
client_ Sequence[Getside_ availabilities Project Default Client Side Availability] - 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.
- Sequence[str]
- The project's set of tags.
- client
Side List<Property Map>Availabilities - 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. - default
Client List<Property Map>Side Availabilities - 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.
- List<String>
- The project's set of tags.
Supporting Types
GetProjectClientSideAvailability
- Using
Environment boolId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- Using
Mobile boolKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- Using
Environment boolId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- Using
Mobile boolKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using
Environment BooleanId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using
Mobile BooleanKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using
Environment booleanId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using
Mobile booleanKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using_
environment_ boolid - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using_
mobile_ boolkey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using
Environment BooleanId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using
Mobile BooleanKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
GetProjectDefaultClientSideAvailability
- Using
Environment boolId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- Using
Mobile boolKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- Using
Environment boolId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- Using
Mobile boolKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using
Environment BooleanId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using
Mobile BooleanKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using
Environment booleanId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using
Mobile booleanKey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using_
environment_ boolid - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using_
mobile_ boolkey - When set to true, the flags in this project are available to SDKs using a mobile key by default.
- using
Environment BooleanId - When set to true, the flags in this project are available to SDKs using the client-side ID by default.
- using
Mobile BooleanKey - 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.