launchdarkly.Webhook
Explore with Pulumi AI
Provides a LaunchDarkly webhook resource.
This resource allows you to create and manage webhooks within your LaunchDarkly organization.
Create Webhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhook(name: string, args: WebhookArgs, opts?: CustomResourceOptions);
@overload
def Webhook(resource_name: str,
args: WebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Webhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
url: Optional[str] = None,
name: Optional[str] = None,
on: Optional[bool] = None,
secret: Optional[str] = None,
statements: Optional[Sequence[WebhookStatementArgs]] = None,
tags: Optional[Sequence[str]] = None)
func NewWebhook(ctx *Context, name string, args WebhookArgs, opts ...ResourceOption) (*Webhook, error)
public Webhook(string name, WebhookArgs args, CustomResourceOptions? opts = null)
public Webhook(String name, WebhookArgs args)
public Webhook(String name, WebhookArgs args, CustomResourceOptions options)
type: launchdarkly:Webhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebhookArgs
- 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 WebhookArgs
- 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 WebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhookArgs
- 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 webhookResource = new Launchdarkly.Webhook("webhookResource", new()
{
Url = "string",
Name = "string",
On = false,
Secret = "string",
Statements = new[]
{
new Launchdarkly.Inputs.WebhookStatementArgs
{
Effect = "string",
Actions = new[]
{
"string",
},
NotActions = new[]
{
"string",
},
NotResources = new[]
{
"string",
},
Resources = new[]
{
"string",
},
},
},
Tags = new[]
{
"string",
},
});
example, err := launchdarkly.NewWebhook(ctx, "webhookResource", &launchdarkly.WebhookArgs{
Url: pulumi.String("string"),
Name: pulumi.String("string"),
On: pulumi.Bool(false),
Secret: pulumi.String("string"),
Statements: launchdarkly.WebhookStatementArray{
&launchdarkly.WebhookStatementArgs{
Effect: pulumi.String("string"),
Actions: pulumi.StringArray{
pulumi.String("string"),
},
NotActions: pulumi.StringArray{
pulumi.String("string"),
},
NotResources: pulumi.StringArray{
pulumi.String("string"),
},
Resources: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var webhookResource = new Webhook("webhookResource", WebhookArgs.builder()
.url("string")
.name("string")
.on(false)
.secret("string")
.statements(WebhookStatementArgs.builder()
.effect("string")
.actions("string")
.notActions("string")
.notResources("string")
.resources("string")
.build())
.tags("string")
.build());
webhook_resource = launchdarkly.Webhook("webhookResource",
url="string",
name="string",
on=False,
secret="string",
statements=[{
"effect": "string",
"actions": ["string"],
"not_actions": ["string"],
"not_resources": ["string"],
"resources": ["string"],
}],
tags=["string"])
const webhookResource = new launchdarkly.Webhook("webhookResource", {
url: "string",
name: "string",
on: false,
secret: "string",
statements: [{
effect: "string",
actions: ["string"],
notActions: ["string"],
notResources: ["string"],
resources: ["string"],
}],
tags: ["string"],
});
type: launchdarkly:Webhook
properties:
name: string
"on": false
secret: string
statements:
- actions:
- string
effect: string
notActions:
- string
notResources:
- string
resources:
- string
tags:
- string
url: string
Webhook 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 Webhook resource accepts the following input properties:
- Url string
- The URL of the remote webhook.
- Name string
- The webhook's human-readable name.
- On bool
- Specifies whether the webhook is enabled.
- Secret string
- The secret used to sign the webhook.
- Statements
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Webhook Statement> - List<string>
- Set of tags associated with the webhook.
- Url string
- The URL of the remote webhook.
- Name string
- The webhook's human-readable name.
- On bool
- Specifies whether the webhook is enabled.
- Secret string
- The secret used to sign the webhook.
- Statements
[]Webhook
Statement Args - []string
- Set of tags associated with the webhook.
- url String
- The URL of the remote webhook.
- name String
- The webhook's human-readable name.
- on Boolean
- Specifies whether the webhook is enabled.
- secret String
- The secret used to sign the webhook.
- statements
List<Webhook
Statement> - List<String>
- Set of tags associated with the webhook.
- url string
- The URL of the remote webhook.
- name string
- The webhook's human-readable name.
- on boolean
- Specifies whether the webhook is enabled.
- secret string
- The secret used to sign the webhook.
- statements
Webhook
Statement[] - string[]
- Set of tags associated with the webhook.
- url str
- The URL of the remote webhook.
- name str
- The webhook's human-readable name.
- on bool
- Specifies whether the webhook is enabled.
- secret str
- The secret used to sign the webhook.
- statements
Sequence[Webhook
Statement Args] - Sequence[str]
- Set of tags associated with the webhook.
- url String
- The URL of the remote webhook.
- name String
- The webhook's human-readable name.
- on Boolean
- Specifies whether the webhook is enabled.
- secret String
- The secret used to sign the webhook.
- statements List<Property Map>
- List<String>
- Set of tags associated with the webhook.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhook 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 Existing Webhook Resource
Get an existing Webhook 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?: WebhookState, opts?: CustomResourceOptions): Webhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
on: Optional[bool] = None,
secret: Optional[str] = None,
statements: Optional[Sequence[WebhookStatementArgs]] = None,
tags: Optional[Sequence[str]] = None,
url: Optional[str] = None) -> Webhook
func GetWebhook(ctx *Context, name string, id IDInput, state *WebhookState, opts ...ResourceOption) (*Webhook, error)
public static Webhook Get(string name, Input<string> id, WebhookState? state, CustomResourceOptions? opts = null)
public static Webhook get(String name, Output<String> id, WebhookState 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.
- Name string
- The webhook's human-readable name.
- On bool
- Specifies whether the webhook is enabled.
- Secret string
- The secret used to sign the webhook.
- Statements
List<Lbrlabs.
Pulumi Package. Launchdarkly. Inputs. Webhook Statement> - List<string>
- Set of tags associated with the webhook.
- Url string
- The URL of the remote webhook.
- Name string
- The webhook's human-readable name.
- On bool
- Specifies whether the webhook is enabled.
- Secret string
- The secret used to sign the webhook.
- Statements
[]Webhook
Statement Args - []string
- Set of tags associated with the webhook.
- Url string
- The URL of the remote webhook.
- name String
- The webhook's human-readable name.
- on Boolean
- Specifies whether the webhook is enabled.
- secret String
- The secret used to sign the webhook.
- statements
List<Webhook
Statement> - List<String>
- Set of tags associated with the webhook.
- url String
- The URL of the remote webhook.
- name string
- The webhook's human-readable name.
- on boolean
- Specifies whether the webhook is enabled.
- secret string
- The secret used to sign the webhook.
- statements
Webhook
Statement[] - string[]
- Set of tags associated with the webhook.
- url string
- The URL of the remote webhook.
- name str
- The webhook's human-readable name.
- on bool
- Specifies whether the webhook is enabled.
- secret str
- The secret used to sign the webhook.
- statements
Sequence[Webhook
Statement Args] - Sequence[str]
- Set of tags associated with the webhook.
- url str
- The URL of the remote webhook.
- name String
- The webhook's human-readable name.
- on Boolean
- Specifies whether the webhook is enabled.
- secret String
- The secret used to sign the webhook.
- statements List<Property Map>
- List<String>
- Set of tags associated with the webhook.
- url String
- The URL of the remote webhook.
Supporting Types
WebhookStatement, WebhookStatementArgs
- Effect string
- Either
allow
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions. - Actions List<string>
- The list of action specifiers defining the actions to which the statement applies. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - Not
Actions List<string> - The list of action specifiers defining the actions to which the statement does not apply. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - Not
Resources List<string> - The list of resource specifiers defining the resources to which the statement does not apply. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes. - Resources List<string>
- The list of resource specifiers defining the resources to which the statement applies. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes.
- Effect string
- Either
allow
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions. - Actions []string
- The list of action specifiers defining the actions to which the statement applies. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - Not
Actions []string - The list of action specifiers defining the actions to which the statement does not apply. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - Not
Resources []string - The list of resource specifiers defining the resources to which the statement does not apply. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes. - Resources []string
- The list of resource specifiers defining the resources to which the statement applies. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes.
- effect String
- Either
allow
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions. - actions List<String>
- The list of action specifiers defining the actions to which the statement applies. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not
Actions List<String> - The list of action specifiers defining the actions to which the statement does not apply. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not
Resources List<String> - The list of resource specifiers defining the resources to which the statement does not apply. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes. - resources List<String>
- The list of resource specifiers defining the resources to which the statement applies. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes.
- effect string
- Either
allow
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions. - actions string[]
- The list of action specifiers defining the actions to which the statement applies. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not
Actions string[] - The list of action specifiers defining the actions to which the statement does not apply. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not
Resources string[] - The list of resource specifiers defining the resources to which the statement does not apply. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes. - resources string[]
- The list of resource specifiers defining the resources to which the statement applies. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes.
- effect str
- Either
allow
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions. - actions Sequence[str]
- The list of action specifiers defining the actions to which the statement applies. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not_
actions Sequence[str] - The list of action specifiers defining the actions to which the statement does not apply. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not_
resources Sequence[str] - The list of resource specifiers defining the resources to which the statement does not apply. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes. - resources Sequence[str]
- The list of resource specifiers defining the resources to which the statement applies. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes.
- effect String
- Either
allow
ordeny
. This argument defines whether the statement allows or denies access to the named resources and actions. - actions List<String>
- The list of action specifiers defining the actions to which the statement applies. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not
Actions List<String> - The list of action specifiers defining the actions to which the statement does not apply. Either
actions
ornot_actions
must be specified. For a list of available actions read Actions reference. - not
Resources List<String> - The list of resource specifiers defining the resources to which the statement does not apply. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes. - resources List<String>
- The list of resource specifiers defining the resources to which the statement applies. Either
resources
ornot_resources
must be specified. For a list of available resources read Understanding resource types and scopes.
Import
LaunchDarkly webhooks can be imported using the webhook’s 24 character ID, e.g.
$ pulumi import launchdarkly:index/webhook:Webhook example 57c0af609969090743529967
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- launchdarkly lbrlabs/pulumi-launchdarkly
- License
- Notes
- This Pulumi package is based on the
launchdarkly
Terraform Provider.