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

launchdarkly.FlagTrigger

Explore with Pulumi AI

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
Copy

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

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FlagTrigger(name: string, args: FlagTriggerArgs, opts?: CustomResourceOptions);
@overload
def FlagTrigger(resource_name: str,
                args: FlagTriggerArgs,
                opts: Optional[ResourceOptions] = None)

@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)
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.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var flagTriggerResource = new Launchdarkly.FlagTrigger("flagTriggerResource", new()
{
    Enabled = false,
    EnvKey = "string",
    FlagKey = "string",
    Instructions = new Launchdarkly.Inputs.FlagTriggerInstructionsArgs
    {
        Kind = "string",
    },
    IntegrationKey = "string",
    ProjectKey = "string",
});
Copy
example, err := launchdarkly.NewFlagTrigger(ctx, "flagTriggerResource", &launchdarkly.FlagTriggerArgs{
	Enabled: pulumi.Bool(false),
	EnvKey:  pulumi.String("string"),
	FlagKey: pulumi.String("string"),
	Instructions: &launchdarkly.FlagTriggerInstructionsArgs{
		Kind: pulumi.String("string"),
	},
	IntegrationKey: pulumi.String("string"),
	ProjectKey:     pulumi.String("string"),
})
Copy
var flagTriggerResource = new FlagTrigger("flagTriggerResource", FlagTriggerArgs.builder()
    .enabled(false)
    .envKey("string")
    .flagKey("string")
    .instructions(FlagTriggerInstructionsArgs.builder()
        .kind("string")
        .build())
    .integrationKey("string")
    .projectKey("string")
    .build());
Copy
flag_trigger_resource = launchdarkly.FlagTrigger("flagTriggerResource",
    enabled=False,
    env_key="string",
    flag_key="string",
    instructions={
        "kind": "string",
    },
    integration_key="string",
    project_key="string")
Copy
const flagTriggerResource = new launchdarkly.FlagTrigger("flagTriggerResource", {
    enabled: false,
    envKey: "string",
    flagKey: "string",
    instructions: {
        kind: "string",
    },
    integrationKey: "string",
    projectKey: "string",
});
Copy
type: launchdarkly:FlagTrigger
properties:
    enabled: false
    envKey: string
    flagKey: string
    instructions:
        kind: string
    integrationKey: string
    projectKey: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The FlagTrigger resource accepts the following input properties:

Enabled This property is required. bool
Whether the trigger is currently active or not. This property defaults to true upon creation
EnvKey
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. Lbrlabs.PulumiPackage.Launchdarkly.Inputs.FlagTriggerInstructions
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. bool
Whether the trigger is currently active or not. This property defaults to true upon creation
EnvKey
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. Boolean
Whether the trigger is currently active or not. This property defaults to true upon creation
envKey
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. FlagTriggerInstructions
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. boolean
Whether the trigger is currently active or not. This property defaults to true upon creation
envKey
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. FlagTriggerInstructions
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. bool
Whether the trigger is currently active or not. This property defaults to true upon creation
env_key
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. Boolean
Whether the trigger is currently active or not. This property defaults to true upon creation
envKey
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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 This property is required. 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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: launchdarkly:FlagTrigger    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.FlagTriggerInstructions
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 FlagTriggerInstructions
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 FlagTriggerInstructions
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
, FlagTriggerInstructionsArgs

Kind This property is required. string
Kind This property is required. string
kind This property is required. String
kind This property is required. string
kind This property is required. str
kind This property is required. String

Package Details

Repository
launchdarkly lbrlabs/pulumi-launchdarkly
License
Notes
This Pulumi package is based on the launchdarkly Terraform Provider.