newrelic.BrowserApplication
Explore with Pulumi AI
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:
- 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
.- bool
Configure cookies. The default is enabled: true.
- Distributed
Tracing boolEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- Loader
Type string Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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
.- bool
Configure cookies. The default is enabled: true.
- Distributed
Tracing boolEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- Loader
Type string Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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 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
.- Boolean
Configure cookies. The default is enabled: true.
- distributed
Tracing BooleanEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- loader
Type String Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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 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
.- boolean
Configure cookies. The default is enabled: true.
- distributed
Tracing booleanEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- loader
Type string Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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
.- bool
Configure cookies. The default is enabled: true.
- distributed_
tracing_ boolenabled 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
, andLITE
. The default isSPA
. See the browser agent loader documentation for a for information on the valid loader types.- name str
The name of the browser application.
- account
Id 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
.- Boolean
Configure cookies. The default is enabled: true.
- distributed
Tracing BooleanEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- loader
Type String Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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:
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,
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.
- 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
.- bool
Configure cookies. The default is enabled: true.
- Distributed
Tracing boolEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- Guid string
The GUID of the browser application.
- Loader
Type string Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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
.- bool
Configure cookies. The default is enabled: true.
- Distributed
Tracing boolEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- Guid string
The GUID of the browser application.
- Loader
Type string Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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 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
.- Boolean
Configure cookies. The default is enabled: true.
- distributed
Tracing BooleanEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- guid String
The GUID of the browser application.
- loader
Type String Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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 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
.- boolean
Configure cookies. The default is enabled: true.
- distributed
Tracing booleanEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- guid string
The GUID of the browser application.
- loader
Type string Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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
.- bool
Configure cookies. The default is enabled: true.
- distributed_
tracing_ boolenabled Configure distributed tracing in browser apps. The default is enabled: true.
- guid str
The GUID of the browser application.
- loader_
type str Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. See the browser agent loader documentation for a for information on the valid loader types.- name str
The name of the browser application.
- account
Id 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
.- Boolean
Configure cookies. The default is enabled: true.
- distributed
Tracing BooleanEnabled Configure distributed tracing in browser apps. The default is enabled: true.
- guid String
The GUID of the browser application.
- loader
Type String Determines which browser loader is configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. 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.