dynatrace logo
Dynatrace v0.1.0, May 24 23

dynatrace.DduPool

Explore with Pulumi AI

Dynatrace Documentation

  • DDU Pools - https://www.dynatrace.com/support/help/monitoring-consumption/davis-data-units#ddu-pools

  • Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: builtin:accounting.ddu.limit)

Resource Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@lbrlabs/pulumi-dynatrace";

const _name_ = new dynatrace.DduPool("#name#", {
    events: {
        enabled: true,
        type: "MONTHLY",
        value: 125,
    },
    logMonitoring: {
        enabled: true,
        type: "MONTHLY",
        value: 124,
    },
    metrics: {
        enabled: true,
        type: "MONTHLY",
        value: 123,
    },
    serverless: {
        enabled: true,
        type: "MONTHLY",
        value: 126,
    },
    traces: {
        enabled: true,
        type: "MONTHLY",
        value: 127,
    },
});
import pulumi
import lbrlabs_pulumi_dynatrace as dynatrace

_name_ = dynatrace.DduPool("#name#",
    events=dynatrace.DduPoolEventsArgs(
        enabled=True,
        type="MONTHLY",
        value=125,
    ),
    log_monitoring=dynatrace.DduPoolLogMonitoringArgs(
        enabled=True,
        type="MONTHLY",
        value=124,
    ),
    metrics=dynatrace.DduPoolMetricsArgs(
        enabled=True,
        type="MONTHLY",
        value=123,
    ),
    serverless=dynatrace.DduPoolServerlessArgs(
        enabled=True,
        type="MONTHLY",
        value=126,
    ),
    traces=dynatrace.DduPoolTracesArgs(
        enabled=True,
        type="MONTHLY",
        value=127,
    ))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Lbrlabs.PulumiPackage.Dynatrace;

