published on Tuesday, Sep 15, 2026 by Pulumi
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:
- Application
Id string - RUM application ID.
- Mode string
- The retention quota mode. Valid values are
custom. - Custom
Rum
Retention Quota Custom - Custom retention quota configuration. Required when
modeiscustom.
- Application
Id string - RUM application ID.
- Mode string
- The retention quota mode. Valid values are
custom. - Custom
Rum
Retention Quota Custom Args - Custom retention quota configuration. Required when
modeiscustom.
- application_
id string - RUM application ID.
- mode string
- The retention quota mode. Valid values are
custom. - custom object
- Custom retention quota configuration. Required when
modeiscustom.
- application
Id String - RUM application ID.
- mode String
- The retention quota mode. Valid values are
custom. - custom
Rum
Retention Quota Custom - Custom retention quota configuration. Required when
modeiscustom.
- application
Id string - RUM application ID.
- mode string
- The retention quota mode. Valid values are
custom. - custom
Rum
Retention Quota Custom - Custom retention quota configuration. Required when
modeiscustom.
- application_
id str - RUM application ID.
- mode str
- The retention quota mode. Valid values are
custom. - custom
Rum
Retention Quota Custom Args - Custom retention quota configuration. Required when
modeiscustom.
- application
Id String - RUM application ID.
- mode String
- The retention quota mode. Valid values are
custom. - custom Property Map
- Custom retention quota configuration. Required when
modeiscustom.
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) -> RumRetentionQuotafunc 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.
- Application
Id string - RUM application ID.
- Custom
Rum
Retention Quota Custom - Custom retention quota configuration. Required when
modeiscustom. - Mode string
- The retention quota mode. Valid values are
custom.
- Application
Id string - RUM application ID.
- Custom
Rum
Retention Quota Custom Args - Custom retention quota configuration. Required when
modeiscustom. - Mode string
- The retention quota mode. Valid values are
custom.
- application_
id string - RUM application ID.
- custom object
- Custom retention quota configuration. Required when
modeiscustom. - mode string
- The retention quota mode. Valid values are
custom.
- application
Id String - RUM application ID.
- custom
Rum
Retention Quota Custom - Custom retention quota configuration. Required when
modeiscustom. - mode String
- The retention quota mode. Valid values are
custom.
- application
Id string - RUM application ID.
- custom
Rum
Retention Quota Custom - Custom retention quota configuration. Required when
modeiscustom. - mode string
- The retention quota mode. Valid values are
custom.
- application_
id str - RUM application ID.
- custom
Rum
Retention Quota Custom Args - Custom retention quota configuration. Required when
modeiscustom. - mode str
- The retention quota mode. Valid values are
custom.
- application
Id String - RUM application ID.
- custom Property Map
- Custom retention quota configuration. Required when
modeiscustom. - mode String
- The retention quota mode. Valid values are
custom.
Supporting Types
RumRetentionQuotaCustom, RumRetentionQuotaCustomArgs
- Daily
Reset stringTime - The time of day the quota resets, in
HH:MMformat. - Daily
Reset stringTimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - Quota
Reached stringAction - 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 string - The window over which the quota resets. Valid values are
daily.
- Daily
Reset stringTime - The time of day the quota resets, in
HH:MMformat. - Daily
Reset stringTimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - Quota
Reached stringAction - 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 string - The window over which the quota resets. Valid values are
daily.
- daily_
reset_ stringtime - The time of day the quota resets, in
HH:MMformat. - daily_
reset_ stringtimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - quota_
reached_ stringaction - 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.
- daily
Reset StringTime - The time of day the quota resets, in
HH:MMformat. - daily
Reset StringTimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - quota
Reached StringAction - The action taken after the quota is reached. Valid values are
stop,slowdown. - session
Limit Integer - The maximum number of sessions to retain within the window.
- window
Type String - The window over which the quota resets. Valid values are
daily.
- daily
Reset stringTime - The time of day the quota resets, in
HH:MMformat. - daily
Reset stringTimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - quota
Reached stringAction - 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.
- daily_
reset_ strtime - The time of day the quota resets, in
HH:MMformat. - daily_
reset_ strtimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - quota_
reached_ straction - 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.
- daily
Reset StringTime - The time of day the quota resets, in
HH:MMformat. - daily
Reset StringTimezone - The UTC offset for
dailyResetTime, in±HH:MMformat. - quota
Reached StringAction - 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.
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
datadogTerraform Provider.
published on Tuesday, Sep 15, 2026 by Pulumi