launchdarkly logo
Launch Darkly v0.0.6, Feb 19 23

launchdarkly.getAuditLogSubscription

Explore with Pulumi AI

Provides a LaunchDarkly audit log subscription data source.

This data source allows you to retrieve information about LaunchDarkly audit log subscriptions.

import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@pulumi/launchdarkly";

const test = launchdarkly.getAuditLogSubscription({
    id: "5f0cd446a77cba0b4c5644a7",
    integrationKey: "msteams",
});
import pulumi
import pulumi_launchdarkly as launchdarkly

test = launchdarkly.get_audit_log_subscription(id="5f0cd446a77cba0b4c5644a7",
    integration_key="msteams")
using System.Collections.Generic;
using Pulumi;
using Launchdarkly = Pulumi.Launchdarkly;

return await Deployment.RunAsync(() => 
{
    var test = Launchdarkly.GetAuditLogSubscription.Invoke(new()
    {
        Id = "5f0cd446a77cba0b4c5644a7",
        IntegrationKey = "msteams",
    });

});
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.LookupAuditLogSubscription(ctx, &launchdarkly.LookupAuditLogSubscriptionArgs{
			Id:             "5f0cd446a77cba0b4c5644a7",
			IntegrationKey: "msteams",
		}, 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.GetAuditLogSubscriptionArgs;
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 test = LaunchdarklyFunctions.getAuditLogSubscription(GetAuditLogSubscriptionArgs.builder()
            .id("5f0cd446a77cba0b4c5644a7")
            .integrationKey("msteams")
            .build());

    }
}
variables:
  test:
    fn::invoke:
      Function: launchdarkly:getAuditLogSubscription
      Arguments:
        id: 5f0cd446a77cba0b4c5644a7
        integrationKey: msteams

