@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
150 lines (149 loc) • 5.21 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The automatically applied tag data source allows the tag ID to be retrieved by its name.
*
* > This data source requires the API token scopes **Read settings** (`settings.read`)
*
* - `name` queries the automatically applied tag with the specified name
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const exampleAutotag = dynatrace.getAutotag({
* name: "Terraform Example",
* });
* const exampleAutotagRules = new dynatrace.AutotagRules("exampleAutotagRules", {
* autoTagId: exampleAutotag.then(exampleAutotag => exampleAutotag.id),
* rules: {
* rules: [
* {
* type: "ME",
* enabled: true,
* valueFormat: "Java",
* valueNormalization: "Leave text as-is",
* attributeRule: {
* entityType: "PROCESS_GROUP",
* pgToHostPropagation: true,
* pgToServicePropagation: false,
* conditions: {
* conditions: [{
* enumValue: "JAVA",
* key: "PROCESS_GROUP_TECHNOLOGY",
* operator: "EQUALS",
* }],
* },
* },
* },
* {
* type: "ME",
* enabled: true,
* valueFormat: ".NET",
* valueNormalization: "Leave text as-is",
* attributeRule: {
* entityType: "PROCESS_GROUP",
* pgToHostPropagation: true,
* pgToServicePropagation: false,
* conditions: {
* conditions: [{
* enumValue: "DOTNET",
* key: "PROCESS_GROUP_TECHNOLOGY",
* operator: "EQUALS",
* }],
* },
* },
* },
* ],
* },
* });
* ```
*/
export declare function getAutotag(args: GetAutotagArgs, opts?: pulumi.InvokeOptions): Promise<GetAutotagResult>;
/**
* A collection of arguments for invoking getAutotag.
*/
export interface GetAutotagArgs {
name: string;
}
/**
* A collection of values returned by getAutotag.
*/
export interface GetAutotagResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
}
/**
* The automatically applied tag data source allows the tag ID to be retrieved by its name.
*
* > This data source requires the API token scopes **Read settings** (`settings.read`)
*
* - `name` queries the automatically applied tag with the specified name
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
* import * as dynatrace from "@pulumiverse/dynatrace";
*
* const exampleAutotag = dynatrace.getAutotag({
* name: "Terraform Example",
* });
* const exampleAutotagRules = new dynatrace.AutotagRules("exampleAutotagRules", {
* autoTagId: exampleAutotag.then(exampleAutotag => exampleAutotag.id),
* rules: {
* rules: [
* {
* type: "ME",
* enabled: true,
* valueFormat: "Java",
* valueNormalization: "Leave text as-is",
* attributeRule: {
* entityType: "PROCESS_GROUP",
* pgToHostPropagation: true,
* pgToServicePropagation: false,
* conditions: {
* conditions: [{
* enumValue: "JAVA",
* key: "PROCESS_GROUP_TECHNOLOGY",
* operator: "EQUALS",
* }],
* },
* },
* },
* {
* type: "ME",
* enabled: true,
* valueFormat: ".NET",
* valueNormalization: "Leave text as-is",
* attributeRule: {
* entityType: "PROCESS_GROUP",
* pgToHostPropagation: true,
* pgToServicePropagation: false,
* conditions: {
* conditions: [{
* enumValue: "DOTNET",
* key: "PROCESS_GROUP_TECHNOLOGY",
* operator: "EQUALS",
* }],
* },
* },
* },
* ],
* },
* });
* ```
*/
export declare function getAutotagOutput(args: GetAutotagOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAutotagResult>;
/**
* A collection of arguments for invoking getAutotag.
*/
export interface GetAutotagOutputArgs {
name: pulumi.Input<string>;
}