1. Packages
  2. Datadog Provider
  3. API Docs
  4. RumApplication
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.RumApplication

Explore with Pulumi AI

Provides a Datadog RUM application resource. This can be used to create and manage Datadog RUM applications.

Example Usage

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

const rumApplication = new datadog.RumApplication("rum_application", {
    name: "my-application",
    type: "browser",
});
Copy
import pulumi
import pulumi_datadog as datadog

rum_application = datadog.RumApplication("rum_application",
    name="my-application",
    type="browser")
Copy
package main

import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datadog.NewRumApplication(ctx, "rum_application", &datadog.RumApplicationArgs{
			Name: pulumi.String("my-application"),
			Type: pulumi.String("browser"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    var rumApplication = new Datadog.RumApplication("rum_application", new()
    {
        Name = "my-application",
        Type = "browser",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.RumApplication;
import com.pulumi.datadog.RumApplicationArgs;
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 rumApplication = new RumApplication("rumApplication", RumApplicationArgs.builder()
            .name("my-application")
            .type("browser")
            .build());

    }
}
Copy
resources:
  rumApplication:
    type: datadog:RumApplication
    name: rum_application
    properties:
      name: my-application
      type: browser
Copy

Create RumApplication Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RumApplication(name: string, args: RumApplicationArgs, opts?: CustomResourceOptions);
@overload
def RumApplication(resource_name: str,
                   args: RumApplicationArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def RumApplication(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   name: Optional[str] = None,
                   type: Optional[str] = None)
func NewRumApplication(ctx *Context, name string, args RumApplicationArgs, opts ...ResourceOption) (*RumApplication, error)
public RumApplication(string name, RumApplicationArgs args, CustomResourceOptions? opts = null)
public RumApplication(String name, RumApplicationArgs args)
public RumApplication(String name, RumApplicationArgs args, CustomResourceOptions options)
type: datadog:RumApplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RumApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RumApplicationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RumApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RumApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RumApplicationArgs
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 rumApplicationResource = new Datadog.RumApplication("rumApplicationResource", new()
{
    Name = "string",
    Type = "string",
});
Copy
example, err := datadog.NewRumApplication(ctx, "rumApplicationResource", &datadog.RumApplicationArgs{
	Name: pulumi.String("string"),
	Type: pulumi.String("string"),
})
Copy
var rumApplicationResource = new RumApplication("rumApplicationResource", RumApplicationArgs.builder()
    .name("string")
    .type("string")
    .build());
Copy
rum_application_resource = datadog.RumApplication("rumApplicationResource",
    name="string",
    type="string")
Copy
const rumApplicationResource = new datadog.RumApplication("rumApplicationResource", {
    name: "string",
    type: "string",
});
Copy
type: datadog:RumApplication
properties:
    name: string
    type: string
Copy

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

Name This property is required. string
Name of the RUM application.
Type string
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
Name This property is required. string
Name of the RUM application.
Type string
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
name This property is required. String
Name of the RUM application.
type String
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
name This property is required. string
Name of the RUM application.
type string
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
name This property is required. str
Name of the RUM application.
type str
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
name This property is required. String
Name of the RUM application.
type String
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".

Outputs

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

ClientToken string
The client token.
Id string
The provider-assigned unique ID for this managed resource.
ClientToken string
The client token.
Id string
The provider-assigned unique ID for this managed resource.
clientToken String
The client token.
id String
The provider-assigned unique ID for this managed resource.
clientToken string
The client token.
id string
The provider-assigned unique ID for this managed resource.
client_token str
The client token.
id str
The provider-assigned unique ID for this managed resource.
clientToken String
The client token.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RumApplication Resource

Get an existing RumApplication 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?: RumApplicationState, opts?: CustomResourceOptions): RumApplication
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        client_token: Optional[str] = None,
        name: Optional[str] = None,
        type: Optional[str] = None) -> RumApplication
func GetRumApplication(ctx *Context, name string, id IDInput, state *RumApplicationState, opts ...ResourceOption) (*RumApplication, error)
public static RumApplication Get(string name, Input<string> id, RumApplicationState? state, CustomResourceOptions? opts = null)
public static RumApplication get(String name, Output<String> id, RumApplicationState state, CustomResourceOptions options)
resources:  _:    type: datadog:RumApplication    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ClientToken string
The client token.
Name string
Name of the RUM application.
Type string
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
ClientToken string
The client token.
Name string
Name of the RUM application.
Type string
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
clientToken String
The client token.
name String
Name of the RUM application.
type String
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
clientToken string
The client token.
name string
Name of the RUM application.
type string
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
client_token str
The client token.
name str
Name of the RUM application.
type str
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".
clientToken String
The client token.
name String
Name of the RUM application.
type String
Type of the RUM application. Supported values are browser, ios, android, react-native, flutter. Defaults to "browser".

Import

$ pulumi import datadog:index/rumApplication:RumApplication rum_application a1b2c3d4-a1b2-a1b2-a1b2-a1b2c3d4e5f6
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.