dynatrace.DduPool
Explore with Pulumi AI
!> This resource API endpoint has been deprecated.
This resource requires the API token scopes Read settings (
settings.read
) and Write settings (settings.write
)
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 "@pulumiverse/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 pulumiverse_dynatrace as dynatrace
_name_ = dynatrace.DduPool("#name#",
events={
"enabled": True,
"type": "MONTHLY",
"value": 125,
},
log_monitoring={
"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,
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.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 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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DduPool(name: string, args?: DduPoolArgs, opts?: CustomResourceOptions);
@overload
def DduPool(resource_name: str,
args: Optional[DduPoolArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var dduPoolResource = new Dynatrace.DduPool("dduPoolResource", new()
{
Events = new Dynatrace.Inputs.DduPoolEventsArgs
{
Enabled = false,
Type = "string",
Value = 0,
},
LogMonitoring = new Dynatrace.Inputs.DduPoolLogMonitoringArgs
{
Enabled = false,
Type = "string",
Value = 0,
},
Metrics = new Dynatrace.Inputs.DduPoolMetricsArgs
{
Enabled = false,
Type = "string",
Value = 0,
},
Serverless = new Dynatrace.Inputs.DduPoolServerlessArgs
{
Enabled = false,
Type = "string",
Value = 0,
},
Traces = new Dynatrace.Inputs.DduPoolTracesArgs
{
Enabled = false,
Type = "string",
Value = 0,
},
});
example, err := dynatrace.NewDduPool(ctx, "dduPoolResource", &dynatrace.DduPoolArgs{
Events: &dynatrace.DduPoolEventsArgs{
Enabled: pulumi.Bool(false),
Type: pulumi.String("string"),
Value: pulumi.Int(0),
},
LogMonitoring: &dynatrace.DduPoolLogMonitoringArgs{
Enabled: pulumi.Bool(false),
Type: pulumi.String("string"),
Value: pulumi.Int(0),
},
Metrics: &dynatrace.DduPoolMetricsArgs{
Enabled: pulumi.Bool(false),
Type: pulumi.String("string"),
Value: pulumi.Int(0),
},
Serverless: &dynatrace.DduPoolServerlessArgs{
Enabled: pulumi.Bool(false),
Type: pulumi.String("string"),
Value: pulumi.Int(0),
},
Traces: &dynatrace.DduPoolTracesArgs{
Enabled: pulumi.Bool(false),
Type: pulumi.String("string"),
Value: pulumi.Int(0),
},
})
var dduPoolResource = new DduPool("dduPoolResource", DduPoolArgs.builder()
.events(DduPoolEventsArgs.builder()
.enabled(false)
.type("string")
.value(0)
.build())
.logMonitoring(DduPoolLogMonitoringArgs.builder()
.enabled(false)
.type("string")
.value(0)
.build())
.metrics(DduPoolMetricsArgs.builder()
.enabled(false)
.type("string")
.value(0)
.build())
.serverless(DduPoolServerlessArgs.builder()
.enabled(false)
.type("string")
.value(0)
.build())
.traces(DduPoolTracesArgs.builder()
.enabled(false)
.type("string")
.value(0)
.build())
.build());
ddu_pool_resource = dynatrace.DduPool("dduPoolResource",
events={
"enabled": False,
"type": "string",
"value": 0,
},
log_monitoring={
"enabled": False,
"type": "string",
"value": 0,
},
metrics={
"enabled": False,
"type": "string",
"value": 0,
},
serverless={
"enabled": False,
"type": "string",
"value": 0,
},
traces={
"enabled": False,
"type": "string",
"value": 0,
})
const dduPoolResource = new dynatrace.DduPool("dduPoolResource", {
events: {
enabled: false,
type: "string",
value: 0,
},
logMonitoring: {
enabled: false,
type: "string",
value: 0,
},
metrics: {
enabled: false,
type: "string",
value: 0,
},
serverless: {
enabled: false,
type: "string",
value: 0,
},
traces: {
enabled: false,
type: "string",
value: 0,
},
});
type: dynatrace:DduPool
properties:
events:
enabled: false
type: string
value: 0
logMonitoring:
enabled: false
type: string
value: 0
metrics:
enabled: false
type: string
value: 0
serverless:
enabled: false
type: string
value: 0
traces:
enabled: false
type: string
value: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DduPool resource accepts the following input properties:
- Events
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Events - DDU pool settings for Events
- Log
Monitoring Pulumiverse.Dynatrace. Inputs. Ddu Pool Log Monitoring - DDU pool settings for Log Monitoring
- Metrics
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Metrics - DDU pool settings for Metrics
- Serverless
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Serverless - DDU pool settings for Serverless
- Traces
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Traces - DDU pool settings for Traces
- Events
Ddu
Pool Events Args - DDU pool settings for Events
- Log
Monitoring DduPool Log Monitoring Args - DDU pool settings for Log Monitoring
- Metrics
Ddu
Pool Metrics Args - DDU pool settings for Metrics
- Serverless
Ddu
Pool Serverless Args - DDU pool settings for Serverless
- Traces
Ddu
Pool Traces Args - DDU pool settings for Traces
- events
Ddu
Pool Events - DDU pool settings for Events
- log
Monitoring DduPool Log Monitoring - DDU pool settings for Log Monitoring
- metrics
Ddu
Pool Metrics - DDU pool settings for Metrics
- serverless
Ddu
Pool Serverless - DDU pool settings for Serverless
- traces
Ddu
Pool Traces - DDU pool settings for Traces
- events
Ddu
Pool Events - DDU pool settings for Events
- log
Monitoring DduPool Log Monitoring - DDU pool settings for Log Monitoring
- metrics
Ddu
Pool Metrics - DDU pool settings for Metrics
- serverless
Ddu
Pool Serverless - DDU pool settings for Serverless
- traces
Ddu
Pool Traces - DDU pool settings for Traces
- events
Ddu
Pool Events Args - DDU pool settings for Events
- log_
monitoring DduPool Log Monitoring Args - DDU pool settings for Log Monitoring
- metrics
Ddu
Pool Metrics Args - DDU pool settings for Metrics
- serverless
Ddu
Pool Serverless Args - DDU pool settings for Serverless
- traces
Ddu
Pool Traces Args - DDU pool settings for Traces
- events Property Map
- DDU pool settings for Events
- log
Monitoring 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.
- Events
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Events - DDU pool settings for Events
- Log
Monitoring Pulumiverse.Dynatrace. Inputs. Ddu Pool Log Monitoring - DDU pool settings for Log Monitoring
- Metrics
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Metrics - DDU pool settings for Metrics
- Serverless
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Serverless - DDU pool settings for Serverless
- Traces
Pulumiverse.
Dynatrace. Inputs. Ddu Pool Traces - DDU pool settings for Traces
- Events
Ddu
Pool Events Args - DDU pool settings for Events
- Log
Monitoring DduPool Log Monitoring Args - DDU pool settings for Log Monitoring
- Metrics
Ddu
Pool Metrics Args - DDU pool settings for Metrics
- Serverless
Ddu
Pool Serverless Args - DDU pool settings for Serverless
- Traces
Ddu
Pool Traces Args - DDU pool settings for Traces
- events
Ddu
Pool Events - DDU pool settings for Events
- log
Monitoring DduPool Log Monitoring - DDU pool settings for Log Monitoring
- metrics
Ddu
Pool Metrics - DDU pool settings for Metrics
- serverless
Ddu
Pool Serverless - DDU pool settings for Serverless
- traces
Ddu
Pool Traces - DDU pool settings for Traces
- events
Ddu
Pool Events - DDU pool settings for Events
- log
Monitoring DduPool Log Monitoring - DDU pool settings for Log Monitoring
- metrics
Ddu
Pool Metrics - DDU pool settings for Metrics
- serverless
Ddu
Pool Serverless - DDU pool settings for Serverless
- traces
Ddu
Pool Traces - DDU pool settings for Traces
- events
Ddu
Pool Events Args - DDU pool settings for Events
- log_
monitoring DduPool Log Monitoring Args - DDU pool settings for Log Monitoring
- metrics
Ddu
Pool Metrics Args - DDU pool settings for Metrics
- serverless
Ddu
Pool Serverless Args - DDU pool settings for Serverless
- traces
Ddu
Pool Traces Args - DDU pool settings for Traces
- events Property Map
- DDU pool settings for Events
- log
Monitoring 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, DduPoolEventsArgs
DduPoolLogMonitoring, DduPoolLogMonitoringArgs
DduPoolMetrics, DduPoolMetricsArgs
DduPoolServerless, DduPoolServerlessArgs
DduPoolTraces, DduPoolTracesArgs
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.