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

launchdarkly.getRelayProxyConfiguration

Explore with Pulumi AI

launchdarkly logo
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Lbrlabs.PulumiPackage.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Launchdarkly.RelayProxyConfiguration("example", new()
        {
            Policies = new[]
            {
                new Launchdarkly.Inputs.RelayProxyConfigurationPolicyArgs
                {
                    Actions = new[]
                    {
                        "*",
                    },
                    Effect = "allow",
                    Resources = new[]
                    {
                        "proj/*:env/*",
                    },
                },
            },
        });
    
    });
    
    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.NewRelayProxyConfiguration(ctx, "example", &launchdarkly.RelayProxyConfigurationArgs{
    			Policies: launchdarkly.RelayProxyConfigurationPolicyArray{
    				&launchdarkly.RelayProxyConfigurationPolicyArgs{
    					Actions: pulumi.StringArray{
    						pulumi.String("*"),
    					},
    					Effect: pulumi.String("allow"),
    					Resources: pulumi.StringArray{
    						pulumi.String("proj/*:env/*"),
    					},
    				},
    			},
    		})
    		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.RelayProxyConfiguration;
    import com.pulumi.launchdarkly.RelayProxyConfigurationArgs;
    import com.pulumi.launchdarkly.inputs.RelayProxyConfigurationPolicyArgs;
    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 RelayProxyConfiguration("example", RelayProxyConfigurationArgs.builder()        
                .policies(RelayProxyConfigurationPolicyArgs.builder()
                    .actions("*")
                    .effect("allow")
                    .resources("proj/*:env/*")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_launchdarkly as launchdarkly
    
    example = launchdarkly.RelayProxyConfiguration("example", policies=[launchdarkly.RelayProxyConfigurationPolicyArgs(
        actions=["*"],
        effect="allow",
        resources=["proj/*:env/*"],
    )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@lbrlabs/pulumi-launchdarkly";
    
    const example = new launchdarkly.RelayProxyConfiguration("example", {policies: [{
        actions: ["*"],
        effect: "allow",
        resources: ["proj/*:env/*"],
    }]});
    
    resources:
      example:
        type: launchdarkly:RelayProxyConfiguration
        properties:
          policies:
            - actions:
                - '*'
              effect: allow
              resources:
                - proj/*:env/*
    

    Using getRelayProxyConfiguration

    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 getRelayProxyConfiguration(args: GetRelayProxyConfigurationArgs, opts?: InvokeOptions): Promise<GetRelayProxyConfigurationResult>
    function getRelayProxyConfigurationOutput(args: GetRelayProxyConfigurationOutputArgs, opts?: InvokeOptions): Output<GetRelayProxyConfigurationResult>
    def get_relay_proxy_configuration(id: Optional[str] = None,
                                      policies: Optional[Sequence[GetRelayProxyConfigurationPolicy]] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetRelayProxyConfigurationResult
    def get_relay_proxy_configuration_output(id: Optional[pulumi.Input[str]] = None,
                                      policies: Optional[pulumi.Input[Sequence[pulumi.Input[GetRelayProxyConfigurationPolicyArgs]]]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetRelayProxyConfigurationResult]
    func LookupRelayProxyConfiguration(ctx *Context, args *LookupRelayProxyConfigurationArgs, opts ...InvokeOption) (*LookupRelayProxyConfigurationResult, error)
    func LookupRelayProxyConfigurationOutput(ctx *Context, args *LookupRelayProxyConfigurationOutputArgs, opts ...InvokeOption) LookupRelayProxyConfigurationResultOutput

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

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

    The following arguments are supported:

    Id string
    The Relay Proxy configuration's unique 24 character ID. The unique relay proxy ID can be found in the relay proxy edit page URL, which you can locate by clicking the three dot menu on your relay proxy item in the UI and selecting 'Edit configuration':
    Policies List<Lbrlabs.PulumiPackage.Launchdarkly.Inputs.GetRelayProxyConfigurationPolicy>
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    Id string
    The Relay Proxy configuration's unique 24 character ID. The unique relay proxy ID can be found in the relay proxy edit page URL, which you can locate by clicking the three dot menu on your relay proxy item in the UI and selecting 'Edit configuration':
    Policies []GetRelayProxyConfigurationPolicy
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    id String
    The Relay Proxy configuration's unique 24 character ID. The unique relay proxy ID can be found in the relay proxy edit page URL, which you can locate by clicking the three dot menu on your relay proxy item in the UI and selecting 'Edit configuration':
    policies List<GetRelayProxyConfigurationPolicy>
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    id string
    The Relay Proxy configuration's unique 24 character ID. The unique relay proxy ID can be found in the relay proxy edit page URL, which you can locate by clicking the three dot menu on your relay proxy item in the UI and selecting 'Edit configuration':
    policies GetRelayProxyConfigurationPolicy[]
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    id str
    The Relay Proxy configuration's unique 24 character ID. The unique relay proxy ID can be found in the relay proxy edit page URL, which you can locate by clicking the three dot menu on your relay proxy item in the UI and selecting 'Edit configuration':
    policies Sequence[GetRelayProxyConfigurationPolicy]
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    id String
    The Relay Proxy configuration's unique 24 character ID. The unique relay proxy ID can be found in the relay proxy edit page URL, which you can locate by clicking the three dot menu on your relay proxy item in the UI and selecting 'Edit configuration':
    policies List<Property Map>
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.

    getRelayProxyConfiguration Result

    The following output properties are available:

    DisplayKey string
    The last 4 characters of the Relay Proxy configuration's unique key.
    Id string
    Name string
    The human-readable name for your Relay Proxy configuration.
    Policies List<Lbrlabs.PulumiPackage.Launchdarkly.Outputs.GetRelayProxyConfigurationPolicy>
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    DisplayKey string
    The last 4 characters of the Relay Proxy configuration's unique key.
    Id string
    Name string
    The human-readable name for your Relay Proxy configuration.
    Policies []GetRelayProxyConfigurationPolicy
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    displayKey String
    The last 4 characters of the Relay Proxy configuration's unique key.
    id String
    name String
    The human-readable name for your Relay Proxy configuration.
    policies List<GetRelayProxyConfigurationPolicy>
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    displayKey string
    The last 4 characters of the Relay Proxy configuration's unique key.
    id string
    name string
    The human-readable name for your Relay Proxy configuration.
    policies GetRelayProxyConfigurationPolicy[]
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    display_key str
    The last 4 characters of the Relay Proxy configuration's unique key.
    id str
    name str
    The human-readable name for your Relay Proxy configuration.
    policies Sequence[GetRelayProxyConfigurationPolicy]
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.
    displayKey String
    The last 4 characters of the Relay Proxy configuration's unique key.
    id String
    name String
    The human-readable name for your Relay Proxy configuration.
    policies List<Property Map>
    The Relay Proxy configuration's rule policy block. This determines what content the Relay Proxy receives. To learn more, read Understanding policies.

    Supporting Types

    GetRelayProxyConfigurationPolicy

    Effect string
    Either allow or deny. This argument defines whether the rule policy 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 rule policy does not apply. Either resources or not_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 rule policy applies. Either resources or not_resources must be specified. For a list of available resources read Understanding resource types and scopes.
    Effect string
    Either allow or deny. This argument defines whether the rule policy 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 rule policy does not apply. Either resources or not_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 rule policy applies. Either resources or not_resources must be specified. For a list of available resources read Understanding resource types and scopes.
    effect String
    Either allow or deny. This argument defines whether the rule policy 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 rule policy does not apply. Either resources or not_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 rule policy applies. Either resources or not_resources must be specified. For a list of available resources read Understanding resource types and scopes.
    effect string
    Either allow or deny. This argument defines whether the rule policy 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 rule policy does not apply. Either resources or not_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 rule policy applies. Either resources or not_resources must be specified. For a list of available resources read Understanding resource types and scopes.
    effect str
    Either allow or deny. This argument defines whether the rule policy 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 rule policy does not apply. Either resources or not_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 rule policy applies. Either resources or not_resources must be specified. For a list of available resources read Understanding resource types and scopes.
    effect String
    Either allow or deny. This argument defines whether the rule policy 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 rule policy does not apply. Either resources or not_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 rule policy applies. Either resources or not_resources must be specified. For a list of available resources read Understanding resource types and scopes.

    Package Details

    Repository
    launchdarkly lbrlabs/pulumi-launchdarkly
    License
    Notes
    This Pulumi package is based on the launchdarkly Terraform Provider.
    launchdarkly logo
    Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs