1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. RumRetentionQuota
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides a Datadog RumRetentionQuota resource. This can be used to create and manage Datadog rum_retention_quota.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new rum_retention_quota resource
    const testingRumRetentionQuota = new datadog.RumRetentionQuota("testing_rum_retention_quota", {
        applicationId: "<APPLICATION_ID>",
        mode: "custom",
        custom: [{
            windowType: "daily",
            sessionLimit: 10000,
            dailyResetTime: "00:00",
            dailyResetTimezone: "+00:00",
            quotaReachedAction: "stop",
        }],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new rum_retention_quota resource
    testing_rum_retention_quota = datadog.RumRetentionQuota("testing_rum_retention_quota",
        application_id="<APPLICATION_ID>",
        mode="custom",
        custom=[{
            "windowType": "daily",
            "sessionLimit": 10000,
            "dailyResetTime": "00:00",
            "dailyResetTimezone": "+00:00",
            "quotaReachedAction": "stop",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create new rum_retention_quota resource
    		_, err := datadog.NewRumRetentionQuota(ctx, "testing_rum_retention_quota", &datadog.RumRetentionQuotaArgs{
    			ApplicationId: pulumi.String("<APPLICATION_ID>"),
    			Mode:          pulumi.String("custom"),
    			Custom: datadog.RumRetentionQuotaCustomArgs{
    				map[string]interface{}{
    					"windowType":         "daily",
    					"sessionLimit":       10000,
    					"dailyResetTime":     "00:00",
    					"dailyResetTimezone": "+00:00",
    					"quotaReachedAction": "stop",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new rum_retention_quota resource
        var testingRumRetentionQuota = new Datadog.RumRetentionQuota("testing_rum_retention_quota", new()
        {
            ApplicationId = "<APPLICATION_ID>",
            Mode = "custom",
            Custom = new[]
            {
                
                {
                    { "windowType", "daily" },
                    { "sessionLimit", 10000 },
                    { "dailyResetTime", "00:00" },
                    { "dailyResetTimezone", "+00:00" },
                    { "quotaReachedAction", "stop" },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.RumRetentionQuota;
    import com.pulumi.datadog.RumRetentionQuotaArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // Create new rum_retention_quota resource
            var testingRumRetentionQuota = new RumRetentionQuota("testingRumRetentionQuota", RumRetentionQuotaArgs.builder()
                .applicationId("<APPLICATION_ID>")
                .mode("custom")
                .custom(com.pulumi.datadog.inputs.RumRetentionQuotaCustomArgs.builder()
                    .windowType("daily")
                    .sessionLimit(10000)
                    .dailyResetTime("00:00")
                    .dailyResetTimezone("+00:00")
                    .quotaReachedAction("stop")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Create new rum_retention_quota resource
      testingRumRetentionQuota:
        type: datadog:RumRetentionQuota
        name: testing_rum_retention_quota
        properties:
          applicationId: <APPLICATION_ID>
          mode: custom
          custom:
            - windowType: daily
              sessionLimit: 10000
              dailyResetTime: 00:00
              dailyResetTimezone: +00:00
              quotaReachedAction: stop
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    # Create new rum_retention_quota resource
    resource "datadog_rumretentionquota" "testing_rum_retention_quota" {
      application_id = "<APPLICATION_ID>"
      mode           = "custom"
      custom = [{
        "windowType"         = "daily"
        "sessionLimit"       = 10000
        "dailyResetTime"     = "00:00"
        "dailyResetTimezone" = "+00:00"
        "quotaReachedAction" = "stop"
      }]
    }
    

    Create RumRetentionQuota Resource

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

    Constructor syntax

    new RumRetentionQuota(name: string, args: RumRetentionQuotaArgs, opts?: CustomResourceOptions);
    @overload
    def RumRetentionQuota(resource_name: str,
                          args: RumRetentionQuotaArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def RumRetentionQuota(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          application_id: Optional[str] = None,
                          mode: Optional[str] = None,
                          custom: Optional[RumRetentionQuotaCustomArgs] = None)
    func NewRumRetentionQuota(ctx *Context, name string, args RumRetentionQuotaArgs, opts ...ResourceOption) (*RumRetentionQuota, error)
    public RumRetentionQuota(string name, RumRetentionQuotaArgs args, CustomResourceOptions? opts = null)
    public RumRetentionQuota(String name, RumRetentionQuotaArgs args)
    public RumRetentionQuota(String name, RumRetentionQuotaArgs args, CustomResourceOptions options)
    
    type: datadog:RumRetentionQuota
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datadog_rum_retention_quota" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RumRetentionQuotaArgs
    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 RumRetentionQuotaArgs
    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 RumRetentionQuotaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RumRetentionQuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RumRetentionQuotaArgs
    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 rumRetentionQuotaResource = new Datadog.RumRetentionQuota("rumRetentionQuotaResource", new()
    {
        ApplicationId = "string",
        Mode = "string",
        Custom = new Datadog.Inputs.RumRetentionQuotaCustomArgs
        {
            DailyResetTime = "string",
            DailyResetTimezone = "string",
            QuotaReachedAction = "string",
            SessionLimit = 0,
            WindowType = "string",
        },
    });
    
    example, err := datadog.NewRumRetentionQuota(ctx, "rumRetentionQuotaResource", &datadog.RumRetentionQuotaArgs{
    	ApplicationId: pulumi.String("string"),
    	Mode:          pulumi.String("string"),
    	Custom: &datadog.RumRetentionQuotaCustomArgs{
    		DailyResetTime:     pulumi.String("string"),
    		DailyResetTimezone: pulumi.String("string"),
    		QuotaReachedAction: pulumi.String("string"),
    		SessionLimit:       pulumi.Int(0),
    		WindowType:         pulumi.String("string"),
    	},
    })
    
    resource "datadog_rum_retention_quota" "rumRetentionQuotaResource" {
      lifecycle {
        create_before_destroy = true
      }
      application_id = "string"
      mode           = "string"
      custom = {
        daily_reset_time     = "string"
        daily_reset_timezone = "string"
        quota_reached_action = "string"
        session_limit        = 0
        window_type          = "string"
      }
    }
    
    var rumRetentionQuotaResource = new RumRetentionQuota("rumRetentionQuotaResource", RumRetentionQuotaArgs.builder()
        .applicationId("string")
        .mode("string")
        .custom(RumRetentionQuotaCustomArgs.builder()
            .dailyResetTime("string")
            .dailyResetTimezone("string")
            .quotaReachedAction("string")
            .sessionLimit(0)
            .windowType("string")
            .build())
        .build());
    
    rum_retention_quota_resource = datadog.RumRetentionQuota("rumRetentionQuotaResource",
        application_id="string",
        mode="string",
        custom={
            "daily_reset_time": "string",
            "daily_reset_timezone": "string",
            "quota_reached_action": "string",
            "session_limit": 0,
            "window_type": "string",
        })
    
    const rumRetentionQuotaResource = new datadog.RumRetentionQuota("rumRetentionQuotaResource", {
        applicationId: "string",
        mode: "string",
        custom: {
            dailyResetTime: "string",
            dailyResetTimezone: "string",
            quotaReachedAction: "string",
            sessionLimit: 0,
            windowType: "string",
        },
    });
    
    type: datadog:RumRetentionQuota
    properties:
        applicationId: string
        custom:
            dailyResetTime: string
            dailyResetTimezone: string
            quotaReachedAction: string
            sessionLimit: 0
            windowType: string
        mode: string
    

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

    ApplicationId string
    RUM application ID.
    Mode string
    The retention quota mode. Valid values are custom.
    Custom RumRetentionQuotaCustom
    Custom retention quota configuration. Required when mode is custom.
    ApplicationId string
    RUM application ID.
    Mode string
    The retention quota mode. Valid values are custom.
    Custom RumRetentionQuotaCustomArgs
    Custom retention quota configuration. Required when mode is custom.
    application_id string
    RUM application ID.
    mode string
    The retention quota mode. Valid values are custom.
    custom object
    Custom retention quota configuration. Required when mode is custom.
    applicationId String
    RUM application ID.
    mode String
    The retention quota mode. Valid values are custom.
    custom RumRetentionQuotaCustom
    Custom retention quota configuration. Required when mode is custom.
    applicationId string
    RUM application ID.
    mode string
    The retention quota mode. Valid values are custom.
    custom RumRetentionQuotaCustom
    Custom retention quota configuration. Required when mode is custom.
    application_id str
    RUM application ID.
    mode str
    The retention quota mode. Valid values are custom.
    custom RumRetentionQuotaCustomArgs
    Custom retention quota configuration. Required when mode is custom.
    applicationId String
    RUM application ID.
    mode String
    The retention quota mode. Valid values are custom.
    custom Property Map
    Custom retention quota configuration. Required when mode is custom.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RumRetentionQuota Resource

    Get an existing RumRetentionQuota 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?: RumRetentionQuotaState, opts?: CustomResourceOptions): RumRetentionQuota
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            custom: Optional[RumRetentionQuotaCustomArgs] = None,
            mode: Optional[str] = None) -> RumRetentionQuota
    func GetRumRetentionQuota(ctx *Context, name string, id IDInput, state *RumRetentionQuotaState, opts ...ResourceOption) (*RumRetentionQuota, error)
    public static RumRetentionQuota Get(string name, Input<string> id, RumRetentionQuotaState? state, CustomResourceOptions? opts = null)
    public static RumRetentionQuota get(String name, Output<String> id, RumRetentionQuotaState state, CustomResourceOptions options)
    resources:  _:    type: datadog:RumRetentionQuota    get:      id: ${id}
    import {
      to = datadog_rum_retention_quota.example
      id = "${id}"
    }
    
    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:
    ApplicationId string
    RUM application ID.
    Custom RumRetentionQuotaCustom
    Custom retention quota configuration. Required when mode is custom.
    Mode string
    The retention quota mode. Valid values are custom.
    ApplicationId string
    RUM application ID.
    Custom RumRetentionQuotaCustomArgs
    Custom retention quota configuration. Required when mode is custom.
    Mode string
    The retention quota mode. Valid values are custom.
    application_id string
    RUM application ID.
    custom object
    Custom retention quota configuration. Required when mode is custom.
    mode string
    The retention quota mode. Valid values are custom.
    applicationId String
    RUM application ID.
    custom RumRetentionQuotaCustom
    Custom retention quota configuration. Required when mode is custom.
    mode String
    The retention quota mode. Valid values are custom.
    applicationId string
    RUM application ID.
    custom RumRetentionQuotaCustom
    Custom retention quota configuration. Required when mode is custom.
    mode string
    The retention quota mode. Valid values are custom.
    application_id str
    RUM application ID.
    custom RumRetentionQuotaCustomArgs
    Custom retention quota configuration. Required when mode is custom.
    mode str
    The retention quota mode. Valid values are custom.
    applicationId String
    RUM application ID.
    custom Property Map
    Custom retention quota configuration. Required when mode is custom.
    mode String
    The retention quota mode. Valid values are custom.

    Supporting Types

    RumRetentionQuotaCustom, RumRetentionQuotaCustomArgs

    DailyResetTime string
    The time of day the quota resets, in HH:MM format.
    DailyResetTimezone string
    The UTC offset for dailyResetTime, in ±HH:MM format.
    QuotaReachedAction string
    The action taken after the quota is reached. Valid values are stop, slowdown.
    SessionLimit int
    The maximum number of sessions to retain within the window.
    WindowType string
    The window over which the quota resets. Valid values are daily.
    DailyResetTime string
    The time of day the quota resets, in HH:MM format.
    DailyResetTimezone string
    The UTC offset for dailyResetTime, in ±HH:MM format.
    QuotaReachedAction string
    The action taken after the quota is reached. Valid values are stop, slowdown.
    SessionLimit int
    The maximum number of sessions to retain within the window.
    WindowType string
    The window over which the quota resets. Valid values are daily.
    daily_reset_time string
    The time of day the quota resets, in HH:MM format.
    daily_reset_timezone string
    The UTC offset for dailyResetTime, in ±HH:MM format.
    quota_reached_action string
    The action taken after the quota is reached. Valid values are stop, slowdown.
    session_limit number
    The maximum number of sessions to retain within the window.
    window_type string
    The window over which the quota resets. Valid values are daily.
    dailyResetTime String
    The time of day the quota resets, in HH:MM format.
    dailyResetTimezone String
    The UTC offset for dailyResetTime, in ±HH:MM format.
    quotaReachedAction String
    The action taken after the quota is reached. Valid values are stop, slowdown.
    sessionLimit Integer
    The maximum number of sessions to retain within the window.
    windowType String
    The window over which the quota resets. Valid values are daily.
    dailyResetTime string
    The time of day the quota resets, in HH:MM format.
    dailyResetTimezone string
    The UTC offset for dailyResetTime, in ±HH:MM format.
    quotaReachedAction string
    The action taken after the quota is reached. Valid values are stop, slowdown.
    sessionLimit number
    The maximum number of sessions to retain within the window.
    windowType string
    The window over which the quota resets. Valid values are daily.
    daily_reset_time str
    The time of day the quota resets, in HH:MM format.
    daily_reset_timezone str
    The UTC offset for dailyResetTime, in ±HH:MM format.
    quota_reached_action str
    The action taken after the quota is reached. Valid values are stop, slowdown.
    session_limit int
    The maximum number of sessions to retain within the window.
    window_type str
    The window over which the quota resets. Valid values are daily.
    dailyResetTime String
    The time of day the quota resets, in HH:MM format.
    dailyResetTimezone String
    The UTC offset for dailyResetTime, in ±HH:MM format.
    quotaReachedAction String
    The action taken after the quota is reached. Valid values are stop, slowdown.
    sessionLimit Number
    The maximum number of sessions to retain within the window.
    windowType String
    The window over which the quota resets. Valid values are daily.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:index/rumRetentionQuota:RumRetentionQuota testing_rum_retention_quota "<application_id>"
    

    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
    Viewing docs for Datadog v5.11.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial