@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
146 lines • 5.42 kB
JavaScript
"use strict";
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAutotagOutput = exports.getAutotag = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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",
* }],
* },
* },
* },
* ],
* },
* });
* ```
*/
function getAutotag(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getAutotag:getAutotag", {
"name": args.name,
}, opts);
}
exports.getAutotag = getAutotag;
/**
* 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",
* }],
* },
* },
* },
* ],
* },
* });
* ```
*/
function getAutotagOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getAutotag:getAutotag", {
"name": args.name,
}, opts);
}
exports.getAutotagOutput = getAutotagOutput;
//# sourceMappingURL=getAutotag.js.map