Launch Darkly

v0.0.4 published on Tuesday, Oct 4, 2022 by lbrlabs

FlagTrigger

Import

LaunchDarkly flag triggers can be imported using the following syntax

 $ pulumi import launchdarkly:index/flagTrigger:FlagTrigger example example-project-key/example-env-key/example-flag-key/62581d4488def814b831abc3

where the string following the final slash is your unique trigger ID. The unique trigger ID can be found in your saved trigger URLhttps://app.launchdarkly.com/webhook/triggers/THIS_IS_YOUR_TRIGGER_ID/aff25a53-17d9-4112-a9b8-12718d1a2e79 Please note that if you did not save this upon creation of the resource, you will have to reset it to get a new value, which can cause breaking changes.

Create FlagTrigger Resource

new FlagTrigger(name: string, args: FlagTriggerArgs, opts?: CustomResourceOptions);
@overload
def FlagTrigger(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                enabled: Optional[bool] = None,
                env_key: Optional[str] = None,
                flag_key: Optional[str] = None,
                instructions: Optional[FlagTriggerInstructionsArgs] = None,
                integration_key: Optional[str] = None,
                project_key: Optional[str] = None)
@overload
def FlagTrigger(resource_name: str,
                args: FlagTriggerArgs,
                opts: Optional[ResourceOptions] = None)
func NewFlagTrigger(ctx *Context, name string, args FlagTriggerArgs, opts ...ResourceOption) (*FlagTrigger, error)
public FlagTrigger(string name, FlagTriggerArgs args, CustomResourceOptions? opts = null)
public FlagTrigger(String name, FlagTriggerArgs args)
public FlagTrigger(String name, FlagTriggerArgs args, CustomResourceOptions options)
type: launchdarkly:FlagTrigger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FlagTriggerArgs
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 FlagTriggerArgs
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 FlagTriggerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FlagTriggerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FlagTriggerArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FlagTrigger 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 FlagTrigger resource accepts the following input properties:

Enabled bool

Whether the trigger is currently active or not. This property defaults to true upon creation

EnvKey string

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

FlagKey string

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

Instructions Lbrlabs.PulumiPackage.Launchdarkly.Inputs.FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

IntegrationKey string

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

ProjectKey string

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

Enabled bool

Whether the trigger is currently active or not. This property defaults to true upon creation

EnvKey string

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

FlagKey string

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

Instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

IntegrationKey string

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

ProjectKey string

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

enabled Boolean

Whether the trigger is currently active or not. This property defaults to true upon creation

envKey String

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flagKey String

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integrationKey String

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

projectKey String

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

enabled boolean

Whether the trigger is currently active or not. This property defaults to true upon creation

envKey string

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flagKey string

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integrationKey string

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

projectKey string

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

enabled bool

Whether the trigger is currently active or not. This property defaults to true upon creation

env_key str

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flag_key str

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integration_key str

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

project_key str

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

enabled Boolean

Whether the trigger is currently active or not. This property defaults to true upon creation

envKey String

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flagKey String

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions Property Map

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integrationKey String

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

projectKey String

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

MaintainerId string

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

TriggerUrl string

The unique trigger URL

Id string

The provider-assigned unique ID for this managed resource.

MaintainerId string

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

TriggerUrl string

The unique trigger URL

id String

The provider-assigned unique ID for this managed resource.

maintainerId String

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

triggerUrl String

The unique trigger URL

id string

The provider-assigned unique ID for this managed resource.

maintainerId string

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

triggerUrl string

The unique trigger URL

id str

The provider-assigned unique ID for this managed resource.

maintainer_id str

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

trigger_url str

The unique trigger URL

id String

The provider-assigned unique ID for this managed resource.

maintainerId String

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

triggerUrl String

The unique trigger URL

Look up Existing FlagTrigger Resource

Get an existing FlagTrigger 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?: FlagTriggerState, opts?: CustomResourceOptions): FlagTrigger
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None,
        env_key: Optional[str] = None,
        flag_key: Optional[str] = None,
        instructions: Optional[FlagTriggerInstructionsArgs] = None,
        integration_key: Optional[str] = None,
        maintainer_id: Optional[str] = None,
        project_key: Optional[str] = None,
        trigger_url: Optional[str] = None) -> FlagTrigger
func GetFlagTrigger(ctx *Context, name string, id IDInput, state *FlagTriggerState, opts ...ResourceOption) (*FlagTrigger, error)
public static FlagTrigger Get(string name, Input<string> id, FlagTriggerState? state, CustomResourceOptions? opts = null)
public static FlagTrigger get(String name, Output<String> id, FlagTriggerState 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:
Enabled bool

Whether the trigger is currently active or not. This property defaults to true upon creation

EnvKey string

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

FlagKey string

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

Instructions Lbrlabs.PulumiPackage.Launchdarkly.Inputs.FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

IntegrationKey string

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

MaintainerId string

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

ProjectKey string

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

TriggerUrl string

The unique trigger URL

Enabled bool

Whether the trigger is currently active or not. This property defaults to true upon creation

EnvKey string

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

FlagKey string

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

Instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

IntegrationKey string

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

MaintainerId string

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

ProjectKey string

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

TriggerUrl string

The unique trigger URL

enabled Boolean

Whether the trigger is currently active or not. This property defaults to true upon creation

envKey String

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flagKey String

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integrationKey String

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

maintainerId String

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

projectKey String

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

triggerUrl String

The unique trigger URL

enabled boolean

Whether the trigger is currently active or not. This property defaults to true upon creation

envKey string

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flagKey string

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integrationKey string

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

maintainerId string

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

projectKey string

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

triggerUrl string

The unique trigger URL

enabled bool

Whether the trigger is currently active or not. This property defaults to true upon creation

env_key str

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flag_key str

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions FlagTriggerInstructionsArgs

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integration_key str

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

maintainer_id str

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

project_key str

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

trigger_url str

The unique trigger URL

enabled Boolean

Whether the trigger is currently active or not. This property defaults to true upon creation

envKey String

The unique key of the environment the flag trigger will work in. A change in this field will force the destruction of the existing resource and the creation of a new one.

flagKey String

The unique key of the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

instructions Property Map

Instructions containing the action to perform when invoking the trigger. Currently supported flag actions are "turnFlagOn" and "turnFlagOff". This must be passed as the key-value pair { kind = "<flag_action>" }.

integrationKey String

The unique identifier of the integration you intend to set your trigger up with. Currently supported are "datadog", "dynatrace", "honeycomb", "new-relic-apm", "signalfx", and "generic-trigger". "generic-trigger" should be used for integrations not explicitly supported. A change in this field will force the destruction of the existing resource and the creation of a new one.

maintainerId String

The LaunchDarkly ID of the member who maintains the trigger. The API will automatically apply the member associated with your Terraform API key or the most recently-set maintainer

projectKey String

The unique key of the project encompassing the associated flag. A change in this field will force the destruction of the existing resource and the creation of a new one.

triggerUrl String

The unique trigger URL

Supporting Types

FlagTriggerInstructions

Kind string
Kind string
kind String
kind string
kind str
kind String

Package Details

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

This Pulumi package is based on the launchdarkly Terraform Provider.