Launch Darkly

v0.0.3 published on Sunday, Sep 18, 2022 by lbrlabs

Destination

Provides a LaunchDarkly Data Export Destination resource.

Data Export Destinations are locations that receive exported data. This resource allows you to configure destinations for the export of raw analytics data, including feature flag requests, analytics events, custom events, and more.

To learn more about data export, read Data Export Documentation.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var example = new Launchdarkly.Destination("example", new()
    {
        ProjectKey = "example-project",
        EnvKey = "example-env",
        Kind = "kinesis",
        Config = 
        {
            { "region", "us-east-1" },
            { "role_arn", "arn:aws:iam::123456789012:role/marketingadmin" },
            { "stream_name", "cat-stream" },
        },
        On = true,
        Tags = new[]
        {
            "terraform",
        },
    });

});
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.NewDestination(ctx, "example", &launchdarkly.DestinationArgs{
			ProjectKey: pulumi.String("example-project"),
			EnvKey:     pulumi.String("example-env"),
			Kind:       pulumi.String("kinesis"),
			Config: pulumi.StringMap{
				"region":      pulumi.String("us-east-1"),
				"role_arn":    pulumi.String("arn:aws:iam::123456789012:role/marketingadmin"),
				"stream_name": pulumi.String("cat-stream"),
			},
			On: pulumi.Bool(true),
			Tags: pulumi.StringArray{
				pulumi.String("terraform"),
			},
		})
		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.Destination;
