1. Packages
  2. Dynatrace
  3. API Docs
  4. CustomUnits
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.CustomUnits

Explore with Pulumi AI

Create CustomUnits Resource

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

Constructor syntax

new CustomUnits(name: string, args: CustomUnitsArgs, opts?: CustomResourceOptions);
@overload
def CustomUnits(resource_name: str,
                args: CustomUnitsArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def CustomUnits(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                description: Optional[str] = None,
                plural_name: Optional[str] = None,
                symbol: Optional[str] = None,
                name: Optional[str] = None)
func NewCustomUnits(ctx *Context, name string, args CustomUnitsArgs, opts ...ResourceOption) (*CustomUnits, error)
public CustomUnits(string name, CustomUnitsArgs args, CustomResourceOptions? opts = null)
public CustomUnits(String name, CustomUnitsArgs args)
public CustomUnits(String name, CustomUnitsArgs args, CustomResourceOptions options)
type: dynatrace:CustomUnits
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CustomUnitsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CustomUnitsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CustomUnitsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CustomUnitsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CustomUnitsArgs
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 customUnitsResource = new Dynatrace.CustomUnits("customUnitsResource", new()
{
    Description = "string",
    PluralName = "string",
    Symbol = "string",
    Name = "string",
});
Copy
example, err := dynatrace.NewCustomUnits(ctx, "customUnitsResource", &dynatrace.CustomUnitsArgs{
	Description: pulumi.String("string"),
	PluralName:  pulumi.String("string"),
	Symbol:      pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var customUnitsResource = new CustomUnits("customUnitsResource", CustomUnitsArgs.builder()
    .description("string")
    .pluralName("string")
    .symbol("string")
    .name("string")
    .build());
Copy
custom_units_resource = dynatrace.CustomUnits("customUnitsResource",
    description="string",
    plural_name="string",
    symbol="string",
    name="string")
Copy
const customUnitsResource = new dynatrace.CustomUnits("customUnitsResource", {
    description: "string",
    pluralName: "string",
    symbol: "string",
    name: "string",
});
Copy
type: dynatrace:CustomUnits
properties:
    description: string
    name: string
    pluralName: string
    symbol: string
Copy

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

Description This property is required. string
Unit description should provide additional information about the new unit
PluralName This property is required. string
Unit plural name represent the plural form of the unit name.
Symbol This property is required. string
Unit symbol has to be unique.
Name string
Unit name has to be unique and is used as identifier.
Description This property is required. string
Unit description should provide additional information about the new unit
PluralName This property is required. string
Unit plural name represent the plural form of the unit name.
Symbol This property is required. string
Unit symbol has to be unique.
Name string
Unit name has to be unique and is used as identifier.
description This property is required. String
Unit description should provide additional information about the new unit
pluralName This property is required. String
Unit plural name represent the plural form of the unit name.
symbol This property is required. String
Unit symbol has to be unique.
name String
Unit name has to be unique and is used as identifier.
description This property is required. string
Unit description should provide additional information about the new unit
pluralName This property is required. string
Unit plural name represent the plural form of the unit name.
symbol This property is required. string
Unit symbol has to be unique.
name string
Unit name has to be unique and is used as identifier.
description This property is required. str
Unit description should provide additional information about the new unit
plural_name This property is required. str
Unit plural name represent the plural form of the unit name.
symbol This property is required. str
Unit symbol has to be unique.
name str
Unit name has to be unique and is used as identifier.
description This property is required. String
Unit description should provide additional information about the new unit
pluralName This property is required. String
Unit plural name represent the plural form of the unit name.
symbol This property is required. String
Unit symbol has to be unique.
name String
Unit name has to be unique and is used as identifier.

Outputs

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

Get an existing CustomUnits 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?: CustomUnitsState, opts?: CustomResourceOptions): CustomUnits
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        plural_name: Optional[str] = None,
        symbol: Optional[str] = None) -> CustomUnits
func GetCustomUnits(ctx *Context, name string, id IDInput, state *CustomUnitsState, opts ...ResourceOption) (*CustomUnits, error)
public static CustomUnits Get(string name, Input<string> id, CustomUnitsState? state, CustomResourceOptions? opts = null)
public static CustomUnits get(String name, Output<String> id, CustomUnitsState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:CustomUnits    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Description string
Unit description should provide additional information about the new unit
Name string
Unit name has to be unique and is used as identifier.
PluralName string
Unit plural name represent the plural form of the unit name.
Symbol string
Unit symbol has to be unique.
Description string
Unit description should provide additional information about the new unit
Name string
Unit name has to be unique and is used as identifier.
PluralName string
Unit plural name represent the plural form of the unit name.
Symbol string
Unit symbol has to be unique.
description String
Unit description should provide additional information about the new unit
name String
Unit name has to be unique and is used as identifier.
pluralName String
Unit plural name represent the plural form of the unit name.
symbol String
Unit symbol has to be unique.
description string
Unit description should provide additional information about the new unit
name string
Unit name has to be unique and is used as identifier.
pluralName string
Unit plural name represent the plural form of the unit name.
symbol string
Unit symbol has to be unique.
description str
Unit description should provide additional information about the new unit
name str
Unit name has to be unique and is used as identifier.
plural_name str
Unit plural name represent the plural form of the unit name.
symbol str
Unit symbol has to be unique.
description String
Unit description should provide additional information about the new unit
name String
Unit name has to be unique and is used as identifier.
pluralName String
Unit plural name represent the plural form of the unit name.
symbol String
Unit symbol has to be unique.

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.