Using getAuditLogSubscription

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 getAuditLogSubscription(args: GetAuditLogSubscriptionArgs, opts?: InvokeOptions): Promise<GetAuditLogSubscriptionResult>
function getAuditLogSubscriptionOutput(args: GetAuditLogSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetAuditLogSubscriptionResult>
def get_audit_log_subscription(config: Optional[Mapping[str, Any]] = None,
                               id: Optional[str] = None,
                               integration_key: Optional[str] = None,
                               name: Optional[str] = None,
                               on: Optional[bool] = None,
                               statements: Optional[Sequence[GetAuditLogSubscriptionStatement]] = None,
                               tags: Optional[Sequence[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAuditLogSubscriptionResult
def get_audit_log_subscription_output(config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               integration_key: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               on: Optional[pulumi.Input[bool]] = None,
                               statements: Optional[pulumi.Input[Sequence[pulumi.Input[GetAuditLogSubscriptionStatementArgs]]]] = None,
                               tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAuditLogSubscriptionResult]
func LookupAuditLogSubscription(ctx *Context, args *LookupAuditLogSubscriptionArgs, opts ...InvokeOption) (*LookupAuditLogSubscriptionResult, error)
func LookupAuditLogSubscriptionOutput(ctx *Context, args *LookupAuditLogSubscriptionOutputArgs, opts ...InvokeOption) LookupAuditLogSubscriptionResultOutput

> Note: This function is named LookupAuditLogSubscription in the Go SDK.

public static class GetAuditLogSubscription 
{
    public static Task<GetAuditLogSubscriptionResult> InvokeAsync(GetAuditLogSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetAuditLogSubscriptionResult> Invoke(GetAuditLogSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuditLogSubscriptionResult> getAuditLogSubscription(GetAuditLogSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: launchdarkly:index/getAuditLogSubscription:getAuditLogSubscription
  arguments:
    # arguments dictionary

The following arguments are supported:

Id string

The unique subscription ID. This can be found in the URL of the pull-out configuration sidebar for the given subscription on your LaunchDarkly Integrations page.

IntegrationKey string

The integration key. As of February 2022, supported integrations are "datadog", "dynatrace", "elastic", "honeycomb", "logdna", "msteams", "new-relic-apm", "signalfx", "slack", and "splunk".

Config Dictionary<string, object>

A block of configuration fields associated with your integration type.

Name string

The subscription's human-readable name.

On bool

Whether the subscription is enabled.

Statements List<Lbrlabs.PulumiPackage.Launchdarkly.Inputs.GetAuditLogSubscriptionStatement>

The statement block used to filter subscription events. To learn more, read Statement Blocks.

Tags List<string>

Set of tags associated with the subscription.

Id string

The unique subscription ID. This can be found in the URL of the pull-out configuration sidebar for the given subscription on your LaunchDarkly Integrations page.

IntegrationKey string

The integration key. As of February 2022, supported integrations are "datadog", "dynatrace", "elastic", "honeycomb", "logdna", "msteams", "new-relic-apm", "signalfx", "slack", and "splunk".

Config map[string]interface{}

A block of configuration fields associated with your integration type.

Name string

The subscription's human-readable name.

On bool

Whether the subscription is enabled.

Statements []GetAuditLogSubscriptionStatement

The statement block used to filter subscription events. To learn more, read Statement Blocks.

Tags []string

Set of tags associated with the subscription.

id String

The unique subscription ID. This can be found in the URL of the pull-out configuration sidebar for the given subscription on your LaunchDarkly Integrations page.

integrationKey String

The integration key. As of February 2022, supported integrations are "datadog", "dynatrace", "elastic", "honeycomb", "logdna", "msteams", "new-relic-apm", "signalfx", "slack", and "splunk".

config Map<String,Object>

A block of configuration fields associated with your integration type.

name String

The subscription's human-readable name.

on Boolean

Whether the subscription is enabled.

statements List<GetAuditLogSubscriptionStatement>

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags List<String>

Set of tags associated with the subscription.

id string

The unique subscription ID. This can be found in the URL of the pull-out configuration sidebar for the given subscription on your LaunchDarkly Integrations page.

integrationKey string

The integration key. As of February 2022, supported integrations are "datadog", "dynatrace", "elastic", "honeycomb", "logdna", "msteams", "new-relic-apm", "signalfx", "slack", and "splunk".

config {[key: string]: any}

A block of configuration fields associated with your integration type.

name string

The subscription's human-readable name.

on boolean

Whether the subscription is enabled.

statements GetAuditLogSubscriptionStatement[]

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags string[]

Set of tags associated with the subscription.

id str

The unique subscription ID. This can be found in the URL of the pull-out configuration sidebar for the given subscription on your LaunchDarkly Integrations page.

integration_key str

The integration key. As of February 2022, supported integrations are "datadog", "dynatrace", "elastic", "honeycomb", "logdna", "msteams", "new-relic-apm", "signalfx", "slack", and "splunk".

config Mapping[str, Any]

A block of configuration fields associated with your integration type.

name str

The subscription's human-readable name.

on bool

Whether the subscription is enabled.

statements Sequence[GetAuditLogSubscriptionStatement]

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags Sequence[str]

Set of tags associated with the subscription.

id String

The unique subscription ID. This can be found in the URL of the pull-out configuration sidebar for the given subscription on your LaunchDarkly Integrations page.

integrationKey String

The integration key. As of February 2022, supported integrations are "datadog", "dynatrace", "elastic", "honeycomb", "logdna", "msteams", "new-relic-apm", "signalfx", "slack", and "splunk".

config Map<Any>

A block of configuration fields associated with your integration type.

name String

The subscription's human-readable name.

on Boolean

Whether the subscription is enabled.

statements List<Property Map>

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags List<String>

Set of tags associated with the subscription.

getAuditLogSubscription Result

The following output properties are available:

Id string
IntegrationKey string
Config Dictionary<string, object>

A block of configuration fields associated with your integration type.

Name string

The subscription's human-readable name.

On bool

Whether the subscription is enabled.

Statements List<Lbrlabs.PulumiPackage.Launchdarkly.Outputs.GetAuditLogSubscriptionStatement>

The statement block used to filter subscription events. To learn more, read Statement Blocks.

Tags List<string>

Set of tags associated with the subscription.

Id string
IntegrationKey string
Config map[string]interface{}

A block of configuration fields associated with your integration type.

Name string

The subscription's human-readable name.

On bool

Whether the subscription is enabled.

Statements []GetAuditLogSubscriptionStatement

The statement block used to filter subscription events. To learn more, read Statement Blocks.

Tags []string

Set of tags associated with the subscription.

id String
integrationKey String
config Map<String,Object>

A block of configuration fields associated with your integration type.

name String

The subscription's human-readable name.

on Boolean

Whether the subscription is enabled.

statements List<GetAuditLogSubscriptionStatement>

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags List<String>

Set of tags associated with the subscription.

id string
integrationKey string
config {[key: string]: any}

A block of configuration fields associated with your integration type.

name string

The subscription's human-readable name.

on boolean

Whether the subscription is enabled.

statements GetAuditLogSubscriptionStatement[]

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags string[]

Set of tags associated with the subscription.

id str
integration_key str
config Mapping[str, Any]

A block of configuration fields associated with your integration type.

name str

The subscription's human-readable name.

on bool

Whether the subscription is enabled.

statements Sequence[GetAuditLogSubscriptionStatement]

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags Sequence[str]

Set of tags associated with the subscription.

id String
integrationKey String
config Map<Any>

A block of configuration fields associated with your integration type.

name String

The subscription's human-readable name.

on Boolean

Whether the subscription is enabled.

statements List<Property Map>

The statement block used to filter subscription events. To learn more, read Statement Blocks.

tags List<String>

Set of tags associated with the subscription.

Supporting Types

GetAuditLogSubscriptionStatement

Effect string

Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.

Actions List<string>
NotActions List<string>
NotResources List<string>

The list of resource specifiers defining the resources to which the statement does not apply. To learn more about how to configure these, read Using resources.

Resources List<string>

The list of resource specifiers defining the resources to which the statement applies. To learn more about how to configure these read Using resources.

Effect string

Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.

Actions []string
NotActions []string
NotResources []string

The list of resource specifiers defining the resources to which the statement does not apply. To learn more about how to configure these, read Using resources.

Resources []string

The list of resource specifiers defining the resources to which the statement applies. To learn more about how to configure these read Using resources.

effect String

Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.

actions List<String>
notActions List<String>
notResources List<String>

The list of resource specifiers defining the resources to which the statement does not apply. To learn more about how to configure these, read Using resources.

resources List<String>

The list of resource specifiers defining the resources to which the statement applies. To learn more about how to configure these read Using resources.

effect string

Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.

actions string[]
notActions string[]
notResources string[]

The list of resource specifiers defining the resources to which the statement does not apply. To learn more about how to configure these, read Using resources.

resources string[]

The list of resource specifiers defining the resources to which the statement applies. To learn more about how to configure these read Using resources.

effect str

Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.

actions Sequence[str]
not_actions Sequence[str]
not_resources Sequence[str]

The list of resource specifiers defining the resources to which the statement does not apply. To learn more about how to configure these, read Using resources.

resources Sequence[str]

The list of resource specifiers defining the resources to which the statement applies. To learn more about how to configure these read Using resources.

effect String

Either allow or deny. This argument defines whether the statement allows or denies access to the named resources and actions.

actions List<String>
notActions List<String>
notResources List<String>

The list of resource specifiers defining the resources to which the statement does not apply. To learn more about how to configure these, read Using resources.

resources List<String>

The list of resource specifiers defining the resources to which the statement applies. To learn more about how to configure these read Using resources.

Package Details

Repository
launchdarkly lbrlabs/pulumi-launchdarkly
License
Notes

This Pulumi package is based on the launchdarkly Terraform Provider.