import com.pulumi.launchdarkly.DestinationArgs;
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) {
        var example = new Destination("example", DestinationArgs.builder()        
            .projectKey("example-project")
            .envKey("example-env")
            .kind("kinesis")
            .config(Map.ofEntries(
                Map.entry("region", "us-east-1"),
                Map.entry("role_arn", "arn:aws:iam::123456789012:role/marketingadmin"),
                Map.entry("stream_name", "cat-stream")
            ))
            .on(true)
            .tags("terraform")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_launchdarkly as launchdarkly

example = launchdarkly.Destination("example",
    project_key="example-project",
    env_key="example-env",
    kind="kinesis",
    config={
        "region": "us-east-1",
        "role_arn": "arn:aws:iam::123456789012:role/marketingadmin",
        "stream_name": "cat-stream",
    },
    on=True,
    tags=["terraform"])
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";

const example = new launchdarkly.Destination("example", {
    projectKey: "example-project",
    envKey: "example-env",
    kind: "kinesis",
    config: {
        region: "us-east-1",
        role_arn: "arn:aws:iam::123456789012:role/marketingadmin",
        stream_name: "cat-stream",
    },
    on: true,
    tags: ["terraform"],
});
resources:
  example:
    type: launchdarkly:Destination
    properties:
      projectKey: example-project
      envKey: example-env
      kind: kinesis
      config:
        region: us-east-1
        role_arn: arn:aws:iam::123456789012:role/marketingadmin
        stream_name: cat-stream
      on: true
      tags:
        - terraform

Create a Destination Resource

new Destination(name: string, args: DestinationArgs, opts?: CustomResourceOptions);
@overload
def Destination(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                config: Optional[Mapping[str, str]] = None,
                env_key: Optional[str] = None,
                kind: Optional[str] = None,
                name: Optional[str] = None,
                on: Optional[bool] = None,
                project_key: Optional[str] = None,
                tags: Optional[Sequence[str]] = None)
@overload
def Destination(resource_name: str,
                args: DestinationArgs,
                opts: Optional[ResourceOptions] = None)
func NewDestination(ctx *Context, name string, args DestinationArgs, opts ...ResourceOption) (*Destination, error)
public Destination(string name, DestinationArgs args, CustomResourceOptions? opts = null)
public Destination(String name, DestinationArgs args)
public Destination(String name, DestinationArgs args, CustomResourceOptions options)
type: launchdarkly:Destination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DestinationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DestinationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DestinationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Destination Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Destination resource accepts the following input properties:

Config Dictionary<string, string>
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
EnvKey string
  • The environment key.
Kind string
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
ProjectKey string
  • The LaunchDarkly project key.
Name string
On bool
  • Whether the data export destination is on or not.
Tags List<string>

Tags associated with your resource

Config map[string]string
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
EnvKey string
  • The environment key.
Kind string
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
ProjectKey string
  • The LaunchDarkly project key.
Name string
On bool
  • Whether the data export destination is on or not.
Tags []string

Tags associated with your resource

config Map<String,String>
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
envKey String
  • The environment key.
kind String
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
projectKey String
  • The LaunchDarkly project key.
name String
on Boolean
  • Whether the data export destination is on or not.
tags List<String>

Tags associated with your resource

config {[key: string]: string}
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
envKey string
  • The environment key.
kind string
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
projectKey string
  • The LaunchDarkly project key.
name string
on boolean
  • Whether the data export destination is on or not.
tags string[]

Tags associated with your resource

config Mapping[str, str]
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
env_key str
  • The environment key.
kind str
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
project_key str
  • The LaunchDarkly project key.
name str
on bool
  • Whether the data export destination is on or not.
tags Sequence[str]

Tags associated with your resource

config Map<String>
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
envKey String
  • The environment key.
kind String
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
projectKey String
  • The LaunchDarkly project key.
name String
on Boolean
  • Whether the data export destination is on or not.
tags List<String>

Tags associated with your resource

Outputs

All input properties are implicitly available as output properties. Additionally, the Destination resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing Destination Resource

Get an existing Destination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DestinationState, opts?: CustomResourceOptions): Destination
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[Mapping[str, str]] = None,
        env_key: Optional[str] = None,
        kind: Optional[str] = None,
        name: Optional[str] = None,
        on: Optional[bool] = None,
        project_key: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> Destination
func GetDestination(ctx *Context, name string, id IDInput, state *DestinationState, opts ...ResourceOption) (*Destination, error)
public static Destination Get(string name, Input<string> id, DestinationState? state, CustomResourceOptions? opts = null)
public static Destination get(String name, Output<String> id, DestinationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Config Dictionary<string, string>
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
EnvKey string
  • The environment key.
Kind string
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
Name string
On bool
  • Whether the data export destination is on or not.
ProjectKey string
  • The LaunchDarkly project key.
Tags List<string>

Tags associated with your resource

Config map[string]string
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
EnvKey string
  • The environment key.
Kind string
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
Name string
On bool
  • Whether the data export destination is on or not.
ProjectKey string
  • The LaunchDarkly project key.
Tags []string

Tags associated with your resource

config Map<String,String>
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
envKey String
  • The environment key.
kind String
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
name String
on Boolean
  • Whether the data export destination is on or not.
projectKey String
  • The LaunchDarkly project key.
tags List<String>

Tags associated with your resource

config {[key: string]: string}
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
envKey string
  • The environment key.
kind string
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
name string
on boolean
  • Whether the data export destination is on or not.
projectKey string
  • The LaunchDarkly project key.
tags string[]

Tags associated with your resource

config Mapping[str, str]
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
env_key str
  • The environment key.
kind str
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
name str
on bool
  • Whether the data export destination is on or not.
project_key str
  • The LaunchDarkly project key.
tags Sequence[str]

Tags associated with your resource

config Map<String>
  • The destination-specific configuration. To learn more, read Destination-Specific Configs.
envKey String
  • The environment key.
kind String
  • The data export destination type. Available choices are kinesis, google-pubsub, mparticle, azure-event-hubs, and segment.
name String
on Boolean
  • Whether the data export destination is on or not.
projectKey String
  • The LaunchDarkly project key.
tags List<String>

Tags associated with your resource

Import

You can import a data export destination using the destination’s full ID in the format project_key/environment_key/id. For example

 $ pulumi import launchdarkly:index/destination:Destination example example-project/example-env/57c0af609969090743529967

Package Details

Repository
https://github.com/lbrlabs/pulumi-launchdarkly
License
Notes

This Pulumi package is based on the launchdarkly Terraform Provider.