newrelic.BrowserApplication
Explore with Pulumi AI
Import
A browser application can be imported using its GUID, i.e.
bash
$ pulumi import newrelic:index/browserApplication:BrowserApplication foo <GUID>
Create BrowserApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BrowserApplication(name: string, args?: BrowserApplicationArgs, opts?: CustomResourceOptions);
@overload
def BrowserApplication(resource_name: str,
args: Optional[BrowserApplicationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def BrowserApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cookies_enabled: Optional[bool] = None,
distributed_tracing_enabled: Optional[bool] = None,
loader_type: Optional[str] = None,
name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var browserApplicationResource = new NewRelic.BrowserApplication("browserApplicationResource", new()
{
AccountId = "string",
CookiesEnabled = false,
DistributedTracingEnabled = false,
LoaderType = "string",
Name = "string",
});
example, err := newrelic.NewBrowserApplication(ctx, "browserApplicationResource", &newrelic.BrowserApplicationArgs{
AccountId: pulumi.String("string"),
CookiesEnabled: pulumi.Bool(false),
DistributedTracingEnabled: pulumi.Bool(false),
LoaderType: pulumi.String("string"),
Name: pulumi.String("string"),
})
var browserApplicationResource = new BrowserApplication("browserApplicationResource", BrowserApplicationArgs.builder()
.accountId("string")
.cookiesEnabled(false)
.distributedTracingEnabled(false)
.loaderType("string")
.name("string")
.build());
browser_application_resource = newrelic.BrowserApplication("browserApplicationResource",
account_id="string",
cookies_enabled=False,
distributed_tracing_enabled=False,
loader_type="string",
name="string")
const browserApplicationResource = new newrelic.BrowserApplication("browserApplicationResource", {
accountId: "string",
cookiesEnabled: false,
distributedTracingEnabled: false,
loaderType: "string",
name: "string",
});
type: newrelic:BrowserApplication
properties:
accountId: string
cookiesEnabled: false
distributedTracingEnabled: false
loaderType: string
name: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BrowserApplication resource accepts the following input properties:
- Account
Id string - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - bool
- Configures cookies. Defaults to
true
, if not specified. - Distributed
Tracing boolEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - Loader
Type string - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - Name string
- The name of the browser application.
- Account
Id string - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - bool
- Configures cookies. Defaults to
true
, if not specified. - Distributed
Tracing boolEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - Loader
Type string - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - Name string
- The name of the browser application.
- account
Id String - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - Boolean
- Configures cookies. Defaults to
true
, if not specified. - distributed
Tracing BooleanEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - loader
Type String - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name String
- The name of the browser application.
- account
Id string - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - boolean
- Configures cookies. Defaults to
true
, if not specified. - distributed
Tracing booleanEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - loader
Type string - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name string
- The name of the browser application.
- account_
id str - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - bool
- Configures cookies. Defaults to
true
, if not specified. - distributed_
tracing_ boolenabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - loader_
type str - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name str
- The name of the browser application.
- account
Id String - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - Boolean
- Configures cookies. Defaults to
true
, if not specified. - distributed
Tracing BooleanEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - loader
Type String - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on 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:
- Application
Id string - The application ID of the browser application (not to be confused with GUID).
- Guid string
- The GUID of the browser application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Js
Config string - The JavaScript configuration of the browser application, encoded into a string.
- Application
Id string - The application ID of the browser application (not to be confused with GUID).
- Guid string
- The GUID of the browser application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Js
Config string - The JavaScript configuration of the browser application, encoded into a string.
- application
Id String - The application ID of the browser application (not to be confused with GUID).
- guid String
- The GUID of the browser application.
- id String
- The provider-assigned unique ID for this managed resource.
- js
Config String - The JavaScript configuration of the browser application, encoded into a string.
- application
Id string - The application ID of the browser application (not to be confused with GUID).
- guid string
- The GUID of the browser application.
- id string
- The provider-assigned unique ID for this managed resource.
- js
Config string - The JavaScript configuration of the browser application, encoded into a string.
- application_
id str - The application ID of the browser application (not to be confused with GUID).
- guid str
- The GUID of the browser application.
- id str
- The provider-assigned unique ID for this managed resource.
- js_
config str - The JavaScript configuration of the browser application, encoded into a string.
- application
Id String - The application ID of the browser application (not to be confused with GUID).
- guid String
- The GUID of the browser application.
- id String
- The provider-assigned unique ID for this managed resource.
- js
Config String - The 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[str] = None,
application_id: Optional[str] = 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.
- Account
Id string - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - Application
Id string - The application ID of the browser application (not to be confused with GUID).
- bool
- Configures cookies. Defaults to
true
, if not specified. - Distributed
Tracing boolEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - Guid string
- The GUID of the browser application.
- Js
Config string - The JavaScript configuration of the browser application, encoded into a string.
- Loader
Type string - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - Name string
- The name of the browser application.
- Account
Id string - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - Application
Id string - The application ID of the browser application (not to be confused with GUID).
- bool
- Configures cookies. Defaults to
true
, if not specified. - Distributed
Tracing boolEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - Guid string
- The GUID of the browser application.
- Js
Config string - The JavaScript configuration of the browser application, encoded into a string.
- Loader
Type string - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - Name string
- The name of the browser application.
- account
Id String - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - application
Id String - The application ID of the browser application (not to be confused with GUID).
- Boolean
- Configures cookies. Defaults to
true
, if not specified. - distributed
Tracing BooleanEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - guid String
- The GUID of the browser application.
- js
Config String - The JavaScript configuration of the browser application, encoded into a string.
- loader
Type String - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name String
- The name of the browser application.
- account
Id string - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - application
Id string - The application ID of the browser application (not to be confused with GUID).
- boolean
- Configures cookies. Defaults to
true
, if not specified. - distributed
Tracing booleanEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - guid string
- The GUID of the browser application.
- js
Config string - The JavaScript configuration of the browser application, encoded into a string.
- loader
Type string - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name string
- The name of the browser application.
- account_
id str - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - application_
id str - The application ID of the browser application (not to be confused with GUID).
- bool
- Configures cookies. Defaults to
true
, if not specified. - distributed_
tracing_ boolenabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - guid str
- The GUID of the browser application.
- js_
config str - The JavaScript configuration of the browser application, encoded into a string.
- loader_
type str - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name str
- The name of the browser application.
- account
Id String - The account ID of the New Relic account you wish to create the browser application in. Defaults to the value of the environment variable
NEW_RELIC_ACCOUNT_ID
if not specified. - application
Id String - The application ID of the browser application (not to be confused with GUID).
- Boolean
- Configures cookies. Defaults to
true
, if not specified. - distributed
Tracing BooleanEnabled - Configures distributed tracing in browser apps. Defaults to
true
, if not specified. - guid String
- The GUID of the browser application.
- js
Config String - The JavaScript configuration of the browser application, encoded into a string.
- loader
Type String - Determines the browser loader configured. Valid values are
SPA
,PRO
, andLITE
. The default isSPA
. Refer to the browser agent loader documentation for more information on valid loader types. - name String
- The name of the browser application.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.