UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

64 lines 2.46 kB
"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.getIamGroupOutput = exports.getIamGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Dynatrace SaaS only** * * > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`). * * The IAM group data source allows the group ID to be retrieved by its name. * * - `name` (String) - The name of the IAM group * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const example = dynatrace.getIamGroup({ * name: "Terraform Example", * }); * export const groups = example.then(example => example.id); * ``` */ function getIamGroup(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getIamGroup:getIamGroup", { "name": args.name, }, opts); } exports.getIamGroup = getIamGroup; /** * > **Dynatrace SaaS only** * * > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`). * * The IAM group data source allows the group ID to be retrieved by its name. * * - `name` (String) - The name of the IAM group * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const example = dynatrace.getIamGroup({ * name: "Terraform Example", * }); * export const groups = example.then(example => example.id); * ``` */ function getIamGroupOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getIamGroup:getIamGroup", { "name": args.name, }, opts); } exports.getIamGroupOutput = getIamGroupOutput; //# sourceMappingURL=getIamGroup.js.map