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 string
- The unique name of the resource.
- args CustomUnitsArgs
- 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 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 string
- The unique name of the resource.
- args CustomUnitsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomUnitsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := dynatrace.NewCustomUnits(ctx, "customUnitsResource", &dynatrace.CustomUnitsArgs{
Description: pulumi.String("string"),
PluralName: pulumi.String("string"),
Symbol: pulumi.String("string"),
Name: pulumi.String("string"),
})
var customUnitsResource = new CustomUnits("customUnitsResource", CustomUnitsArgs.builder()
.description("string")
.pluralName("string")
.symbol("string")
.name("string")
.build());
custom_units_resource = dynatrace.CustomUnits("customUnitsResource",
description="string",
plural_name="string",
symbol="string",
name="string")
const customUnitsResource = new dynatrace.CustomUnits("customUnitsResource", {
description: "string",
pluralName: "string",
symbol: "string",
name: "string",
});
type: dynatrace:CustomUnits
properties:
description: string
name: string
pluralName: string
symbol: string
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 string
- Unit description should provide additional information about the new unit
- Plural
Name string - Unit plural name represent the plural form of the unit name.
- Symbol string
- Unit symbol has to be unique.
- Name string
- Unit name has to be unique and is used as identifier.
- Description string
- Unit description should provide additional information about the new unit
- Plural
Name string - Unit plural name represent the plural form of the unit name.
- Symbol string
- Unit symbol has to be unique.
- Name string
- Unit name has to be unique and is used as identifier.
- description String
- Unit description should provide additional information about the new unit
- plural
Name String - Unit plural name represent the plural form of the unit name.
- symbol String
- Unit symbol has to be unique.
- name String
- Unit name has to be unique and is used as identifier.
- description string
- Unit description should provide additional information about the new unit
- plural
Name string - Unit plural name represent the plural form of the unit name.
- symbol string
- Unit symbol has to be unique.
- name string
- Unit name has to be unique and is used as identifier.
- description str
- Unit description should provide additional information about the new unit
- plural_
name str - Unit plural name represent the plural form of the unit name.
- symbol str
- Unit symbol has to be unique.
- name str
- Unit name has to be unique and is used as identifier.
- description String
- Unit description should provide additional information about the new unit
- plural
Name String - Unit plural name represent the plural form of the unit name.
- symbol 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)
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.
- 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.
- Plural
Name 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.
- Plural
Name 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.
- plural
Name 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.
- plural
Name 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.
- plural
Name 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.