@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
56 lines • 2.05 kB
JavaScript
;
// *** 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.getRequestAttributeOutput = exports.getRequestAttribute = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `dynatrace.RequestAttribute` data source allows the request attribute ID to be retrieved by its name.
*
* - `name` (String) - The name of the request attribute
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getRequestAttribute({
* name: "Terraform Example",
* });
* export const id = example.then(example => example.id);
* ```
*/
function getRequestAttribute(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getRequestAttribute:getRequestAttribute", {
"name": args.name,
}, opts);
}
exports.getRequestAttribute = getRequestAttribute;
/**
* The `dynatrace.RequestAttribute` data source allows the request attribute ID to be retrieved by its name.
*
* - `name` (String) - The name of the request attribute
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getRequestAttribute({
* name: "Terraform Example",
* });
* export const id = example.then(example => example.id);
* ```
*/
function getRequestAttributeOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getRequestAttribute:getRequestAttribute", {
"name": args.name,
}, opts);
}
exports.getRequestAttributeOutput = getRequestAttributeOutput;
//# sourceMappingURL=getRequestAttribute.js.map