1. Packages
  2. New Relic
  3. API Docs
  4. BrowserApplication
New Relic v5.19.0 published on Monday, Feb 19, 2024 by Pulumi

newrelic.BrowserApplication

Explore with Pulumi AI

newrelic logo
New Relic v5.19.0 published on Monday, Feb 19, 2024 by Pulumi

    Use this resource to create, update, and delete a standalone New Relic browser application.

    Example Usage

    Basic usage to create a standalone browser application.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new NewRelic.BrowserApplication("foo", new()
        {
            CookiesEnabled = true,
            DistributedTracingEnabled = true,
            LoaderType = "SPA",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewBrowserApplication(ctx, "foo", &newrelic.BrowserApplicationArgs{
    			CookiesEnabled:            pulumi.Bool(true),
    			DistributedTracingEnabled: pulumi.Bool(true),
    			LoaderType:                pulumi.String("SPA"),
    		})
    		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.newrelic.BrowserApplication;
    import com.pulumi.newrelic.BrowserApplicationArgs;
    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 foo = new BrowserApplication("foo", BrowserApplicationArgs.builder()        
                .cookiesEnabled(true)
                .distributedTracingEnabled(true)
                .loaderType("SPA")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    foo = newrelic.BrowserApplication("foo",
        cookies_enabled=True,
        distributed_tracing_enabled=True,
        loader_type="SPA")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const foo = new newrelic.BrowserApplication("foo", {
        cookiesEnabled: true,
        distributedTracingEnabled: true,
        loaderType: "SPA",
    });
    
    resources:
      foo:
        type: newrelic:BrowserApplication
        properties:
          cookiesEnabled: true
          distributedTracingEnabled: true
          loaderType: SPA
    

    Create BrowserApplication Resource

    new BrowserApplication(name: string, args?: BrowserApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def BrowserApplication(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           account_id: Optional[int] = None,
                           cookies_enabled: Optional[bool] = None,
                           distributed_tracing_enabled: Optional[bool] = None,
                           loader_type: Optional[str] = None,
                           name: Optional[str] = None)
    @overload
    def BrowserApplication(resource_name: str,
                           args: Optional[BrowserApplicationArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    func NewBrowserApplication(ctx *Context, name string, args *BrowserApplicationArgs, opts ...ResourceOption) (*BrowserApplication, error)
    public BrowserApplication(string name, BrowserApplicationArgs? args = null, CustomResourceOptions? opts = null)
    public BrowserApplication(String name, BrowserApplicationArgs args)
    public BrowserApplication(String name, BrowserApplicationArgs args, CustomResourceOptions options)
    
    type: newrelic:BrowserApplication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args BrowserApplicationArgs
    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 BrowserApplicationArgs
    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 BrowserApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BrowserApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BrowserApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccountId int
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    CookiesEnabled bool
    Configure cookies. The default is enabled: true.
    DistributedTracingEnabled bool
    Configure distributed tracing in browser apps. The default is enabled: true.
    LoaderType string
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    Name string
    The name of the browser application.
    AccountId int
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    CookiesEnabled bool
    Configure cookies. The default is enabled: true.
    DistributedTracingEnabled bool
    Configure distributed tracing in browser apps. The default is enabled: true.
    LoaderType string
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    Name string
    The name of the browser application.
    accountId Integer
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookiesEnabled Boolean
    Configure cookies. The default is enabled: true.
    distributedTracingEnabled Boolean
    Configure distributed tracing in browser apps. The default is enabled: true.
    loaderType String
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name String
    The name of the browser application.
    accountId number
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookiesEnabled boolean
    Configure cookies. The default is enabled: true.
    distributedTracingEnabled boolean
    Configure distributed tracing in browser apps. The default is enabled: true.
    loaderType string
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name string
    The name of the browser application.
    account_id int
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookies_enabled bool
    Configure cookies. The default is enabled: true.
    distributed_tracing_enabled bool
    Configure distributed tracing in browser apps. The default is enabled: true.
    loader_type str
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name str
    The name of the browser application.
    accountId Number
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookiesEnabled Boolean
    Configure cookies. The default is enabled: true.
    distributedTracingEnabled Boolean
    Configure distributed tracing in browser apps. The default is enabled: true.
    loaderType String
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name String
    The name of the browser application.

    Outputs

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

    Guid string
    The GUID of the browser application.
    Id string
    The provider-assigned unique ID for this managed resource.
    JsConfig string
    JavaScript configuration of the browser application encoded into a string.
    Guid string
    The GUID of the browser application.
    Id string
    The provider-assigned unique ID for this managed resource.
    JsConfig string
    JavaScript configuration of the browser application encoded into a string.
    guid String
    The GUID of the browser application.
    id String
    The provider-assigned unique ID for this managed resource.
    jsConfig String
    JavaScript configuration of the browser application encoded into a string.
    guid string
    The GUID of the browser application.
    id string
    The provider-assigned unique ID for this managed resource.
    jsConfig string
    JavaScript configuration of the browser application encoded into a string.
    guid str
    The GUID of the browser application.
    id str
    The provider-assigned unique ID for this managed resource.
    js_config str
    JavaScript configuration of the browser application encoded into a string.
    guid String
    The GUID of the browser application.
    id String
    The provider-assigned unique ID for this managed resource.
    jsConfig String
    JavaScript configuration of the browser application encoded into a string.

    Look up Existing BrowserApplication Resource

    Get an existing BrowserApplication 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?: BrowserApplicationState, opts?: CustomResourceOptions): BrowserApplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[int] = None,
            cookies_enabled: Optional[bool] = None,
            distributed_tracing_enabled: Optional[bool] = None,
            guid: Optional[str] = None,
            js_config: Optional[str] = None,
            loader_type: Optional[str] = None,
            name: Optional[str] = None) -> BrowserApplication
    func GetBrowserApplication(ctx *Context, name string, id IDInput, state *BrowserApplicationState, opts ...ResourceOption) (*BrowserApplication, error)
    public static BrowserApplication Get(string name, Input<string> id, BrowserApplicationState? state, CustomResourceOptions? opts = null)
    public static BrowserApplication get(String name, Output<String> id, BrowserApplicationState 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:
    AccountId int
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    CookiesEnabled bool
    Configure cookies. The default is enabled: true.
    DistributedTracingEnabled bool
    Configure distributed tracing in browser apps. The default is enabled: true.
    Guid string
    The GUID of the browser application.
    JsConfig string
    JavaScript configuration of the browser application encoded into a string.
    LoaderType string
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    Name string
    The name of the browser application.
    AccountId int
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    CookiesEnabled bool
    Configure cookies. The default is enabled: true.
    DistributedTracingEnabled bool
    Configure distributed tracing in browser apps. The default is enabled: true.
    Guid string
    The GUID of the browser application.
    JsConfig string
    JavaScript configuration of the browser application encoded into a string.
    LoaderType string
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    Name string
    The name of the browser application.
    accountId Integer
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookiesEnabled Boolean
    Configure cookies. The default is enabled: true.
    distributedTracingEnabled Boolean
    Configure distributed tracing in browser apps. The default is enabled: true.
    guid String
    The GUID of the browser application.
    jsConfig String
    JavaScript configuration of the browser application encoded into a string.
    loaderType String
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name String
    The name of the browser application.
    accountId number
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookiesEnabled boolean
    Configure cookies. The default is enabled: true.
    distributedTracingEnabled boolean
    Configure distributed tracing in browser apps. The default is enabled: true.
    guid string
    The GUID of the browser application.
    jsConfig string
    JavaScript configuration of the browser application encoded into a string.
    loaderType string
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name string
    The name of the browser application.
    account_id int
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookies_enabled bool
    Configure cookies. The default is enabled: true.
    distributed_tracing_enabled bool
    Configure distributed tracing in browser apps. The default is enabled: true.
    guid str
    The GUID of the browser application.
    js_config str
    JavaScript configuration of the browser application encoded into a string.
    loader_type str
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name str
    The name of the browser application.
    accountId Number
    The New Relic account ID of the account you wish to create the browser application. Defaults to the account ID set in your environment variable NEW_RELIC_ACCOUNT_ID.
    cookiesEnabled Boolean
    Configure cookies. The default is enabled: true.
    distributedTracingEnabled Boolean
    Configure distributed tracing in browser apps. The default is enabled: true.
    guid String
    The GUID of the browser application.
    jsConfig String
    JavaScript configuration of the browser application encoded into a string.
    loaderType String
    Determines which browser loader is configured. Valid values are SPA, PRO, and LITE. The default is SPA. See the browser agent loader documentation for a for information on the valid loader types.
    name String
    The name of the browser application.

    Import

    Browser applications can be imported using the GUID of the browser application.

    bash

    $ pulumi import newrelic:index/browserApplication:BrowserApplication foo <GUID>
    

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    New Relic v5.19.0 published on Monday, Feb 19, 2024 by Pulumi