return await Deployment.RunAsync(() => 
{
    var _name_ = new Dynatrace.DduPool("#name#", new()
    {
        Events = new Dynatrace.Inputs.DduPoolEventsArgs
        {
            Enabled = true,
            Type = "MONTHLY",
            Value = 125,
        },
        LogMonitoring = new Dynatrace.Inputs.DduPoolLogMonitoringArgs
        {
            Enabled = true,
            Type = "MONTHLY",
            Value = 124,
        },
        Metrics = new Dynatrace.Inputs.DduPoolMetricsArgs
        {
            Enabled = true,
            Type = "MONTHLY",
            Value = 123,
        },
        Serverless = new Dynatrace.Inputs.DduPoolServerlessArgs
        {
            Enabled = true,
            Type = "MONTHLY",
            Value = 126,
        },
        Traces = new Dynatrace.Inputs.DduPoolTracesArgs
        {
            Enabled = true,
            Type = "MONTHLY",
            Value = 127,
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dynatrace.NewDduPool(ctx, "#name#", &dynatrace.DduPoolArgs{
			Events: &dynatrace.DduPoolEventsArgs{
				Enabled: pulumi.Bool(true),
				Type:    pulumi.String("MONTHLY"),
				Value:   pulumi.Int(125),
			},
			LogMonitoring: &dynatrace.DduPoolLogMonitoringArgs{
				Enabled: pulumi.Bool(true),
				Type:    pulumi.String("MONTHLY"),
				Value:   pulumi.Int(124),
			},
			Metrics: &dynatrace.DduPoolMetricsArgs{
				Enabled: pulumi.Bool(true),
				Type:    pulumi.String("MONTHLY"),
				Value:   pulumi.Int(123),
			},
			Serverless: &dynatrace.DduPoolServerlessArgs{
				Enabled: pulumi.Bool(true),
				Type:    pulumi.String("MONTHLY"),
				Value:   pulumi.Int(126),
			},
			Traces: &dynatrace.DduPoolTracesArgs{
				Enabled: pulumi.Bool(true),
				Type:    pulumi.String("MONTHLY"),
				Value:   pulumi.Int(127),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.DduPool;
import com.pulumi.dynatrace.DduPoolArgs;
import com.pulumi.dynatrace.inputs.DduPoolEventsArgs;
import com.pulumi.dynatrace.inputs.DduPoolLogMonitoringArgs;
import com.pulumi.dynatrace.inputs.DduPoolMetricsArgs;
import com.pulumi.dynatrace.inputs.DduPoolServerlessArgs;
import com.pulumi.dynatrace.inputs.DduPoolTracesArgs;
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 _name_ = new DduPool("#name#", DduPoolArgs.builder()        
            .events(DduPoolEventsArgs.builder()
                .enabled(true)
                .type("MONTHLY")
                .value(125)
                .build())
            .logMonitoring(DduPoolLogMonitoringArgs.builder()
                .enabled(true)
                .type("MONTHLY")
                .value(124)
                .build())
            .metrics(DduPoolMetricsArgs.builder()
                .enabled(true)
                .type("MONTHLY")
                .value(123)
                .build())
            .serverless(DduPoolServerlessArgs.builder()
                .enabled(true)
                .type("MONTHLY")
                .value(126)
                .build())
            .traces(DduPoolTracesArgs.builder()
                .enabled(true)
                .type("MONTHLY")
                .value(127)
                .build())
            .build());

    }
}
resources:
  '#name#':
    type: dynatrace:DduPool
    properties:
      events:
        enabled: true
        type: MONTHLY
        value: 125
      logMonitoring:
        enabled: true
        type: MONTHLY
        value: 124
      metrics:
        enabled: true
        type: MONTHLY
        value: 123
      serverless:
        enabled: true
        type: MONTHLY
        value: 126
      traces:
        enabled: true
        type: MONTHLY
        value: 127

Create DduPool Resource

new DduPool(name: string, args?: DduPoolArgs, opts?: CustomResourceOptions);
@overload
def DduPool(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            events: Optional[DduPoolEventsArgs] = None,
            log_monitoring: Optional[DduPoolLogMonitoringArgs] = None,
            metrics: Optional[DduPoolMetricsArgs] = None,
            serverless: Optional[DduPoolServerlessArgs] = None,
            traces: Optional[DduPoolTracesArgs] = None)
@overload
def DduPool(resource_name: str,
            args: Optional[DduPoolArgs] = None,
            opts: Optional[ResourceOptions] = None)
func NewDduPool(ctx *Context, name string, args *DduPoolArgs, opts ...ResourceOption) (*DduPool, error)
public DduPool(string name, DduPoolArgs? args = null, CustomResourceOptions? opts = null)
public DduPool(String name, DduPoolArgs args)
public DduPool(String name, DduPoolArgs args, CustomResourceOptions options)
type: dynatrace:DduPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Events DduPoolEventsArgs

DDU pool settings for Events

LogMonitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

Metrics DduPoolMetricsArgs

DDU pool settings for Metrics

Serverless DduPoolServerlessArgs

DDU pool settings for Serverless

Traces DduPoolTracesArgs

DDU pool settings for Traces

events DduPoolEventsArgs

DDU pool settings for Events

logMonitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

metrics DduPoolMetricsArgs

DDU pool settings for Metrics

serverless DduPoolServerlessArgs

DDU pool settings for Serverless

traces DduPoolTracesArgs

DDU pool settings for Traces

events DduPoolEventsArgs

DDU pool settings for Events

logMonitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

metrics DduPoolMetricsArgs

DDU pool settings for Metrics

serverless DduPoolServerlessArgs

DDU pool settings for Serverless

traces DduPoolTracesArgs

DDU pool settings for Traces

events DduPoolEventsArgs

DDU pool settings for Events

log_monitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

metrics DduPoolMetricsArgs

DDU pool settings for Metrics

serverless DduPoolServerlessArgs

DDU pool settings for Serverless

traces DduPoolTracesArgs

DDU pool settings for Traces

events Property Map

DDU pool settings for Events

logMonitoring Property Map

DDU pool settings for Log Monitoring

metrics Property Map

DDU pool settings for Metrics

serverless Property Map

DDU pool settings for Serverless

traces Property Map

DDU pool settings for Traces

Outputs

All input properties are implicitly available as output properties. Additionally, the DduPool 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 str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DduPool Resource

Get an existing DduPool 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?: DduPoolState, opts?: CustomResourceOptions): DduPool
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        events: Optional[DduPoolEventsArgs] = None,
        log_monitoring: Optional[DduPoolLogMonitoringArgs] = None,
        metrics: Optional[DduPoolMetricsArgs] = None,
        serverless: Optional[DduPoolServerlessArgs] = None,
        traces: Optional[DduPoolTracesArgs] = None) -> DduPool
func GetDduPool(ctx *Context, name string, id IDInput, state *DduPoolState, opts ...ResourceOption) (*DduPool, error)
public static DduPool Get(string name, Input<string> id, DduPoolState? state, CustomResourceOptions? opts = null)
public static DduPool get(String name, Output<String> id, DduPoolState 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:
Events DduPoolEventsArgs

DDU pool settings for Events

LogMonitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

Metrics DduPoolMetricsArgs

DDU pool settings for Metrics

Serverless DduPoolServerlessArgs

DDU pool settings for Serverless

Traces DduPoolTracesArgs

DDU pool settings for Traces

events DduPoolEventsArgs

DDU pool settings for Events

logMonitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

metrics DduPoolMetricsArgs

DDU pool settings for Metrics

serverless DduPoolServerlessArgs

DDU pool settings for Serverless

traces DduPoolTracesArgs

DDU pool settings for Traces

events DduPoolEventsArgs

DDU pool settings for Events

logMonitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

metrics DduPoolMetricsArgs

DDU pool settings for Metrics

serverless DduPoolServerlessArgs

DDU pool settings for Serverless

traces DduPoolTracesArgs

DDU pool settings for Traces

events DduPoolEventsArgs

DDU pool settings for Events

log_monitoring DduPoolLogMonitoringArgs

DDU pool settings for Log Monitoring

metrics DduPoolMetricsArgs

DDU pool settings for Metrics

serverless DduPoolServerlessArgs

DDU pool settings for Serverless

traces DduPoolTracesArgs

DDU pool settings for Traces

events Property Map

DDU pool settings for Events

logMonitoring Property Map

DDU pool settings for Log Monitoring

metrics Property Map

DDU pool settings for Metrics

serverless Property Map

DDU pool settings for Serverless

traces Property Map

DDU pool settings for Traces

Supporting Types

DduPoolEvents

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Integer

Value of the DDU limit applied for provided timerange

enabled boolean

Is the limit configuration enabled

type string

Type of the limit applied: MONTHLY or ANNUAL

value number

Value of the DDU limit applied for provided timerange

enabled bool

Is the limit configuration enabled

type str

Type of the limit applied: MONTHLY or ANNUAL

value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Number

Value of the DDU limit applied for provided timerange

DduPoolLogMonitoring

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Integer

Value of the DDU limit applied for provided timerange

enabled boolean

Is the limit configuration enabled

type string

Type of the limit applied: MONTHLY or ANNUAL

value number

Value of the DDU limit applied for provided timerange

enabled bool

Is the limit configuration enabled

type str

Type of the limit applied: MONTHLY or ANNUAL

value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Number

Value of the DDU limit applied for provided timerange

DduPoolMetrics

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Integer

Value of the DDU limit applied for provided timerange

enabled boolean

Is the limit configuration enabled

type string

Type of the limit applied: MONTHLY or ANNUAL

value number

Value of the DDU limit applied for provided timerange

enabled bool

Is the limit configuration enabled

type str

Type of the limit applied: MONTHLY or ANNUAL

value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Number

Value of the DDU limit applied for provided timerange

DduPoolServerless

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Integer

Value of the DDU limit applied for provided timerange

enabled boolean

Is the limit configuration enabled

type string

Type of the limit applied: MONTHLY or ANNUAL

value number

Value of the DDU limit applied for provided timerange

enabled bool

Is the limit configuration enabled

type str

Type of the limit applied: MONTHLY or ANNUAL

value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Number

Value of the DDU limit applied for provided timerange

DduPoolTraces

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

Enabled bool

Is the limit configuration enabled

Type string

Type of the limit applied: MONTHLY or ANNUAL

Value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Integer

Value of the DDU limit applied for provided timerange

enabled boolean

Is the limit configuration enabled

type string

Type of the limit applied: MONTHLY or ANNUAL

value number

Value of the DDU limit applied for provided timerange

enabled bool

Is the limit configuration enabled

type str

Type of the limit applied: MONTHLY or ANNUAL

value int

Value of the DDU limit applied for provided timerange

enabled Boolean

Is the limit configuration enabled

type String

Type of the limit applied: MONTHLY or ANNUAL

value Number

Value of the DDU limit applied for provided timerange

Package Details

Repository
dynatrace lbrlabs/pulumi-dynatrace
License
Apache-2.0
Notes

This Pulumi package is based on the dynatrace Terraform Provider.