1. Packages
  2. Datadog
  3. API Docs
  4. RumApplication
Datadog v4.28.0 published on Tuesday, Apr 23, 2024 by Pulumi

datadog.RumApplication

Explore with Pulumi AI

datadog logo
Datadog v4.28.0 published on Tuesday, Apr 23, 2024 by Pulumi

    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",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    rum_application = datadog.RumApplication("rum_application",
        name="my-application",
        type="browser")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      rumApplication:
        type: datadog:RumApplication
        name: rum_application
        properties:
          name: my-application
          type: browser
    

    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 string
    The unique name of the resource.
    args RumApplicationArgs
    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 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 string
    The unique name of the resource.
    args RumApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RumApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RumApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var rumApplicationResource = new Datadog.RumApplication("rumApplicationResource", new()
    {
        Name = "string",
        Type = "string",
    });
    
    example, err := datadog.NewRumApplication(ctx, "rumApplicationResource", &datadog.RumApplicationArgs{
    	Name: pulumi.String("string"),
    	Type: pulumi.String("string"),
    })
    
    var rumApplicationResource = new RumApplication("rumApplicationResource", RumApplicationArgs.builder()        
        .name("string")
        .type("string")
        .build());
    
    rum_application_resource = datadog.RumApplication("rumApplicationResource",
        name="string",
        type="string")
    
    const rumApplicationResource = new datadog.RumApplication("rumApplicationResource", {
        name: "string",
        type: "string",
    });
    
    type: datadog:RumApplication
    properties:
        name: string
        type: string
    

    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

    The RumApplication resource accepts the following input properties:

    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".
    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".
    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".
    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".
    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".
    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".

    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)
    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:
    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
    

    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.
    datadog logo
    Datadog v4.28.0 published on Tuesday, Apr 23, 2024 by Pulumi